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

BodyGyro | BodyPosition Problem they dont move my pet, How i can fix it?

Asked by 4 years ago
Edited 4 years ago

Hi, So i made a system same as a Pet system using BodyGyro and BodyPosition but well the "Pet" as i can say dont move i checked the BodyPosition.Position value when testing game and it was changing every time but the model itself dont move. Here is the BodyGyro and BodyPosition definition scripts.

--standn is the pet model
 local bp = chr[standn].BodyPosition
    local bg = chr[standn].BodyGyro

    bp.Position = (base.CFrame * CFrame.new(2,2,1)).p
    bg.CFrame = bg.CFrame * CFrame.Angles(-math.pi/2, 0, 0)

The bg and bp script

--bp and bg script
local bg = Instance.new("BodyGyro")
bg.Parent = getpet --getpet is a function that clone pet model intro players chr.
bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bg.P = Vector3.new(math.huge)
local bp = Instance.new("BodyPosition")
bp.Parent = getpet --getpet is a function that clone pet model intro players chr.
bp.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bp.P = Vector3.new(math.huge)

1 answer

Log in to vote
0
Answered by 4 years ago

Make sure none of the objects in the model are anchored.

0
Well i checked and theres no anchored object and all have no collide on DiogoBr34 32 — 4y
Ad

Answer this question