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
 

Re: Help<>Weld

Previous Thread :: Next Thread 
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
17 Feb 2015 11:30 AM
I have a fishing pole in serverstorage and when i touch a part in the water its supposed to weld onto the player but i cant get to work anyone know how to make the pole weld onto the players arm when they click the part?
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
17 Feb 2015 11:36 AM
B1
Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
17 Feb 2015 11:38 AM
try this:

tool = game.ServerStorage.nameoftool:clone()
function onTouched(hit)

tool.Parent = hit.Parent

end
script.Parent.Touched:connect(onTouched)
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
17 Feb 2015 11:43 AM
this clones to workspace but it doesn't weld to the players arm



tool = game.ServerStorage.Pole:clone()
function onClicked(hit)
hit.Character.Humanoid.WalkSpeed = 0
tool = game.ServerStorage.Pole:clone()
tool.Parent = hit.Character
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
17 Feb 2015 11:48 AM
it works fine with me right now, you don't need to replicate tool = game.ServerStorage.Pole:Clone() twice. use this:

tool = game.ServerStorage.Pole:clone()
function onClicked(hit)
hit.Character.Humanoid.WalkSpeed = 0
tool.Parent = hit.Character
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

be sure to put a script and clickdetector in the part. if it doesnt work try using local script, but for me, it works fine
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
17 Feb 2015 11:49 AM
does the fishing pole weld into my arm it doesn't it just clones into me :()
Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
17 Feb 2015 11:54 AM
It does! i tried it on my own studio. wait ill make a model for you.
Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
17 Feb 2015 11:54 AM
wait, is the pole a tool or a model?
Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
17 Feb 2015 11:55 AM
a model
Report Abuse
RoboX790 is not online. RoboX790
Joined: 05 Nov 2009
Total Posts: 285
17 Feb 2015 12:21 PM
moving models to a player's hand is hard

try putting the parts inside the model in a tool and then use the script i gave you, if it doesn't work, ill have to look at it later cause i got to go to the gym now
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