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
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 12 Dec 2014 |
| Total Posts: 1503 |
|
| |
|
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 |
|
|