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

I need help with this destroy script? [closed]

Asked by
Prioxis 673 Moderation Voter
10 years ago

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)
0
so when it spawns higher than the other trees it nothing happens Prioxis 673 — 10y
0
Try to have the position of the y-axis to be 'greater than' -2.53 rather than 'less than'. Redbullusa 1580 — 10y
0
oh thats less than? no wunda Prioxis 673 — 10y

Locked by evaera

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?