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: need help with my game's main script

Previous Thread :: Next Thread 
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 12:21 PM
i need it so when it teleports the player to the map it actually says it on the screen and so it clones the tools to the player's backpack and when the round is done it deletes those tools from the backpack. anyone think they can help?

while true do
wait(6)
print("20 second intermission")
wait(20)
print("map chosen: City of Rust. by: DarthBoomer")
wait(3)
print("Game now beginning. survive for 8 minutes.")
target = CFrame.new(-1623.23, 64.78, -1590.6)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
wait(2)
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=183174192"
sound.Volume = 1
sound.Looped = true
sound.Name = "round ambience"
sound.Parent = game.Workspace
sound:Play()
wait(1)
Game.ServerStorage (GetChildren)
wait(1)
ServerStorage.Clone (player.backpack)
wait(476)
print("3")
wait(1)
print("2")
wait(1)
print("1")
wait(1)
print ("Round Over")
wait(3)
target = CFrame.new(916.7, 1.1, 7.3)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
wait(1)
sound:Stop()
wait(1)
Game.players.player1.backpack (destroy)
wait(1)
end
end
end
end
end
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 12:26 PM
Yeah, I can help.

Go in my models, and look for the Minigame one. You can use that to your advantage.
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 12:30 PM
first off im not using free models and secondly there is no minigame script on your set of free models
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 12:32 PM
There is a free model on my free models.

Here it is:
http://www.roblox.com/Minigame-pack-item?id=59754136
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 12:36 PM
i told you Im not using free models
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
20 Oct 2014 12:37 PM
Okay then. I wont be of any help then.
Report Abuse
mrdamel is not online. mrdamel
Joined: 22 Oct 2011
Total Posts: 615
20 Oct 2014 12:41 PM
while true do
wait(6)
print("20 second intermission")
wait(20)
print("map chosen: City of Rust. by: DarthBoomer")
wait(3)
print("Game now beginning. survive for 8 minutes.")
target = CFrame.new(-1623.23, 64.78, -1590.6)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
wait(2)
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=183174192"
sound.Volume = 1
sound.Looped = true
sound.Name = "round ambience"
sound.Parent = game.Workspace
sound:Play()
wait(1)
Game.ServerStorage (GetChildren)
wait(1)
ServerStorage.Clone (player.backpack)
wait(476)
print("3")
wait(1)
print("2")
wait(1)
print("1")
wait(1)
print ("Round Over")
wait(3)
target = CFrame.new(916.7, 1.1, 7.3)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
wait(1)
sound:Stop()
wait(1)
Game.Players.Player.Backpack:destroy()
wait(1)
end
end
end
end
end


should work now.
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 01:06 PM
thank you it's working now :D
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 01:23 PM
hang on. i take it back it works but... it wont copy the tools to the backpack
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 01:32 PM
i put in the script what he changed and it worked except for the cloning tools to backpack part. anyone able to fix that?
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
20 Oct 2014 01:41 PM
anyone able to help?
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
22 Oct 2014 11:51 AM
Nope, except for me.
Report Abuse
Ortron is online. Ortron
Joined: 19 Jul 2013
Total Posts: 1297
22 Oct 2014 11:56 AM
Try this

local toolclone=game.Lighting.Sampletool:Clone --Replace sample tool with a weapon of your choice in lighting
for i,v (game.Players:GetChildren()) do
toolclone.Parent=v.Backpack
end

Report Abuse
Ortron is online. Ortron
Joined: 19 Jul 2013
Total Posts: 1297
22 Oct 2014 11:56 AM
Whoops, don't do that, do this instead.


Try this

local toolclone=game.Lighting.Sampletool:Clone --Replace sample tool with a weapon of your choice in lighting
for i,v in pairs(game.Players:GetChildren()) do
toolclone.Parent=v.Backpack
end
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
22 Oct 2014 12:48 PM
I need some help now with fixing this part of the main game script where i can change the font size of the textlabel: textLabel.FontSize = '48'
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
22 Oct 2014 12:51 PM
Set the font size to 9, which is equal to 48
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
24 Oct 2014 05:34 PM
i need help with a newer version of my games main script. each map has it's own part to be teleported to when it starts but i cant get that to work. here's what i have:

