Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

any idea's on GetPlayers() please?

I have a non-local script that is making my Slender Minigames game run... so anyways... I have

player=game:GetService("Players"):GetPlayers()

I have it where it SHOULD teleport "player" to the maps on "player" SlenderMan Spawn and on to Surviver Spawn

and for some reason it wont use Vector3.new() to teleport to the Spawn it will teleport A "player" but only 1 and I need two players for the game to start. Nother Question : Isnt it

 i = 1 do 1,2,2 then

Because Im having my questions on how good this is working. #NeedSomeHelpPLEASE

along with Vector3.new() NOT working correctly the way I want, There is a NOTHER PROBLEM!

I need it to spawn "SlenderMan" aka "player" spawn looking like SlenderMan.

I dont want a "Char" thats SIMPLE.

Heres what I have so far...

local player = game:GetService("Players"):GetPlayers()
print("Got Players")
for i = 1, #player do 
print("Have Players")
game.Lighting.Minigame1:clone().Parent = game.Workspace
wait(15)
print("Teleporting Players To Map")
player[i].Character:MoveTo(Vector3.new(2742.16, 919.19, -433.668))
script.Parent.L1:Pause()
script.Parent.M1:Play()
script.Parent.L1.SoundId = "rbxassetid://144652376"
wait(60)

1 answer

✓ Accepted answer
local player = game:GetService("Players"):GetPlayers()
print("Got Players")
for i = 1, #player do 
print("Have Players")
a=game.Lighting:FindFirstChild("Minigame1")
a:clone
a.Parent = game.Workspace
wait(15)
print("Teleporting Players To Map")
player[i].Character:MoveTo(Vector3.new(2742.16, 919.19, -433.668))
script.Parent.L1:Pause()                                       
script.Parent.M1:Play()                      --Where's the M1 Music? If it isn't there that means it won't work
script.Parent.L1.SoundId = "rbxassetid://144652376"
wait(60)

This discussion is preserved as it was. New answers, comments, and votes are closed.