Module Script:
local c = {}
c.Enabled = true
-- ATTACKING MODULE --
c.AttackingEnabled = true
c.M11 = true
c.M11AnimID = 14682473508
c.M12 = true
c.M12AnimID = 14682477357
c.M13 = true
c.M13AnimID = 14682494899
c.M14 = true
c.M14AnimID = 14682498632
return c
localscript/client: (starterGUI)
local plr = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local config = require(game.ReplicatedStorage.CSConfig)
local count = 1
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.E then
if config and config.Enabled == true and config.AttackingEnabled == true then
local hum = plr.Character:FindFirstChild("Humanoid")
if hum then
print("Hum found")
if count == 1 and config.M11 == true and config.M11AnimID ~= "" then
print("Hi")
local animationId = config.M11AnimID
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://" .. animationId
local track = hum:LoadAnimation(animation)
track:Play()
print("Animation ran")
end
end
end
end
end)
Output:
Hum found - Client - CombatClient:11
12:54:01.835 Hi - Client - CombatClient:13
12:54:01.836 Animation ran - Client - CombatClient:19
12:54:01.914 Failed to load animation - sanitized ID: rbxassetid://4682473508 (x2) - Studio
Any ideas how to fix it? or is there no way?