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

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

Asked by
edwisc 1
3 years ago

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

0
What is your way? Show us some code to help you. We can't help you with the information provided. Soban06 410 — 3y
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. Dovydas1118 1495 — 3y
0
Ahhh sorry I'm new here edwisc 1 — 3y

Closed as Not Constructive by Soban06, Dovydas1118, DeceptiveCaster, SteamG00B, and JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
edwisc 1
3 years ago
Edited by DeceptiveCaster 3 years ago

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)
0
waits only have a minimum of .03 SteamG00B 1633 — 3y
0
also, this belongs in the question, not an answer. SteamG00B 1633 — 3y
0
Oops sorry edwisc 1 — 3y
Ad