Yo Guys, i'm back at it again with the combat i am making but this time i really need help. So, the problem is that my animation wont play (it's in lighting too), here is the code.
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
Combo = 0
Enabled = true
Blocking = false
--Basic Combat
Mouse.KeyDown:connect(function(key)
key = key:lower()
if key ~= "q" then return end;
if Combo == 0 and Enabled == true then
Enabled = false
print("PunchRight")
local Animation = Player.Character.Humanoid:LoadAnimation(game.Lighting.Animations.Combat.PunchRight)
local current = Animation
current:Play()
wait(0.5)
current:Stop()
Enabled = true
Combo = 1
elseif Combo == 1 and Enabled == true then
Enabled = false
print("PunchLeft")
local Animation = Player.Character.Humanoid:LoadAnimation(game.Lighting.Animations.Combat.PunchLeft)
local current = Animation
current:Play()
wait(0.5)
current:Stop()
Enabled = true
Combo = 2
elseif Combo == 2 and Enabled == true then
Enabled = false
print("KickRight")
local Animation = Player.Character.Humanoid:LoadAnimation(game.Lighting.Animations.Combat.KickRight)
local current = Animation
current:Play()
wait(0.5)
current:Stop()
Enabled = true
Combo = 3
elseif Combo == 3 and Enabled == true then
Enabled = false
print("KickLeft")
local Animation = Player.Character.Humanoid:LoadAnimation(game.Lighting.Animations.Combat.KickLeft)
local current = Animation
current:Play()
wait(0.5)
current:Stop()
Enabled = true
Combo = 0
end
end)
So as you see, there are animations set to the script, it works in studio but..in an actual server it pops up with this error message:
"Content failed because HTTP:430(HTTP/1.403 Asset Is not trusted in this place)" "Animation Failed to load : Lighting.Animations.Combat.Punch" and so on with the other animations.
I dont know if this is a scripting error or a roblox error..soooo any help?
