Hey! I recently made a special ability and it’s supposed to move a part’s velocity but, it doesn’t do anything (Please help and thank you)
https://gyazo.com/f8d619976d0f59e59dd6cf8a7b1fcd82
local rs = game:GetService("ReplicatedStorage")
local event = rs.eSlash
local slash = game:GetService("ServerStorage").WeaponClones.RedSlash
local Tween = game:GetService("TweenService")
event.OnServerEvent:Connect(function(player)
local Slash = game:GetService("ServerStorage").WeaponClones.RedSlash:Clone()
local TweenShow = Tween:Create(Slash,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 0.011})
local TweenFade = Tween:Create(Slash,TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
local hrp = player.Character:WaitForChild("HumanoidRootPart")
wait(0.3)
TweenShow:Play()
Slash.Parent = game.Workspace.Ability
local direction = player.Character.HumanoidRootPart.Position + player.Character.HumanoidRootPart.CFrame.LookVector * player.Character.HumanoidRootPart.Position.Magnitude
Slash.CFrame = CFrame.lookAt(player.Character.HumanoidRootPart.Position, direction)
Slash.Orientation = Vector3.new(Slash.Orientation.X,Slash.Orientation.Y+-90,Slash.Orientation.Z)
wait(1.5)
local Attachment = Instance.new("Attachment")
Attachment.Parent = Slash
local LinearVelocity = Instance.new("LinearVelocity", Slash)
LinearVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
LinearVelocity.Attachment0 = Attachment
LinearVelocity.VectorVelocity = hrp.CFrame.LookVector * 500
LinearVelocity.Parent = Attachment
TweenFade:Play()
TweenFade.Completed:Connect(function()
Slash:Destroy()
end)
end)