This won;t work what I want is it to check if you are a owner of a house already then it does not let you buy it but it wnt give me any errors either
gui = script.Parent.Parent p = script.Parent leaderstats = game.Players.LocalPlayer:FindFirstChild("leaderstats") Money = leaderstats:WaitForChild("Money") makeOwner = game.Players.LocalPlayer:FindFirstChild("Owner") if makeOwner == false then script.Parent.MouseButton1Click:connect(function() gui.Visible = false Money.Value = Money.Value - 10000 makeOwner = true end) end
Common mistake I see very often. You see your output will not pick up if you checked for the value in a value object or not. You put
if makeOwner == false then
when you should have put.
if makeOwner.Value == false then
The output never picks up on this, I'm not entirely sure why it just doesn't. Going forward always remember to put .Value to grab the value property of the object and not just the object itself. It won't return errors on you missing that which leads to a lot of confusion for some people. Hope this helped.