Do events change with the variables?

Something like

local Character = Player.Character

Character.Died:Connect(function()
print(Character.Name .. " Has Died")
end)

and if the character died and i changed the local character to the new character would the died function still carry over or do i gotta make a new one?

1 Like

Gotta make a new one, I’ve seen lots of scripting problems here on #help-and-feedback:scripting-support where the script stops working because of this.

2 Likes

Place the script inside StarterCharacterScripts and it won’t stop.

1 Like