|
| 23 Sep 2014 03:30 PM |
A script where there is a int. value, and for every kill, there is a GUI which records your kill/point, but if the other kill gets a team, the point is taken away, and so on and so on.
So, let's say I had to edit the leaderboard script so for every kill on a specific team, it'd add +1 onto the specified team's value, and for every death, it'd take -1 away from it, and then the GUI would get the value and it'd change the text.
I know this is possible, but I don't know where to start, and could I start a new script to record the kill point thing, or would it have to be in the leaderboard?
What should I look into on wiki. to help me understand starting this script? |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 03:31 PM |
| Or I can just design it so it isn't in the leaderboard script, but it rather records your kills, but it doesn't display on the leaderboard, and for every kill, it'd be a +1 point, similar to a level system I started and almost finished yesterday. |
|
|
| Report Abuse |
|
|
| |
|
|
| 23 Sep 2014 03:54 PM |
Step 1: Create script Step 2: Write code Step 3: ??????? Step 4: profit
"Et tu, Brute? Then fall, Caesar." - Julius Caesar |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 04:09 PM |
Just make the weapon add 1 point to the tool holder's team.
Also, why would you need to subtract from the other team's points? Seems pretty pointless. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 04:21 PM |
raid system it's designed so a team would have to throw themselves ahead by 50 points lol |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2014 04:28 PM |
i'm curious as of how to add and subtract a number in a value
|
|
|
| Report Abuse |
|
|
Sinblade
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 2782 |
|
|
| 23 Sep 2014 04:33 PM |
local value = [Wherever value is located]
value = value - 1 |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 23 Sep 2014 04:35 PM |
Value = Value - 1 Like that. Alternatively, if it is a default Roblox value type then it's Value.Value |
|
|
| Report Abuse |
|
|
PlumJar
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 907 |
|
|
| 23 Sep 2014 04:39 PM |
Make it so that the raiders have a different sword than the defenders.
The defenders' swords change the Int Value to Value = Value + 1
The raiders' swords change the Int Value to Value = Value - 1
Put a Gui in the StarterGui with a Frame+TextLabel
Then you could do
game.Workspace.Value.Changed:Connect(function(lasdsds) ---I forgot how to write this part, but you know what I mean
script.Parent.Text = ""..game.Workspace.Value.."
end |
|
|
| Report Abuse |
|
|