Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This just applies an impulse to the vehicle’s LookVector, you have to use the nitrous to activate it.
- local UserInputService = game:GetService("UserInputService")
- local GuiService = game:GetService("GuiService")
- local LocalPlayer = game:GetService("Players").LocalPlayer
- game:GetService("RunService").Stepped:Connect(function()
- if GuiService.MenuIsOpen then
- return
- end
- if workspace.CurrentCamera.CameraSubject:IsDescendantOf(LocalPlayer.Character) then
- return
- end
- if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
- workspace.CurrentCamera.CameraSubject:ApplyImpulse(
- workspace.CurrentCamera.CameraSubject.CFrame.LookVector * Vector3.new(1e3, 1e3, 1e3)
- )
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement