I have a super simple script, its for some reason not working. can anyone help?
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
if workspace:WaitForChild(Player) then
print("works, Player Character is found")
end
end)
the entire point of this is to find the characters scripts through a script, it does not work though. anyone know why?
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(character)
print("works, Player Character is found")
end)
end)
btw if you’re wondering why that was happening its because u had to do Player.Name
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(char)
-- char will be the player's character
end)
end)
this is not the full script, I will provide it if you want, but I have narrowed the error down to that point, if I remove the WaitForChild in the real script it works.