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

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

Asked by 3 years ago

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)
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). . appxritixn 2235 — 3y
0
ie. local torso = player.Character:WaitForChild("HumanoidRootPart") appxritixn 2235 — 3y
0
Yea thank You That fixed it, I Did. FilthyMonsterPlays 8 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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)
Ad

Answer this question