#Help please

1 messages · Page 1 of 1 (latest)

sleek quiver
#

Hi guys, please help me. I want the player's gui to open when they touch an object, and the player's ability to move to be disabled, but for some reason the code isn't working. Where could I have made a mistake?

signal bridge
#

idk there can be multiple errors

#

try this :

#

local connection
connection = part.Touched:Connect(function(hit)
local character = hit.Parent
if character and character:FindFirstChild("Humanoid") then

    connection:Disconnect()
end

end)

pine berry
#

why is his screenshot so fancy

signal bridge
lone osprey
#

“if not OpenGuiButton.Value” means that ur detecting whether it exists or not. I’m guessing ur trying to use it as a debounce statement, but to do that, you could write "if OpenGuiButton.Value == false"

#

@sleek quiver