Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RS = game:GetService("ReplicatedStorage")
- local Speed = 120
- local Duration = .3
- local Cooldown = 2
- local Debounce = {}
- RS.Step.OnServerEvent:Connect(function(Player)
- if Debounce[Player] then return end
- Debounce[Player] = true
- local Delete = {}
- local Transparency = {}
- local Character = Player.Character
- local Attachment = Instance.new("Attachment", Character.HumanoidRootPart)
- local LinearVelocity = Instance.new("LinearVelocity", Character.HumanoidRootPart)
- Delete[#Delete + 1] = Attachment
- Delete[#Delete + 1] = LinearVelocity
- LinearVelocity.MaxForce = 300000
- LinearVelocity.Attachment0 = Attachment
- LinearVelocity.VelocityConstraintMode = Enum.VelocityConstraintMode.Line
- LinearVelocity.LineDirection = Vector3.new(Character.HumanoidRootPart.CFrame.LookVector.X, 0, Character.HumanoidRootPart.CFrame.LookVector.Z)
- LinearVelocity.LineVelocity = Speed
- local Particle = RS.ParticleFlash
- local ClonedParticle = Particle:Clone()
- ClonedParticle.Parent = Character.HumanoidRootPart
- Delete[#Delete + 1] = ClonedParticle
- for Index,Value in pairs(Character:GetDescendants()) do
- if not Value:IsA("BasePart") then continue end
- Transparency[Value] = Value.Transparency
- Value.Transparency = 1
- end
- wait(Duration)
- for i,v in pairs(Transparency) do
- i.Transparency = v
- end
- for i,v in pairs(Delete) do
- v:Destroy()
- Delete[i] = nil
- end
- wait(Cooldown)
- Debounce[Player] = nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement