So I want this effect as you see in the screen shot to go in the direction of green not red. (the red line show’s where its going currently)
I want the effect to shoot infront of the player not shoot up
Screen Shot:

Server:
ScreamEvent.OnServerEvent:Connect(function(player)
local character = player.Character or player.CharacterAdded:Wait()
if player:FindFirstChild("CurrentSpell").Value == "" then
local ScreamEffect = game.ReplicatedStorage.ScreamEffect:Clone()
ScreamEffect.Parent = character
ScreamEvent:FireClient(player,ScreamEffect)
local DamageBox = Instance.new("Part",character)
DamageBox.Size = Vector3.new(20,5,20)
DamageBox.CanCollide = false
DamageBox.CFrame = character.PrimaryPart.CFrame
DamageBox.Transparency = 1
local Weld = Instance.new("Weld",DamageBox)
Weld.Part0 = DamageBox
Weld.Part1 = character.PrimaryPart
local HitDb = false
DamageBox.Touched:Connect(function(hit)
if HitDb == false then
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and not table.find(Attacked,hit.Parent) then
HitDb = true
table.insert(Attacked,hit.Parent)
local Damage = coroutine.create(function()
for count = 1,5,1 do
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(35)
task.wait(1)
end
end)
coroutine.resume(Damage)
task.wait(.15)
HitDb = false
end
end
end)
task.wait(.5)
ScreamEffect:Destroy()
DamageBox:Destroy()
table.clear(Attacked)
end
end)
local script:
game.ReplicatedStorage.ScreamEvent.OnClientEvent:Connect(function(part)
RunService.RenderStepped:Connect(function()
if part then
part.CFrame = character.PrimaryPart.CFrame * CFrame.new(0,0,-.5)
else
return
end
end)
end)