|
| 01 Jan 2017 12:56 AM |
Alright, I am testing around with working pool tables and found one that I like, and works relatively simply, players have a cue stick tool, hit the cue ball into the rest off the balls, and so forth, however in-game it is glitching, once you hit the ball it goes forward and then teleports back to where it was, sometimes wont move at all. Looking for all and any help, as I am not much of a scripter. This is the script:
bin = script.Parent function onButton1Down(mouse) local player = game.Players.LocalPlayer if player == nil then return end if mouse.Target.Name == "Cue" then mouse.Target.Velocity = bin.Parent.Torso.CFrame.lookVector * 20 mouse.Icon = "rbxasset://textures\\ArrowCursor.png" else print("Not a pool ball") end end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Equipped:connect(onSelected)
|
|
|
| Report Abuse |
|