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: I need help inserting a small line into my script.

Previous Thread :: Next Thread 
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 07:58 PM
I want to replace Name1, Name2, and Name3 with this. Thanks :)

Player:GetRankInGroup(3309743) >= 9



Script:

current_map = nil
names = {
"Name3",
"Name2",
"Name1"
}

game.Players.PlayerAdded:connect(function(player)
for i, v in pairs(names) do
if v == player.Name then
player.Chatted:connect(function(chatmsg)
if chatmsg:sub(1, 4) == "Run/" then
local map = chatmsg:sub(5, chatmsg:len())
if game.Lighting:FindFirstChild(map) then
if current_map ~= nil then
current_map.Parent = game.Lighting
end
game.Lighting[map].Parent = game.Workspace
current_map = game.Workspace[map]
end
end
end)
end
end
end)
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:03 PM
ah help im drowning in forums1!
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:08 PM
send help!1
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:19 PM
b
Report Abuse
TheKarken1221 is online. TheKarken1221
Joined: 22 Jan 2017
Total Posts: 401
30 Oct 2017 08:23 PM
thats not small
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:26 PM
The line I wanna PUT IN is.

Player:GetRankInGroup(3309743) >= 9
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:30 PM
GOD DAMN BUMP11!1!
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 08:37 PM
no one can help me? I LITERALLY NEED TO REPLACE "Name3", "Name2", "Name1" } WITH THIS ############################## >= 9
Report Abuse
iDominusU is not online. iDominusU
Joined: 07 Sep 2015
Total Posts: 137
30 Oct 2017 08:37 PM
Go with something along the lines of "local Name3 = Player:GetRankInGroup(3309743) >= 9"

I can't really explain further without being there. Maybe invite me to a team create?
Report Abuse
Luo_Basics is not online. Luo_Basics
Joined: 20 Jan 2014
Total Posts: 5752
30 Oct 2017 08:39 PM
current_map = nil
names = {
"Name3",
"Name2",
"Name1"
}

game.Players.PlayerAdded:connect(function(player)
if player:GetRankInGroup(3309743) >= 9 then
table.insert(names, player.Name)
end
for i, v in pairs(names) do
if v == player.Name then
player.Chatted:connect(function(chatmsg)
if chatmsg:sub(1, 4) == "Run/" then
local map = chatmsg:sub(5, chatmsg:len())
if game.Lighting:FindFirstChild(map) then
if current_map ~= nil then
current_map.Parent = game.Lighting
end
game.Lighting[map].Parent = game.Workspace
current_map = game.Workspace[map]
end
end
end)
end
end
end)f


if (dev.ShouldLearnNewLanguage){ dev:LearnJS() } if dev.ShouldLearnNewLanguage then dev:LearnJS() end
Report Abuse
Luo_Basics is not online. Luo_Basics
Joined: 20 Jan 2014
Total Posts: 5752
30 Oct 2017 08:40 PM
oops i accidently typed f after the last end delete that or face error


if (dev.ShouldLearnNewLanguage){ dev:LearnJS() } if dev.ShouldLearnNewLanguage then dev:LearnJS() end
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