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

Why is my identification script not working?

I want to make this script to load character data. I can't seem to make it work. here's my code:

Game.Players.PlayerAdded:connect(function(plr) -- it says I need a ) to close the (Function thingy 
--         	                                                                                    but then it says I need an = sign somewhere.
print(plr.Name.." has joined the server.") 
print(plr.Membershiptype.."is his membership type.")
print(plr.ClanTag.."is his clan tag.")
print(plr.userid.."is his ID.")
print(plr.AccountAge.."is his age on roblox.")
print(plr.CameraMinZoomDistance.."is his minimum zoom distance.")
print(plr.CameraMaxZoomDistance.."is his maximum zoom distance.")
end

thanks for reading! please answer!

1 answer

✓ Accepted answer

When you use this method of :connect(function() you must have an end) to close it. There is no real wiki article that I could find on this subject, so I hope this helps!

game.Players.PlayerAdded:connect(function(plr)
print(plr.Name.." has joined the server.")
print(plr.Membershiptype.."is his membership type.")
print(plr.ClanTag.."is his clan tag.")
print(plr.userid.."is his ID.")
print(plr.AccountAge.."is his age on roblox.")
print(plr.CameraMinZoomDistance.."is his minimum zoom distance.")
print(plr.CameraMaxZoomDistance.."is his maximum zoom distance.")
end)

2 comments

0

Don't forget to accept it as an answer.

0

ok. I checked it and it works fine! and yes, I will accept.

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