how to make part follow me im trying to make pet ?
Asked by
4 years ago Edited 4 years ago
i dont know what is the problem in my script this is the script
01 | game.Players.PlayerAdded:Connect( function (Player) |
02 | local character = Player.Character |
03 | local humRootPart = character.HumanoidRootPart |
04 | local FirePet = game.ServerStorage.Pets.FirePet |
05 | local bodyPos = game.ServerStorage.Pets.FirePet.BodyPosition |
06 | local bodyGyro = game.ServerStorage.Pets.FirePet.BodyGyro |
07 | bodyPos.Position = humRootPart.Position + Vector 3. new( 2 , 2 , 3 ) |
08 | bodyGyro.CFrame = humRootPart.CFrame |
10 | FirePet.CanCollide = false |