OliJnr
|
  |
| Joined: 31 May 2016 |
| Total Posts: 36 |
|
|
| 14 Oct 2017 04:23 PM |
So, I would like a system so that if you walk near the oven you spam e key and after pressing e key fi ve times you will gain a coin coins in are in the game on the playerlist.
Ollie |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 04:30 PM |
| send us your code so we can help you |
|
|
| Report Abuse |
|
|
OliJnr
|
  |
| Joined: 31 May 2016 |
| Total Posts: 36 |
|
|
| 14 Oct 2017 04:31 PM |
I don't have a code, I don't know how to do it.
Ollie |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 04:33 PM |
| I'll help you out in a sec. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 05:01 PM |
| I'm personally here to help you, not to do it all for you |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 05:05 PM |
mouse = game.Players.LocalPlayer:GetMouse()
game.Players.PlayerAdded:Connect(function(player) leaderstats = Instance.new('IntValue', player) currency = Instance.new('IntValue', leaderstats) currency.Name = 'Coins' game.Workspace.Part.Touched:Connect(function(obj) local db = false while obj:IsA('BasePart') and not db do mouse.KeyDown:Connect(function(key) if key == string.lower('e') then for i=5,0,-1 do print('key pressed') if i == 0 then mouse.KeyUp:Connect(function(key) currency.Value = currency.Value + 25 db = true end) end end else print('wrong key') end end) end db = false end) end)
|
|
|
| Report Abuse |
|
|
|
| 14 Oct 2017 05:06 PM |
| you shouldve added wiki links so he could read more |
|
|
| Report Abuse |
|
|