#Pls help 😭 I'm trying to stop a specific player animation with a script and I'm flopping

1 messages · Page 1 of 1 (latest)

ripe birch
#

The issue is that when I click on these tool animations both the selected animation and the Idle play at the same time

ripe birch
#

Pls help 😭 I'm trying to stop a specific player animation with a script and I'm flopping

thick verge
#

Ask Roblox assistant

#

Or ask chat gpt

ripe birch
#

those suck

ripe birch
thick verge
#

Lol

#

I mean

#

Why didn't u send the script as well as the gui

#

We don't know what u talking abt bro 💔

ripe birch
#

could have just asked for the script

#

ofc I would send it if someone asked

#

this is the one that plays the Hold animation and connects the Motor6D to the Arm

#

local player = game.Players.LocalPlayer
local character = player.Character

local humanoid = character:WaitForChild("Humanoid")
local Animator = humanoid:FindFirstChild("Animator")

local Tool = script.Parent

local IdleAnim = script:FindFirstChild("Idle")
local IdleTrack = Animator:LoadAnimation(IdleAnim)
local Tool = script.Parent

local Grip = Tool.Connectors.Grip

Tool.Equipped:Connect(function()

IdleTrack:Play()
Grip.Part0 = Tool.Parent:WaitForChild("Right Arm")

end)

Tool.Unequipped:Connect(function()

IdleTrack:Stop()
Grip.Part0 = nil

end)

#

I don't really know what sending the scripts would help with tho, I don't think they need any edits, unless I'm wrong

ripe birch
thick verge
#

Ahem

#

@dusky haven can help

dusky haven
#

bro

#

ok bro

#

i can help but

#

i dont understant the setup

ripe birch
# dusky haven i dont understant the setup

it's kinda a mess but pretty much, in this game you can get tools through a settings gui. The tools are stored in ReplicatedStorage, kinda like the brookhaven backpack thing. When you eqiup a tool, in this case a phone, a script makes a gui pop up, it's this one

#

this is the structure of the phone

#

the second local script connects the Motor6D to the Right arm of the player and plays an idle/hold animation

dusky haven
#

bro

#

isnt that like

#

a bit

#

to complicated ?

#

😭

ripe birch
#

wdym too complicated?

#

I mean

#

the phone structure yes

#

a lot happened with that tool

dusky haven
#

yes bro a bit to mush

ripe birch
#

😭

dusky haven
#

jst make one script for everything

dusky haven
#

like kinda

#

wrong...

ripe birch
#

I'm not that good at scripting, I was just following a tutorial that I got recommended

dusky haven
#

and that tutorial was hella ass bro

#

anyways

#

you have like a GUI where you can choose like a animation and it will play it with a tool or what the flip you try to do

ripe birch
dusky haven
#

i dont even know the real thing here

dusky haven
#

😭

ripe birch
#

. let me get to the point wait a sec 😭

#

those buttons work

dusky haven
#

nice

ripe birch
#

the issue is that I recently added a custom hold animation with this script

ripe birch
#

and when I click on these button, both the emote animation and the hold animation play at once

dusky haven
#

ok

ripe birch
#

it looks hella bad

dusky haven
#

ok

ripe birch
#

I just want to know how to stop that animation track so the emote can play by itself

dusky haven
ripe birch
#

I mean I know about this command, I'm just having trobule locating the idle animation track

#

when a tool is equipped, it gets added to the player's model in workspace

dusky haven
#

Idle:Stop()

ripe birch
#

and I need to locate the idle animation when the script that I'm trying to do it in in in PlayerGui

dusky haven
#

just do:

Game.Players.LocalPlayer.Character:FindFirstChild("Phone").holdanim.Idle:idk()
ripe birch
#

I tried this line but it flopped

#

local phoneTool = game.Workspace.LocalPlayer:WaitForChild("Phone")
print("connectedPhone")
local Idle = phoneTool.holdanim.Idle

dusky haven
#

and not the loaded animatoin that is inside the player

ripe birch
dusky haven
#

ho ho ho

dusky haven
#

that wont work

#

cuz

#

its also not the loaded animatoin

#

just make a secure script or smt

#

that will load the animation over the server

#

and the local script can acces that loaded animation over a remote event

#

have fun doing that tho

ripe birch
#

so do you know how I can do that???

dusky haven
#

i will just do one script

#

and thne

#

connect everything in there

#

and it work

#

i also have no idea what that tool even is

#

normaly it should automaticly connected with the right arm

#

so the 3D is useless

ripe birch
#

this is the context to this

ripe birch
dusky haven
#

to mush text

#

nah uh

#

aint reading that

ripe birch
dusky haven
#

where tf is the "handle" part ?

dusky haven
#

and indian incedent

ripe birch
#

girly just go if you're gonna be this difficult for no reason

dusky haven
#

bro

ripe birch
#

I'm just asking for help no need to be extra

dusky haven
#

where is the "handle" part in the tool

#

and thne just change the "grip" at the tool propties to move it OR rotate it to the head or just the arm

#

thats jsut normal studio expierence bro

ripe birch
#

the base part is the "Grip" union

dusky haven
#

bro

#

you jsut doing more work without needed

#

just weld the parts to a handle and boom

#

finish

#

change the position and rotate of the tool with "grip"

#

and boom

#

finish again

ripe birch
#

you're not even trying to understand

#

this is getting no where

dusky haven
loud perchBOT
#

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

dusky haven
#

bro

#

its not my fault that your phone tool looks in the explorer how it looks like 💔