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

I need help with this(I have no idea how to explain it)?

Asked by
zValerian 108
5 years ago
Edited 5 years ago

So here is what I am trying to do. I have a script that when a person joins a game, this happens

game.Players.PlayerAdded:connect(function(player) wait(2) player.Backpack.check.Disabled = false print("check") wait(2) player.Backpack.check.Disabled = true print("check 2") end) in the backpack is this script game.ReplicatedStorage.Remotes.check:FireServer() and that fires this script

``` game.ReplicatedStorage.Remotes.check.OnServerEvent:Connect(function(player) print("check2.7") print("check3") wait(1)

    print("check 3.3")

if game.Workspace.PlayerCount.Players.Value < 5 and game.Workspace.game.CanCollide == true then player.Backpack.welcome.Disabled = false wait(1) print("check4") player.Backpack.welcome.Disabled = true else player.PlayerGui.pods.five.Visible = true end end) ``` and it would go on. What I am trying to do is to make it that when there are ATLEAST five people in the game, a function would fire for everyone in the game and a gui would pop up. what happened when I tested it with others was that five people were in the game and the gui that says 'we need atleast 5 people to start' didnt go anywhere. any ideas? if you want me to explain more let me know, I really need help...

0
Pleqse consider using lua code block clicking on lua icon while typing question. AswormeDorijan111 531 — 5y

Answer this question