``
for _, v in pairs(chr:GetChildren()) do
if v:IsA("Accessory") then
for i, b in pairs(v:GetChildren()) do
if b:IsA("BasePart") then
b.Transparency = 1
end
end
end
if v:IsA("BasePart") then
v.Transparency = 1
if v.Name == "Head" then
v.face.Transparency = 1
end
end
delay(.5, function()
if v:IsA("Accessory") then
for i, b in pairs(v:GetChildren()) do
if b:IsA("BasePart") then
b.Transparency = 0
end
end
end
if v:IsA("BasePart") then
v.Transparency = 0
if v.Name == "HumanoidRootPart" then
v.Transparency = 1
end
if v.Name == "Head" then
v.face.Transparency = 0
end
end
end)
end
local dashFX = particleFX.Dash:Clone()
local dashSFX = sounds.dash:Clone()
dashSFX.Parent = workspace
dashFX.Parent = chr.Torso
dashFX:Emit(20)
dashSFX:Play()
local dashBV = Instance.new("BodyVelocity")
dashBV.MaxForce = Vector3.new(999999, 0, 999999)
dashBV.Parent = humRP
if isW then
dashBV.Velocity = humRP.CFrame.LookVector * 100
elseif isA then
dashBV.Velocity = humRP.CFrame.RightVector * -100
elseif isS then
dashBV.Velocity = humRP.CFrame.LookVector * -100
elseif isD then
dashBV.Velocity = humRP.CFrame.RightVector * 100
end
debris:AddItem(dashBV, .2)
debris:AddItem(dashFX, .5)
debris:AddItem(dashSFX, dashSFX.TimeLength)
