Hi, So I have this script, and It doesn't work, because I'm pretty sure it's not up to date? If anyone could tell me what to fix in it/why it isn't working, or just a plain script that will make pets follow you around, that'd be awesome.
local Pet = script.Parent
Pet.CanCollide = false
local PetPos = Instance.new("BodyPosition", NewPet) local PetGyro = Instance.new("BodyGyro", NewPet) PetGyro.MaxTorque = Vector3.new(400000, 400000, 400000) local Owner = 'ChilledMagicks'
while(1) do wait() local OwnerObj = workspace:WaitForChild(Owner) local OwnerPos = OwnerObj.HumanoidRootPart.Position local StopAt = ((OwnerPos - NewPet.Position).magnitude - 5) * 1000 PetPos.P = StopAt PetPos.Position = OwnerPos + Vector3.new(0,10,0) PetGyro.CFrame = OwnerObj.HumanoidRootPart.CFrame end
So, I tried doing this ^ script, and it just doesn't work.
