DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 24 Sep 2015 06:39 PM |
I have a button that changes the camera when you either click it or press TAB... There is probably a more efficient way, but I'm currently spacing out. (Also it doesn't work, but it probably is some stupid mistake)
local clicked = false local camera = 0 function customize() if clicked == false then clicked = true script.Parent.Text = "X (Press Tab To Change)" game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson game.Players.LocalPlayer.PlayerGui.Shoulder.Disabled = true camera = 1 else clicked = false script.Parent.Text = "" game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic game.Players.LocalPlayer.PlayerGui.Shoulder.Disabled = false camera = 0 end end
player = game.Players.LocalPlayer mouse = player:GetMouse()
mouse.KeyDown:connect(function(key) if key:byte() == 9 then --spacebar is 32 if camera == 0 then print("Changing Camera") script.Parent.Text = "X (Press Tab To Change)" game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson game.Players.LocalPlayer.PlayerGui.Shoulder.Disabled = true camera = 1 elseif camera == 1 then script.Parent.Text = "" game.Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic game.Players.LocalPlayer.PlayerGui.Shoulder.Disabled = false camera = 0 end end end)
script.Parent.MouseButton1Click:connect(customize) |
|
|
| Report Abuse |
|
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
| |
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|
| |
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
|
| 24 Sep 2015 09:37 PM |
A Sword Fighting game for a group, I have no game ideas ATM. If you'd be interested in working on a game, let me know! :) I'd like to |
|
|
| Report Abuse |
|
|
| |
|
DevSyntax
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 1643 |
|
| |
|