Built a rocket for a school project. (woo, rocketry. In studio btw). And for my showcase, I wanted to make it go to a target. Simple stuff.
When I fire the rocket, the rocket goes boom. (Just dissappears.)
ServerScript
wait(4)
local Thruster = script.Parent
local Tip = Thruster.Parent.Tip
local TS = game:GetService("TweenService")
local Tweeninfo = TweenInfo.new(
5,
Enum.EasingStyle.Sine
)
local StartRocket = Instance.new("BodyVelocity")
StartRocket.Parent = Thruster
StartRocket.MaxForce = Vector3.new(0, math.huge, 0)
local PushRocket = TS:Create(StartRocket,Tweeninfo,{Velocity = Vector3.new(0, 100, 0)})
PushRocket:Play()
PushRocket.Completed:Wait()
StartRocket:Destroy()
local RocketPropulsion = Instance.new("RocketPropulsion")
RocketPropulsion.Parent = Tip
RocketPropulsion.Target = workspace.Target
RocketPropulsion:Fire()
RocketPropulsion.ReachedTarget:Connect(function()
print("Reached") --This does not print
end)
No errors at all. I can show a vid if you’d like. I searched this up on the devforum, but no one was really able to fix it. (It was a client issue) Please help.
Context: Using qPerfect Weld.