You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
i am creating a tool, and when the tool is activated i wanted a script to fire a event in the tool after an amount of time -
What is the issue? Include screenshots / videos if possible!
checking output the localscript basically ignores the remoteevent’s existence (they are both parented to the tool) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i’m just assuming it should work because its formatted similarly to how a server script detects a remoteevent, and that works within a tool. i have casted a remotevent from client to server many times in the past. are the circumstances just wrong?
local disabled = false
script.Parent.punch.OnClientEvent:Connect(function()
if disabled == false then
disabled = true
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
else
disabled = false
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)
end
end)