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

Im making a meteor disater and it wont fall down. why is that happening?

Asked by 4 years ago

So, I'm making a disaster game and I made a meteor shower disaster and when the disaster is randomly selected the meteor doesn't fall or it's falling slowly (I can't really tell) and no other meteors spawn around the map. Here's my script for the meteor.

while true do x = 205.1
    local random_num1 = math.random(-255,255)
    local random_num2 = math.random(-255,255)
    repeat
        script.Parent.Position = script.Parent.Position - Vector3.new(0.10,0)
        wait(0.1)
    until script.Parent.Position.Y < 1
    wait(0.1)
    local explosion = Instance.new("Explosion",script.Parent)
    explosion.BlastRadius = 10
    explosion.DestroyJointRadiusPercent = 50
    explosion.Position = script.Parent.Position
    script.Parent.position = Vector3.new(random_num1,251,random_num2)
    wait(1)
    end
0
You have missed a end. SilentsReplacement 468 — 4y

Answer this question