Nope, it’s not anchored. The knife auto-anchors when it touches something that isn’t the player though.
Ok, is the knife a mesh part or a mesh?
It’s a part with a mesh inside it, would that matter?
I think this is a problem, because the mesh is not going to follow the part maybe
Try to use a mesh part.
It’s still dropping to the floor, but it did fix the issue of the mesh not appearing when thrown.
Pretty sure it’s a problem with my script, but it’s creating 2 knives.
Try to setting the number 100 to a higher value, higher the value = higher the speed
Maybe could be some physical property of the knife
Could be, because I tried in my game and it’s working perfectly fine
I set the number to over a million, and it still is dropping to the floor. Could you possibly give me the .rbxl or a model of your place? (I’d prefer model, if that’s okay)
In my script, I’m making the part anchored when it touches something, but it’s anchoring when it isn’t touching something?
Code:
local k = script.Parent.Parent.Parent.Handle
script.Parent.OnServerEvent:Connect(function(player, pos)
local Clone = script.Parent.Parent.Parent.Handle:Clone()
Clone.CanCollide = true
Clone.Parent = workspace
Clone.CFrame = CFrame.lookAt(Clone.Position, pos)
Clone.AssemblyLinearVelocity = Clone.CFrame.LookVector * 300
Clone.Touched:Connect(function(touched)
if touched.Transparency < 1 and not k.Parent.Parent:IsAncestorOf(touched) then
local hum = touched.Parent:FindFirstChild("Humanoid") or touched.Parent.Parent:FindFirstChild("Humanoid")
if hum then
hum.Parent:BreakJoints()
end
Clone.Anchored = true
wait(3)
Clone:Destroy()
end
end)
end)
(I just edited your code in this case)
How could I prevent the issue from occuring?
Maybe your part is touching the player character itself
Try adding some print statement to see what the part is touching.
Whoops, my bad, it was touching the baseplate.
I still don’t get it though - for the knife, it just falls to the floor, I don’t get why.
Try checking if the property “Massless” or if the property “CustomPhysicalProperties” is active.
If they are, disable them.
I think it’s something else in my code, I’ll try and see what it is. I’m still having an issue however, the knife will often anchor itself when it isn’t at the baseplate.
Should I store the remote event in ReplicatedStorage? Would that change anything?
I think nothing will change, but you can try.