#Attribute Change

8 messages · Page 1 of 1 (latest)

fading otter
#

R u talking about the command bar? In roblox studio

#

When you "manually change an attribute"

plucky panther
#

no this

fading otter
#

Yes there is an event to listen to

#
player:GetAttributeChangedSignal("DamagePoints"):Connect(function(value)
      -- Run code here
end)```
plucky panther
#

and where do I put this?

fading otter
#

In any script, just set the "player" variable. It should probably be server side though, speaking of which when you're changing attributes switch to server side else the change will only be local

plucky panther
#

?
I want that when I press Play and change my player attributes 'while playing' the connected attribute gets updated too
like is that possible?