The script works fine with no errors except:
The scripts after click don’t enable themselves, even though “Disable” is a Property of Scripts/LocalScripts.
Also any help on how to FULLY disable the PlayButton
One more thing I forgot to mention, anything you do to the UI on StarterGui will not do anything. If you want to access the UI within a player you need to set it up like this:
local Player = game.Players.LocalPlayer --this is your player
local PlayerGui = Player:WaitForChild("PlayerGui") --this is where the players GUI's are stored at.
--You will need to use PlayerGui instead of StarterGui.
--If you have any questions feel free to message me on the forums!
Do not put game.StarterGui. since its in local script
put
If in local script
function PlayerIsReadyToPlay()
script.Parent.Parent.Parent.Enabled = false
script.Parent..Parent.Parent.ControlLabel.ControlPopup.Disabled = false
script.Parent.Parent.Parent.TextLabel.MainScript.Disabled = false
end
script.Parent.MouseButton1Click:Connect(PlayerIsReadyToPlay)
if in script (ServerScriptService)
function PlayerJoined(player)
local function PlayerIsReadyToPlay()
player.PlayerGui:WaitForChild("ScreenGui", 10).ControlLabel.ControlPopup.Disabled = false
player.PlayerGui:WaitForChild("ScreenGui", 10).TextLabel.MainScript.Disabled = false
player.PlayerGui:WaitForChild("ScreenGui", 10).menu.Enabled = false
end
player.PlayerGui:WaitForChild("ScreenGui", 10).menu.TextButton.MouseButton1Click(PlayerIsReadyToPlay)
end
game.Players.PlayedAdded:Connect(PlayerJoined)