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
 

Help inserting something into a script.

Previous Thread :: Next Thread 
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 07:26 PM
I have this 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)


I want to insert this line into that script so that it replaces "Name3, Name2, and Name1"
Can anyone help me?
player:GetRankInGroup(3309743) >= 9
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 07:38 PM
bumpbumpbumpbumbiddabum bumbumbum dippity doo
Report Abuse
TobiasVerandus is not online. TobiasVerandus
Joined: 24 Jun 2017
Total Posts: 81
30 Oct 2017 07:46 PM
BUMBUMBUMBUMBIDDYBUM BADUMBUMBUM DIPPITY DOO
Report Abuse
Luo_Basics is not online. Luo_Basics
Joined: 20 Jan 2014
Total Posts: 5752
30 Oct 2017 07:50 PM
fix ur formatting smh

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
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