This script is supposed to Disable a script when you touch it, and enable it when you stop touching it, but it won't fire.
script.Parent.Touched:connect(function(part)
local h = part.Parent:FindFirstChild("Humanoid")
print 'touched'
if h then
game.Players.LocalPlayer.PlayerGui.MouseScripts.MouseS.Disabled = true
script.Parent.TouchEnded:connect(function()
game.Players.LocalPlayer.PlayerGui.MouseScripts.MouseS.Disabled = false
end)
end
end)
No errors or anything.
