https://gyazo.com/67c16cbf5e55dd6f9534f07dc0f9c8be here's what i'm talking about
i'm bad at orientation i tried a few attempts but it just wont face the right way. please help me Here's my code!
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr,mousehit)
SliceDamage = 25 + plr.leaderstats.Strength.Value
script.Parent.Handle.Fire:Play()
local Slice = game.ReplicatedStorage.Arrow:Clone()
local BV = Instance.new("BodyVelocity")
BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
BV.P = Vector3.new(math.huge,math.huge,math.huge)
BV.Velocity = mousehit.lookVector * 200
BV.Parent = Slice
Slice.Parent = game.Workspace
Slice.CFrame = CFrame.new(root.Position,root.Position + Vector3.new(mousehit.lookVector.x,0,mousehit.lookVector.z))
script.Parent.Handle.Reload:Play()
Slice.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
if hit.Parent.Name ~= plr.Name then
if CoolDown == false then
CoolDown = true
if hit.Parent.Humanoid.Health <= 0 then
local creator = Instance.new("ObjectValue",hit.Parent.Humanoid)
creator.Value = plr
creator.Name = "creator"
game:GetService("Debris"):AddItem(creator,0.3)
end
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - SliceDamage
wait(0.5)
CoolDown = false
end
end
end
end)
Debris:AddItem(Slice, 3)
end)

2 comments
i'll try
accept the answer if it worked