#How To spawn a item in front of player and play a animation for that item

36 messages · Page 1 of 1 (latest)

hallow apex
#

I want it to spawn the hand in front of the player and play the animation for the hand , the problem is that it uses a weldconstriant which stops its from animating how do I fix this

#

elseif key == "Z" then

    print("ssssd")
    local Auragrab = Rp:WaitForChild("Ablitles").AuraGrab.Aura:Clone()
    Auragrab.Parent = player.Character["Right Arm"]
    Auragrab.CFrame = player.Character["Right Arm"].CFrame * CFrame.new(0,-0.5,0)


    
    local weldconstriant = Instance.new("WeldConstraint")
    weldconstriant.Parent = Auragrab
    weldconstriant.Part0 = Auragrab
    weldconstriant.Part1 = player.Character["Right Arm"]
    
    local AuraHand = Rp:WaitForChild("Ablitles").AuraGrab.Hand:Clone()
    AuraHand.Parent = player.Character.HumanoidRootPart
    AuraHand.Hand.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(-5,0,-7) * CFrame.Angles(4.5,0.5, 6.5)
    local Grab2Animation = script.HandGrab
    local Grab2 = AuraHand:FindFirstChild("Humanoid"):LoadAnimation(Grab2Animation)
    Grab2:Play()
    
    local weldconstriant = Instance.new("WeldConstraint")
    weldconstriant.Parent = AuraHand.Hand
    weldconstriant.Part0 = AuraHand.Hand
    weldconstriant.Part1 = player.Character["HumanoidRootPart"]
    player.Character:WaitForChild("Humanoid").WalkSpeed = 0
    wait(0.5)
    player.Character:WaitForChild("Humanoid").WalkSpeed = 16
    wait(0.5)
    AuraHand:Destroy()
    Auragrab:Destroy()
end
#

@gusty basin got any recommedations on how to do it or what vides to watch?

hallow apex
#

no one has responded and i saw that you were helping other people lol

gusty basin
#

i don't understand your question

hallow apex
#

The problem is that the blue hand animation does not work because it has weldconstrint

gusty basin
#

its probably anchored

spare wadi
hallow apex
#

I check its not

gusty basin
#

the orb probably is

hallow apex
#

you mean the effect?

gusty basin
#

the thing you are welding to the hand...

hallow apex
#

that is a seperate object so it would not matter

#

they are seperate and they both are not anchored

#

so are you saying that the constraint does not matter and does not impact the animation?

gusty basin
#

abilities? oh dear this is a battlegrounds

hallow apex
#

no

#

its a solo leveling game

gusty basin
#

battlegrounds-like features

hallow apex
#

just powers

spare wadi
#

did u try to learn first scripting

#

like

#

very of it

#

deep

hallow apex
#

I know how to script a lot but never got into make powers or anything like that

gusty basin
hallow apex
#

ok

gusty basin
spare wadi
#

if u never made an ability yeah you gonna learn

hallow apex
#

I made a fighting system before but never powers, all I want to do is spawn it and play a animation the rest I already know what to do