Hello! I know this has been posted in the past, but it seems that every solution I have attempted to apply has failed. I could use some help on this, as I’ve been working at it for a while now.
The error I keep getting while trying to fix this is:
21:18:15.724 Unable to assign property GameplayPaused. Script write access is restricted - Client - LocalScript:14
The LocalScript contains this:
local Player = game.Players.LocalPlayer
local GUI = script.Parent
local ClassData = game.ReplicatedStorage.Mods:GetChildren()
function CreateButton(object)
local NewButton = Instance.new('TextButton')
NewButton.TextScaled = true
Instance.new('UICorner', GUI).CornerRadius = UDim.new(0, 8)
NewButton.Text = object['.name'].Value
end
Player.GameplayPaused = true
for i, v in ipairs(ClassData) do
CreateButton(v)
end
Player.GameplayPaused = false
If you can take the time out of your day to help me with this, It would really mean a lot to me, reader. Thank you.