#Animations doesnt work in roblox

1 messages · Page 1 of 1 (latest)

hidden coral
#

In my 'game' i have punching animations which are not visible for me or any other people and if you know how to fix please write a step to step on how to fix it and it only works in roblox studio the animation for me.

late onyx
hidden coral
#

alr i send it

#

gimme a min

late onyx
#

yup

#

I see the problem

#

this is a local script isnt it

hidden coral
#

what is it

#

yh

median steppeBOT
#

studio** You are now Level 3! **studio

hidden coral
#

does it have to be normal

#

normal script?

late onyx
#

yes

#

so your gonna need to modify it for server side

hidden coral
#

in starterplayerscripts?

#

or character

late onyx
#

no it goes in serverscriptservice, but your gonna have to change a lot

hidden coral
#

damn

#

but then why do people

#

who are making combat systems

#

put it in starterplayer/character scripts

#

on yt

late onyx
#

thats for single player or they use remote events

hidden coral
#

ohh

#

bro ur such a W

#

ty for telling me

late onyx
#

np, good luck

hidden coral
#

ty

#

wait i have a question

#

would the animation work for everybody once i put it in serverscriptservice

late onyx
#

well you would have to change a lot

#

of the script

#

or use a remote event

hidden coral
#

alr

#

and also would it be visible in roblox studio or do i have to go in roblox @late onyx

late onyx
#

??

hidden coral
#

like

late onyx
#

it should work in both

hidden coral
#

alr

#

js asking

cursive merlin
late onyx
cursive merlin
late onyx
#

Well now I dont want to

#

I was gonna

cursive merlin
#

oh

#

bro

#

no thats personal

#

its because im black isnt it

late onyx
#

ok fine

#

nope

cursive merlin
#

im jokinggg

late onyx
#

its because your begging for help in other peoples forums

cursive merlin
#

help me fix it please

late onyx
#

fine

raw flower
#

Why would u need to put animations on the server side

#

It replicates automatically

raw flower
hidden coral
#

i put it in serverscriptservice

hidden coral
#

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

raw flower
#

The animation should be played locally

hidden coral
#

im quite new

#

so thats why i struggle

raw flower
#

The rule is:
• animations on NPCs should be played on the server
• animations on players characters should be played in a LocalScript

hidden coral
#

no but i want it to work in roblox

raw flower
#

Go to the LocalScript where u fire CombatEvent:FireServer

#

It's okay it will work

#

Since players have network ownership of their own characters

hidden coral
#

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

raw flower
#

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

hidden coral
#

so i have to do it in starterplayerscripts?

#

but @late onyx said i have to do it in serverscriptservice

raw flower
#

The animation should definitely be played in a local script (CombatInput)

hidden coral
#

ok

median steppeBOT
#

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

raw flower
#

And you don't need to look for the animator, you can play the animation using humanoid

#

😊

hidden coral
#

also do i need anything in replicatedstorage

raw flower
#

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.

hidden coral
#

how do i make it so everybdoy can use it'

#

without them joining a group'

raw flower
hidden coral
#

sure

#

done

raw flower
# hidden coral without them joining a group'

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.

raw flower
hidden coral
#

?

raw flower
#

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

hidden coral
#

i dont have a group

#

shld i buy one?

raw flower
#

Is it just a game that you own?

hidden coral
#

yh

raw flower
#

You don't need a group. If you're the owner of the game you can just upload it as an animation

hidden coral
#

into the script

#

right

#

?

raw flower
#

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

hidden coral
#

how do i export to roblox

raw flower
#

Once you do that you can copy the ID number

hidden coral
#

js the animation i made?

raw flower
#

Yeah

hidden coral
#

wait but how do i export

raw flower
#

Its the 3 small dot u can press it to export to roblox

#

We can go on a call

#

U can share screen

hidden coral
#

alright gimme a min

#

but my mics broken

raw flower
#

Np

hidden coral
#

go on dms