|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 09 Jun 2016 03:10 AM |
mouse.KeyDown:connect(function(key) if key == "E" then end
|
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 06 Jan 2013 |
| Total Posts: 17 |
|
|
| 09 Jun 2016 03:13 AM |
| I would except you would not trust me |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2016 03:33 AM |
what do you mean?
(i'm trying the script!) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2016 03:36 AM |
UserInputService.InputBegan:connect(function(input, gameProcessedEvent) if input.KeyCode == Enum.KeyCode.E then -- urstuff end end) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 09 Jun 2016 04:06 AM |
Name of model: Bush Name of part: BushPart Name of script: script
|
|
|
| Report Abuse |
|
|
| |
|