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 » Game Design
Home Search
 

Re: Help on a script.

Previous Thread :: Next Thread 
diddyb100 is not online. diddyb100
Joined: 29 Sep 2012
Total Posts: 7
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 is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
06 Apr 2015 10:33 AM
use MoveTo() and
Report Abuse
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
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 is not online. 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
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
06 Apr 2015 10:38 AM
Why do you think i used it then?
Report Abuse
K7Q is not online. 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
ShadowAley is not online. ShadowAley
Joined: 23 Jun 2010
Total Posts: 4823
06 Apr 2015 10:41 AM
How so? Show me.
Report Abuse
K7Q is not online. 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
diddyb100 is not online. diddyb100
Joined: 29 Sep 2012
Total Posts: 7
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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