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)
#my animations works but
112 messages · Page 1 of 1 (latest)
Ok so this is a team created game?
yep
The owner of the game needs to publish the animations
Or if the game is owned by a group
The animations needs to be published to the group
how to do that?
Roblox is a global platform that brings people together through play.
you know how when you're publishing an animation there's a blue block thing called a key frame sequence?
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
its not published? (if that word exist)
If it can be found on Roblox library it's published
Do you still have the dummy that you animated on
yep
Click on it and try to find a model named AnimSaves in it
Is that the animation
This?
yep
ok so
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
i'm using that id
oh
Each time you publish a new id is created
Is the game owned by a group?
yepyep
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
wait a minute
You know how when you click save to Roblox you can see the Creator one can be set with a drop down ui
that
it still dont works to my friend
i put the new id
it still works just for me
its not a client side problem ?
You did published it to the group?
And the game is owned by the group?
yes
that's odd
Lemme look at the script
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
ok why do you have to uhm instance new an animation when you already can reference one
Also setprimarypart and using humanoid:LoadAnimation is deprecated
hm
idk
Try replacing
humanoid:LoadAnimation(loadanim):Play()
with
humanoid.Animator:LoadAnimation(loadanim):Play()
Try publishing and then join the game on Roblox not on studio
?
** You are now Level 5! **
its a script in a tool
Ye
I don't think that causes an issue
Because
Wait
serverscriptservice, idk
This script is local script or server script
local
Try making it server then try again
how to make a server script? just script?
If not then
They are just
Named Script
oh
** You are now Level 4! **
sure
Place it inside the tool
And delete the local script
And copy paste everything in the local script to there
ok then revert changes
Try on Roblox
it normal the script gets a grey color?
I don't know
I'm not a light theme user
how to use the dark theme
Studio settings
ok it's normal
But change back to local script
just undo
publish the game and try on Roblox
ok
Sometimes it doesn't work on studio but works on Roblox