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

For some reason my Developer Commands Gui only shows up once. How can I fix this?

Asked by 4 years ago
Edited 4 years ago

This question has been solved by the original poster.

I'm trying to make a Developer Commands Gui. I made it and made a script that makes it visible only to me, but for some reason, it only works once. This is the script:

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)   
        if player.UserId == 251936426 then
            player:WaitForChild("PlayerGui"):WaitForChild("DevCommands"):WaitForChild("DevCommandsButton").Visible = true
        end
    end)
end)
0
Can you expand, what do you mean by only showing once? You mean when you reset it doesn't come back? ChrisTheRobloxPlayYT 256 — 4y
0
Yes. youtubemasterWOW 2741 — 4y

Answer this question