HOW TO ADD IDLE/WALK ANIMATION ON YOUR TOOL | ROBLOX STUDIO | R15/R6

HOW TO ADD IDLE/WALK ANIMATION ON YOUR TOOL | ROBLOX STUDIO | R15/R6

DTC - DAVE THE CODER

2 года назад

68,092 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Spin
Spin - 06.10.2023 20:51

its work on r15?

Ответить
@rapscallian, doofus
@rapscallian, doofus - 01.10.2023 03:08

How do I edit it to make it only have one animation: Equipped, just moving the arms via a ROBLOX animation.

Ответить
Buddy18
Buddy18 - 20.09.2023 15:51

Doesnt work lol

Ответить
Hp3xz
Hp3xz - 24.08.2023 13:33

i have some troubles

Ответить
Henry Dawid
Henry Dawid - 22.08.2023 15:58

Not working for me

Ответить
Максим Буряк
Максим Буряк - 14.08.2023 13:42

Big ty bro!

Ответить
Nix Lizzy
Nix Lizzy - 07.08.2023 23:24

Thank you very much for the script, but when I tested it on other devices, such a mobile phone, it didn't work.

Ответить
Kobito
Kobito - 07.08.2023 16:13

the idle animation is not looped

Ответить
Zaki Plays
Zaki Plays - 30.07.2023 17:29

how do i fix the bug where if i move straight holding w after like a sec it just changes to my idle animation

Ответить
InspireMinds
InspireMinds - 25.07.2023 01:41

Everything works great but i still somehow get a error in the output saying "Idle/Walk:68: attempt to index nil with 'Stop'" if i move in any direction

Ответить
Аким Дуйсебай
Аким Дуйсебай - 24.07.2023 20:26

why not working

Ответить
ViceRoblox
ViceRoblox - 10.07.2023 18:54

TAHNK YOU SO MUCH

Ответить
SwaggyCashMA
SwaggyCashMA - 09.07.2023 10:42

bro this music slaps idk why

Ответить
Jajarchicken
Jajarchicken - 03.07.2023 01:38

Can you make a sprint system with animation but when you have a tool equipped it, the tool plays a sprint animation

Ответить
Dani the TVman
Dani the TVman - 18.06.2023 22:25

BRO WHERES THE SCRIPT IT LIED!

Ответить
Bazzel Bazzel
Bazzel Bazzel - 13.06.2023 03:13

It won't let me put the gun in the hand help me

Ответить
TechnoXander40
TechnoXander40 - 28.05.2023 02:49

It doesnt work

Ответить
Azuflute
Azuflute - 11.04.2023 09:01

this script can cause anim track limit exceeded

Ответить
Bluey Studios
Bluey Studios - 09.04.2023 08:53

Thank you so much. I am thankful so much.

Ответить
The double player channel
The double player channel - 04.04.2023 03:50

whats the script

Ответить
BOSSMANQWERTY
BOSSMANQWERTY - 17.03.2023 21:17

How do u just make the gun attach like that it won’t work for me

Ответить
Monday12thfebruary
Monday12thfebruary - 15.03.2023 21:40

I tried this but when I do it with my own model it don’t work

Ответить
Blue Gaming ROBLOX
Blue Gaming ROBLOX - 09.03.2023 19:31

it doesnt work get thumbs down

Ответить
ArtoShorts
ArtoShorts - 05.03.2023 19:01

Can you do the same, but for android devices?

Ответить
HavenVR
HavenVR - 14.02.2023 17:47

I have a bit of a problem. the animation won't loop?

Ответить
ok.
ok. - 12.02.2023 20:56

It doesn't work..

Ответить
TGaming
TGaming - 08.02.2023 07:55

I am having a problem where my idle animation will play but will never stop even when I try to walk.
Can someone help me?

Ответить
Muhammet Talha TEK
Muhammet Talha TEK - 06.02.2023 11:15

Can you make tutorial for custom walking animations

Ответить
Muhammet Talha TEK
Muhammet Talha TEK - 06.02.2023 11:14

Your videos are awesome

Ответить
Sacred Gorilla
Sacred Gorilla - 02.02.2023 03:58

