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: how to script controles?

Previous Thread :: Next Thread 
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 02:24 AM
how do i script a function when i press "E" i want to make a bush with barries that you can pick up.

If you can help me that would be awesome!
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 02:35 AM
here's the game if you want to see it!
https://www.roblox.com/games/429528483/Project-Ark
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
09 Jun 2016 03:06 AM
I thought I was supposed to help to fix the mistakes you did to the script, but turns out, no script.


Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 03:08 AM
I only want to know the "E" Thing Then I Try it my self and i come back with a script even its working!
Report Abuse
ralleybrodey is not online. ralleybrodey
Joined: 15 May 2013
Total Posts: 2221
09 Jun 2016 03:10 AM
mouse.KeyDown:connect(function(key)
if key == "E" then

end


Report Abuse
Guard223 is not online. Guard223
Joined: 06 Jan 2013
Total Posts: 17
09 Jun 2016 03:10 AM
I would try to accept I g2g and u won't trust me building there
Report Abuse
Guard223 is not online. Guard223
Joined: 06 Jan 2013
Total Posts: 17
09 Jun 2016 03:13 AM
I would except you would not trust me
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 03:33 AM
what do you mean?

(i'm trying the script!)
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
09 Jun 2016 03:36 AM
UserInputService.InputBegan:connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.E then
-- urstuff
end
end)
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 03:41 AM
mouse.KeyDown:connect(function(key)
wait(0,1)
script.Parent.BushPart.Transparency= 1
end)
if key == "E" then

do i do it wrong?
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 03:46 AM
UserInputService.InputBegan:connect(function(input, gameProcessedEvent)
wait(0,1)
script.Parent.BushPart.Transparency= 1
if input.KeyCode == Enum.KeyCode.E then
-- urstuff
end
end)

this doesn't work to :(

How did you guys leurn scripting?
Report Abuse
ScorpNation is not online. ScorpNation
Joined: 19 Jan 2014
Total Posts: 24
09 Jun 2016 03:57 AM
Mate this may help a little more :/

UserInputService.InputBegan:connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.E then

script.Parent.BushPart.Transparency= 1

end
end)
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 04:03 AM
UserInputService.InputBegan:connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.E then

script.Parent.BushPart.Transparency= 1

end
end)

Where do i have to put this script i put it in the model but it didn't work when I press "E" Do i have to make a tool?
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 04:06 AM
Name of model: Bush
Name of part: BushPart
Name of script: script
Report Abuse
rutgerboy1 is not online. rutgerboy1
Joined: 24 Apr 2013
Total Posts: 21
09 Jun 2016 06:54 AM
can some one help me?
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