Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return function (ModuleName, Char, ExtraArgs)
- local ModuleVar = game:GetService("ServerStorage").Modules.Movesets:FindFirstChild(Char:GetAttribute("Type")):FindFirstChild(ModuleName.Name)
- if ModuleVar then
- local Mouse = ExtraArgs[1]
- local UsingMove = ModuleVar:GetAttribute("UsingMove")
- local Cooldown = ModuleVar:GetAttribute("Cooldown")
- local Module = require(ModuleVar)
- if not UsingMove then
- ModuleVar:SetAttribute("UsingMove", true)
- task.delay(Cooldown, function()
- ModuleVar:SetAttribute("UsingMove", false)
- end)
- if ModuleVar:GetAttribute("RequiresMouse") then
- Module(Char, Mouse)
- else
- Module(Char)
- enda
- else
- print("Is already using move")
- end
- else
- print("No module exists.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement