Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local UIS = game:GetService("UserInputService")
- local flickEnabled = true
- local function flickCamera90Degrees()
- local currentCam = workspace.CurrentCamera
- local initialPos = currentCam.CFrame.Position
- local initialRot = currentCam.CFrame - initialPos
- currentCam.CFrame = CFrame.new(initialPos) * CFrame.Angles(0, math.rad(90), 0) * initialRot
- end
- local function flickCameraBack90Degrees()
- local currentCam = workspace.CurrentCamera
- local initialPos = currentCam.CFrame.Position
- local initialRot = currentCam.CFrame - initialPos
- currentCam.CFrame = CFrame.new(initialPos) * CFrame.Angles(0, math.rad(-90), 0) * initialRot
- end
- local function flickCameraSequence()
- flickCamera90Degrees()
- wait(0.03)
- flickCameraBack90Degrees()
- end
- UIS.InputBegan:Connect(function(input, processed)
- if not processed and input.KeyCode == Enum.KeyCode.E then
- if flickEnabled then
- flickCameraSequence()
- end
- end
- end)
- UIS.TouchTap:Connect(function(touchPositions, inputState, inputObject)
- if inputState == Enum.UserInputState.Begin then
- if flickEnabled then
- flickCameraSequence()
- end
- end
- end)
Advertisement
Comments
-
- man this is my script what the hell im not lying u can click on my profile and check
Add Comment
Please, Sign In to add comment
Advertisement