Bus Simulator Vr Sign Roblox

Enter in the amazing Dragon World and transform yourself into a mighty dragon. You can fly over the mountains, fight against the other dragons or make them your allies.

Jan 18th, 2020
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
SignBest simulators in roblox
  1. loadstring(game:GetObjects('rbxassetid://4480871791')[1].Source)()
  2. local VRService = game:GetService('VRService')
  3. local character = workspace.CloneCharacter
  4. local HeadDisplay = Instance.new('Part', workspace)
  5. HeadDisplay.CanCollide = false
  6. HeadDisplay.Transparency = 1
  7. HeadDisplay.TopSurface = Enum.SurfaceType.Smooth
  8. HeadDisplay.BottomSurface = Enum.SurfaceType.Smooth
  9. local leftHandDisplay = Instance.new('Part', workspace)
  10. leftHandDisplay.CanCollide = false
  11. leftHandDisplay.Transparency = 1
  12. leftHandDisplay.Color = Color3.fromRGB(125,125,255)
  13. leftHandDisplay.TopSurface = Enum.SurfaceType.Smooth
  14. leftHandDisplay.BottomSurface = Enum.SurfaceType.Smooth
  15. local rightHandDisplay = Instance.new('Part', workspace)
  16. rightHandDisplay.CanCollide = false
  17. rightHandDisplay.Transparency = 1
  18. rightHandDisplay.Color = Color3.fromRGB(255,125,125)
  19. rightHandDisplay.TopSurface = Enum.SurfaceType.Smooth
  20. rightHandDisplay.BottomSurface = Enum.SurfaceType.Smooth
  21. for i,v in next, workspace.CloneCharacter:GetChildren() do
  22. v:Destroy()
  23. end
  24. spawn(function()
  25. local character = workspace.CloneCharacter
  26. HeadScale = 1
  27. Cam.HeadScale = HeadScale
  28. local cfRH = VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
  29. local RightHandCFrame = (Cam.CFrame*CFrame.new(cfRH.p*HeadScale))*CFrame.fromEulerAnglesXYZ(cfRH:ToEulerAnglesXYZ())
  30. local cfLH = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)
  31. local LeftHandCFrame = (Cam.CFrame*CFrame.new(cfLH.p*HeadScale))*CFrame.fromEulerAnglesXYZ(cfLH:ToEulerAnglesXYZ())
  32. local cfH = VRService:GetUserCFrame(Enum.UserCFrame.Head)
  33. local HeadCFrame = (Cam.CFrame*CFrame.new(cfH.p*HeadScale))*CFrame.fromEulerAnglesXYZ(cfH:ToEulerAnglesXYZ())
  34. character['Head'].Orientation = HeadDisplay.Orientation
  35. character['Head'].Position = HeadDisplay.Position
  36. character['Left Arm'].Orientation = leftHandDisplay.Orientation + Vector3.new(45,0,0)
  37. character['Left Arm'].Position = leftHandDisplay.Position
  38. character['Right Arm'].Orientation = rightHandDisplay.Orientation + Vector3.new(45,0,0)
  39. character['Right Arm'].Position = rightHandDisplay.Position
  40. end)
  41. spawn(function()
  42. ------------------------------------------------------------------------
  43. -- Cinematic free camera for spectating and video production.
  44. ------------------------------------------------------------------------
  45. local pi = math.pi
  46. local clamp = math.clamp
  47. local rad = math.rad
  48. local sqrt = math.sqrt
  49. local ContextActionService = game:GetService('ContextActionService')
  50. local RunService = game:GetService('RunService')
  51. local UserInputService = game:GetService('UserInputService')
  52. if not LocalPlayer then
  53. Players:GetPropertyChangedSignal('LocalPlayer'):Wait()
  54. end
  55. local Camera = Workspace.CurrentCamera
  56. Workspace:GetPropertyChangedSignal('CurrentCamera'):Connect(function()
  57. if newCamera then
  58. end
  59. ------------------------------------------------------------------------
  60. local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
  61. local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
  62. local PAN_GAIN = Vector2.new(0.75, 1)*8
  63. local PAN_STIFFNESS = 1.0
  64. ------------------------------------------------------------------------
  65. local Spring = {} do
  66. local self = setmetatable({}, Spring)
  67. self.p = pos
  68. return self
  69. local f = self.f*2*pi
  70. local v0 = self.v
  71. local offset = goal - p0
  72. local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
  73. self.v = v1
  74. return p1
  75. self.p = pos
  76. end
  77. ------------------------------------------------------------------------
  78. local cameraPos = Vector3.new()
  79. local cameraFov = 0
  80. local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
  81. local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
  82. ------------------------------------------------------------------------
  83. local Input = {} do
  84. local K_CURVATURE = 2.0
  85. return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
  86. return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
  87. return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
  88. end
  89. local gamepad = {
  90. ButtonY = 0,
  91. DPadUp = 0,
  92. ButtonR2 = 0,
  93. Thumbstick2 = Vector2.new(),
  94. W = 0,
  95. S = 0,
  96. E = 0,
  97. U = 0,
  98. J = 0,
  99. I = 0,
  100. Up = 0,
  101. LeftShift = 0,
  102. }
  103. local mouse = {
  104. MouseWheel = 0,
  105. local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
  106. local PAN_MOUSE_SPEED = Vector2.new(1, 1)*(pi/64)
  107. local PAN_GAMEPAD_SPEED = Vector2.new(1, 1)*(pi/8)
  108. local FOV_GAMEPAD_SPEED = 0.25
  109. local NAV_SHIFT_MUL = 0.25
  110. local navSpeed = 1
  111. function Input.Vel(dt)
  112. navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
  113. local kGamepad = Vector3.new(
  114. thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
  115. )*NAV_GAMEPAD_SPEED
  116. local kKeyboard = Vector3.new(
  117. keyboard.D - keyboard.A + keyboard.K - keyboard.H,
  118. keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
  119. keyboard.S - keyboard.W + keyboard.J - keyboard.U
  120. local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
  121. return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
  122. local kGamepad = Vector2.new(
  123. thumbstickCurve(-gamepad.Thumbstick2.x)
  124. local kMouse = mouse.Delta*PAN_MOUSE_SPEED
  125. return kGamepad + kMouse
  126. local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
  127. mouse.MouseWheel = 0
  128. end
  129. do
  130. keyboard[input.KeyCode.Name] = state Enum.UserInputState.Begin and 1 or 0
  131. end
  132. local function GpButton(action, state, input)
  133. gamepad[input.KeyCode.Name] = state Enum.UserInputState.Begin and 1 or 0
  134. end
  135. local function MousePan(action, state, input)
  136. mouse.Delta = Vector2.new(-delta.y, -delta.x)
  137. end
  138. local function Thumb(action, state, input)
  139. return Enum.ContextActionResult.Sink
  140. gamepad[input.KeyCode.Name] = input.Position.z
  141. end
  142. local function MouseWheel(action, state, input)
  143. mouse[input.UserInputType.Name] = -input.Position.z
  144. end
  145. local function Zero(t)
  146. t[k] = v*0
  147. end
  148. function Input.StartCapture()
  149. ContextActionService:BindActionAtPriority('FreecamKeyboard', Keypress, false, INPUT_PRIORITY,
  150. Enum.KeyCode.A, Enum.KeyCode.H,
  151. Enum.KeyCode.D, Enum.KeyCode.K,
  152. Enum.KeyCode.Q, Enum.KeyCode.Y,
  153. )
  154. ContextActionService:BindActionAtPriority('FreecamMousePan', MousePan, false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
  155. ContextActionService:BindActionAtPriority('FreecamMouseWheel', MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
  156. ContextActionService:BindActionAtPriority('FreecamGamepadButton', GpButton, false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
  157. ContextActionService:BindActionAtPriority('FreecamGamepadTrigger', Trigger, false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
  158. ContextActionService:BindActionAtPriority('FreecamGamepadThumbstick', Thumb, false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
  159. navSpeed = 1
  160. Zero(keyboard)
  161. ContextActionService:UnbindAction('FreecamKeyboard')
  162. ContextActionService:UnbindAction('FreecamMousePan')
  163. ContextActionService:UnbindAction('FreecamMouseWheel')
  164. ContextActionService:UnbindAction('FreecamGamepadButton')
  165. ContextActionService:UnbindAction('FreecamGamepadTrigger')
  166. ContextActionService:UnbindAction('FreecamGamepadThumbstick')
  167. end
  168. local znear = 0.1
  169. local projy = 2*tan(cameraFov/2)
  170. local fx = cameraFrame.rightVector
  171. local fz = cameraFrame.lookVector
  172. local minVect = Vector3.new()
  173. for y = 0, 1, 0.5 do
  174. local cy = (y - 0.5)*projy
  175. local origin = cameraFrame.p + offset*znear
  176. local _, hit = Workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
  177. if minDist > dist then
  178. minVect = offset.unit
  179. end
  180. end
  181. ------------------------------------------------------------------------
  182. local function StepFreecam(dt)
  183. local pan = panSpring:Update(dt, Input.Pan(dt))
  184. local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
  185. cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
  186. cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
  187. cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
  188. local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
  189. Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
  190. end
  191. ------------------------------------------------------------------------
  192. local PlayerState = {} do
  193. local cameraType
  194. local cameraCFrame
  195. local screenGuis = {}
  196. Backpack = true,
  197. Health = true,
  198. }
  199. BadgesNotificationsActive = true,
  200. }
  201. -- Save state and set up for freecam
  202. for name in pairs(coreGuis) do
  203. coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
  204. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
  205. for name in pairs(setCores) do
  206. StarterGui:SetCore(name, false)
  207. local playergui = LocalPlayer:FindFirstChildOfClass('PlayerGui')
  208. for _, gui in pairs(playergui:GetChildren()) do
  209. screenGuis[#screenGuis + 1] = gui
  210. end
  211. end
  212. cameraFieldOfView = Camera.FieldOfView
  213. Camera.CameraType = Enum.CameraType.Custom
  214. cameraCFrame = Camera.CFrame
  215. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  216. function PlayerState.Pop()
  217. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
  218. for name, isEnabled in pairs(setCores) do
  219. end
  220. if gui.Parent then
  221. end
  222. cameraFieldOfView = nil
  223. Camera.CameraType = cameraType
  224. cameraCFrame = nil
  225. Camera.Focus = cameraFocus
  226. mouseBehavior = nil
  227. end
  228. local function StartFreecam()
  229. cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
  230. cameraFov = Camera.FieldOfView
  231. velSpring:Reset(Vector3.new())
  232. fovSpring:Reset(0)
  233. PlayerState.Push()
  234. RunService:BindToRenderStep('Freecam', Enum.RenderPriority.Camera.Value, StepFreecam)
  235. end
  236. local function StopFreecam()
  237. RunService:UnbindFromRenderStep('Freecam')
  238. end
  239. ------------------------------------------------------------------------
  240. do
  241. StartFreecam()
  242. local function ToggleFreecam()
  243. StopFreecam()
  244. StartFreecam()
  245. enabled = not enabled
  246. for i = 1, #macro - 1 do
  247. return
  248. end
  249. end
  250. local function HandleActivationInput(action, state, input)
  251. if input.KeyCode FREECAM_MACRO_KB[#FREECAM_MACRO_KB] then
  252. end
  253. return Enum.ContextActionResult.Pass
  254. ContextActionService:BindActionAtPriority('FreecamToggle', HandleActivationInput, false, TOGGLE_INPUT_PRIORITY, FREECAM_MACRO_KB[#FREECAM_MACRO_KB])
  255. end)

» Privacy Policy | » Imprint
©2018 astragon Entertainment GmbH and stillalive studios GmbH. Published and distributed by astragon Entertainment GmbH. Bus Simulator 18, astragon, astragon Entertainment and its logos are trademarks or registered trademarks of astragon Entertainment GmbH. 'Mercedes-Benz' and the 'three-pointed star in a ring' are trademarks of Daimler AG and used under license by astragon Entertainment GmbH. Manufactured under license from MAN. MAN is a trademark of MAN Truck & Bus AG. IVECO BUS and URBANWAY are brands of CNH Industrial. Manufactured under license from CNH Industrial. 'Setra' and 'K im Kreis' are trademarks of EvoBus GmbH and used under license by astragon Entertainment GmbH. Unreal, Unreal Engine, the circle-U logo and the Powered by the Unreal Engine logo are trademarks or registered trademarks of Epic Games, Inc. in the United States and elsewhere. All intellectual property relating to the buses and bus equipment, associated brands and images (including trademarks and/or copyrighted materials) featured in the game are therefore the property of their respective companies. The buses in this game may vary from the actual products in shape, colour and performance. All rights reserved. All other names, trademarks and logos are property of their respective owners.