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 » Scripters
Home Search
 

Re: why doesn't this work

Previous Thread :: Next Thread 
P0Ptartfudge is not online. P0Ptartfudge
Joined: 13 Nov 2011
Total Posts: 19577
27 Nov 2016 09:28 PM
h = Instance.new("Hint",workspace)
while true do
timer = 5
repeat
timer = timer-1
h.Text = "Intermission ("..timer..")"
wait(1)
until timer == 0
h.Text = "Choosing map..."
wait(3)
m = game.Lighting.Maps:GetChildren()
r = math.random(2,#m)
map = m[r]:clone()
map.Parent = workspace
h.Text = "The map is "..map.Name.."!"
wait(5)
plrs = game.Players:GetChildren()
for i = 1, #plrs do
plrs[i].Character:MoveTo(map.Spawn.Position+Vector3.new(math.random(213, 1.948, -186),0,math.random(585.5, 1.3, -221.5)))--teleports to coordinates
end
h.Text = "Begin!"
wait(3)
timer = 30--timer for map
repeat
timer = timer-1
h.Text = "Time remaining: "..timer..""--the remaining time
wait(1)
until timer == 0
map:remove()
end -- end of script

After the game chooses its map it never teleports the player to the coordinates listed. Can somebody tell me why?


old school hip-hop enthusiast| check out a really cool car i made: https://www.roblox.com/Grand-Theft-Auto-5-Albany-Roosevelt-item?id=243317129 | R$546,617
Report Abuse
P0Ptartfudge is not online. P0Ptartfudge
Joined: 13 Nov 2011
Total Posts: 19577
27 Nov 2016 09:30 PM
script helpers is so inactive

help me


old school hip-hop enthusiast| check out a really cool car i made: https://www.roblox.com/Grand-Theft-Auto-5-Albany-Roosevelt-item?id=243317129 | R$546,617
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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