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

My way doesn't work so how do I make a pet follow system???

Mine doesn't work but I really need a short one.

3 comments

0

What is your way? Show us some code to help you. We can't help you with the information provided.

0

Provide us a script or we can't help you. Otherwise we'll assume you just want a script and we'll just give it to you. Unfortunately that is not gonna happen as we are scripting HELPERS, not scripting GIVERS.

0

Ahhh sorry I'm new here

1 answer

My script:

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

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

3 comments

0

waits only have a minimum of .03

0

also, this belongs in the question, not an answer.

0

Oops sorry

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