Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Players torso CanCollide?

Asked by 8 years ago

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!

0
Don't spawn it directly on the player then, offset it by adding another Vector3 to the player's position User#11893 186 — 8y

1 answer

Log in to vote
3
Answered by 8 years ago

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

Ad

Answer this question