Hello, I'm having a problem with something, It's about CFrame Angles, the problem is that the knife sometimes doesn't spin when thrown, lemme show a gif to show the problem
As you can see, it sometimes doesn't even spin
Here's the script, the touched makes use of items such as canCollide part detection
-- In the script inside the thrown knife
local clone = script.Parent
local touched = false
local RunService = game:GetService("RunService")
local function GetTouchingParts(part)
local connection = part.Touched:Connect(function() end)
local results = part:GetTouchingParts()
connection:Disconnect()
return results
end
Step = RunService.Stepped:Connect(function()
if clone.Parent ~= workspace then return end
--clone.CFrame = clone.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-15),0,0)
clone.CFrame = clone.CFrame * CFrame.Angles(math.rad(-15),0,0)
local results = GetTouchingParts(clone)
for i,v in pairs(results) do
if not v.Parent:FindFirstChild("Humanoid") or (v:IsA("BasePart") and v.Transparency ~= 1) then
if #results > 0 then
Step:Disconnect()
end
else
table.remove(results,i)
end
end
end)
Any help is appreciated
