dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 28 Jun 2012 01:18 AM |
script.Parent.Equipped:connect(function(mouse) mouse.KeyUp:connect(function(key) if key == "r" then script.Parent.Parent.Humanoid.Health = 0 elseif key == "f" then script.Parent.Parent:BreakJoints() else if key == "q" then script.Parent.Parent.Parent.Humanoid.Health = 50 script.Parent.Parent.Parent.Humanoid.Walkspeed = 32 wait(7) script.Parent.Parent.Humanoid.WalkSpeed = 16 elseif key == "e" then local p = Instance.new("Part", workspace) p.Size = Vector3.new(1,1,1) p.CFrame = script.Parent.Parent.Head.CFrame*CFrame.new(0, 0, -7) end end) end)
Im using localscript in a hopperbin should it be a tool and a script or a hooperbin in a tool I have no idea whats going on its my frist time doing one of these scripts. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 28 Jun 2012 01:19 AM |
| LocalScript and Hopperbin should be fine i think |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2012 01:20 AM |
| It should be a Tool (It says "Equipped", that is for tools), don't forget the Tool needs a Part called "Handle" inside it. If you want a HopperBin, change "Equipped" into "Selected". |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 28 Jun 2012 01:21 AM |
| Wasn't paying attention to that. |
|
|
| Report Abuse |
|
|
dasfunny
|
  |
| Joined: 24 Jan 2011 |
| Total Posts: 911 |
|
|
| 28 Jun 2012 01:22 AM |
| well I tried both could someone make a model Pl0x |
|
|
| Report Abuse |
|
|