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

If part is at specific location, then it will print something, how?

I'm doing a script that when a part is on the specific location, then the code will run but I can't think of any idea to make that... Any ideas?

1 answer

✓ Accepted answer
local YourPosition = Vector3.new(0,0,0)
workspace.Baseplate:GetPropertyChangedSignal("Position"):Connect(function()
	if workspace.Baseplate.Position == YourPosition then
		print("yeee")
	end
end)

This will fire whenever the position has been changed, and then it will check if it is at your position. (YourPosition) variable.

This discussion is preserved as it was. New answers, comments, and votes are closed.