I was trying to play an animation inside the player, but it didn't work and there's no errors. Please help! Here is the script I used.
Local Script
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(key)
if key = Enum.KeyCode.E then
script.AnimationController:LoadAnimation(script.Animation):Play()
end
end)

2 comments
Try using remote events so the animation can be seen by other clients (players).
Scale, when the client plays animations it will replicate to the server (the client has network ownership over the client's character)