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

Rocket going through objects?

Asked by 2 years ago

So when the rocket hits a tower it breaks the welds but when the game refreshes itself it goes right through the tower and doesn't break the welds. Can someone please help me? Thanks!

2 answers

Log in to vote
0
Answered by 2 years ago

Can you send me a link to the problem you have?

Ad
Log in to vote
0
Answered by 2 years ago

--btw this is the script local RunService = game:GetService("RunService") local TimerEvent = game:GetService("ReplicatedStorage").Events.Timer local Say = script.Parent.Parent.Words.SimpleWords local TIMER_BINDING_NAME = "Timer" local Labe = script.Parent local tik = false local tt = false local function StartTimer(timeleft) RunService:BindToRenderStep(TIMER_BINDING_NAME, Enum.RenderPriority.Last.Value - 1, function(delta) local minutes = math.floor(timeleft/60) local seconds = math.floor(timeleft%60) timeleft-=delta Labe.Text = string.format("i:i", minutes,seconds)

    if timeleft <=0 then
        RunService:UnbindFromRenderStep(TIMER_BINDING_NAME)
    end
end)

end TimerEvent.OnClientEvent:Connect(function(Time, Text, End) StartTimer(Time) Say.Text=Text tt = true spawn(function() while tt do wait(1) if script.Parent.Text =="00:00" then

            if End == "y" then
                tt = false
                script.Parent.Parent.Parent.Main.Visible = true
                wait(1)
                game.StarterPack.RocketLauncher:Destroy()
                workspace.Tower:Destroy()
                wait(1)

                local Wepons = game.ReplicatedStorage.RocketLauncher:Clone()
                Wepons.Parent = game.StarterPack
                local Tower = game.ReplicatedStorage.Tower:Clone()
                Tower.Parent = workspace
                script.Parent.Parent.Parent.Main.Visible = false
            end
        end
    end
end)


while true do
    wait()
    if script.Parent.Text <="00:03" then
        tik = true
        spawn(function()
        while tik do

            script.Parent.Parent.Sound.Tick:Play()
            wait(1)
        end
        end)
        wait(3)
        tik = false

    end
end

end)

Answer this question