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


1 comment

0

Try making Datas.IsStunned.Value == 0