Si, im trying to make a thing where a pet follows you i got that to work but it doesn't show for other players could someone help? These are the scripts in the Gui And the Pet
local target = game.ReplicatedStorage.Dragonite script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.character:FindFirstChild("Pet") == nil then local pet = target:Clone() pet.Parent = game.Players.LocalPlayer.Character pet.LocalScript.Disabled = false end end) --Script for gui
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(7,4+fl,3) pet.BodyPosition.Position = Vector3.new(cf.x,cf.y,cf.z) pet.BodyGyro.CFrame = torso.CFrame * CFrame.new(3,5,-3) else break end end end --Script in the pet
There local scripts to.