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

How could you make .Touched trigger immediately?

Asked by 6 years ago

I have a script that throws a water balloon and I'm trying to make it form a puddle when it hits the ground. I've already done this with a .Touched connecting to any anchored parts.

-- M is just Math.Random
    PBall.Touched:connect(function(hit)
        if hit.Anchored == true then
            for i=1, M(2,4)do
                local Size = Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
                local Size2 = Vector3.new(M(-0.25,0.25),.2,M(-.25,.25))
                Pool(PBall,Size2) --Function that creates the puddle    
            end 
        end
    end)

This works fine but it doesn't trigger immediately so the puddles often end up forming inside of the ground. Is there a better way to do this?

0
Do: PBall.Position = Vector3.new(PBall.Position) + Vector3.new(PBall.Size) thesit123 509 — 6y

Answer this question