I'm animating my first weapon, mainly a Gun. I have the animation I want to use, although when I try to run it it doesn't work properly; take note this Script is just to test an Equip. I haven't actually began Scripting

local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local Revolver = Player:WaitForChild("Backpack"):WaitForChild("Revolver")
local Handle = Revolver:WaitForChild("Handle")
local GunEquipped = Handle:FindFirstChild("GunEquipped")
local GunAnimations = {
	GunEquiping = Character:FindFirstChild("Humanoid"):LoadAnimation(Handle:FindFirstChild("GunEquip"))
};
local Equipped = nil
local PlayerDirect = Revolver.Parent.Parent --// Necessary?
Revolver.Equipped:Connect(function(Cursor)
	if Revolver and Equipped then return end
	Equipped = true
	if Revolver and Player then
		spawn(function()
			GunEquipped:Play()
		end)
		if Character:FindFirstChild("Humanoid") then
			GunAnimations.GunEquiping:Play()
		end
	end;
end)

11:52:18.864 - Animation "https://www.roblox.com//asset/?id=2539448300&serverplaceid=0" failed to load in "Players.Feahren.Backpack.Revolver.Handle.GunEquip.AnimationId": Animation failed to load 11:52:20.901 - Animation "https://www.roblox.com//asset/?id=2539448300&serverplaceid=0" failed to load in "Animation.AnimationId": Animation failed to load

1 comment

0

check to see if the actual animation is still available in the roblox website