#How do I stop the character from bouncing every time it hits a wall?

1 messages · Page 1 of 1 (latest)

pastel cape
#
            local LV = Instance.new("LinearVelocity",Attachment)
            LV.Attachment0 = Attachment
            LV.ForceLimitsEnabled = true
            LV.ForceLimitMode = Enum.ForceLimitMode.PerAxis
            LV.MaxAxesForce = Vector3.new(math.huge,0,math.huge)
            LV.MaxForce = math.huge

            LV.VectorVelocity = HRP.CFrame.LookVector * 300

            game.Debris:AddItem(Attachment,0.2)

            local DashingHitbox = Instance.new("Part",Character)
            DashingHitbox.Size = Vector3.new(1,1,6)
            DashingHitbox.CFrame = HRP.CFrame * CFrame.new(Vector3.new(0,0,-4))
            DashingHitbox.Massless = true
            DashingHitbox.CFrame = HRP.CFrame
            DashingHitbox.CanCollide = false
            DashingHitbox.Transparency = 1
            DashingHitbox.CanTouch = false
            local Weld = Instance.new("WeldConstraint",DashingHitbox)
            Weld.Part0 = HRP
            Weld.Part1 = DashingHitbox

            game.Debris:AddItem(DashingHitbox,0.5)

            local DiscDashingHitbox

            DiscDashingHitbox = DashingHitbox.Touched:Connect(function(Part)
                if not Character:FindFirstChild(Part.Name,true) then
                    if Attachment ~= nil then
                        LV.MaxAxesForce = Vector3.new(0,0,0)
                        LV.MaxForce = 0
                        LV.VectorVelocity = CFrame.new(Vector3.new(0,0,0))
                        
                        Attachment:Destroy()
                    end
                    HRP.AssemblyLinearVelocity = Vector3.new(0,0,0)
                    DashingHitbox:Destroy()
                    DiscDashingHitbox:Disconnect()
                end
            end)```
livid latch
#

from math.huge

#

to something alot lower

#

like 20k for example

#

keep trying to lower it

#

till you stop bouncing

pastel cape
flat sluice