Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Data not moving to my designated spot?

Asked by
GedM 0
10 years ago
-- GedM
local Door = script.Parent

Door.SurfaceGui.TextLabel.Text = "Unowned"

function onTouch(hit)
    wait(1)
    Door.SurfaceGui.TextLabel.Text = "Owner: "..game.Players.Player.Name
    Door.Owned.Value = game.Players.Player.Name
    wait(2)
    Door.Owned = game.Lighting.Stats["Owned Houses"]

end
script.Parent.Touched:connect(onTouch)

22:23:02.751 - Owned is not a valid member of Part
22:23:02.752 - Script 'Workspace.Door.Script', Line 10
22:23:02.752 - Stack End

part: http://gyazo.com/b12fda6efae641cd86a2be2394c75c9c

Answer this question