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

How do I fix this NumPlayer?

Asked by 10 years ago

Heres the script; it's inside the StartGui:

if game.Players.NumPlayers > 3 then

for i = 1,0,-1 do
    Game.Workspace.GUIPart.SurfaceGui.Frame.TextLabel.Text = tostring(i)
  Game.Workspace.Tick:Play()
wait(1)
end

wait(0.5)
Workspace.Beginning.Volume = 0.5
Workspace.Beginning:Play()
wait(0.5)
Derp = Workspace.GUIPart.SurfaceGui.Frame.TextLabel
Workspace.Tick:Play()
Derp.Text = "Welcome To Outrageous Obstacles!"
wait(3)

if game.Players.PlayerRemoving:connect() then
for _,v in pairs(game.Players:GetPlayers()) do
v.Character.Head.Destroy()  
if Workspace.GUIPart.SurfaceGui.Frame.TextLabel.Text ~= "More Players Needed.." then-- caps matter
Workspace.GUIPart.SurfaceGui.Frame.TextLabel.Text = "More Players Needed.."
end
end
end

I tried everything that I could to fix this but nothing. Now if there is somebody who knows, may you please point out the mistake that I am making?

0
Any errors? What happens when you try to run the script? lomo0987 250 — 10y
0
I get an error DesignerDavid 0 — 10y
0
What is the error? It doesn't help just saying that there is an error. lomo0987 250 — 10y
0
There is an error on line 19. Though I tried everything that I could. DesignerDavid 0 — 10y

Answer this question