|
| 27 Nov 2017 04:12 PM |
I'm attempting to make a grappling hook which works in studio, but not in game. I've tried converting it into a local script, but the entire script just fails. Nothing shows up in the output. Is there a way to make this script compatible with a local script? There's something I'm doing wrong, but I'm not sure what it is.
Here is my script:
local Mouse = game.Players.LocalPlayer:GetMouse()
Rename = 90
o = script.Parent wait (.5) local Body = Instance.new("BodyPosition",game.Players.LocalPlayer.Character.Torso)
Body.D = 1250 Body.MaxForce = Vector3.new(500000,500000,500000) Body.P = 10000
Body.Position = o.Position
script.Parent.Name = Rename Rename = Rename + 1
Mouse.KeyDown:connect(function(key) if key:byte() == 32 then --spacebar is 32 print("Space bar has been pressed") Body:remove() end end)
|
|
|
| Report Abuse |
|