So i've created a Firework animation that plays from the players head once something is completed. But I wanted to test it out so I used the output 'Run a command' and typed in 'local firework = require(game.StarterPlayer.StarterPlayerScripts:WaitForChild("Firework").PlayAnimation()' but this comes unknown in the start. Is there something wrong with my script or are we not allowed to require in client
COMMUNITY QUESTION
I want to require a local script so it will play the animation but comes unknown in the output?
2 answers
Require is used on ModuleScripts, and in fact you can only require ModuleScripts. You can however require ModuleScripts from both client and server.
Require is used on ModuleScripts, and in fact you can only require ModuleScripts. You can however require ModuleScripts from both client and server.
This discussion is preserved as it was. New answers, comments, and votes are closed.
