A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 10th 2014, 11:43 am by naknak

» local scripts?
July 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
July 10th 2014, 11:36 am by naknak

» Hi. I am new here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
January 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
November 26th 2013, 3:33 pm by Keanu73

» Improve Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez


Share | 
 

 The Hopperbin101 Lesson-1 Hat/Tool Jacker

Go down 
AuthorMessage
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: The Hopperbin101 Lesson-1 Hat/Tool Jacker   August 2nd 2010, 11:24 am

Ok well I decided to post this in advanced because this is advanced :3 its something u just wont understand how to fix if u get it wrong and ur an intermediate level

if script.Parent.className ~= "HopperBin" then --this method is used to keep from creating two tools
--in a SB
m = Instance.new("HopperBin")
m.Parent = game.Players.justin7674.Backpack--Change my name to yours
script.Parent = m
m.Name = "Fun"
Plyr = game.Players.justin7674--Defining who player is yet again change my name to yours
end

function B1D(mouse)
brick = mouse.Target --so this is the method used to find out what u just clicked
if brick.Name == "Handle" then --if the part u clicked is named handle which is a hat or weapon jetpack maybe
brick.Parent.Parent = workspace --ok so if you made a tool from their parent Character to yours it would crash your client because that movement isnt allowed!
wait(1)
brick.Parent.Parent = Plyr.Character --to bypass that i changed its parent to workspace first even if they pick it back up it still gives it to you without crashing.
end
end

function onEquippedLocal(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png" --changes the cursor of course
mouse.Button1Down:connect(function() B1D(mouse) end) --thats it :3 you know this its just the method used to detect when the mouse button has been clicked!
end

script.Parent.Selected:connect(onEquippedLocal) --this connects the Selected function or status to oEL


Last edited by justin7674 on August 2nd 2010, 11:36 am; edited 1 time in total
Back to top Go down
http://ProjectArcher.com
Guest
Guest



PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   August 9th 2010, 8:38 pm

Um. I wouldn't consider a HopperBin to be advanced, maybe the one before advanced (was it moderate?)
Back to top Go down
Prodigy
Administrator
Administrator


Posts : 58
Join date : 2010-07-28

PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   August 9th 2010, 9:21 pm

VoidHack wrote:
Um. I wouldn't consider a HopperBin to be advanced, maybe the one before advanced (was it moderate?)
Intermediate, moderate, medium; same stuff.
Back to top Go down
http://roblox.youneed.us
justin7674
Expert Scripter
Expert Scripter


Posts : 11
Join date : 2010-08-02

PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   August 21st 2010, 6:59 pm

I just this the part to take tools is advanced because it will crash if you try moving it straight to your player
Back to top Go down
http://ProjectArcher.com
Guest
Guest



PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   August 24th 2010, 6:41 pm

Ya know, there is a format for code...that is an eyesore
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 19

PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   January 18th 2011, 6:58 am

the tool script would break if the user clicked open space.

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Sponsored content




PostSubject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker   

Back to top Go down
 
The Hopperbin101 Lesson-1 Hat/Tool Jacker
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Tutorials and Resources :: Advanced-
Jump to: