https://gyazo.com/928ef93d91a46743e4bab023ad2d387b
what happens ^
my script:
local char = script.Parent.Parent
local hum = char:FindFirstChild("Humanoid")
local torso = char:FindFirstChild("Torso")
local pet = script.Parent
local maxFloat = 1
local floatInc = 0.025
local sw = false
local fl = 0
while true do
wait()
if not sw then
fl = fl + floatInc
if fl >= maxFloat then
sw = true
end
else
fl = fl - floatInc
if fl <=-maxFloat then
sw = false
end
end
if pet ~= nil and hum ~= nil and torso ~= nil then
if hum.Health >= 0 then
local cf = torso.CFrame * CFrame.new(3,2+fl,3)
pet.BodyPosition.Position = Vector3.new(cf.x,cf.y,cf.z)
pet.BodyGyro.CFrame = torso.CFrame * CFrame.new(1,0,-3)
else
break
end
end
end
local weld = Instance.new("Weld", script.Parent)
weld.Part0=script.Parent
weld.Part1=torso
weld.C0 = script.Parent.CFrame:Inverse()
weld.C1 = torso.CFrame:Inverse()
https://gyazo.com/179a0b70be594b97d8c0dd51e1393eb4
^ the hierarchy of my Pet part
i believe it has something to do with coming close to another Torso or humanoid, how can i make it souly attached to a player and not conflict with other players?

9 comments
Pet.CanCollide = false will make it not conflict with other players
collision is already off, doesnt fix it even if i was to script it in.
pet is a child of character right? I would try it in workspace instead if it is
yeah it is, what do you recomend to point the pet to the specific player then? i need Filering Enabled keep in mind, and others to see pets
parent isn't going to matter for FE, fyi filter enabled is no longer a toggle instead it is always on
parenting stuff to character can cause some strange side effects so I would recommend parenting it to something else in workspace or just workspace itself
when i parent it to the workspace or whatever i endup parenting to, how to i make it follow a specific player then if its not simply its parent?
by that i mean, in my script inside the pet, what would i put instead of parent referencing the players character? i tried using localplayer.Character and it wouldnt follow
https://gyazo.com/de7f9f1de1d4919bf46b7202c2a581a6