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

I Want A Part / Mesh To Go Right Under The Players, As Long as Im standing still it works?

When I'm standing still it goes where I want it to but if I'm moving it makes some of it go underground or just in weird angles I Know it's due to the torso moving but how will I go on about fixing it?

local Q = QSkill:Clone()
		Q.Parent = workspace
		Q.CFrame = torso.CFrame * CFrame.new(0,-2.7,0)

3 comments

0

I am unsure if the torso variable is indeed equal to the player's "Torso" part, but if so, I would recommend changing it to the "HumanoidRootPart", as the HumanoidRootPart is common in both Rig types (R6 and R15). .

0

ie. local torso = player.Character:WaitForChild("HumanoidRootPart")

0

Yea thank You That fixed it, I Did.

1 answer

use HumanoidRootPart Instead 0f Torso Credits to -- phxntxsmic

		local Q = QSkill:Clone()
		Q.Parent = workspace
		
		Q.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,-2.7,0)

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