Hey, I’m currently working on something I’m making for fun. But now I got stuck, and I don’t know why? I’m sorry if my brain isn’t working right now, and it is an easy fix.
I have a script that fires a remote that then should enable a GUI for the player. But for some reason, it doesn’t enable the GUI for the player.
LocalScript in StarterPlayerScripts
game.Players.PlayerAdded:Wait()
local plotGui = game.Players.LocalPlayer.PlayerGui.PlotGui
local player = game.Players.LocalPlayer
game:GetService("ReplicatedStorage").Events.PlotGui.OnClientEvent:Connect(function(plotOwner)
if plotOwner == player.DisplayName then
if plotGui.Enabled == false then
plotGui.Enabled = true
end
end
end)