#chat howd i make ma left hand go up as the right one equip the 2 swords cuz am creating a dual wield

1 messages · Page 1 of 1 (latest)

kind saffron
blissful cedar
kind saffron
#

so basically

#

in game

#

u gonna copy ur whole body in explorer

#

then paste it?

blissful cedar
#

what?

#

Make an animation to hold it out with 2 hands

kind saffron
#

well howd do i

#

Hey guys! I had a lot of trouble trying to figure out how to make an idle animation while standing still then creating a new animation when the character started moving as another idle animation... so, here I am making a tutorial on how to do it!

If you haven't checked out the first video to this on how to create a tool and where to get the Bus...

▶ Play video
#

is it like ts tutorial

blissful cedar
#

No

kind saffron
#

well howd do i

blissful cedar
#

just make an animation holding with 2 hands

#

thats it

kind saffron
#

howd do i make an animation of it

blissful cedar
#

Create a rig and use roblox animator

#

thats it

#

and then change the piority of the animation to action 4

kind saffron
#

but wait one problem howd do i make it insert ingame and not da rig

blissful cedar
#

you click on mode tab and click the part to insert rigs

#

Dude its not hard

#

it takes 20 seconds

kind saffron
#

one more ques can u send me a tutorial for it

#

like

#

the animation part

blissful cedar
#

Idk

kind saffron
#

cuz am new

#

like a vid tutor

blissful cedar
#

u just move the hands foward

#

find one on yt

#

i didnt need a yt tutorial cuz it was so simple

kind saffron
#

dude am full confused

#

wait

blissful cedar
#

after u make the animation u make a local script inside the tool and play the animation when you equip tool and stop animation when you unequip tool and there you have it

kind saffron
#

i dont know how to script bru

#

is it like ts

#

@blissful cedar

kind saffron
frozen harbor
kind saffron
#

i cant script

frozen harbor
#

then thats your issue

#

!

kind saffron
#

welp

frozen harbor
#

I don't think we spoonfeed here

#

But a brief idea is that

#

You can use animations

kind saffron
#

wait wait

#

so basically

#

wait before that

#

do i need to upload the animation in roblox

frozen harbor
#

Yup

blissful cedar
kind saffron
#

after it?

blissful cedar
kind saffron
#

am done w it

blissful cedar
blissful cedar
#

