How do I even begin to make a ball that bounces faster and faster before exploding at a certain speed?

I’m making a game that’s based on SCP: SL… and I want to know how I can even begin to make something like SCP-018? (SCP-018 is basically supposed to behave as a bouncy ball that defies gravity and moves faster each time it bounces off a surface upon then exploding when reaching a certain speed)

I don’t even know where to begin to make the tool throw the ball, have it defy gravity, move faster every bounce and then explode…

I looked up on reddit and this site for answers, I did learn about elasticity with CustomPhysicalProperties, but it is still effected by gravity! and I need to know how to make a ranged explosion and a proper deploy/throw system.

This is for the sake of a big game that me and my friends are working on, I am about intermediate at scripting, but I never used velocity related stuff in studio… It would be much appreciated if someone could help!

You can use the Velocity ​​property for this, for example:

local part = script.Parent
local Y = 10
local velocityLimit = 100

part.Touched:Connect(function(hit)
    if not hit:FindFirstChildOfClass('Humanoid') then -- Checking if the hit is a surface
        if Y >= velocityLimit then
            -- Explosion
        else
            Y = Y + 10
            part.Velocity = Vector3.new(0,Y,0)
        end
    end
end)
1 Like