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: Game script

Previous Thread :: Next Thread 
flame210 is not online. flame210
Joined: 28 Dec 2007
Total Posts: 186
27 Sep 2012 02:21 AM
Alright here is what I am looking for. The one that actually creates the script needed will get proper credit in the game. *To make a good game TEAMWORK is needed*

What it needs:
- wait 60 sec after server launches
- Announce in GUI form (neatly to the left of the screen) "1 minute to Gamble"
- In that 1 minute players need to stand on "GameBrick" in order to be included in the game
- All players not on the "GameBrick" when the 1 minute is up will not be included in the game
- Randomly the script will choose a "Winner" and announce the winner to all players
- The player that Wins will be awarded 1 of 3 awards that is randomly choosen
1) 100 Points
2) Teleportation to a specific coridnate
3) 300 Points
The award will be announced to all players along with the Winner announcement
- after the game is complete the "GameBrick" will dissapear and become allow players to fall through it.
- The game will then announce "Next Game Begins in..." and count down from 90 seconds
-After the countdown the "GameBrick" reappears and then the process repeats.

Extras:
- More then 2 players are needed to play, IF there are <2 players on the brick by time the game is supposed to start the game will result to "Game Cancled" and not choose a winner and not start the game and will then make the "GameBrick" dissapear and begin counting down to the next game.

I am aware this is alot to ask, If you CAN help please do, You WILL get the proper credit in any game I may use this in.

**NOTE** Please do not post on this to go learn or to tell me off, I am a builder not a scripter there for I need help. The Best games made out there had a TEAM of people to make it.**
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
27 Sep 2012 04:58 AM
Incorrect. Very few games out there, that are good, are made by a team. While you may be a builder, that does not necessarily mean you can't learn to script... So in other words, you're too lazy to learn.
Report Abuse
flame210 is not online. flame210
Joined: 28 Dec 2007
Total Posts: 186
27 Sep 2012 05:43 AM
So in your definition of me, I am to lazy to learn? Hmm... Lets evaluate games for a second. Every sing game that uses a gaming system utilizes a team. You have your character artists, Game Designers, Coding professionals, and then the beta team of people. I know I missed a few or many but everyone's favorite game has some sort of team effort no matter what.

Im not arguing with you over the fact i cant learn it. How ever i am argo\uing the fact you can't prove nor show me that I myself am Lazy. Scripting is not my specialty nor my grounds of specialty. Asking for people's input and teamwork is not wrong especially if proper credit is given.

So instead of telling me Im lazy or dont want to learn, be a fellow robloxian or a good person and help. Some people learn by seeing, Some learn by example, and some learn on their own. I learn by seeing, editing samples, and learning what goes wrong.

Sorry if I dont satisfy you :)
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
27 Sep 2012 07:22 AM
^
False.

Vinya for example built his games on his own and scripted the probably most advanced weaponry on roblox.

You are not making real games on roblox, and Lua is really easy to learn, everybody with a normal IQ is able to learn it, people are just to lazy. If you compare Lua to C, then you know what "cryptic" means. Roblox team had a reason to chose Lua. It's very very very easy.

At least try to learn it.
Report Abuse
cw2326 is not online. cw2326
Joined: 25 Aug 2011
Total Posts: 2459
27 Sep 2012 09:06 AM
@Flame lolnosirthisisfalse.
Script Helpers
Not
Script Builders
Learn to script, and you can do this. :P
Report Abuse
galaxen is not online. galaxen
Joined: 27 Sep 2008
Total Posts: 1841
27 Sep 2012 09:57 AM
Had some time to kill:

print("Hello =)")
Pad = Workspace.Pads -- Bricks to stand on (model)
InitialWait = 1 -- Minutes to wait after serverstart
MinutesToGamble = 1
MinutesToGambleText = "minute to Gamble!" -- will add "1 " in front of this if MinutesToGamble is 1
PlayersToStart = 1 -- Minimum of 2 and max shuden't be more than maxplayes ^^
Awards = {}
Awards[1] = {Type = "Points",Value = 300}
Awards[2] = {Type = "Tp",Value = Vector3.new(1,1,1)} -- "Vector3.new(1,1,1)" could be "Workspace.TpToPart.Position"
Awards[3] = {Type = "Points",Value = 100}

Leaderstat = "Points" -- the name of the leaderstats value
TelportToText = " got teleported to VIP!" -- player name is added before this text, and it is shown when someone gets teleported

