I’m making a game and I have a rocket model that I want to destroy after a certain amount of time
local rocket = game.ReplicatedStorage.Rocket
local button = game.Workspace.VipButtonRocket
local cannon = game.ReplicatedStorage.RocketShooter
local RCopy = rocket:Clone()
local CCopy = cannon:Clone()
button.Touched:Connect(function()
local happyhome = game.ReplicatedStorage.HappyHome:Clone()
RCopy.Anchored = true
button.Parent = game.Lighting
CCopy.Parent = game.Workspace
RCopy.Parent = game.Workspace
wait(13)
end)
local distance = 224
while wait(.001) do
RCopy.CFrame = RCopy.CFrame + Vector3.new(0, 0, -1)
end
This script moves the rocket and respawns the model’s I’m not done the script but right now I just need it to destroy the rocket after 6 seconds, Thanks.