so i cloned a part but the parts direction is completely wrong is there anyway I can change its direction? so its facing my look vector
local rs = game:GetService("ReplicatedStorage")
local wwevent = rs:WaitForChild("SkillsEvent").WWevent
wwevent.OnServerEvent:Connect(function(plr)
local chr = plr.Character
chr:SetAttribute("IsAttacking", true)
local waterwheel = rs:WaitForChild("SkillsAsset")["Water breathing"].WaterWheele:Clone()
local hrp = chr.PrimaryPart
local rootpart = chr.PrimaryPart
waterwheel.PrimaryPart.CFrame = chr.HumanoidRootPart.CFrame
task.wait(1)
local weld = Instance.new("Weld")
weld.Parent = waterwheel
weld.Part0 = waterwheel.PrimaryPart
weld.Part1 = chr.HumanoidRootPart
waterwheel.Parent = workspace
task.wait(0.5)
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(math.huge, 0, math.huge)
bv.Velocity = rootpart.CFrame.LookVector * 50
bv.Parent = rootpart
local hitboxCFrame = chr.HumanoidRootPart.CFrame
local hitboxSize = Vector3.new(10,5,20)
local damage = 18
local hitbox = rs.Hitbox:Clone()
hitbox.Parent = workspace
hitbox.CFrame = hitboxCFrame
hitbox.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
local newweld = Instance.new("Weld")
newweld.Parent = hitbox
newweld.Part0 = hitbox
newweld.Part1 = chr.HumanoidRootPart
local hitcontent = workspace:GetPartBoundsInBox(hitboxCFrame, hitboxSize)
local hitlist = {}
for _,v in pairs(hitcontent) do
if v.Parent:FindFirstChild("Humanoid") and v.Parent ~= chr and not table.find(hitlist, v.Parent) then
table.insert(hitlist, v.Parent)
v.Parent.Humanoid:TakeDamage(damage)
v.Parent:SetAttribute("Stunned", true)
end
end
task.wait(0.3)
bv:Destroy()
chr:SetAttribute("IsAttacking", false)
end)