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

Why does my Binding Action doesn't works?I tried this with a bool value aswell.

Asked by 2 years ago

Roblox doesn't even shows a single error message.The not working code is the:

Datas.isStunned == 0

Everything works fine without this code, but idk why because the "isStunned" value is 0 all the time.

Script:

local Datas = vplayer:WaitForChild("Datas")


if character.Humanoid.Health > 0 and Datas.isStunned == 0 then
    CAS:BindAction("BasicCombatM1", onButtonPress, true, Enum.UserInputType.MouseButton1)
end


0
Try making Datas.IsStunned.Value == 0 ZIRFAL3 17 — 2y

Answer this question