just do tool.Equipped:connect(function()

kind saffron
#

alright thanks for the help imma js try my best on scriptin cuz i got no experience scripting

kind saffron
blissful cedar
#

it will fire when the tool is equipped

kind saffron
#

do i have to put the animation id in there?

blissful cedar
#

so inside that block u can play the animation

#

ye

#

u do humanoid.animator:loadanimation(animationID):Play()

#

And in unequip block u do Animation:Stop()

#

and thats it

kind saffron
blissful cedar
#

yeah

kind saffron
#

do i need to put some informations like the name of the sword 1 nor sword 2

sick frostBOT
#

studio** You are now Level 4! **studio

kind saffron
#

did id o something wrong

blissful cedar
#

dude obviously not like that

kind saffron
#

oh mb

blissful cedar
#

i didnt want to write out the whole thing on phone

kind saffron
#

well basically i dont understand

#

like

#

dude am making bs

rare granite
#
local tool = script.Parent
local animationId = -- put ur animation id here

local players = game:GetService("Players")
local plr = players.LocalPlayer

local character = plr.Character or plr.CharacterAdded:Wait()

local hum = character:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")

tool.Equipped:Connect(function()
   local animation = Instance.new("Animation")
animation.AnimationId = animationId

local animationTrack = animator:LoadAnimation(animation)

animationTrack:Play()
end)```
#

@kind saffron

kind saffron
#

oh thank you

rare granite
#

yw!

kind saffron
#

do i have to put the 2 sword names in there

blissful cedar
#

no

#

Just paste that script in it will work

kind saffron
#

alright thanksss

blissful cedar
#

he misSpelled the plr part

#

its LocalPlayer

kind saffron
#

alright

rare granite
#

it isnt misspelled

#

everything is correct

#

?

#

oh yea

#

mb

blissful cedar
#

LoaclPlayer

rare granite
#

yea yea

#

mb

#

k i fixed it

kind saffron
#

so do i have to replace plr to localplayer

#

wait one more question do i have to ut the animation id to all Animation id?

rare granite
#

nope

rare granite
kind saffron
#

alright

#

ty

#

it works now thank you so much

#

wtf

rare granite
#

yw!

rare granite
#

oh cuz

#

wait

#

lemme redo the script to fix that

kind saffron
#

alright alright thank you for the help

blissful cedar
#

Unequip
Function

rare granite
#
local tool = script.Parent
local animationId = -- put ur animation id here

local players = game:GetService("Players")
local plr = players.LocalPlayer

local character = plr.Character or plr.CharacterAdded:Wait()

local hum = character:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
 
local animation = Instance.new("Animation")
animation.AnimationId = animationId

local animationTrack = animator:LoadAnimation(animation)

tool.Equipped:Connect(function()
  
animationTrack:Play()
end)

tool.Unequipped:Connect(function()
    animationTrack:Stop()
end)```
#

opps mb

blissful cedar
#

bros chatgpt

kind saffron
#

ae

#

thanks

rare granite
rare granite
kind saffron
#

no cap i wanna learn how to script without using ai lel

blissful cedar
rare granite
#

use brawldev

rare granite
#

😭

blissful cedar
rare granite
#

wow super rich man

blissful cedar
#

not rich yet

kind saffron
rare granite
#

oh @kind saffron add the 'Solved' tag to this post

blissful cedar
kind saffron
rare granite
#

yw

kind saffron
blissful cedar
kind saffron
#

chat

kind saffron
rare granite
#

yall am i seeing a business discussion in real time

blissful cedar
#

just read documation

#

and u will learn

#

so ez

rare granite
#

i hate reading

kind saffron
#

one more problem that i need to do

rare granite
#

😭😭😭

blissful cedar
#

its the orginao source of how lua works

kind saffron
#

i gotta create an idle animation and slashes animation with vfx with abilities

#

also i dont know hw to create when u rress a key a clone will spawn and despawn in a time

blissful cedar
rare granite
#

alr gotchu

kind saffron
#

suo

#

sup

#

gng howd i create an idle animation

rare granite
#

so

#

do yk how to animate

kind saffron
#

never

#

jk

#

i did the animation

#

of the raising hand that we solved

rare granite
#

lol

kind saffron
#

but idk how to create an idle

#

like inhaling an dexhaling

rare granite
#

im not that good at animation

#

u can learn tutorials

#

or

#

read the roblox wiki

#

or

#

hire somebody

#

i can make u a script

#

so

kind saffron
#

alright alright

rare granite
#

it detects whnever ur idle

rare granite
#

add this to the tool script

#

lemme just type it

kind saffron
#

i gotta create an idle and slashing animation first

sick frostBOT
#

studio** You are now Level 5! **studio

rare granite
#

what key do u want to press to do the slash animation?

sick frostBOT
#

studio** You are now Level 10! **studio

rare granite
#

@kind saffron

rare granite
#
local tool = script.Parent
local animationId = -- put ur animation id here
local idleAnimationId = -- put ur idle animation id here
local slashingAnimationId = --put it slashing animation id here

local players = game:GetService("Players")
local plr = players.LocalPlayer

local rs = game:GetService("RunService")

local character = plr.Character or plr.CharacterAdded:Wait()

local hum = character:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")
 
local animation = Instance.new("Animation")
animation.AnimationId = animationId
local animationTrack = animator:LoadAnimation(animation)

local idleAnimation = Instance.new("Animation")
idleAnimation.AnimationId = idleAnimationId
local idleAnimationTrack = animator:LoadAnimation(idleAnimation)

local slashingAnimation = Instance.new("Animation")
slashingAnimation.AnimationId = slashingAnimationId 
local slashingAnimationTrack = 
animator:LoadAnimation(slashingAnimation)

idleAnimationTrack.Looped = true

tool.Equipped:Connect(function()
  
animationTrack:Play()
end)

tool.Unequipped:Connect(function()
    animationTrack:Stop()
end)

tool.Activated:Connect(function()
    for _, track in animator:GetPlayingAnimationTracks() do
   track:Stop()
     end
  slashingAnimationTrack:Play()
end)
 

task.spawn(function()
    while true do
       if hum.MoveDirection.Magnitude == 0 then
if not tool.Equipped and not slashingAnimationTrack.IsPlaying then
  idleAnimationTrack:Play()
  idleAnimationTrack.Stopped:Wait()
end
else
  idleAnimationTrack:Stop()
 end
end)
``` sorry i took long! here is the code
#

@kind saffron

#

please tell me if anything is wrong!

#

@kind saffron put this script in once u are finished with the idle and slashes animations, and have the ids. dm me if anything is wrong, imma leave now, goodbye!

kind saffron
#

alright alright

#

dude