#Animations doesnt work in roblox
1 messages · Page 1 of 1 (latest)
** You are now Level 3! **
no it goes in serverscriptservice, but your gonna have to change a lot
damn
but then why do people
who are making combat systems
put it in starterplayer/character scripts
on yt
thats for single player or they use remote events
np, good luck
ty
wait i have a question
would the animation work for everybody once i put it in serverscriptservice
alr
and also would it be visible in roblox studio or do i have to go in roblox @late onyx
??
like
it should work in both
yo could u checkout mine
bruh
please broski its a simple fix im js slow
im jokinggg
its because your begging for help in other peoples forums
help me fix it please
fine
@hidden coral does it work in studio
i put it in serverscriptservice
im new
but
the animation is still not working
for other people
let me send the script
idk whats wrong with it
@raw flower look on dms
wair
i send a pic
wait at the top
i forgot to show
this is the top
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CombatEvent = ReplicatedStorage:WaitForChild("CombatEvent")
local COMBO_WINDOW = 1.8
local HITBOX_SIZE = Vector3.new(5, 5, 5)
local HITBOX_DURATION = 1.5
local PUNCH_COOLDOWN = 0.5
local FINAL_COOLDOWN = 3
local SLOWDOWN_TIME = 0.4
local NORMAL_SPEED = 16
local SLOWED_SPEED = 6
The animation should be played locally
The rule is:
• animations on NPCs should be played on the server
• animations on players characters should be played in a LocalScript
no but i want it to work in roblox
Go to the LocalScript where u fire CombatEvent:FireServer
It's okay it will work
Since players have network ownership of their own characters
in replicatedstorage i have an event called CombatEvent, in serverscriptservice i have a script for combatsystem and in starterplayerscripts i have a local script called CombatInput
So this is how exploiters can change the position of their own character to teleport & other players can see it.
Because all movements of characters or vehicles controlled by players has to be simulated by the players device in order to appear smoothly enough.
So in the local script called CombatInput
You should play the animation there
Trust me that will fix it. And don't worry you'll get the hang of this, animations are very annoying at first
so i have to do it in starterplayerscripts?
but @late onyx said i have to do it in serverscriptservice
Yes
The animation should definitely be played in a local script (CombatInput)
ok
** You are now Level 4! **
And you don't need to look for the animator, you can play the animation using humanoid
😊
also do i need anything in replicatedstorage
No ur good the way you have it set up now with just the RemoteEvent
Also, remember you need to be the owner of the animation, and if the game is a group game, you need to have permissions to create group assets and upload the animations as a group creation.
Also, do you think you can vote up my suggestion? https://discord.com/channels/448986884497211392/982027942995566634
It will work for everyone, even if they arent members of the group, as long as the animation is owned by the owner of the game. In this case, since its a group game, the owner is the group itself. This means the animation has to be a group creation/ owned by the group.
Thank you!!
so it doesnt work in roblox studio but works in roblox
?
It should work in both once you set it up so that the animation is played from the local script
And as long as the animation is uploaded to the group
Is it just a game that you own?
yh
You don't need a group. If you're the owner of the game you can just upload it as an animation
You have to publish it as a private creation to roblox
In the animation editor you can either import from roblox or export to roblox
how do i export to roblox
Once you do that you can copy the ID number
js the animation i made?
Yeah
wait but how do i export
Its the 3 small dot u can press it to export to roblox
We can go on a call
U can share screen
Np
go on dms