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

Making a Pet follow you and rotate when your character rotates too..?

So here I have this code

local pos = script.Parent.Main.BodyPosition
local parent = script.Parent.Parent
mouse = game.Players:GetPlayerFromCharacter(parent):GetMouse()
Cube = script.Parent.Main
wait()

if game.Players:FindFirstChild(parent.Name) then
    while true do
        wait()
        pos.Position = parent.Head.Position + Vector3.new(3.7, -7, 3.7)


    end
end


So I've kind of tried a lot and changed position to cframe and stuff also the vector3.new is to not keep it so close to character so that it trails behind. I have tried changing the position's to CFrame and then multiplying that by CFrame.Angles but I can't seem to find a solution

1 answer

Try making a Weld between your player and the pet. The link I sent above should tell you everything you need to know about Welds.

1 comment

0

The link doesnt work but Thanks, I thought about welding it.. but I thought you cant weld models.

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