Top posting users this month | |
Latest topics | » Where to go from here.September 14th 2020, 1:20 pm by MrNicNac» Send me an EmailSeptember 14th 2020, 1:16 pm by MrNicNac» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]July 6th 2015, 7:38 pm by m27frogy» New Site PossiblyJuly 6th 2015, 4:16 pm by m27frogy» Ambassador!April 15th 2015, 11:40 pm by naknak» Boop - TagApril 13th 2015, 9:46 pm by naknak» Vip Class ScriptApril 13th 2015, 4:54 pm by naknak» Who's active?!April 13th 2015, 4:52 pm by naknak» Genesis PointJuly 17th 2014, 7:04 pm by branefreez» Reward SystemJuly 17th 2014, 5:41 am by m27frogy» Script RequestJuly 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 hereApril 26th 2014, 4:01 pm by altshiftkey» What's your favorite sport?January 1st 2014, 2:13 pm by m27frogy» FlashLight ScriptJanuary 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 CodingOctober 26th 2013, 1:12 pm by pook03» Simple ButtonSeptember 1st 2013, 6:19 pm by branefreez |
|
| The Hopperbin101 Lesson-1 Hat/Tool Jacker | |
| | Author | Message |
---|
justin7674 Expert Scripter
Posts : 11 Join date : 2010-08-02
| Subject: 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 | |
| | | Guest Guest
| Subject: 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?) |
| | | Prodigy Administrator
Posts : 58 Join date : 2010-07-28
| Subject: 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. | |
| | | justin7674 Expert Scripter
Posts : 11 Join date : 2010-08-02
| Subject: 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 | |
| | | Guest Guest
| Subject: 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 |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: 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. | |
| | | Sponsored content
| Subject: Re: The Hopperbin101 Lesson-1 Hat/Tool Jacker | |
| |
| | | | The Hopperbin101 Lesson-1 Hat/Tool Jacker | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest
None
Most users ever online was 136 on October 21st 2024, 12:16 pm
|
| Please tell us what time zone you are in here
Got a really good idea? Post it in projects and it might show up here! |
|