#Character no-clipping when dashing and hitting a wall

6 messages · Page 1 of 1 (latest)

limpid nebula
nimble cliff
#

sry, im new

#

'''lua
local player = game.Players.LocalPlayer
local character = script.Parent
local uis = game:GetService("UserInputService")
local ts = game:GetService("TweenService")

local remote = game.ReplicatedStorage.DashRemote
local fx = game.ReplicatedStorage.Fx
local animations = game.ReplicatedStorage.Animations

local params = RaycastParams.new()
params.FilterType = Enum.RaycastFilterType.Whitelist

local debounce = false

uis.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.Q and not debounce then
debounce = true
local anim
local v = Instance.new("BodyVelocity", character.HumanoidRootPart)
v.MaxForce = Vector3.new(999999,0,999999)
if uis:IsKeyDown(Enum.KeyCode.W) or character.Humanoid.MoveDirection.Magnitude == 0 then
anim = animations.Front
v.Velocity = character.HumanoidRootPart.CFrame.LookVector * 50
elseif uis:IsKeyDown(Enum.KeyCode.D) then
anim = animations.Right
v.Velocity = character.HumanoidRootPart.CFrame.RightVector * 50
elseif uis:IsKeyDown(Enum.KeyCode.A) then
anim = animations.Left
v.Velocity = character.HumanoidRootPart.CFrame.RightVector * -50
elseif uis:IsKeyDown(Enum.KeyCode.S) then
anim = animations.Back
v.Velocity = character.HumanoidRootPart.CFrame.LookVector * -50
end

    character.Humanoid.Animator:LoadAnimation(anim):Play() 
    game.Debris:AddItem(v,.3) 
    remote:FireServer(character, v.Velocity) 
    wait(.4)
    debounce = false 
end

end)
'''

limpid nebula
#

` < this one

nimble cliff
#

ohh ok