Good Evening (or morning :P), i hope you all have had a great day so far, now it's time to make it worse as you have to answer my amateur scripting question!
So in the script below it is apparently supposed to ServerScriptService.Script:7: ')' expected (to close '(' at line 3) near '<eof>'
- I have to clue what that means, can someone please walk me through this -
yours goku :D
local player = game:GetService("Players") player.PlayerAdded:Connect(function(person) person:CharacterAdded(function(person) print(person.Parent) end) end)
Not correctly connecting it to the function.
--proper variable naming. local players = game:GetService("Players") players.PlayerAdded:Connect(function(person) person.CharacterAdded:Connect(function(character) print(person.Parent) end) end)
CharacterAdded is an event not a function you need to use .
not :
, and connect the function to the event, also not sure about the error you are getting, everything is fine other than your CharacterAdded event
local player = game:GetService("Players") player.PlayerAdded:Connect(function(person) person.CharacterAdded:Connect(function(person) print(person.Parent) end) end)