If you guys need any help or want more videos you can join my discord and lemme know, don't forget to drop a like!
Join my new discord: / discord
Join my new roblox group: https://www.roblox.com/groups/5821166...
AnimationSignalScript(local):
local AnimationEvent = game.ReplicatedStorage.AnimationEvent
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.E then
AnimationEvent:FireServer()
end
end
end)
AnimationPlayScript(Server):
local AnimationEvent = game.ReplicatedStorage.AnimationEvent
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://10420877814"
AnimationEvent.OnServerEvent:Connect(function(plr)
game.Workspace:WaitForChild(plr.Name)
local Character = game.Workspace:FindFirstChild(plr.Name)
local Humanoid = Character.Humanoid
local AnimationTrack = Humanoid:LoadAnimation(Animation)
AnimationTrack:Play()
end)