| |
|
|
| 18 Oct 2013 05:28 PM |
| Because you put the l part INSIDE the if statement for the k part. Which means the l statement will never be reached unless you press k, in which case you are not pressing l in the event. Use elseif(key=='l') and remove one of the ends to fix it up. |
|
|
| Report Abuse |
|
|
| |
|
spikey490
|
  |
| Joined: 06 Oct 2008 |
| Total Posts: 229 |
|
|
| 18 Oct 2013 05:40 PM |
local Player=game.Players.LocalPlayer local mouse=Player:GetMouse() local function rtKeyDown(key) print('Key down event: ',key,string.byte(key)) if(key=='k')then Player.CameraMode='LockFirstPerson' print('Key down event:',key,string.byte(key)) elseif(key=='l')then Player.CameraMode='Classic' end end
mouse.KeyDown:connect(rtKeyDown) |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2013 05:41 PM |
I just told you how to fix the script. :/
Use elseif(key=='l') and delete one of the ends. |
|
|
| Report Abuse |
|
|