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 don't get this...

Previous Thread :: Next Thread 
Masterlet is not online. Masterlet
Joined: 30 Jun 2011
Total Posts: 648
04 Sep 2012 06:57 PM
I don't get this script...

the script:

--[[ Hi there! Today I shall show you how to create your very own RPG. This very smallkit can turn an empty base plate into a massive RPG!
First off, Ungroup RPG Kit and put ResetGUI into the "StarterGUI" in Workspace. Then, put Sword into Starterpack and change it's damage. Now, lets begin starting with the
leaderboard.

--{LEADERBOARD}--
Open up "RPG Script" and look at line 2 and 3.
You will see the number 25. Change the number 25 on line 2 to how much experience
you need to level up the first time. Then, on line 3 change 25 to how much experience
is added each level. Then, look at line 50, 54, and 58. There you see the names of
the leaderstats. Dont touch it unless you know what you are doing.
Anyways, go to line 51, 55, and 59. These are the values of your stats.
LEAVE Level alone. If it is 0 your RPG will crash and stop working. Change
the value of gold on line 59 to any amount you wish. Now, you are done with the leaderstats.
Read LEADERBOARD instructions again if you did not understand something.

--{AI ENEMY}--
Of course, what kind of RPG will this be if it doesnt have any enemies? Thats right! You must create one!
Open up "AI Enemy" and look at it's contents. First off, look at the value of "Damage" Change it to
your desired amount of damage. Then, open up "Statgive" script and look at line 10. Look for
"+ 1" and change the 1 to how much money your enemy will give to you when you pwn it.
Do you same for experience on line 29. Now, we must DECORATE your NPC. Color it's body parts to
what you want and the sword, you can delete it for a hand combat AI or recolor it OR give it a texture.
Now, go to "Enemy" humanoid. Set it's health and walkspeed to as much you want.
Now, go to "Follow" and look at line 7. Change that number 20 to how far your NPC will target you.
Whalla! Your NPC is finished! Time to move onto the shop system.

--{SHOP}--
Before we start your adventure, you need to be able to buy items from a shop.
Open up "[BronzeSword] (10G)" which is a buy button and go to its script.
Look at line 23 and 24. Those lines indicate how much money you will spend for that particular item.
Change them to what you want to buy an item. My bronzesword is for 10 Gold. Change to how much it cost.
Then, on line 26 there is the name of "BronzeSword" Look for it and change it to the EXACT name of
your weapon. Now, you are done with the button, time to design the weapon.
Find the tool"BronzeSword" and change its name to whatever you wish and make sure it matches the name
of the tool in ShopScript in the buy button on line 26. Then give a texture or color, reflectance, trans, or whatever
to the tool's handle. Then, go to your tool and open up its sword script. Change the damage of slash and lunge. Thats it
DO NOT touch anything else. After that, drop your shop tool into lighting and you are set!

You arent done yet! You need to get your level door!

--{LEVEL PASSAGE}--
Open up "Level door" and look at line 22. Change 3 to your level needed to access the door.

Now that that is done, we shall make enemies DROP items! How exciting!

--{ITEM DROPS}--
Open up your AI Enemy and look at the "Drop" script and open it.
In this case I have made the drop an Apple, which is right at your NPC's feet. Change the "Apple" on line 2
to the name of your drop. Then close the script and open up the tool "Apple" and decorate it.
Rename the Apple to the name of your Drop in the NPC and then resize, remesh, make it perform something else, recolor, or whatever
then drop it in lighting. If you did this right when you kill your NPC in solo or online it should appear right next to your enemy!

Great! Now you are ready to build your RPG! Go now, build! I await great adventures from you!
-KB9 =)

and I am at item drops..

there are no tutorials on how to make a enemy drop something.

and here's the drop script inside the AI Enemy

Drop script:

function Drop()
local drops = {""}
local G = math.random(1, 1)
local Obj = game.Lighting:findFirstChild(drops[G]):Clone()
Obj.Parent = game.Workspace
Obj.Handle.CFrame = script.Parent.Head.CFrame + Vector3.new(5,2,0)
script:remove()
end


while true do
wait(.1)
if (script.Parent.Enemy.Health <1) then
Drop()
end
end
Report Abuse
IFailuFail is not online. IFailuFail
Joined: 22 Mar 2011
Total Posts: 2117
04 Sep 2012 06:59 PM
WHERE DO I DOWNLOAD EDIT STUDIO FOR ROBLOXXXXXXX
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
04 Sep 2012 07:01 PM
SHUT UP!

~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions!
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
04 Sep 2012 07:10 PM
@Ifail
ugh
LMaD'er
Report Abuse
Masterlet is not online. Masterlet
Joined: 30 Jun 2011
Total Posts: 648
05 Sep 2012 05:12 PM
No one is helping me. D:
Report Abuse
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
05 Sep 2012 05:14 PM
/facepalm
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Sep 2012 05:14 PM
u dont get how to make a leaderboard?
and roblox studio comes when u download roblox -.-


C:\Program Files (x86)\Roblox << If Computer Is x64
C:\Program Files\Roblox << If Computer Is x86/32
Report Abuse
Masterlet is not online. Masterlet
Joined: 30 Jun 2011
Total Posts: 648
05 Sep 2012 05:15 PM
nope, I don't get how to make a enemy drop an item.
Report Abuse
lIlllIlIlIlIlIlIIIlI is not online. lIlllIlIlIlIlIlIIIlI
Joined: 01 Sep 2012
Total Posts: 54
05 Sep 2012 05:17 PM
@ODER R U STUPID??
C:\Program Files (x86) IS FOR 32 BIT PROGRAMS ONLY
C:\Program Files IS FOR 64 BIT PROGRAMS ONLY, ONLY CONAIN 64 BIT ELSE THE 16 BIT FOLDER WOULD BE USELESS

Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Sep 2012 05:17 PM
lol insert a brick in enemy's head

and:

function Death()
c = Location["Head"]:GetChildren()
for i = 1, #c do
c[i].Parent = game.Workspace
end
end

while true and wait() do
if Location["Humanoid"].Health < 1 then
Death()
end
end


For Location, Put Where The Enemy Is Located
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Sep 2012 05:18 PM
lol i mixed up the bits.


C:\Program Files (x86)\Roblox << If Computer Is x86/32
C:\Program Files\Roblox << If Computer Is x64

^Correct :( Fail Me, i should spend more time typing but its not worth it
Report Abuse
lIlllIlIlIlIlIlIIIlI is not online. lIlllIlIlIlIlIlIIIlI
Joined: 01 Sep 2012
Total Posts: 54
05 Sep 2012 05:20 PM
[ Content Deleted ]
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Sep 2012 05:22 PM
lolmad?

cuz u cant make a simple poop script?

lol k, its alright
Report Abuse
lIlllIlIlIlIlIlIIIlI is not online. lIlllIlIlIlIlIlIIIlI
Joined: 01 Sep 2012
Total Posts: 54
05 Sep 2012 05:23 PM
NO CUS IM NOT U I CAN ONLY MAKE COMPLEX POOP SKRIPTS
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
05 Sep 2012 05:26 PM
lol rage more ;p
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
05 Sep 2012 05:43 PM
XD.

~http://www.roblox.com/Forum/ShowPost.aspx?PostID=77422811~ To answer your FPS questions!
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
09 Sep 2012 12:50 PM
Wow, there is a way better way of making the level experience:

level(x) =

∞
∑ 5*n+5
n=0

= 2.5*(x^2+3*x)
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
09 Sep 2012 01:25 PM
@Bunny
That made no sense.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
09 Sep 2012 02:41 PM
Lol, mama, for a second I thought you meant me... I'm like what the heck did I say?

http://www.roblox.com/Build-N-Battle-place?id=91005545 - Play it, love it
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
09 Sep 2012 02:54 PM
@mama

Yes it does. You just don't understand it.
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
09 Sep 2012 03:51 PM
@Bunny
level(x) = --Well, what is this...??

∞ --Infinity?
∑ 5*n+5 --Something 5*n+5, if this was a programming language, then it'd say n was nil, unless ∑ did something about it, which I'm pretty sure that's a math term, so...
n=0 --N = 0, simple

= 2.5*(x^2+3*x) --All the stuff = 2.5 times (x to the power of 2+3 times x)

Am I right?
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
09 Sep 2012 04:43 PM
You obviously don't know what summation is.
Report Abuse
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
09 Sep 2012 05:44 PM
Wanna know how to remove trolls from games?
function trolololo()
game.Workspace.lIlllIlIlIlIlIlIIIlI.remove:
end
script.Parent.MouseButtonDown1.connect:(trolololo)

Put this in a GUI so anyone can remove: this troll
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
09 Sep 2012 05:46 PM
@mamaguy

what he's referring to is some basic pre-calculus material. it's okay if you don't understand :P

¬ Scripter Tier-2, LuaLearners Elite ♣ scripting teacher/freelance worker ♣ send me trade requests!
Report Abuse
blindbird17 is not online. blindbird17
Joined: 23 Jan 2012
Total Posts: 1027
09 Sep 2012 05:52 PM
oops i mean remove:()
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