Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isnt it working? (READ DESC)

Asked by 7 years ago

I have a lobby and it has one spawn there, is the script thinking its supposed to be used for that lobby. I dont want it to be used there, I want it to be used when you change maps ( 5 spawns for each map). The map name is ' MAP ' the lobby name is DemonLObby

local player = game.Players.LocalPlayer
local Character = game.Workspace:WaitForChild(player.name)
local Torso = Character:WaitForChild('Torso')

local spawns = game.Workspace.Spawns
local SpawnNumber = math.random(1,5)
local spawnplate = spawns:findFirstChild('spawn'..SpawnNumber.."")
print(spawnplate.Name)

Torso.CFrame = CFrame.new(spawnplate.Position.X, spawnplate.Position.Y + 5,spawnplate.Position.Z)

script:Destroy()


0
You're probably not using a Local Script or you have the Local Script in the wrong position. User#11440 120 — 7y
0
Im using a Local Script what position do I put it in? motorcrossguy313 0 — 7y
0
Local Scripts don't work in workspace or ServerScriptService. User#11440 120 — 7y

Answer this question