just in case
Buying apartment script(no errors in here tho)
local ownerText = script.Parent.Parent.Parent.OwnerSign.BulletLabel.TextLabel
local AMOUNT = 200
script.Parent.MouseClick:Connect(function(plr)
if not game.Workspace:FindFirstChild("Home"..plr.Name) then
script.Parent.Parent.Label.Enabled = true
script.Parent.MaxActivationDistance = 10
if game.Players:findFirstChild(plr.Name) ~= nil then
if plr.leaderstats.Cash.Value >= AMOUNT then
plr.leaderstats.Cash.Value -= AMOUNT
local b = script.Parent.Parent:Clone()
b.Parent = game.Lighting
b.Name = "Home"..plr.Name
wait()
script.Parent.Parent.Parent.OwnerName.Value = plr.Name
ownerText.Text = plr.Name
script.Parent.Parent.Label.Enabled = false
script.Parent.MaxActivationDistance = 0
end
end
end
end)
** You are now Level 12! **