Tikobe
|
  |
| Joined: 12 Aug 2011 |
| Total Posts: 6366 |
|
|
| 22 Jun 2012 08:58 PM |
| I am currently trying to make a game, but I'm a novice. So I'm here to ask for help on a script that will transport you to a random location (Out of 7 selected spots) every 5 seconds for people who choose to be a player and not a audience member. If you can help, I would be thankful (even though I'm not sure gratitude would be much, but I'll give yah some tix for the script) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2012 09:47 PM |
what you need to do is put the spots in a model and give each a unique name like "spot1" and "spot2" and so forth. Then put this in workspace:
while wait(5) do for _,v in pairs(game.Players:GetPlayers()) do if v.Character then local t = v.Character:FindFirstChild("Torso") if t then t.CFrame = workspace.SPOTMODEL:GetChildren()[math.random(#workspace.SPOTMODEL:GetChildren())].CFrame+Vector3.new(0,3,0) end end end end
There is a script to get you started. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 22 Jun 2012 09:49 PM |
| Thanks. This will now go into the Endless Queue of Requested scripts made here on Scripting Helpers. |
|
|
| Report Abuse |
|
|
Tikobe
|
  |
| Joined: 12 Aug 2011 |
| Total Posts: 6366 |
|
|
| 22 Jun 2012 09:57 PM |
| Thank you, bunny, for explaining it to me, and thank you, white, for the smart alex comment. :D |
|
|
| Report Abuse |
|
|