Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

CharacterAdded is not a valid member of Players?

local Players = game:GetService("Players")

Players.CharacterAdded:Connect(function(player)

It's located in ServerScriptService btw

1 answer

✓ Accepted answer

Your problem: You need the player to get the character

Your solution:

local Players = game.Players
Players.PlayerAdded:Connect(function(p)
	p.CharacterAdded:Connect(function(char)
		char.Torso.Transparency = .5
		-- code goes here.....
	end)
end)

4 comments

0

Dope, code goes but it only does everything once, when I had it all under playeradded it would continuously execute the code within it, now under character added it does it once or not at all

0

try using a coroutine or a loop to fix the problem Jedi_Yoda, the coroutine will yield out the character added, which then "Might" fix the problem, but when you put a loop, it will go on forever, and always check if the character has been added!

0

you might use game.Players.LocalPlayer.CharacterAdded:Connect(function(character) too

0

You just renamed the parameter cherrythetree..............................

This discussion is preserved as it was. New answers, comments, and votes are closed.