Alright. Well, I’m doing the “Clone character, anchor body parts” technique, but it won’t let me parent it to the workspace.
--[[SERVICES]]--
local Players = game:GetService("Players")
local ContextActionService = game:GetService("ContextActionService")
--[[FUNCTIONALITY]]--
--//Getting the player
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local DashAttachment = Instance.new("Attachment",Character.PrimaryPart)
--//Dashing
local DashCD = false
local function DashUser(actionName, inputState)
if actionName == "Dash" and inputState == Enum.UserInputState.Begin then
if DashCD then return end
DashCD = true
--//Dash
local LinearVelocity = Instance.new("LinearVelocity",Character.PrimaryPart)
LinearVelocity.MaxForce = math.huge
LinearVelocity.VectorVelocity = Character.PrimaryPart.CFrame.LookVector * 100
LinearVelocity.Attachment0 = DashAttachment
--//Frames
local FancyFrames = coroutine.create(function()
while task.wait(0.02) do
local FrameChar = Character:Clone()
FrameChar.Parent = game.Workspace.Debris
FrameChar.Head.face:Destroy()
for _, Bodypart in pairs(FrameChar:GetChildren()) do
if Bodypart:IsA("BasePart") then
Bodypart.Anchored = true
Bodypart.CanCollide = false
Bodypart.Transparency = 0.5
Bodypart.BrickColor = BrickColor.new("White")
game:GetService("Debris"):AddItem(Bodypart,0.02)
end
end
end
end)
coroutine.resume(FancyFrames)
game:GetService("Debris"):AddItem(LinearVelocity,0.05)
task.wait(1)
coroutine.close(FancyFrames)
DashCD = false
end
end
ContextActionService:BindAction("Dash",DashUser,false,Enum.KeyCode.LeftShift)