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 need a script. >.>

Previous Thread :: Next Thread 
AncientArtifacts is not online. AncientArtifacts
Joined: 09 Oct 2012
Total Posts: 29
11 Oct 2012 06:02 PM
Basically, the script I need (Which I've scanned free models for.. ._.) Is a level up script. I need the players in my game to level up every few kills. After they level up, it unlocks a door with another kind of sword inside. I'm not sure if you'll get the concept, so I'll make an example.

-EXAMPLE-
Say I was fighting, and I reached level 10, and there are doors from Level 5 - 60. I would be able to access doors 5, 6, 7, 8, 9, and 10 but not the rest until I reach the required level.. I'm bad at explaining things, so I hope you get the basics of what I need. If you could, could you maybe link me to an existing script like this that's editable? I'd be most grateful! Thanks!

-Artifacts.
Report Abuse
ToonU is not online. ToonU
Joined: 15 Aug 2011
Total Posts: 6303
11 Oct 2012 06:23 PM
Hah, were not your slaves.

learn to script yourself... :O
Report Abuse
iPwnza is not online. iPwnza
Joined: 13 Oct 2011
Total Posts: 6139
11 Oct 2012 06:31 PM
GET OUT
Report Abuse
AncientArtifacts is not online. AncientArtifacts
Joined: 09 Oct 2012
Total Posts: 29
12 Oct 2012 02:18 AM
I simply asked for some sort of download link to an existing script that someone may have known of. Wow, what happened to Roblox being a "Helpful" community? hah.

-Artifacts.
Report Abuse
Koolguy520 is not online. Koolguy520
Joined: 18 Aug 2008
Total Posts: 122
12 Oct 2012 03:27 AM
Eh, mind as well.

Add a int value to the player's char or if you already have it in the leader board skip this step. "Make sure its named Level"

Add another int value to the actual player named Kills.

For the weapon, there should be some kind of tag for the name.

In each enemy, add a "IsEnemy" boolean value, and set it to true.

When a weapon kills, make sure that it makes a string value named "Tag" and its value set to the person who killed its name.

So add this script to the workspace character:

function Wait(lng, wfor)
for i=1,lng do
if wfor ~= nil then
return true
end wait(1) end end
function WFT()
pl = Workspace:GetChildren()
for i = 1,#pl do
if pl[i].IsEnemy.Value == true then
if Wait(5, pl[i].Tag) then
return pl[i]
end end end end
while true do wait()
WF = WFT()
while WF ~= nil do wait()
if WF.Name = script.Parent.Name then
pl = game.Players:GetPlayerFromCharacter(script.Parent)
pl.Kills = pl.Kills + 1
end
wait(1)
end
end


I havent tested this, may have missed an end or two. May have some errors. You should be able to figure out the enemy's script. I prolly shouldnt be posting a script for you, but oh well. Needed something to do.
Report Abuse
AncientArtifacts is not online. AncientArtifacts
Joined: 09 Oct 2012
Total Posts: 29
12 Oct 2012 11:54 AM
I'll see what I can do with this coding, and I'll see if I can learn a bit of LUA while I'm at it. I appreciate it! Thanks! :) x

-Artifacts.
Report Abuse
BigFatTerminator is not online. BigFatTerminator
Joined: 11 Oct 2010
Total Posts: 1405
12 Oct 2012 12:56 PM
Btw, it's "Lua" not "LUA" because it isn't an acronym.
just saying :3

Sincerely, me
Report Abuse
AncientArtifacts is not online. AncientArtifacts
Joined: 09 Oct 2012
Total Posts: 29
12 Oct 2012 04:17 PM
Ah, thanks for the correction. :3 I'll be sure not to make the same mistake!

-Artifacts.
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