UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 16 Apr 2013 07:46 PM |
Why doesn't this work
repeat wait(0.03) until Game.Players.LocalPlayer.Character ~= nil
repeat wait(0.03) until Game.Players.LocalPlayer.Character.Humanoid.Health == 0 print("Death") script.Grave:MoveTo(Game.Players.LocalPlayer.Character.Torso.Position) script.Grave.Parent = Workspace
No errors, and works fine other then not being moved. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Apr 2013 07:48 PM |
MoveTo operates in workspace
so,
script.Grave.Parent = Workspace script.Grave:MoveTo(Game.Players.LocalPlayer.Character.Torso.Position)
You need to parent the Grave before you move it.
|MassiveGman| Scripter & part time Professional Whistler |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
| |
|
|
| 16 Apr 2013 07:50 PM |
| :MoveTo() is for models, so yes, it should be. Also, like the other helper said, you should place the model in workspace before moving it. :MoveTo() takes a second argument too. Look it up on the wiki. |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2013 07:51 PM |
http://wiki.roblox.com/index.php/MoveTo_(Method)/humanoid
|MassiveGman| Scripter & part time Professional Whistler |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2013 07:52 PM |
oops
This one is for models
http://wiki.roblox.com/index.php/MoveTo_(Method)/model
|MassiveGman| Scripter & part time Professional Whistler |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2013 07:52 PM |
The :MoveTo( vec3 ) method doesn't need a second argument if you're calling it on a Model.
http://www.roblox.com/Innocent-place?id=56780928 ~ Innocence |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 16 Apr 2013 07:52 PM |
I got it to kinda work
repeat wait(0.03) until Game.Players.LocalPlayer.Character ~= nil
repeat wait(0.03) until Game.Players.LocalPlayer.Character.Humanoid.Health == 0 print("Death") GraveStone = script.Grave GraveStone.Parent = Workspace GraveStone:MoveTo(Game.Players.LocalPlayer.Character.Torso.Position)
Now it is on top of them though :c |
|
|
| Report Abuse |
|
|
| |
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
| |
|
|
| 17 Apr 2013 04:39 PM |
*facepalm* lol forgot it's a model xd |
|
|
| Report Abuse |
|
|