#my animations works but

112 messages · Page 1 of 1 (latest)

lone karma
#

My animations work just for me in roblox studio test, when my friend try to use one of them, it dont works, for exemple, a tool, when i click in this tool a animation starts, sure. For me when i do a test, its all looking working and having a good funcionality. BUT, if my friend try to test, nothing happens for him, all the script its executed, but the animation not. (my english is not perfect)

mighty tiger
lone karma
mighty tiger
#

Or if the game is owned by a group

#

The animations needs to be published to the group

lone karma
#

how to do that?

mighty tiger
#

inside the AnimSaves folder

#

That thing stores all the needed info for the animation

#

When you publish an animation you are actually publishing that thing

lone karma
mighty tiger
#

Do you still have the dummy that you animated on

lone karma
#

yep

mighty tiger
lone karma
mighty tiger
lone karma
#

i clicked the right button and saved to roblox

#

but idk if that is published

lone karma
#

yep

mighty tiger
#

Get the owner of the game

#

Right click on the sukuna finger

#

And press save to Roblox

#

And then use the animation id from that

lone karma
#

i'm using that id

mighty tiger
#

You need a new id

lone karma
#

oh

mighty tiger
#

Each time you publish a new id is created

lone karma
#

how i publish in the group?

#

OH SURE

#

I FOUND IT

#

wait

mighty tiger
lone karma
#

yepyep

mighty tiger
#

if yes it'll make things easier

#

Since you don't have to pull the owner every time you want to publish

#

ok so

#

Uh

lone karma
#

wait a minute

mighty tiger
#

You know how when you click save to Roblox you can see the Creator one can be set with a drop down ui

#

that

lone karma
#

it still dont works to my friend

#

i put the new id

#

it still works just for me

#

its not a client side problem ?

mighty tiger
lone karma
#

yes

#

by "troll de gado"

mighty tiger
lone karma
#

yes

mighty tiger
#

that's odd
Lemme look at the script

lone karma
#

local tool = script.Parent
local anim = tool:WaitForChild("Animation")
local humanoid = tool.Parent:WaitForChild("Humanoid")
local loadanim = Instance.new("Animation", humanoid)
loadanim.AnimationId = anim.AnimationId

tool.Activated:Connect(function()
-- Remove the tool immediately when activated
tool:Destroy()

-- Stop the character from moving during the animation
humanoid.WalkSpeed = 0

-- Play the animation
humanoid:LoadAnimation(loadanim):Play()

-- Schedule a function to reset the character after the animation finishes
wait(loadanim.Length)
humanoid.WalkSpeed = 16
tool.Parent:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0, 5, 0)))

end)

#

its for a tool

mighty tiger
#

Also setprimarypart and using humanoid:LoadAnimation is deprecated

mighty tiger
#

Try replacing

humanoid:LoadAnimation(loadanim):Play()

with
humanoid.Animator:LoadAnimation(loadanim):Play()

lone karma
#

ok

#

wait

#

still dont works to my friend

mighty tiger
#

Try publishing and then join the game on Roblox not on studio

lone karma
#

wait wait wait

#

i need to ask you somethings

mighty tiger
#

?

glass gorgeBOT
#

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

lone karma
#

its a script in a tool

mighty tiger
#

Ye

lone karma
#

i need to put this script in any local?

mighty tiger
#

Because

mighty tiger
lone karma
#

serverscriptservice, idk

mighty tiger
#

This script is local script or server script

lone karma
#

local

mighty tiger
lone karma
#

how to make a server script? just script?

mighty tiger
lone karma
#

oh

glass gorgeBOT
#

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

lone karma
#

sure

mighty tiger
#

Place it inside the tool

#

And delete the local script

#

And copy paste everything in the local script to there

lone karma
#

now it dont works if me

#

the script simple dont get executed now

mighty tiger
#

ok then revert changes
Try on Roblox

lone karma
#

it normal the script gets a grey color?

mighty tiger
lone karma
#

how to use the dark theme

mighty tiger
lone karma
mighty tiger
#

just undo

#

publish the game and try on Roblox

lone karma
#

ok

mighty tiger
#

Sometimes it doesn't work on studio but works on Roblox

lone karma
#

IT WORKED

#

@mighty tiger

#

TY MAN

#

YOU ARE A GOD