Item
Item
ν¨μ
local item = Script.Parent
local coolTime = 0
local isActionWhileKeyDown = true
local function StartClick(player, curCameraPos , curCameraForward) --ν΄λ¦μ νΈμΆν ν¨μμμ.
print("Fire!")
end
local function EndClick(player, curCameraPos , curCameraForward) --ν΄λ¦μ΄ λλ¬μλ νΈμΆν ν¨μμμ.
print("End Click!")
end
item:AddAction("Fire", coolTime, isActionWhileKeyDown, StartClick, Enum.Key.LeftMouseButton) --μμ΄ν
μ ν€ μ
λ ₯μ νΈμΆν ν¨μλ₯Ό μ°κ²°ν΄μ.
item:AddToggleAction("CheckAction", coolTime, StartClick, EndClick, Enum.Key.LeftMouseButton) --μμ΄ν
μ μ°©μ© ν ν κΈ μ‘μ
μ μΆκ°ν΄μ.μ¬μ© κ°λ₯ν λΆλͺ¨ μ€λΈμ νΈ κΈ°λ₯λ€
μμ±
μ΄λ²€νΈ
ν¨μ
Last updated
Was this helpful?