|
| 06 Apr 2015 10:06 AM |
does any one know how to find a players character to then CFrame them to another object? This is what i did but didnt work:
players = game.Players:GetChildren()--finding all players
map1 = game.Workspace.map1tp --the object
while true do wait(5) players.Character.Torso.CFrame = map1.CFrame --tp end |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|
|
| 06 Apr 2015 10:36 AM |
players = game.Players:GetChildren()--finding all players
map1 = game.Workspace.map1tp --the object
while true do wait(5) players.Character.Torso.CFrame = map1.CFrame --tp end
Ok first, let's fix a few things
local map1 = game.Workspace.map1tp
while true do wait(5) for _, v in pairs(game.Players:GetPlayers()) do v.Character:MoveTo(map1.Position) end |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 06 Apr 2015 10:37 AM |
@shadow
MoveTo() is much more simple and he can re use it for other games in different ways |
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 10:38 AM |
| Why do you think i used it then? |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 06 Apr 2015 10:41 AM |
| you could've put the entire thing into like 2 - 3 lines but ok... |
|
|
| Report Abuse |
|
|
| |
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
|
| 06 Apr 2015 10:44 AM |
after school, im at school atm and i have to open one of my games.
|
|
|
| Report Abuse |
|
|
|
| 06 Apr 2015 11:00 AM |
thx ShadowAley it works rlly well for my game and i can finally carry on with it and K7Q thx aswell but i was confused with how to use it. Iam still a begginer even though i have kept trying for about a year.
|
|
|
| Report Abuse |
|
|