#having a huge problem with welds and motor 6d

1 messages · Page 1 of 1 (latest)

earnest chasm
#

so long story short im trying to make a equipping and unequipping weapon script for my game, all was working fine until the tutorial i was following added code for animations, this has completely messed things up, like how i wasnt able to unequip my weapon after equipping it and now it doesnt let me equip it at all but it still does idle anims??

someone please help!!!

cyan jasperBOT
#

studio** You are now Level 1! **studio

livid cape
earnest chasm
dusty oar
earnest chasm
#

i think we established this earlier

earnest chasm
earnest chasm
#

you areant funny

soft cedar
#

YOU need help

soft cedar
dusty oar
earnest chasm
soft cedar
#

you gave no snippet

earnest chasm
#

WeaponsEvent.OnServerEvent:Connect(function(plr,action)
local char = plr.Character
local hum = char.Humanoid
local torso = char.Torso
local rightArm = char["Right Arm"]

--
if action == "Equip/UnEquip" and not char:GetAttribute("Equipped") and not EquipDebounce[plr] then
    EquipDebounce[plr] = true
    
    idleAnims[plr] = hum.Animator:loadAnimation(WeaponsAnimations.BronzeTrainingSword.Main.Idle)
    EquipAnims[plr] = hum.Animator:loadAnimation(WeaponsAnimations.BronzeTrainingSword.Main.Equip)
    EquipAnims[plr]:Play()

    EquipAnims[plr]:GetMarkerReachedSignal("Weld"):connect(function()
        Welds[plr].Part0 = rightArm
        Welds[plr].C1 = WeaponsWeld.BronzeTrainingSword.HoldingWeaponWeld.C1
    end)
    
    EquipAnims[plr]:GetMarkerReachedSignal("Equipped"):connect(function()
     idleAnims[plr]:Play()
     char:SetAttribute("Equipped",true)
     EquipDebounce[plr] = false
    end)
    
elseif action == "Equip/UnEquip" and char:GetAttribute("Equipped") then
    EquipDebounce = true
    
    idleAnims[plr]:Stop()
    
    UnEquipAnims[plr] = hum.Animator:loadAnimation(WeaponsAnimations.BronzeTrainingSword.Main.UnEquip)
    UnEquipAnims[plr]:Play()
    
    UnEquipAnims[plr]:GetMarkerReachedSignal("Weld"):connect(function()
        Welds[plr].Part0 = torso
        Welds[plr].C1 = WeaponsWeld.BronzeTrainingSword.IdleWeaponWeld.C1

    end)
    
    UnEquipAnims[plr]:GetMarkerReachedSignal("UnEquipped"):connect(function()
        char:SetAttribute("Equipped",false)
        EquipDebounce[plr] = false
    end)
    

end

end)

#

there happy

dusty oar
#

yeah but im still not helping after you were rude

soft cedar
earnest chasm
#

but it doesnt equip??

#

and it plays the idle anim

earnest chasm
#

i literally do not want ur help if your gonna be an idiot off rip

soft cedar
#

that was so uncalled for

#

do you have no respect for anyone??

earnest chasm
#

no i have resepct for people who dont imediately just send a dumb ass gif

#

anyway are you gonna help or not

soft cedar
earnest chasm
#

also where even is the that gif sent anywhere in the server

cyan jasperBOT
#

studio** You are now Level 2! **studio

earnest chasm
#

i had never seen it prior to you sending it

soft cedar
#

28 total messages

earnest chasm
#

anyway

#

if your not gonna help

#

just stop messaging

soft cedar
soft cedar
earnest chasm
#

im impatient becuase im looking for a fix and your carrying on this gif like an idiot

soft cedar
#

i was going to ask where the 'welds' array was coming from; or if you were properly firing the 'equip/unequip' action but wtv

earnest chasm
#

ok

soft cedar
#

YOU are asking for help.

#

and YOU are being disrespectful.

#

quit acting like a whiny brat for the love of god.

earnest chasm
#

gang.

#

if you think this whiny

#

you havent seen ANYTHING

soft cedar
#

typically a thread is posted with semi-detailed problems and then OP waits for an answer.

earnest chasm
#

yeah and your being a little bitch by carrying on

earnest chasm
#

and you sent a gif

#

literally doing nothing to help

soft cedar
#

read your first message.

#

the fuck are we supposed to help you with??

#

we don't have a script to work with

earnest chasm
earnest chasm
soft cedar
#

"so i followed this tutorial! copied a bunch of code, and it doesn't work :<< im not going to provide the script and just hope you can give me an answer lol!"

soft cedar