sleaj
|
  |
| Joined: 18 Dec 2016 |
| Total Posts: 1063 |
|
|
| 01 Nov 2017 04:10 PM |
example:
you got 50 kills, get a new sword |
|
|
| Report Abuse |
|
|
sleaj
|
  |
| Joined: 18 Dec 2016 |
| Total Posts: 1063 |
|
| |
|
Wrathoxic
|
  |
| Joined: 29 May 2013 |
| Total Posts: 1950 |
|
|
| 01 Nov 2017 04:15 PM |
LevelValue = Where.Ever.Your.IntValue.For.Kills.Is
LevelValue.Changed:Connect(function() if LevelValue.Value == 50 then --Do stuff if it's 50 end end)
|
|
|
| Report Abuse |
|
|
sleaj
|
  |
| Joined: 18 Dec 2016 |
| Total Posts: 1063 |
|
| |
|
Wrathoxic
|
  |
| Joined: 29 May 2013 |
| Total Posts: 1950 |
|
| |
|
|
| 01 Nov 2017 04:26 PM |
Hmm.. Really can't explain this to you but how about this. weapon is meant to be the path where the folder is e.g game.ReplicatedStorage.Weapon
I'm imagining you're not working with FE so here's as simple as it gets...
stat.Changed:connect(function(value) if value == 50 then local weapon = weapon:Clone() weapon.Parent = game.Players.LocalPlayer.Backpack end end)
|
|
|
| Report Abuse |
|
|