local Players = game:GetService("Players")
Players.CharacterAdded:Connect(function(player)
It's located in ServerScriptService btw
local Players = game:GetService("Players")
Players.CharacterAdded:Connect(function(player)
It's located in ServerScriptService btw
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
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
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!
you might use game.Players.LocalPlayer.CharacterAdded:Connect(function(character) too
You just renamed the parameter cherrythetree..............................