aaaaaaaaaaaaaaasfasjfasiofjiowjqiojtiqwitjwqiotqjoigjagss
20 chars
Anyway I took a little time and wrote the following code. It is pretty basic and straightforward.
-- Declaration Section local player = game:GetService("Players").LocalPlayer local userInputService = game:GetService("UserInputService") local status = "Third" -- Processing Section userInputService.InputBegan:Connect(function(key, gameProcessedEvent) if not gameProcessedEvent then if key.KeyCode == Enum.KeyCode.V then if status == "Third" then print ("Changing to First Person Mode!") player.CameraMode = "LockFirstPerson" player.CameraMaxZoomDistance = 0.5 print ("First Person Mode Initialized!") status = "First" else print ("Reverting to Third Person Mode!") player.CameraMode = "Classic" player.CameraMaxZoomDistance = 400 player.CameraMinZoomDistance = 15 print ("Third Person Mode Initialized!") status = "Third" end end end end)
local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(key,gameProc) if not gameProc then if key.KeyCode == Enum.KeyCode.V then --do code end end end)
Closed as Not Constructive by Leamir, theCJarmy7, and TheeDeathCaster
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?