Heres what a tried...
script.Parent.Claim.MouseButton1Down:Connect(function)
script.Parent.Claim.Visible = false
end)
Heres what a tried...
script.Parent.Claim.MouseButton1Down:Connect(function)
script.Parent.Claim.Visible = false
end)
Try using this :
script.Parent.Claim.MouseButton1Down:connect(function()
script.Parent.Claim.Visible = false
end)
If it is a regular script, trying making it into local and using the same code and it should work. Make sure the script isn't inside the button since u wrote script.Parent . If it is inside the button you should use script.Parent.MouseButton1Click:connect(function)
If your using a MouseButton1Down function, its when the player has the left button held down on a mouse, and you need to use a MouseButton1Up or Button1Up to send an event due to the player having the left button released. If i confused you, please comment any further question's.
This discussion is preserved as it was. New answers, comments, and votes are closed.
9 comments
No you noob! It's
script.Parent.MouseButton1Down:connect(function() 2 script.Parent.Claim.Visible = false 3 end)
It it a textbutton or a imagebutton?
Textbutton
Him you're stupid, it doesn't matter if it is a text or image, hence "script.Parent", he's messing up because he's putting what he wants to turn visible in the MoustButton1Down it should be, script.Parent.MouseButton1Down:connect(function()
Exactly +JummyTheQb, i just answered the question stating the same thing as you
@JimmyTheQb saying stuff like that can get you banned.
I'M NOT JUMMY, you did? I don't see your post on here xD
Jimmy is still wrong. Not using WaitForChild() in an online server will error. Also, don't be rude, everyone is here to help, just like you.