Whenever I try to turn off resetbuttoncallback, this happens, someone explain why?
Reset button call back is set as a book value. If your trying to disable it try this script in server script service
[Server Script]
wait()
game:GetService(“StarterGui”):SetCore(“ResetButtonCallback”, false)
How do I do it for individual players?
Would you only want a specific person not to have this ability?
What are you trying to remove the reset button’s ability from?
I want all but one player not to have it
So write this
game.Players.PlayerAdded:connect(function(plr)
If plr.Name == “Their name” then
wait()
—what I wrote above
end)
If you want to do it for individual players, you could look into RemoteEvent:FireClient().
Here’s an example.
Server-script:
if PlayerInstance.Name == 'Whatever' then
RemoteEvent:FireClient(PlayerInstance, ...)
end
Local-script:
RemoteEvent.OnClientEvent:Connect(function(...)
-- deal with SetCore here.
end)
I prefer to check their userid as their name can change at any time.
-
:connect()
is deprecated, use:Connect()
. - There’s no need for a
wait()
. -
StarterGui:SetCore
should be used by the client, not the server.
How do I prevent errors with setcore then?
What do you mean by prevent, did you encounter errors?
Maybe this may help