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

How do I write a script to make a player's animation change upon joining a specific team!?

I am trying to make a script that will change a players animation depending on what team he/she has joined.

1 answer

game.Players.LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function()
	if game.Players.LocalPlayer.TeamColor = BrickColor.new() --Put the colour of the team in the brackets
		local anim = Instance.new("Animation", script)
		anim.AnimationId = "" -- Place animation ID in the quotes
		local animtrack = game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(anim)
		animtrack:Play()
	end

2 comments

0

Awesome! Thank you so much!

0

Wait! jk! I'm still having trouble! Basically what im trying to do is make it so that when a player joins a team, lets say "Karate" for instance, that the players default animation such as walk, run, etc. will change into something else! I know how to change a players default animation, but as soon as the player joins a team, the deafault animation revert back to the original!!!

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