This script works in play solo, but not in server mode :L Please help I'm not sure what's wrong with it... Thanks!
script.Parent.Touched:connect(function(hit)
owned = script.Parent.Parent.Parent.Owned.Value
player = game.Players:GetPlayerFromCharacter(hit.Parent)
local found = hit.Parent:FindFirstChild("Humanoid")
if owned == false and player.Cash.Value >=1000 and player.HasHouse.Value == false then
player.Cash.Value = player.Cash.Value-1000
player.PlayerGui.Menu.Frame.House1.Visible = true
player.HasHouse.Value = true
script.Parent.Parent.Parent.Owned.Value = true
script.Parent.Parent.Parent.OwnedBy.Value = hit.Parent.Name
script.Parent.Transparency = 1
script.Parent.CanCollide = false
else
end
end)

2 comments
My script works now, thanks for helping ! :)
No problem!