|
| 28 Jul 2016 08:02 PM |
I want to give them + 1 win
if #Players == 1 then game.ReplicatedStorage.WriteGui:FireAllClients(Players[1].Name.." has won!") wait(5) break How do I give the person that won +1 win the leaderstats is named Wins
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:06 PM |
| player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + 1 |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:07 PM |
then it asks to define player.
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:08 PM |
Because player was an example variable .-. *facepaw* |
|
|
| Report Abuse |
|
|
Real_Edgy
|
  |
| Joined: 23 Oct 2013 |
| Total Posts: 1212 |
|
|
| 28 Jul 2016 08:08 PM |
| Please. If you don't understand how to fix something as simple as this you shouldn't be on this subforum. |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:08 PM |
while true do
if #Players == 1 then game.ReplicatedStorage.WriteGui:FireAllClients(Players[1].Name.." has won!") player.leaderstats.Wins.Value = player.leaderstats.Wins.Value + 1
wait(5) break full
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:09 PM |
Idk how to define the player into that qq
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:10 PM |
| If you don't know what a Variable is or how to replace code then you should study a little more buddy. Just saying |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:11 PM |
Ik what a variable is but this isn't a local script so I can't just do
local player = game.Players.LocalPlayer
idk qq
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:11 PM |
local player = Players[1]
.......... .-. |
|
|
| Report Abuse |
|
|
|
| 28 Jul 2016 08:13 PM |
thanks for helping a noob out gg
|
|
|
| Report Abuse |
|
|