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: Can somsone make this an ("","","") script

Previous Thread :: Next Thread 
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:49 PM
function nonDeadlyMap()
maps2 = maps
for i, v in pairs(maps2) do
if v.Name == "Lava" then
table.remove(maps2, i)
end
end
return maps2[math.random(1, #maps2)]
end

Like so I can add more maps then Lava to it, I tried just copying the full thing and repeating it didn't work

Like make it or if "Lava"or if"Map"or if"Map"

or whatever works best its part of a larger script btw


[RTMAD]
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:50 PM
bump


[RTMAD]
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
03 Jul 2016 06:51 PM
You don't make sense.

Not to mention you "bumped" your thread one minute after posting it, while it was still at the top of this forum.

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:51 PM
b2


[RTMAD]
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
03 Jul 2016 06:52 PM
local levels = {
['Lava'] = true;
['mapename'] = true;
}

if levels[v.Name] then

R$9,301 | 26,256
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
03 Jul 2016 06:52 PM
b3

just helping out the cause, brutha
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:52 PM
You've been stalking my posts, wtf get the heck out lol

I'm used to LMaD's speed where 1 minute later you're 2 pages back soooo lol


[RTMAD]
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
03 Jul 2016 06:53 PM
"You've been stalking my posts"
It's my fault for coming across you on the forums?

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:54 PM
You've posted on my posts in all these-
OT
RT
LMaD
And here, I think even in Video Designs too.


[RTMAD]
Report Abuse
Skellobit is not online. Skellobit
Joined: 13 Apr 2016
Total Posts: 12758
03 Jul 2016 06:55 PM
I have never stepped foot in OT and whatever Video Designs is on this account.

Formerly ToxicDominator - add 17,509 posts | :(){:|:&};:
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:56 PM
@Ro that won't work


function nonDeadlyMap()
maps2 = maps
for i, v in pairs(maps2) do
if v.Name == "Lava" then
table.remove(maps2, i)
end
end
return maps2[math.random(1, #maps2)]
end

I just need the middle to be edited
I need to be able to add new maps to it, easily.



[RTMAD]
Report Abuse
Bloxkes is not online. Bloxkes
Joined: 23 Sep 2015
Total Posts: 477
03 Jul 2016 06:57 PM
Go back to LMAD and be ready to make a deal.


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
03 Jul 2016 06:57 PM
Where do you define maps? and wtf is an ("","","") script
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 06:59 PM
Its what I use for another things, perhaps that isn't the same 1 sec would this work


function nonDeadlyMap()
maps2 = maps
for i, v in pairs(maps2) do
if v.Name == "Lava" or "Volcano" or "Islands" then
table.remove(maps2, i)
end
end
return maps2[math.random(1, #maps2)]
end


[RTMAD]
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:01 PM
The maps are just maps in a model outside of the workspace

maps = {}
for i, v in pairs(game.Maps:GetChildren()) do
table.insert(maps, v:Clone())
end
game.Maps:Destroy()


[RTMAD]
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:02 PM
maybe an else if set up, I need other maps like Lava not to load in during certain rounds.


[RTMAD]
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:04 PM
pl0x


[RTMAD]
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
03 Jul 2016 07:05 PM
You could make a table of maps you don't want, and check if the map is on that list.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
03 Jul 2016 07:07 PM
What exactly are you trying to do, just remove a couple maps and return a random one out of the rest?
Report Abuse
DarthStrantax is not online. DarthStrantax
Joined: 31 May 2011
Total Posts: 2610
03 Jul 2016 07:07 PM
Try posting full script or paying someone.
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:07 PM
Ok so let me explain better, the lava map has parts of it that kill on touch, so it can't be used on a round where you load in randomly anywhere on the map.

Understand?.. I need to exclude more maps from being used a survival rounds


[RTMAD]
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
03 Jul 2016 07:08 PM
@extreme
i said that

@op
im going to do it for u since ur obv uneducated

local MAPS_ = {
['Lava'] = true;
['MapNameHere'] = true;
}

function nonDeadlyMap()
maps2 = maps
for i, v in pairs(maps2) do
if MAPS_[v.Name] then
table.remove(maps2, i)
end
end
return maps2[math.random(1, #maps2)]
end


R$9,301 | 26,258
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:08 PM
function nonDeadlyMap()
maps2 = maps
for i, v in pairs(maps2) do
if v.Name == "Lava" then
table.remove(maps2, i)
end
end
return maps2[math.random(1, #maps2)]
end


function tournament(map, mode)
if #Workspace.Map:GetChildren() > 0 then
for i, v in pairs(Workspace.Map:GetChildren()) do
v:Destroy()
end
end
local players = getPlayers()
if mode == "Normal" then
script.Bet:Fire(players)
script.Status.Value = "Place your bets now."
wait(20)
map:Clone().Parent = Workspace.Map
game.Players.ChildRemoved:connect(function(player)
local yes = false
if players then
for i, v in pairs(players) do
if v == player and script.Dueling:FindFirstChild(player.Name) then
yes = true
end
end
end
if yes then
script.RoundWon:Fire(false)
end
end)
while #players > 1 do
players = letsmixthingsup(players)
local p1 = players[1]
local p2 = players[2]
if p1.Parent and p2.Parent then
script.Status.Value = p1.Name .. " vs. " .. p2.Name
Instance.new("StringValue", script.Dueling).Name = p1.Name
Instance.new("StringValue", script.Dueling).Name = p2.Name
Spawn(function() p1:LoadCharacter() end)
Spawn(function() p2:LoadCharacter() end)
if p1.Parent then
p1.CharacterAdded:wait()
elseif p2.Parent then
p2.CharacterAdded:wait()
end
wait(0)
if p1.Parent then
Spawn(function()
repeat until p1:FindFirstChild("PlayerGui")
repeat until p1.PlayerGui:FindFirstChild("TGT")
p1.PlayerGui.TGT.Script.LimitGuis:Fire()
end)
end
if p2.Parent then
Spawn(function()
repeat until p2:FindFirstChild("PlayerGui")
repeat until p2.PlayerGui:FindFirstChild("TGT")
p2.PlayerGui.TGT.Script.LimitGuis:Fire()
end)
end
if p1.Parent then
Spawn(function()
ypcall(function()
repeat until p1.Character:FindFirstChild("Torso")
p1.Character.Torso.CFrame = CFrame.new(Vector3.new(0, 7, 80))
end)
end)
end
if p2.Parent then
Spawn(function()
ypcall(function()
repeat until p2.Character:FindFirstChild("Torso")
p2.Character.Torso.CFrame = CFrame.new(Vector3.new(0, 7, -80))
end)
end)
end
if p1.Parent then p1.Character.Humanoid.MaxHealth = 100 p1.Character.Humanoid.Health = 100 end
if p2.Parent then p2.Character.Humanoid.MaxHealth = 100 p2.Character.Humanoid.Health = 100 end
if p1.Parent and p2.Parent then
local connection1 = p1.Character:FindFirstChild("Humanoid").Died:connect(function()
script.RoundWon:Fire(p2)
end)
local connection2 = p2.Character:FindFirstChild("Humanoid").Died:connect(function()
script.RoundWon:Fire(p1)
end)
for i, v in pairs(p1.ToolBin:GetChildren()) do
v:Clone().Parent = p1.Backpack
end
for i, v in pairs(p2.ToolBin:GetChildren()) do
v:Clone().Parent = p2.Backpack
end
for i, v in pairs(p1.UpgradeBin:GetChildren()) do
Spawn(function()
local s = v:Clone()
s.Parent = p1.Backpack
s.Disabled = false
end)
end
for i, v in pairs(p2.UpgradeBin:GetChildren()) do
Spawn(function()
local s = v:Clone()
s.Parent = p2.Backpack
s.Disabled = false
end)
end
end
script.Timer.Disabled = false
winner = script.RoundWon.Event:wait()
if connection1 then connection1:disconnect() end
if connection2 then connection2:disconnect() end
if not winner then
if p2.Parent then p2:LoadCharacter() else table.remove(players, 2) end
if p1.Parent then p1:LoadCharacter() else table.remove(players, 1) end
local m = Instance.new("Message", Workspace)
m.Text = "Nobody won the round; someone left."
game:GetService("Debris"):AddItem(m, 3)
wait(3)
elseif winner ~= "_" then
if winner == players[1] then
table.remove(players, 2)
else
table.remove(players, 1)
end
winner.leaderstats.Gold.Value = winner.leaderstats.Gold.Value + 20
winner.leaderstats.Wins.Value = winner.leaderstats.Wins.Value + 1
winner:LoadCharacter()
local m = Instance.new("Message", Workspace)
m.Text = winner.Name .. " won the round!"
game:GetService("Debris"):AddItem(m, 3)
wait(3)
else
if p1.Parent then p1:LoadCharacter() end
if p2.Parent then p2:LoadCharacter() end
table.remove(players, 2)
table.remove(players, 1)
local m = Instance.new("Message", Workspace)
m.Text = "Everyone lost the round; the players took too long."
game:GetService("Debris"):AddItem(m, 3)
wait(3)
end
for i, v in pairs(script.Dueling:GetChildren()) do
v:Destroy()
end
elseif not p1.Parent and not p2.Parent then
table.remove(players, 2)
table.remove(players, 1)
elseif not p1.Parent then
table.remove(players, 1)
elseif not p2.Parent then
table.remove(players, 2)
end
end
if #players == 1 and players[1].Parent then
local m = Instance.new("Message", Workspace)
m.Text = players[1].Name .. " won the tournament!"
game:GetService("Debris"):AddItem(m, 3)
players[1].leaderstats.Gold.Value = players[1].leaderstats.Gold.Value + 80
players[1].leaderstats.TWins.Value = players[1].leaderstats.TWins.Value + 1
handleBets(players[1].Name)
else
local m = Instance.new("Message", Workspace)
m.Text = "Nobody won the tournament."
game:GetService("Debris"):AddItem(m, 3)
for i, v in pairs(script.Bets:GetChildren()) do
v:Destroy()
end
end
elseif mode == "Survival" then
map = nonDeadlyMap()
local amount = #players*20
game.Players.ChildRemoved:connect(function()
if players then
for i, v in pairs(players) do
if not v.Parent then
table.remove(players, i)
end
end
end
end)
script.Status.Value = "Survival round! [2 minutes]"
map:Clone().Parent = Workspace.Map
for i, v in pairs(players) do
if v.Parent then
Spawn(function()
v:LoadCharacter()
Spawn(function()
repeat until v:FindFirstChild("PlayerGui")
repeat until v.PlayerGui:FindFirstChild("TGT")
v.PlayerGui.TGT.Script.LimitGuis:Fire()
end)
repeat until v.Character:FindFirstChild("Humanoid")
Spawn(function()
wait(1)
v.Character.Humanoid.Health = 100
v.Character.Humanoid.MaxHealth = 100
end)
Spawn(function()
ypcall(function()
repeat until v.Character:FindFirstChild("Torso")
v.Character.Torso.CFrame = CFrame.new(Vector3.new(math.random(-40, 40), 10, math.random(-70, 70)))
game:GetService("Debris"):AddItem(Instance.new("ForceField", v.Character), 5)
end)
end)
for _, x in pairs(v.ToolBin:GetChildren()) do
Spawn(function()
local t = x:Clone()
t.Parent = v.Backpack
end)
end
for _, x in pairs(v.UpgradeBin:GetChildren()) do
Spawn(function()
local s = x:Clone()
s.Parent = v.Backpack
s.Disabled = false
end)
end
v.Character.Humanoid.Died:connect(function()
table.remove(players, getPlayerIndex(players, v.Name))
if #players <= 1 then
script.RoundWon:Fire(false)
end
end)
end)
end
end




my paid scripter is out the nation aTM


[RTMAD]
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
03 Jul 2016 07:10 PM
if ur guy made that
i wouldnt hire him again

R$9,301 | 26,250
Report Abuse
ReadyToMakeADeal is not online. ReadyToMakeADeal
Joined: 08 Jan 2016
Total Posts: 3553
03 Jul 2016 07:11 PM
LOL....


[RTMAD]
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