When I put this script in a brand new place, it works.
When I put this script in my RPG (The Assassins Code) it doesn't work, why is that?
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
key = key:lower()
if key == string.char(32) then
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=166026160"
end
end)