mine doesnt work. i dont know why ;(

Ответить
ArtUndead
ArtUndead - 30.01.2023 22:12

Here basically the same script except without the walking animation since those are broken right now.

script:

local humanoid = nil
local char = nil
local player = nil
local rootPart = nil
local mouse = nil
local cam = workspace.CurrentCamera
local uis = game:GetService("UserInputService")
local idleAnim = nil


local equipped = false

local flying = false
script.Parent.Equipped:Connect(function()
humanoid = script.Parent.Parent.Humanoid
player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
char = script.Parent.Parent
idleAnim = char:WaitForChild("Humanoid"):LoadAnimation(script:WaitForChild("IdleAnim"))
rootPart = script.Parent.Parent.HumanoidRootPart
mouse = player:GetMouse()
equipped = true
idleAnim:Play()
end)

script.Parent.Unequipped:Connect(function()
equipped = false
idleAnim:Stop()
end)

Ответить
vampmain123
vampmain123 - 30.01.2023 09:25

Code:
(If this doesnt work try to fix it yourself)
local humanoid = nil
local char = nil
local player = nil
local rootPart = nil
local mouse = nil
local cam = workspace.CurrentCamera
local uis = game:GetService("UserInputService")
local idleAnim = nil
local forwardAnim = nil
local LeftAnim = nil
local RightAnim = nil


local wPressed = false
local sPressed = false
local aPressed = false
local dPressed = false
local spPressed = false
local equipped = false

local flying = false
script.Parent.Equipped:Connect(()
humanoid = script.Parent.Parent.Humanoid
player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
char = script.Parent.Parent
idleAnim = char:WaitForChild("Humanoid"):LoadAnimation(script.Parent.)
forwardAnim = char:WaitForChild("Humanoid"):LoadAnimation(script.Parent.ForwardAnim)
RightAnim = char:WaitForChild("Humanoid"):LoadAnimation(script.Parent.ForwardAnim)
LeftAnim = char:WaitForChild("Humanoid"):LoadAnimation(script.Parent.ForwardAnim)
rootPart = script.Parent.Parent.HumanoidRootPart
mouse = player:GetMouse()
equipped = true
idleAnim:Play()
end)

script.Parent.Unequipped:Connect(function()
equipped = false
if idleAnim then
idleAnim:Stop()
end
if forwardAnim then
forwardAnim:Stop()
end
if LeftAnim then
LeftAnim:Stop
end
if RightAim then
RightAnim:Stop()
end
end)

uis.InputBegan:Connect(function(key, chat)
if equipped then
if chat then return end
if key.KeyCode == Enum.KeyCode.W and equipped = true then
wPressed = true
forwardAnim:Play()
elseif key.KeyCode == Enum.KeyCode.S and equipped true then
sPressed = true
forwardAnim:Play()
elseif key.KeyCode == Enum.KeyCode.A and equipped true then
aPressed = true
LeftAnim:Play()
elseif key.KeyCode == Enum.KeyCode.D and equipped true then
dPressed = true
RightAnim:Play()
end
end

end)

uis.InputEnded:Connect(function(key, chat)
if chat then return end
if key.KeyCode == Enum.KeyCode.W then
wPressed = false
if forwardAnim then
forwardAnim:Stop()
end
elseif key.KeyCode == Enum.KeyCode.S then
sPressed = false
if forwardAnim then
forwardAnim:Stop()
end
elseif key.KeyCode == Enum.KeyCode.A then
aPressed = false
if LeftAnim then
LeftAnim:Stop()
end
elseif key.KeyCode Enum.KeyCode.D then
dPressed = false
if RightAnim ten
RightAnim:Stop(
end
end
end)

Ответить
Ienn ._0
Ienn ._0 - 29.01.2023 05:48

It wont work I even added the script thing

Ответить
Delvano Elvin
Delvano Elvin - 23.01.2023 07:02

Idle anim work but the walking isn't doing anything

Ответить
yes yes
yes yes - 13.01.2023 22:20

doesnt work

Ответить
VICTOR SCOOTER
VICTOR SCOOTER - 12.01.2023 04:29

for me it doesnt work

Ответить
hisegai27
hisegai27 - 07.01.2023 14:30

you are simply the best

Ответить
lolikrbx
lolikrbx - 30.12.2022 13:21

dont work

Ответить
polo
polo - 24.12.2022 22:35

yo bro do you know why this works in studio, but when you join the actual game it doesn't work?

Ответить
noob_117
noob_117 - 20.12.2022 16:02

thanks

Ответить
Roko
Roko - 17.12.2022 17:26

Make a run animation tool

Ответить
Liam Jimenez
Liam Jimenez - 16.12.2022 11:45

The animation was glitching, it did not help.

Ответить
Andry Hermawan
Andry Hermawan - 12.12.2022 16:59

how do to make it working on mobile device??

Ответить
Pancakes
Pancakes - 11.12.2022 06:06

it breaks my game

Ответить
ArtiYxles
ArtiYxles - 08.12.2022 23:30

What about a custom tool run anim

Ответить
SMTL
SMTL - 07.12.2022 08:49

Hey! Is there any way to add other buttons?

Ответить
Helplas
Helplas - 06.12.2022 15:22

But.. since the script is a local script, doesn't that mean no one else sees the animation ?

Ответить
Ais Uson
Ais Uson - 04.12.2022 09:07

where is the script

Ответить
Merchantik
Merchantik - 28.11.2022 21:25

I fucking love ya, keep the good work

Ответить
ryder
ryder - 24.11.2022 22:58

wheres pinned bro

Ответить