|
| 20 Oct 2016 04:51 PM |
| I need help with a script that basically control a brick with "wasd". I just need it to move like left, right and up/jump. Kinda like its in 2d. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:53 PM |
1) User Input Service 2) CFrame or UDim2 or body movers |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 20 Oct 2016 04:54 PM |
uis.InputBegan:connect(function(input,event) if event then return end local key,enum = input.KeyCode,Enum.KeyCode if key == enum.W then --cframe elseif key == enum.A then --cframe elseif key == enum.S then --cframe elseif key == enum.D then --cframe end end)
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 05:08 PM |
| Im getting told the Uis is unknown. |
|
|
| Report Abuse |
|
|
X41N
|
  |
| Joined: 04 Sep 2016 |
| Total Posts: 7 |
|
|
| 20 Oct 2016 05:21 PM |
| uis is short for userinputservice |
|
|
| Report Abuse |
|
|