I made the pet follow the player, it it glitches since I remove it. Any other way to fix this?
01 | local plr = game.Players.LocalPlayer |
02 | local torso = plr.Character:WaitForChild( "Torso" ) |
03 |
04 | while wait() do |
05 | local objectSpace = CFrame.Angles( 0 , 0 , - 5 ) |
06 | objectSpace = CFrame.new(- 5 , 0 , 0 ) |
07 |
08 | local worldSpace = torso.CFrame:toWorldSpace(objectSpace) |
09 |
10 | local part = Instance.new( "Part" ,workspace) |
11 | part.Anchored = true |
12 | part.CFrame = worldSpace |
13 | part.CanCollide = false |
14 | part.Size = Vector 3. new( 2 , 2 , 2 ) |
15 | local sparkles = Instance.new( "Sparkles" ,part) |
Any other way to not glitch the part?