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

part animation script is not working, why is this happening?

Asked by 3 years ago

my animation plays fine however whenever it does my character gets weled to the item rather than the item being welded onto me

01local replicatedstorage = game:GetService("ReplicatedStorage")
02local event = replicatedstorage:WaitForChild("suicide")
03 
04event.OnServerEvent:Connect(function(player,newgun)
05    local name = game.Workspace[tostring(player)]
06    local humanoid = name:WaitForChild("Humanoid")
07    local newgun = replicatedstorage:FindFirstChild("gunfx").Gun:Clone()
08    local SA = Instance.new("Animation")
09    SA.AnimationId = "rbxassetid://8230012628"
10    local Suicide = humanoid:LoadAnimation(SA)
11    name.HumanoidRootPart.Anchored = true
12    local newgun = replicatedstorage:FindFirstChild("gunfx").Gun:Clone()
13 
14    humanoid.BreakJointsOnDeath = false
15    newgun.Parent = name.RightHand
View all 48 lines...

1 answer

Log in to vote
0
Answered by 3 years ago

Use the Qperfection weld in the toolbox. Just put it inside your tool and test out your game. It welds all items inside a tool and not to you. Then you can focus on loading your animation

0
i fixed it thanks gymsharklife1 54 — 3y
0
Was my comment the answer? If so press the button that says "This answered" or something, lol. Krektonix_Youtube 85 — 3y
Ad

Answer this question