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 » Scripting Helpers
Home Search
 

Re: Teleporting Player Weirdness

Previous Thread :: Next Thread 
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
20 Mar 2014 08:26 PM
When the player enters I create a brick in a random space for them to TP to, but they get this really weird camera glitchyness inside the block, and it starts to lag really bad, really fast. Any fix?

Player is defined through a PlayerAdded function.

local Part = Instance.new("Part", Workspace)
Part.Anchored = true
Part.Size = Vector3.new(15,15,15)
Part.Position = Vector3.new(math.random(1,9999999),math.random(1,9999999),math.random(1,9999999))
repeat wait() until Player.Character
wait(5)
Player.Character:MoveTo(Part.Position + Vector3.new(0,10,0))

And also, is there a more efficient way to pick a random spot in the game for it to TP to?

Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
20 Mar 2014 08:28 PM
>99999999999

shorten that ;.;
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
20 Mar 2014 08:28 PM
Well essentially I want the players to be far away as possible :/
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
20 Mar 2014 08:29 PM
why do you think it lags ;)
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
20 Mar 2014 08:30 PM
why? is the base that big?
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
20 Mar 2014 08:30 PM
True. Is there any other way to go about this?
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
20 Mar 2014 08:32 PM
>999999999999!!!!
Report Abuse
devLucas is not online. devLucas
Joined: 10 Dec 2013
Total Posts: 526
20 Mar 2014 08:33 PM
thanks so much111
Report Abuse
dave2011 is not online. dave2011
Joined: 02 Oct 2010
Total Posts: 10581
20 Mar 2014 08:37 PM
put this before the player added:
num=0

and then this after:

local Part = Instance.new("Part", Workspace)
Part.Anchored = true
Part.Size = Vector3.new(15,15,15)
Part.Position = Vector3.new(num),0,num)
repeat wait() until Player.Character
num=num+10000
wait(5)
Player.Character:MoveTo(Part.Position + Vector3.new(0,10,0))
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
20 Mar 2014 08:40 PM
if you want people to tele so far they die then keep doing that, but keep it client sided. if you want to teleport them randomly across the base then use the base's position vector.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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