Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I fix the weld / animation from doing this bug?

Asked by 5 years ago

https://i.gyazo.com/b5226e2b83869d98fa4382568dbd8db4.gif

01local SelectedPet = Owner.Parent
02 
03local LoadedAnim = Player.Character:WaitForChild("Humanoid"):LoadAnimation(PetCarryAnimation)
04 
05local RightHand = Player.Character:WaitForChild("RightHand")
06SelectedPet.HumanoidRootPart.Anchored = false
07 
08LoadedAnim:Play()
09 
10local weld = Instance.new("Weld", SelectedPet.HumanoidRootPart)
11weld.Part0 = SelectedPet.HumanoidRootPart
12weld.Part1 = Player.Character:WaitForChild("HumanoidRootPart")
13weld.C0 = CFrame.new(-1, -0.5, 0) * CFrame.Angles(0.785, -1.571, 3.142)
0
Can you post your whole script? Also look up how to create welds. You could also use WeldConstraints so that you don't have to deal with the C0 C1 properties Twinbrotato 543 — 5y

Answer this question