s = 3.4, 8.5, 110.4
if script.Parent.Position == s then
game.Workspace.Iron.Iron1.Money.Disabled = false
end
its a short script but basicly if the parent of the script has a position of 3.4 8.5 110.4 a script is enabled
BUT IT DOESNT WORK!
s = 3.4, 8.5, 110.4
if script.Parent.Position == s then
game.Workspace.Iron.Iron1.Money.Disabled = false
end
its a short script but basicly if the parent of the script has a position of 3.4 8.5 110.4 a script is enabled
BUT IT DOESNT WORK!
Position is a Vector3, so you need to put the three numbers inside a Vector3 constructor.
s = Vector3.new(3.4, 8.5, 110.4)
if script.Parent.Position == s then
game.Workspace.Iron.Iron1.Money.Disabled = false
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Try making your title relevant to your question. "Why doesn't this script work" doesn't tell us anything about the problem/question so some people may just pass over it.