generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Met the creator badge script edit

Previous Thread :: Next Thread 
Artemord is not online. Artemord
Joined: 03 Jul 2016
Total Posts: 9
04 Feb 2017 07:06 AM
Is there something wrong with this script for my "Met the creator" badge? It doesn't seem to work, please let me know if I made an error. Thanks!

badgeId=639706975

function onPlayerEntered(player)
if string.lower(player.Name)==string.lower("Artemord")
for _,a in pairs(game.Players:GetChildren()) do
id a.Name~="Artemord" then -- Change Name To Your User
game:GetService("BadgeService"):AwardBadge(a.userId,badgeId)
end
end
end
if game.Players:findFirstChild("Artemord")~=nil then
game:GetService("BadgeService"):AwardBadge(player.userId,badgeId)
end
game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
PredationX is not online. PredationX
Joined: 09 Sep 2012
Total Posts: 1594
04 Feb 2017 07:39 AM
Change Id to if in line 6
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
04 Feb 2017 07:43 AM
Really simple.


badgeId = 638706975;

function onPlayerEntered(player)
if game.Players:FindFirstChild('Artemord') then
for _,v in pairs(game.Players:GetPlayers()) do
if v.Name ~= 'Artemord' then
game:GetService('BadgeService'):AwardBadge(player.UserId,badgeId);
end
end
end
end

game.Players.PlayerAdded:connect(player)
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
04 Feb 2017 08:12 AM
for i, player in ipairs(game.Players:GetPlayers()) do
if player.UserId == game.CreatorId then
for _,v in pairs(game.Players:GetPlayers()) do
game:GetService("BadgeService"):AwardBadge(badge id, v.UserId)
end
end
end
Report Abuse
Artemord is not online. Artemord
Joined: 03 Jul 2016
Total Posts: 9
05 Feb 2017 02:03 AM
I changed the id to if and it still doesnt work? Is something wrong?

New script:

badgeId=639706975

function onPlayerEntered(player)
if string.lower(player.Name)==string.lower("Artemord")
for _,a in pairs(game.Players:GetChildren()) do
if a.Name~="Artemord" then
game:GetService("BadgeService"):AwardBadge(a.userId,badgeId)
end
end
end
if game.Players:findFirstChild("Artemord")~=nil then
game:GetService("BadgeService"):AwardBadge(player.userId,badgeId)
end
game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image