Holtbyism
|
  |
| Joined: 01 Feb 2013 |
| Total Posts: 2621 |
|
|
| 01 Jul 2016 11:17 AM |
local force = 1 script.Parent.Parent.Equipped:connect(function(mouse) mouse.KeyDown:connect(function(key) if key=="r" then force=300 end
print(force) end) end) script.Parent.Touched:connect(function(part) if part.Name == "Puck" then local bp=Instance.new("BodyPosition") bp.maxForce=Vector3.new(force,0,force) bp.Parent=part bp.position=part.Position+script.Parent.Parent.Parent.Torso.CFrame.lookVector*10000000 wait(1) force = 0 bp:remove() end end)
What do I need to do? It's not giving me any output errors either on the RemoteError GUI that I have in game. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
Holtbyism
|
  |
| Joined: 01 Feb 2013 |
| Total Posts: 2621 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 01 Jul 2016 11:31 AM |
needs to be local to get the player's mouse
|
|
|
| Report Abuse |
|
|
Holtbyism
|
  |
| Joined: 01 Feb 2013 |
| Total Posts: 2621 |
|
| |
|