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

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

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

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

1 comment

0

Well i checked and theres no anchored object and all have no collide on

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