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

i am trying to make my own explosion but the parts wont go flying&spinning idk why, how do i fix?

Asked by 5 years ago
Edited 5 years ago

i did this test but it just dose not work i am trying to make parts go flying like the roblox explosion but my own it work about to give on it this is my lost hope. also this it one of the test i don't want to do it all by CFrame because i think that will make the sever lag all those parts flying and spinning.

script.Parent.MouseClick:Connect(function()
    local m = game.Workspace.Model
    for _,s in  pairs(m:GetChildren()) do

        if s:IsA("BasePart") then
            local p = Instance.new("BodyVelocity",s)
            p.Velocity = Vector3.new(0,.5,0)
            local i = Instance.new("BodyGyro")
            i.MaxTorque = Vector3.new(400000,0,0)
            i.D = 2
            i.P = 6000
            i.Parent = s
            s.Anchored = false
        end

    end
end)
0
You don't need to make a BodyVelocity for every part. (BodyVelocity counteracts gravity anyway.), every part has a Velocity property you can change. pidgey 548 — 5y
0
but will that make it go flying&spin helleric -3 — 5y

Answer this question