#funtion if character is added
1 messages · Page 1 of 1 (latest)
game.Players.CharacterAdded:Connect(function(char)
--stun
char:SetAttribute("stun",0)
--canjump
char:SetAttribute("canjump",0)
--pCombo
char:SetAttribute("combo",1)
end)
``` ?
CharacterAdded is not a valid member of Players "Players"
player not players
player is a class which you can get from here https://create.roblox.com/docs/reference/engine/classes/Players#PlayerAdded
or by referencing game.Players which acts similar to a folder of players
so do I have to loop true them or how do I do this
wat
what exactly are you trying to accomplish with it
everytime the player dies or whenever he joins this event is triggert
game.Players.PlayerAdded:Connect(function(p)
local function Stuff(character)
-- do stuff
end
if p.Character then Stuff(p.Character) end
p.CharacterAdded:Connect(Stuff)
end)
stuff is the function with the stuff I wanne do right?