local coreCall do
local MAX_RETRIES = 8
local StarterGui = game:GetService("StarterGui")
local RunService = game:GetService("RunService")
function coreCall(method, ...)
local result = {}
for retries = 1, MAX_RETRIES do
result = {pcall(StarterGui[method], StarterGui, ...)}
if result[1] then
break
end
RunService.Stepped:Wait()
end
return unpack(result)
end
end
assert(coreCall("SetCore", "ResetButtonCallback", false))
Nope, I was using that simple code before, and causes errors. Look at the code I provided, its the same as yours but, its using a pcall in order to try 8 times on running, so it will work better.
What you mean, is that the script should be placed inside StarterCharacterScripts?? Really? Thats the only problem? Whats the difference if I placed on PlayerScripts ?
I thought that was the idea to solve when that Dev made that script.
You suggest that I should fire the ResetButtonCallback to false on CharacterLoaded? I will, I hope that fixes it.
(BTW, actually the Reset Button is not grayed out, but the Resetting is actually disabled, so no errors, the only problem is that is not grayed out)
Yup I know the scripts are placed inside the Model. I just wanna know if those scripts fires when the Model/Character is completely loaded, or before.
As I said, I always use events to check that, and never tried to depend only on the script location
Yup, thank you so much! I use WaitForChild() many times for different tasks. Okie, well Im gonna try to see if I can make that button grayed out xD thank you!
Nope same behaviour… Dont u think that maybe is a Studio little glitch or something?
Cause… Before I made this post, it was working fine, the Reset button was disabled, On Color of course but, it was disabled… And still disabled and still on color, I already changed the script to CharacterScripts. Works the same as before, disabled with color
that script is esencially the same as the one I pasted in the main topic.
And mine works too, but only for PC, look at the pics. PC version is grayed out perfectly, and Phone version is not, (its the same game :v, same scripts)
Im asking for Phone, cause on PC works perfect I know. Phone doesnt, at least on Studio
Thats a weird funny solution xD
In the game Im making I think I already set the dead state of the humanoid to false
I dont think that will fix it, cause its already done