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 4 years ago

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

local SelectedPet = Owner.Parent

local LoadedAnim = Player.Character:WaitForChild("Humanoid"):LoadAnimation(PetCarryAnimation)

local RightHand = Player.Character:WaitForChild("RightHand") 
SelectedPet.HumanoidRootPart.Anchored = false

LoadedAnim:Play()

local weld = Instance.new("Weld", SelectedPet.HumanoidRootPart)
weld.Part0 = SelectedPet.HumanoidRootPart
weld.Part1 = Player.Character:WaitForChild("HumanoidRootPart")
weld.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 — 4y

Answer this question