-- You don't need to change things after this line ^^

PlayersOnPad = {}

game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"

local points = Instance.new("IntValue")
points.Name = Leaderstat
points.Value = 0
points.Parent = stats

stats.Parent = player
end)

GiveAward = function(player,num)
Aw = Awards[num]
if Aw["Type"] == "Points" then
player.leaderstats[Leaderstat].Value = player.leaderstats[Leaderstat].Value + Aw["Value"]
Message(player.Name .. " got " .. Aw["Value"] .. " " .. Leaderstat .. "!")
elseif Aw["Type"] == "Tp" then
player.Character:MoveTo(Aw["Value"])
Message(player.Name .. TelportToText)
end
end

GetPlayersOnPad = function()
Result = {}
for i = 1,#Pad:GetChildren() do
Player = game.Players:GetPlayers()[i]
if PlayersOnPad[Pad:GetChildren()[i]] ~= nil then
Result[#Result+1] = PlayersOnPad[Pad:GetChildren()[i]]
end
end
return Result
end

function Message(Text) -- You could change this to make a GUI
Msg = Instance.new("Message")
Msg.Parent = Workspace
Msg.Text = Text
wait(3)
Msg:Destroy()
end

for i = 1,#Pad:GetChildren() do
local P = Pad:GetChildren()[i]
P.BrickColor = BrickColor.new("Bright red")
P.Touched:connect(function(part)
local ThePad = P
Player = game.Players:GetPlayerFromCharacter(part.Parent)
if Player ~= nil and PlayersOnPad[ThePad] == nil then
PlayersOnPad[ThePad] = Player
ThePad.BrickColor = BrickColor.new("Bright green")
end
end)
P.TouchEnded:connect(function(part)
local ThePad = P
Player = game.Players:GetPlayerFromCharacter(part.Parent)
if Player ~= nil and PlayersOnPad[ThePad] ~= nil and PlayersOnPad[ThePad] == Player then
PlayersOnPad[ThePad] = nil
ThePad.BrickColor = BrickColor.new("Bright red")
end
end)
end

wait(InitialWait * 60)
while true do
wait()
if game.Players.NumPlayers < PlayersToStart then
Message("There ain't enught players! You need " .. PlayersToStart .. " players!")
wait(10)
else
Message(MinutesToGamble .. MinutesToGambleText)
wait(MinutesToGamble * 60)
if game.Players.NumPlayers < PlayersToStart then
Message("There ain't enught players! You need " .. PlayersToStart .. " players!")
else
Players = GetPlayersOnPad()
if #Players == 0 then
Message("You are suposed to stand on the bricks -.-")
else
if #Players ~= 0 then
Ran = math.random(1,#Players)
P = Players[Ran]
GiveAward(P,math.random(1,3))
table.remove(Players,Ran)
end
for i = 1,#Pad:GetChildren() do
Pad:GetChildren()[i].CanCollide = false
Pad:GetChildren()[i].BrickColor = BrickColor.new("Bright red")
end
wait(4)
for i = 1,#Pad:GetChildren() do
Pad:GetChildren()[i].CanCollide = true
Pad:GetChildren()[i].BrickColor = BrickColor.new("Bright red")
PlayersOnPad[Pad] = nil
end
end
end
end
end
Report Abuse
flame210 is not online. flame210
Joined: 28 Dec 2007
Total Posts: 186
27 Sep 2012 02:46 PM
@galaxen

Thank you for building this script. It works great. Wish the wait time between games wasnt one right after the other but I will manage.

Thank you again and you will get proper credit in the game.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
27 Sep 2012 03:41 PM
I wish I could have proper credit in a game that will never get popular.
Report Abuse
galaxen is not online. galaxen
Joined: 27 Sep 2008
Total Posts: 1841
27 Sep 2012 07:50 PM
@epicfail22

You don't think it is fun to help people?
Report Abuse
crusada91 is not online. crusada91
Joined: 04 Sep 2010
Total Posts: 684
27 Sep 2012 08:12 PM
hewwo
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
28 Sep 2012 03:21 PM
Did I say that?
Report Abuse
galaxen is not online. galaxen
Joined: 27 Sep 2008
Total Posts: 1841
28 Sep 2012 05:40 PM
I got that feeling from you, but maybe i was wrong?
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
29 Sep 2012 10:57 AM
If I didn't think it was fun to help people, I wouldn't be in this forum at all. That wasn't the intended message.
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