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 10 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

1player=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

1i = 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...

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

1 answer

Log in to vote
0
Answered by
Subbix -5
10 years ago
01local player = game:GetService("Players"):GetPlayers()
02print("Got Players")
03for i = 1, #player do
04print("Have Players")
05a=game.Lighting:FindFirstChild("Minigame1")
06a:clone
07a.Parent = game.Workspace
08wait(15)
09print("Teleporting Players To Map")
10player[i].Character:MoveTo(Vector3.new(2742.16, 919.19, -433.668))
11script.Parent.L1:Pause()                                      
12script.Parent.M1:Play()                      --Where's the M1 Music? If it isn't there that means it won't work
13script.Parent.L1.SoundId = "rbxassetid://144652376"
14wait(60)
Ad

Answer this question