local service = game:GetService("TweenService")
local ti = TweenInfo.new(
0.05,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
game.Players.PlayerAdded:connect(function(plr)
wait(2)
local part = game.ReplicatedStorage.Cat:Clone()
part.Parent = workspace[plr.Name].Torso
part.CanCollide = false
part.Anchored = true
while true do
wait(0.05)
local position = {CFrame = CFrame.new(plr.Character['Head'].Position + Vector3.new(2,1,0))}
local movepet = service:Create(part,ti,position)
movepet:Play()
part.Rotation = game.Workspace[plr.Name].Torso.Rotation
end
end)
Here is my script. This is a pet script which follows you. how can i fix this?. its a Script. If I would make it as a LocalScript in a player, Only you would see it. Please tell a way to fix this.

1 comment
fix indentation plz