Attribute num value isn’t being changed.
local Damage = 5
local hitbox = script.Parent.Hitbox
local DamageAttack = hitbox:GetAttribute("AttackDamage")
DamageAttack = Damage
Attribute num value isn’t being changed.
local Damage = 5
local hitbox = script.Parent.Hitbox
local DamageAttack = hitbox:GetAttribute("AttackDamage")
DamageAttack = Damage
You would have to do:
hitbox:SetAttribute("AttackDamage", Damage)