Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the tool not activate?

Asked by 3 years ago
local config = script.Parent:WaitForChild("Configuration")
local Damage = config.Damage.Value
local UltimateDamage = config.UltimateDamage.Value
local UltimateCoolDown = config.UltimateCoolDown.Value
local CanDoUltimate = false

local function WaitForUltimate()
    wait(UltimateCoolDown)
    CanDoUltimate = true
    print("Lol")
end

local function NormalAttack()
    print("Normal")
end

local function ActivateUltimate()
    print("Ultimate")
end

script.Parent.Activated:Connect(NormalAttack)

local CAS = game:GetService("ContextActionService")
CAS:BindAction("UltimateMoveButton", ActivateUltimate, true, Enum.KeyCode.E)


WaitForUltimate()

the action service thingy works but not the activation.

Answer this question