I want to program a r6 that is animated (so I can’t dock it). I have already removed the collision but it still doesn’t work, I tried to find an answer on youtube but I couldn’t find anything, if I’m not specific enough please specify, the problem is that the r6 acts as a model, the player is not supposed to be able to move it. Thank you very much for your help
- Select all parts of the R6 model in the Explorer.
- In the Properties window, set
CanCollide
tofalse
for all parts. - Ensure
Anchored
is set tofalse
for all parts, as you want the character to be animated.
3. Prevent Player Movement
To make sure the player can’t move the character, you need to ensure the character is not controlled by any player. This can be done by setting the NetworkOwner
of the character’s HumanoidRootPart
to nil
.
Here’s how to do it
-- Assuming this script is a LocalScript within the R6 model
local character = script.Parent
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
humanoidRootPart:SetNetworkOwner(nil)
end
I just don’t understand where I should put the script