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: Would anyone be willing to help me with two scripts?

Previous Thread :: Next Thread 
Wolf700 is not online. Wolf700
Joined: 17 Aug 2008
Total Posts: 5327
03 Sep 2012 06:11 PM
One:

wait(5)
Game.Players.PlayerAdded:connect(function(Player)
repeat wait() until Player.Character:FindFirstChild("Torso")
wait(15)
Player:MoveTo(403.5, 380, 0.5)
wait(30)
end)



Two:
wait(8)

function add(first, second)
first = first + second;
end

-- This goes into the method that changes the map. Make sure this occurs BEFORE the map is loaded.
--for _,v in pairs(game.Players:GetPlayers()) do
-- if(v.Survived.Value) then
-- reward player with points
-- insert messages
-- add(p.Points, 6);
-- msg = Instance.new("Message")
-- msg.Parent = game.Workspace
-- msg.Text = "Giving SIX points to the survivors!"
-- wait(2)
-- msg:remove()
-- replace Points with whatever the points value in the game is and 6 for the amount of points
--else
-- p.Survived = true;
-- end
--end

map1 = game.Lighting:findFirstChild("Avalanche!") -- Change Here Your First Map Name.
map2 = game.Lighting:findFirstChild("Conveyer Belt") -- Change Here Too.
map3 = game.Lighting:findFirstChild("Obby") --Same here
map4 = game.Lighting:findFirstChild("Avalanche!") --Same here
map5 = game.Lighting:findFirstChild("Balance Plates") --Same here
map6 = game.Lighting:findFirstChild("Race course") --Same here
map7 = game.Lighting:findFirstChild("Obby") --Same here
map8 = game.Lighting:findFirstChild("Conveyer Belt") --Same here
map9 = game.Lighting:findFirstChild("Obby") --Same here
map10 = game.Lighting:findFirstChild("Conveyer Belt") --Same here
time = 30 -- This Is The Time When The Map Changes.
clone = map1:clone() --Dont Edit Anything. Only If You Want To Broke It. Or If You Want Add More Maps. But Read Instructions.
clone2 = map2:clone()
clone3 = map3:clone()
clone4 = map4:clone()
clone5 = map5:clone()
clone6 = map6:clone()
clone7 = map7:clone()
clone8 = map8:clone()
clone9 = map9:clone()
clone10 = map10:clone()
wait()
map1:remove()
map2:remove()
map3:remove()
map4:remove()
map5:remove()
map6:remove()
map7:remove()
map8:remove()
map9:remove()
map10:remove()

while true do
wait(12)
local map = clone:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Avalanche Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone2:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Conveyer Belt Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone3:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Obby Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone4:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Avalanche Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone5:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Balance Plates Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone6:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Race Course Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone7:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Obby Course Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone8:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Conveyer Belt Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone9:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Obby Course Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
local map = clone10:clone()
map.Parent = game.Workspace
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "This is the Conveyer Belt Stage!"
wait(3)
msg:remove()
wait(time)
map:remove()
wait(12)
function preparePlayer(thePlayer)
boolean = Instance.new("BoolValue");
boolean.Name = "Survived";
boolean.Value = false;
boolean.Parent = thePlayer;
end
-- connect when player joined to the prepareplayer method.
end

--THANKS FOR TAKING!


^this one functions, bu doesn't give point after surviving a round. It says at the top of the script to give six points.


Report Abuse
Rames7 is not online. Rames7
Joined: 19 Nov 2009
Total Posts: 547
03 Sep 2012 06:14 PM
Sorry, can't help you with all of this but I don't think you need to remove the message
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
03 Sep 2012 06:15 PM
With the first one, You can't move the Player, You move his Character
Report Abuse
Wolf700 is not online. Wolf700
Joined: 17 Aug 2008
Total Posts: 5327
03 Sep 2012 06:16 PM
How would I change it?^
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
03 Sep 2012 06:30 PM
That's gotta be the worst map script I've ever seen. Something tells me you didn't make it.
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