while true do
wait(1)
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=182963500"
sound.Volume = 1
sound.Looped = true
sound.Name = "round ambience"
sound.Parent = game.Workspace
sound:Play()
wait(0.1)
local textLabel = Instance.new("TextLabel")
textLabel.Parent = Game.StarterGui.limit
textLabel.Active = true
textLabel.Position = UDim2.new(0, 30, 0, 10)
textLabel.Size = UDim2.new(0, 200, 0, 100)
textLabel.BackgroundColor3 = BrickColor.White().Color
textLabel.BackgroundTransparency = 1
textLabel.Font = "Legacy"
textLabel.FontSize = Enum.FontSize.Size48
textLabel.TextStrokeTransparency = 0
textLabel.TextColor3 = BrickColor.Green().Color
textLabel.TextStrokeColor3 = BrickColor.Black().Color
textLabel.Text = "Intermission"
wait(20)
textLabel.Text = "Choosing Map"
wait(3)
local map = Game.Lighting.Maps:GetChildren() local cm = map[math.random(1,#map)]
cm:Clone().Parent = Game.Workspace.maps
wait(1)
textLabel.Text = "Map Chosen is ..map.name"
wait(1)
textLabel.Text = "game beginning in 3 seconds"
wait(3)
textLabel.Text = "Game Beginning"
wait(3)
textLabel.Text = "Survive"
wait(0.1)
spawn=game.workspace.maps:FindFirstChild()
target= Cframe.new (spawn)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)

wait(0.1)
local map = Game.Lighting.weapons:GetChildren() local cm = map[math.random(3,#map)]
cm:Clone().Parent = game.Players.Player1.backpack
wait(0.1)
sound:Stop()
wait(0.1)
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset?id=183174192"
sound.Volume = 1
sound.Looped = true
sound.Name = "round ambience"
sound.Parent = game.Workspace
sound:Play()
wait(296)
textLabel.Text = "3"
wait(1)
textLabel.Text = "2"
wait(1)
textLabel.Text = "1"
wait(1)
textLabel.Text = "Round Over"
wait(3)
target = CFrame.new(916.7, 1.1, 7.3)
for i, player in ipairs(game.Players:GetChildren()) do
if player.Character and player.Character:FindFirstChild("Torso") then
player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
wait(0.1)
Game.Workspace.maps:ClearAllChildren()
wait(0.1)
game.Players.Player1.Backpack:ClearAllChildren()
wait(1)
sound:Stop()
wait(1)
end
end
end
end
end
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
24 Oct 2014 06:02 PM
plz help i have no idea what to put
Report Abuse
sarim786 is not online. sarim786
Joined: 02 Oct 2011
Total Posts: 206
26 Oct 2014 02:14 PM
Nobody is going to help you on a whole game script, especially if you keep going like this.

The forums don't work like this:
----------------------------------------
Post at 10:00 AM by Sarim786

Why doesn't this work?

Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff -- Obviously not actually code...
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
------------------------------------------
Post at 10:07 AM by Random Genius

You need to add a while true do and 4 ends - like this:

while true do
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff -- Obviously not actually code...
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
end
end
end
end
--------------------------------------------
Post at 10:20 AM by Sarim786

Okay, thanks for the help, but can somebody make an addition to this script so that every block in the game, will turn into Minecraft blocks and Call of duty guns will spawn on top of them, and diamonds will fall from the sky, but it should only happen when you jump 67236 ft high and fart so that you boost even higher. Halp me
--------------------------------------------------------------------------------------
Post at 11:06 AM by Ultra Noob

Okay, here is what you need to write...

while true do
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Random Lua Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
Scripting Stuff
Injecting Stuff
Recompiling Stuff
end
end
ontouch fart on all pplz
end
end
even more end
such end
many end
so end
wow
end
msg all noob " fart"
end
end -- Real end right here...
--------------------------------------------------------------


Okay, I think I have proved my point..
Report Abuse
Doctorwhybother is not online. Doctorwhybother
Joined: 23 Nov 2012
Total Posts: 161
26 Oct 2014 08:49 PM
Not rally... but I figured it out on my own like 2 days ago...
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