function onClicked()
print(1)
if game.Players.LocalPlayer.HasPlot == nil then
print(2)
local hasplot = Instance.new("BoolValue")
hasplot.Parent = game.Players.LocalPlayer
script.Parent.Parent.Parent.Owner.Value = game.Players.LocalPlayer.Name
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
its in a localscript, I'm getting no errors. Upon clicking the part, nothing happens. |