darkUdog
|
  |
| Joined: 01 Jul 2007 |
| Total Posts: 27082 |
|
|
| 29 Jul 2011 12:56 PM |
local place = script:FindFirstChild("30347671") local spawn = script:FindFirstChild("32778076")
local placeId local spawnName if place then placeId = place.Value if spawn and spawn.Value then spawnName = spawn.Value game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName) else game:GetService("TeleportService"):Teleport(placeId) end end
|
|
|
| Report Abuse |
|
|
|
| 29 Jul 2011 01:04 PM |
| Is the placeId in the value property as well as the name property? |
|
|
| Report Abuse |
|
|
5943539
|
  |
| Joined: 05 Jan 2010 |
| Total Posts: 810 |
|
|
| 29 Jul 2011 01:07 PM |
| Just make it placeID=tonumber(place.Name). Actually make there be no spawn value. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2011 01:10 PM |
| @594539 - Hmm, I didn't know you could do tonumber(place.Name)... |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2011 01:14 PM |
local place = script:FindFirstChild("30347671") local spawn = script:FindFirstChild("32778076")
local placeId local spawnName if place then placeId = place.Value if spawn and spawn.Value then spawnName = spawn.Value game:GetService("TeleportService"):TeleportToSpawnByName(placeId) else game:GetService("TeleportService"):Teleport(placeId) --Same place? end end
|
|
|
| Report Abuse |
|
|
darkUdog
|
  |
| Joined: 01 Jul 2007 |
| Total Posts: 27082 |
|
|
| 29 Jul 2011 01:22 PM |
I have no idea how to script at all ._.
I'll pay 100 R$ for a working teleporter model :( |
|
|
| Report Abuse |
|
|
darkUdog
|
  |
| Joined: 01 Jul 2007 |
| Total Posts: 27082 |
|
| |
|