Variable not updating in Roblox Studio / Lua – Stack Overflow

I'm trying to make a system in roblox studio, in which whenever a tool is activated it will play a animation and make an variable which will be …
View full source