generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Cooking

Previous Thread :: Next Thread 
OliJnr is not online. 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
ReallyExpensive is not online. ReallyExpensive
Joined: 01 Apr 2013
Total Posts: 951
14 Oct 2017 04:30 PM
send us your code so we can help you
Report Abuse
OliJnr is not online. 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
nextgenplatform is not online. nextgenplatform
Joined: 27 Feb 2017
Total Posts: 797
14 Oct 2017 04:33 PM
I'll help you out in a sec.
Report Abuse
ReallyExpensive is not online. ReallyExpensive
Joined: 01 Apr 2013
Total Posts: 951
14 Oct 2017 05:01 PM
I'm personally here to help you, not to do it all for you
Report Abuse
nextgenplatform is not online. nextgenplatform
Joined: 27 Feb 2017
Total Posts: 797
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
ReallyExpensive is not online. ReallyExpensive
Joined: 01 Apr 2013
Total Posts: 951
14 Oct 2017 05:06 PM
you shouldve added wiki links so he could read more
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image