Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

WHY DOESNT THIS SCRIPT 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!

1 comment

0

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.

1 answer

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.