I have been basically been making a game and I have this button thats only supposed to run if you own the property and if the person who touched the button owns the property. This is to keep others from pressing your button.
Heres the line of code that doesnt work.
local NotActivated = true
Button.Touched:Connect(function(TouchedPlayer)
if NotActivated == true then
if script.Parent.Parent.OwnerDoor.Owner.Value == TouchedPlayer.Parent then
Keep in mind this is just a small portion of the code, its mainly the important stuff.
The last line doesnt work and I dont know why. It seems fine to me.
Thank you for your time :) If you have question ask them.

3 comments
Baka! .Touched on a
TextButton? Are you joking??Its not a text button. Its a part with a surface gui over it. Please when you are going to comment dont comment like youve got some high power or something.
Literally youve already got a rep for people not liking you, leave the forums.