aaaaaaaaaaaaaaasfasjfasiofjiowjqiojtiqwitjwqiotqjoigjagss
20 chars
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)
People also don't like it when people just request what they want, and have a filler description, with no attempt at trying anything out for themselves at all.
^ Yes my guy.
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
There is no effort put into your question, so I will put no effort into answering it for you.
https://scriptinghelpers.org/blog/posting-good-questions-and-answers-on-scripting-helpers
diz queztion hurtz ;C u hurtz my feelingz ;-;
To be serious, please put some effort in. We're human too; we're not bots.