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

Making Hide And Seek Game?

Asked by
WishXVI 94
4 years ago

Ok so here is my script. see any errors?

while true do

    local players = game.Players:GetChildren()
    print(#players) -- Dont mess with this line or the other lines above this line!! It might break the script
        wait (10)
        game.Workspace.Lobby:Destroy()
        game.StarterGui.Loading.Frame.Visible = true
        game.StarterGui.Loading.Frame.TextLabel.Text = "Selecting map."
        wait (5)
        game.StarterGui.Loading.Frame.TextLabel.Text = "Selecting it."
        wait (3)
        game.StarterGui.Loading.Frame.Visible = false
        game.Lighting.Kitchen.Maps.Kitchen.Parent = game.Workspace
        local murderer = players[math.random(1,#players)] -- Randomly picks a player on the server, if there is 1 player.. It will always pick you.
        local gear = game.Lighting.ClassicSword:Clone(game.Workspace)  -- Type the name of your gear you want to give
        murderer.Humanoid.WalkSpeed = 25
        gear.Parent = murderer.Backpack -- Tool (PUT INTO) RANDOM.player.Backpack
        murderer.Team = game.Teams.Seekers
        wait (300)
        murderer.Team = game.Teams.Hiders
        murderer.Backpack.ClassicSword:Destroy()
        murderer.Humanoid.WalkSpeed = 16
        game.Workspace.Kitchen:Destroy()
        game.Lighting.Lobby.Parent = game.workspace

end
0
can you please tell us what is going wrong? jediplocoon 877 — 4y

Answer this question