|
| 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
|
  |
| 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
|
  |
| Joined: 13 Oct 2011 |
| Total Posts: 6139 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|