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

any idea's on GetPlayers() please?

Asked by 9 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

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

Log in to vote
0
Answered by
Subbix -5
9 years ago
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)

Ad

Answer this question