[solved] Problem with attributes

I tried to make it so that if the attribute is set to true, it will return end. But for some reason it doesnt work. This is my code:

char:GetAttributeChangedSignal("Stunned"):Connect(function()
	print(char:GetAttribute("Stunned"))

	if char:GetAttribute("Stunned") == true then return end
end)

You want to make a breakpoint there?

Yes, but attributes wont let me do that for some reason

Nevermind, i solved this issue.

May you please post a reply containing what you did, just in case someone has a similar issue and comes across this topic

2 Likes

I replaced the attribute with a boolvalue