so i have this module script that when you click is suppose to make you do an anim while there is a sound playing and this is what i came up with so far
local module = {}
local Damage = require(game.ServerScriptService.ServerModules.TagHumanoid)
local wait = task.wait
local nicky = false
function ActionCheck(Player,Character)
if Player:FindFirstChild("Ragdoll") then
else
return
end
return true
end
module.Active = function(Player,Character)
local Status = workspace.AliveData[Player.Name].Status
local Check = ActionCheck(Status,Character)
local Tool = Player.Backpack:FindFirstChild("Inferno March")
if Check ~= true and nicky == false then
if nicky == true then
Tool.Equipped:Connect(function()
local anim = Character.Humanoid:LoadAnimation(script.Parent.Anim)
anim:Play()
local song = script.Song:clone()
song.Parent = Character.HumanoidRootPart
song:Play()
if Tool.UnEquipped:Connect(function() then
local anim = Character.Humanoid:LoadAnimation(script.Parent.Anim)
local song = script.Song:clone()
song.Parent = Character.HumanoidRootPart
song:Stop()
anim:Stop()
end)
end)
end
return module;
but i am getting these errors
![]()
![]()
