Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

StarterGui is not enabled?

Hey there, so i put this line of code:

function onHit(hit)
	game.StarterGui.UI.Enabled = false
end

script.Parent.Touched:connect(onHit)

It was supposed to make StarterGui disabled, but i noticed that before i even touch the part - the StarterGui is already disabled... how do i fix this?

1 comment

0

Is it touching ground?

1 answer

✓ Accepted answer

If its touching something it will run the function even you not touch it.

2 comments

0

thanks for telling me!

0

Nope, learn more about scripting bud!

This discussion is preserved as it was. New answers, comments, and votes are closed.