|
| 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 |
|
|
|
| 30 Oct 2017 08:03 PM |
| ah help im drowning in forums1! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 30 Oct 2017 08:26 PM |
The line I wanna PUT IN is.
Player:GetRankInGroup(3309743) >= 9
|
|
|
| Report Abuse |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|