i want to make a attack with a ball moving and when i touching the ground is explode but is do not explode


local function touchedss(t)
        if t.Parent == Char or t.Name ~= "Ground" then return end
        print(t)
        if t.Name == "Ground" then
            print("Explode")
            Touched = true
        end
        wait()
    end
    c2.PrimaryPart.Touched:Connect(touchedss)
    while Touched == false do
        c2.PrimaryPart.Position = c2.PrimaryPart.Position + Vector3.new(0, -2, 0)*1.7 + plr.Character.HumanoidRootPart.CFrame.LookVector*1.7
        wait(0.01)
    end

1 comment

0

Is the ball anchored?