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 » Scripting Helpers
Home Search
 

Re: Is there a way?

Previous Thread :: Next Thread 
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
13 Aug 2014 04:41 PM
Is there a way to make it so the field appears like 5 seconds before the character spawn?



math.randomseed(tick())
while true do
wait(5)
local m = math.random(1,1)
local player = game.Players:GetPlayers()
for i = 2, #player do
msg = Instance.new("Hint")
msg.Parent = nil
if m == 1 then
msg.Parent = game.Workspace
msg.Text = "Choosing Map."
wait(1)
msg.Text = "Choosing Map.."
wait(1)
msg.Text = "Choosing Map..."
wait(1)
msg.Text = "A Map has been chosen!"
wait(3)
msg.Text = "The Map is..."
wait(3)
msg.Text = "Raft"
wait(2)
msg.Text = "Survive the Round!"
wait(5)
msg.Text = "The game will be starting in:"
wait(1)
msg.Text = "...3..."
wait(1)
msg.Text = "..2.."
wait(1)
msg.Text = ".1."
wait(1)
msg.Text = "Begin!"
wait(1)
msg:remove()
local x = {
[1] = Vector3.new(416,106.4,-162);
[2] = Vector3.new(426,106.4,-162);
[3] = Vector3.new(421,106.4,-162);
[4] = Vector3.new(431,106.4,-162);
[5] = Vector3.new(411,106.4,-162);
[6] = Vector3.new(406,106.4,-162)
}
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(x[i])
end
msg:remove()
local Players = game.Players:GetPlayers()
for X = 1, #Players do
if Players[X]:FindFirstChild("HasDied") then
Players[X].HasDied.Value = false
end
end
game.Lighting.Field1:clone().Parent = game.Workspace
local Timer = 90
local Living = {}
repeat wait(1)
Timer = Timer - 1
Living = {}
local Players = game.Players:GetPlayers()
for X = 1, #Players do
if Players[X]:FindFirstChild("HasDied") and not Players[X].HasDied.Value then
table.insert(Living, Players[X])
end
end
until #Living <= 1 or Timer <= 0
msg.Parent = game.Workspace
local msgtext = ""
if #Living == 0 then
msgtext = "No Winners!"
elseif #Living == 1 then
msgtext = "Winner: " ..Living[1].Name .."!"
else
msgtext = "Winners: "
for X = 1, #Living - 1 do
msgtext = msgtext ..Living[X].Name ..", "
end
msgtext = msgtext .."and " ..Living[#Living].Name .."!"
end
msg.Text = msgtext
wait(5)
game.Workspace.Field1:Remove()
msg.Parent = game.Workspace
msg.Text = "Intermission"
wait(20)
msg:remove()
end
end
end
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
13 Aug 2014 04:42 PM
I think what needs to be done has to do with this part of the script, but I don't know what to do:

local x = {
[1] = Vector3.new(416,106.4,-162);
[2] = Vector3.new(426,106.4,-162);
[3] = Vector3.new(421,106.4,-162);
[4] = Vector3.new(431,106.4,-162);
[5] = Vector3.new(411,106.4,-162);
[6] = Vector3.new(406,106.4,-162)
}
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(x[i])
end
msg:remove()
local Players = game.Players:GetPlayers()
for X = 1, #Players do
if Players[X]:FindFirstChild("HasDied") then
Players[X].HasDied.Value = false
end
end
game.Lighting.Field1:clone().Parent = game.Workspace
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
13 Aug 2014 04:50 PM
B1
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
13 Aug 2014 09:05 PM
B2
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
13 Aug 2014 09:06 PM
HOLY SHIZZZ
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
13 Aug 2014 10:24 PM
What?
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
14 Aug 2014 11:05 AM
B3
Report Abuse
drc3 is not online. drc3
Joined: 14 Aug 2009
Total Posts: 1284
18 Aug 2014 10:48 AM
B4
Report Abuse
wubbzy301 is not online. wubbzy301
Joined: 15 May 2010
Total Posts: 1188
18 Aug 2014 10:50 AM
You should uncheck the property "AutoLoadCharacter" on Players.
Report Abuse
wubbzy301 is not online. wubbzy301
Joined: 15 May 2010
Total Posts: 1188
18 Aug 2014 10:51 AM
Then make the script enable it when the field appears.
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
18 Aug 2014 10:54 AM
just do a wait before this part

local x = {
[1] = Vector3.new(416,106.4,-162);
[2] = Vector3.new(426,106.4,-162);
[3] = Vector3.new(421,106.4,-162);
[4] = Vector3.new(431,106.4,-162);
[5] = Vector3.new(411,106.4,-162);
[6] = Vector3.new(406,106.4,-162)
}
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(x[i])
end
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
18 Aug 2014 10:55 AM
and then put this:

game.Lighting.Field1:clone().Parent = game.Workspace

above the wait
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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