whenever the main part goes above a certain position it's suppose to delete itself but it doesn't

Here's my script

script.Parent.Changed:connect(function(Destroy)
	wait(1)
	if script.Parent.Position.Y <= -2.53 then
		script.Parent.Parent:Destroy()
	end
end)

3 comments

0

so when it spawns higher than the other trees it nothing happens

0

Try to have the position of the y-axis to be 'greater than' -2.53 rather than 'less than'.

0

oh thats less than? no wunda