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

Rocket going through objects?

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

--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)

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