So. Recently I have been making a 2D game. The whole game was GUI based, there was no necessary actions needed to be taken outside the GUI. So I add some kill scripts, however after using some scripts from the forums to disable reseting, disable movement and remove the topbar. Only 1/3 of the scripts worked. What’s going on?
The only script that worked was the “Hide Topbar” script which while successful. Ehhh, apparently roblox made it so you couldn’t hide all of it. No biggie. It did a semi-good job of hiding everything else but the esc menu. Still, it worked.
The other’s… not budgin’. They don’t wanna work.
The other 2 scripts that don’t work are “Kill Movement” and “Kill Reset Button” scripts.
Now… Weird thing is… These things work only on studio. Not on the player.
Like what???
Scripts
Kill Reset Button script
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("ResetButtonCallback",false)
Kill Movement script
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
This problem has already been solved here by putting this instead :
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
coreCall('SetCore', 'ResetButtonCallback', false)