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

My pet following script won't work! Only the main part will follow me not the legs! Please help?

So I made a script that makes the pet follow you but I made this differently to others. My current script is:

local Done = script.Parent local MainFrame = script.Parent.Parent local player = game.Workspace:WaitForChild(game.Players.LocalPlayer.Name) local pet = game.Workspace.Pet.Pet

Done.MouseButton1Click:Connect(function() repeat wait(.000001) pet.Position = player.HumanoidRootPart.Position + Vector3.new(0,5,2)until nil MainFrame.Visible = false end)

But I also have legs inside my pet so every time i press the 'Done' button only the body follows me not the pet! Please help

2 answers

Use weldconstrants to weld with the "main part" and it should work.

1 comment

0

I've done differently meaning even when welded it does not work :/

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