|
| 29 Sep 2015 08:52 AM |
Destination = game.Workspace.Floor Player = game.Players.LocalPlayer
function onClicked() Player.Character:MoveTo(Destination.Position) end
script.Parent.MouseButton1Down:connect(onClicked)
Works fine in studio but not in Play mode. Anyone know why? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2015 08:57 AM |
-- Maybe it doesn't load?
local Destination = game["Workspace"]:WaitForChild("Floor") |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 30 Sep 2015 08:16 AM |
Position in a game would be Vector3, and if it's moving the person there instead of a new place, you would use BodyPosition.
http://www.roblox.com/--item?id=297394377http://www.roblox.com/--item?id=297394428http://www.roblox.com/--item?id=297394447 |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2015 08:36 AM |
"(Destination.Position)" I see no efficient sourcehow the script would recognize position.
•SpookyScarehSkeleton• ≈ •Youtube: youtube.com/channel/UCixcrTr7gP2yziMzYJD-U7Q• |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2015 08:37 AM |
| Actually, the problem is that I have to put the script into Localscript. It's working now. |
|
|
| Report Abuse |
|
|
Versault
|
  |
| Joined: 08 Oct 2014 |
| Total Posts: 3241 |
|
| |
|
|
| 30 Sep 2015 09:21 AM |
^ LOL
•SpookyScarehSkeleton• ≈ •Youtube: youtube.com/channel/UCixcrTr7gP2yziMzYJD-U7Q• |
|
|
| Report Abuse |
|
|