how to rotate it this is my video, i want to make my knife rotate 90 i think
What script are you working with?
Possibly rotate the handle, as it looks the same when the player held it for a second
this is my script
local enemy = hitpart.Parent
local ignorelist = {}
if (table.find(ignorelist,enemy) == nil) then
enemy.Humanoid:TakeDamage(0.5)
-- enemy.Humanoid:LoadAnimation(hitanim):Play()
enemy:WaitForChild("UsingMove").Value = true
enemy.Humanoid.WalkSpeed = 3
knife.CFrame = enemy.UpperTorso.CFrame * CFrame.new(0,0,-1)
local weld = Instance.new("WeldConstraint")
weld.Parent = enemy.UpperTorso
weld.Part0 = knife
weld.Part1 = enemy.UpperTorso
1 Like
you’re probably going to want to use the lookvector of the torso in a matrix
...
knife.CFrame = CFrame.fromMatrix(upperTorso.Position, -upperTorso.CFrame.UpVector, -upperTorso.CFrame.LookVector, upperTorso.CFrame.UpVector:Cross(-upperTorso.CFrame.LookVector).Unit) -- basically just rotates the knife to stick to the torso