generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Pool stick not working?

Previous Thread :: Next Thread 
SognareGrande is not online. SognareGrande
Joined: 20 Oct 2011
Total Posts: 53
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image