Event.OnServerEvent:Connect(function(plr,RaceClick)
for index,player in pairs (game.Players:GetPlayers()) do
--You can enable a GUI through their PlayerGui Folder, as long as it's in StarterGui and you have `ResetOnRespawn` on, you'll be fine, else you'll have to add it again if ever removed.
if player.PlayerGui:FindFirstChild(RaceClick) then
player.PlayerGui[RaceClick].Visible = true --Use this if it's a Frame
else
local GUI = game.ServerStorage[RaceClick]:Clone()
GUI.Parent = player.PlayerGui
GUI.Visible = true --Use this if it's a Frame
end
end
end)``` This is my script rn, it's not working, is there anything I can fix?
1 Like