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: I decided the best way for me to learn how to code

Previous Thread :: Next Thread 
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:31 AM
was to dissect a script...


Provly wasn't a good idea to start with an admin script....


:/
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
16 Apr 2013 09:32 AM
"Provly wasn't a good idea to start with an admin script...."

XD
So true.
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
16 Apr 2013 09:32 AM
start with a random forest- and mountaingenerator instead
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:34 AM
O_O
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
16 Apr 2013 09:35 AM
alright alright...
try an automatic bot with huge robotic arms that shoot lasers, rockets, bullets and give you free milk every hour.
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:36 AM
MaxUp = 3 --Varys the height they can move up/down.
MaxDown = 3
MainColors = {"Medium stone grey"} --most of the bricks will be this/these color(s).
OtherColors = {"Bright green", "Bright blue", "Brick yellow"} --Bricks that are not the mainColor could be any of these.
ChanceOfNotNewColor = 50 --Chance of not having the color be the main color.
SizeX = 50 --Sizes of the entire terrain.
SizeZ = 50
BrickSizeX = 5 --Sizes of each individual brick.
BrickSizeZ = 5

Model = Instance.new("Model")
Model.Parent = workspace
Model.Name = "Terrain"
for i = 1, SizeX do
for a = 1, SizeZ do
local p = Instance.new("Part")
p.Parent = Model
p.Name = "Part "..a.." x "..i
if MaxUp == 0 then
if MaxDown == 0 then
p.Size = Vector3.new(BrickSizeX, 1, BrickSizeZ)
else
p.Size = Vector3.new(BrickSizeX, MaxDown, BrickSizeZ)
end
else
p.Size = Vector3.new(BrickSizeX, MaxUp+MaxDown+1, BrickSizeZ)
end
p.Anchored = true
if math.random(1, ChanceOfNotNewColor) ~= math.random(1, ChanceOfNotNewColor) then
p.BrickColor = BrickColor.new(MainColors[math.random(1, #MainColors)])
else
p.BrickColor = BrickColor.new(OtherColors[math.random(1, #OtherColors)])
end
p.CFrame = CFrame.new(i*BrickSizeX, 0, a*BrickSizeZ)+Vector3.new(0, math.random(-MaxDown, MaxUp))
wait()
end
end



theheck
Report Abuse
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
16 Apr 2013 09:37 AM
Nooooonononononon

Start with a simple click reset script. or an even simpler scriptbuilder reset script.

as in game.Workspace.yournamehere.Torso:Remove()

Then fiddle around with editing the players torso

game.Workspace.yournamehere.Torso.Transparency = 1

Honestly the best way to learn in my opinion is to do this and check the wiki's guide.
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
16 Apr 2013 09:38 AM
dafridge did i just read
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:39 AM
--never change the times please they are self controled by me
--made by 4reeeal
--only works when u upload not play solo.
--only change text please its important!!!!!
--do not add the ( ) please!!!

while true do

game.loading = messageText = "put your first text here"
wait(game.start)
game.start = messageText ="put your second text here"
wait(4)

end

--delete all of this below till end to stop people from sending u comments about not closing!!!!
--don't change the text below please
window.roblox place1.close = script.Parent.Parent.Name = ("you are about to exit to stop exit press =")
wait(20) --time too long??? change it less then
key.= = cancel window.close
wait(1)

end

--here below is somthing where you have been reported by someone
--delete this below till says end to stop this working

game.reported = script.Parent.Parent.Name = ("you have been reported for serious actions")
wait (5)
script.Parent.Parent.Name = ("your char will die and roblox will stop your account")
wait (5)
script.Parent.Parent.Name = ("the window will close automaticly...")
wait(3)
window.close.roblox (place 1) or (place 2) or (place 3.)

end

--here is when someone joins the game
--please don't delete this ether!

game.new.player = script.Parent.Parent.Name = ("a new char has entered... their char name is:") char.name ("and has come to play on the") char.team.spawn ("thancks!")

--now this is when you lose connection DO NOT DELETE!!! :O

game.connection.disconnected = script.parent.parent.name = ("you have been disconnected by connection loss and needs to close sorry.")
wait(9)
roblox.place.1 or 2 or 3 = close
error.close = script.parent.parent.name = ("an error occured while close this contains not behaving and needs time to respond sorry!")

end

--if you add more then try to avoid ending the script more that 10 times or it will not work
--contact 4reeeal for more infomation and learn more about this script

--last one is the fullscreen script
--the window just goes on full screen and does nothing when you are in full screen
--what i mean is like when you go on fullscreen and thats it. nothing but just a screen full of roblox

--don't delete this avoids game crashes

game.full.screen = messageText ="full screen entered in a safe mode"
game.full.screen and game.crash = script.task.minimize = true
game.full.screen and game.false.crash = script.task.show.roblox place 1 or 2 or 3
game.full.screen or game.normal.screen and game.crash then open.window and in.window messageText = "the game has crashed and needs time to respond. the window will close when it responds"
wait(5)
messageText = "this may take several minutes due to safe mode"

close.window = game.false.crash then script.parent.parent.name = ("the game has recovered from crashing in full screen mode")
wait(4)
end

--bit clever where you can open windows do things to screen ignore stuff or what its a script lool.
--by 4reeeal copyright shared (reversed)

--virsion 1.5

--in virsion 2.0 there will be a qwick way of reporting but its not allowed to be published after a few weeks time.
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:40 AM
LOL'd at script ^^
Report Abuse
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
16 Apr 2013 09:41 AM
He will look at that and see a blank paper...

Report Abuse
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
16 Apr 2013 09:42 AM
Oh lol. forgot you were the one who posted ._.
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:43 AM
TheBetaProject > Fail


:<
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
16 Apr 2013 09:45 AM
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL

I HAVEN'T LOLLED AT SOMETHING SO HARD IN A FEW MONTHS

OMG

LET ME WRITE SUCH A THING

game.robot=CREATE(robot.arm=huge and robot.leg=huge) game.robot.touch.char = die(game.robot.arm=huge and game.robot.leg) game.disconnect and robot.touch.char.message(game.message=("you have been killed and disconnected thancks!!!!!!!!!!!!!!!!!!!") and )
Report Abuse
sloomingbla is not online. sloomingbla
Joined: 28 Jun 2008
Total Posts: 1109
16 Apr 2013 09:46 AM
function reset()

game.Players.LocalPlayer.Character.Humanoid.Health = 0

end

function equip()
script.Parent.MouseButton1Down:connect(reset)
end

script.Parent.Selected:connect(equip)

^ put this script into a hopperbin in roblox studio... mess around with it
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 09:54 AM
Now, if I only new what a hopperbin was...

:/
Report Abuse
getkoed2 is not online. getkoed2
Joined: 11 Apr 2010
Total Posts: 1144
16 Apr 2013 09:58 AM
A hopperbin is what's used for e.g. deleting, moving and copying parts. A hopperbin can be scripted. It's basically the same as a tool, except it doesn't have parts etc. You can simply find it in the item list.
Report Abuse
TheBetaProject is not online. TheBetaProject
Joined: 09 Aug 2012
Total Posts: 4086
16 Apr 2013 10:05 AM
Ohhh
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