Hi, then is for some reason underlined in my script what am I doing wrong and how could I fix this?? I just started scripting with Lua and I am still learning it so it could be an easy fix. Code:
script.Parent.ProximityPrompt.Triggered:Connect(function(plr)
plr.PlayerGui.TPGUI.Enabled = false if not then
plr.PlayerGui.TPGUI.Enabled = true
end
end)
What the script is supposed to do is when a player clicks the proximity prompt it will check if the gui which is named TPGUI is disabled if it is it would enable it
Any help would be extraordinary
--Thanks Theking66hayday

1 comment
It got rid of the red thanks