Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Players torso CanCollide?

Is there a way to make the players torso's "CanCollide" property false? I'm trying to spawn something from the players torso, and it works, however everytime I do it, it always gets stuck in the players torso and causes the player to spaz out on the ground.

FAQ: Why don't I just turn the parts CanCollide off?: Because when I do, it false through the world (Anchored is also off on the part.)

All help is appreciated!

1 comment

0

Don't spawn it directly on the player then, offset it by adding another Vector3 to the player's position

1 answer

✓ Accepted answer

Don't spawn the object directly on the player's torso. Offset it with a Vector3 or a CFrame. I'm going to assume you are using CFrames to position this object because it's getting trapped inside the player. Here's what I would do:

--Current code:
Part.CFrame = Player.Character.Torso.CFrame

--What I would do
Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(3, 0, 0) --It might not be on the X axis so fool around with this for a bit until it works

--Or you could do this as well
Part.CFrame = Player.Character.Torso.CFrame + Vector3.new(3, 0, 0) --It might not be on the X axis so fool around with this for a bit until it works

Good luck on your future Scripting Adventures! ~lightpower26

This discussion is preserved as it was. New answers, comments, and votes are closed.