Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why animation don't playing on the server while in roblox studio animations are working?

pc = 1

game.ReplicatedStorage.GiveFire.OnServerEvent:Connect(function(player)
	local char = player.Character
	local anim = Instance.new("Animation")
	local animd = Instance.new("Animation")
	local hum = char:WaitForChild("Humanoid")
	local animid = game.StarterGui.ScreenGui.Frame.Punch.AnimationId
	local animids = game.StarterGui.ScreenGui.Frame.PunchTwo.AnimationId
	anim.AnimationId = animid
	animd.AnimationId = animids
	local animat = hum:LoadAnimation(anim)
	local animatt = hum:LoadAnimation(animd)
	if pc == 1 then
		animat:Play()
		pc = 2
	elseif pc == 2 then
		animatt:Play()
		pc = 1
	end	
	player.leaderstats.Firex.Value = player.leaderstats.Firex.Value + 1
end)

1 answer

LOL, if u making group game, u need save animation to group animations

This discussion is preserved as it was. New answers, comments, and votes are closed.