Spider Man Simulator Roblox

Apr 8th, 2016
Never
Roblox
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. CN, CA, V3, U2, C3, BN = CFrame.new, CFrame.Angles, Vector3.new, UDim2.new, Color3.new, BrickColor.new
  2. return function(configuration)
  3. local newInstance = Instance.new(instanceType, parent)
  4. newInstance.TopSurface = 0
  5. if not newInstance:IsA('CornerWedgePart') then
  6. end
  7. newInstance.BrickColor = BN('Medium stone grey')
  8. end
  9. if type(value) 'function' then
  10. else
  11. end
  12. if configuration['CFrame'] then
  13. end
  14. end
  15. function QuaternionFromCFrame(cf)
  16. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  17. if trace > 0 then
  18. local recip = 0.5/s
  19. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  20. local i = 0
  21. i = 1
  22. if m22 > (i 0 and m00 or m11) then
  23. end
  24. local s = math.sqrt(m00-m11-m22+1)
  25. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  26. local s = math.sqrt(m11-m22-m00+1)
  27. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  28. local s = math.sqrt(m22-m00-m11+1)
  29. return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  30. end
  31. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  32. local wx, wy, wz = w*xs, w*ys, w*zs
  33. local xy = x*ys
  34. local yy = y*ys
  35. local zz = z*zs
  36. return CFrame.new(px, py, pz, 1-(yy+zz), xy-wz, xz+wy, xy+wz, 1-(xx+zz), yz-wx, xz-wy, yz+wx, 1-(xx+yy))
  37. function QuaternionSlerp(a, b, t)
  38. local cosTheta = a[1]*b[1]+a[2]*b[2]+a[3]*b[3]+a[4]*b[4]
  39. if cosTheta >= 0.0001 then
  40. local theta = math.acos(cosTheta)
  41. startInterp = math.sin((1-t)*theta)*invSinTheta
  42. else
  43. finishInterp = t
  44. else
  45. local theta = math.acos(-cosTheta)
  46. startInterp = math.sin((t-1)*theta)*invSinTheta
  47. else
  48. finishInterp = t
  49. end
  50. return a[1]*startInterp+b[1]*finishInterp, a[2]*startInterp+b[2]*finishInterp, a[3]*startInterp+b[3]*finishInterp, a[4]*startInterp+b[4]*finishInterp
  51. function Lerp(a, b, t)
  52. local qb = {QuaternionFromCFrame(b)}
  53. local bx, by, bz = b.x, b.y, b.z
  54. return QuaternionToCFrame(_t*ax+t*bx, _t*ay+t*by, _t*az+t*bz, QuaternionSlerp(qa, qb, t))
  55. if Obj.Name 'Awesome scary spider' then
  56. end
  57. SpiderColor = 'Maroon'
  58. Spider = new('Model', game.Players.LocalPlayer.Character){Name = 'Awesome scary spider'}
  59. Platform = new('Part', Spider){Size = V3(30, 1, 30), BrickColor = BN('Really red'), Transparency = 1, CanCollide = true}
  60. Torso = new('Part', Spider){Size = V3(4, 4, 6), Name = 'Torso', BrickColor = BN(SpiderColor), Transparency = 1}
  61. new('Motor6D', Platform){Part0 = Platform, Part1 = Torso, C0 = CN(0, 5, 0)}
  62. TorsoA = new('Part', Spider){Size = V3(4, 5, 3), BrickColor = BN(SpiderColor)}
  63. new('SpecialMesh', TorsoA){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
  64. new('Motor6D', Torso){Part0 = Torso, Part1 = TorsoA, C0 = CA(math.rad(90), 0, 0)}
  65. Head = new('Part', Spider){Size = V3(2, 2, 2), Name = 'Head', BrickColor = BN(SpiderColor), Transparency = 1}
  66. new('SpecialMesh', Head){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
  67. Neck = new('Motor6D', Torso){Part0 = Torso, Part1 = Head, C0 = CN(0, 0, -4), Name = 'Neck'}
  68. FakeHead = new('Part', Spider){Size = V3(2, 2, 2), BrickColor = BN(SpiderColor)}
  69. new('SpecialMesh', FakeHead){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
  70. new('Motor6D', Head){Part0 = Head, Part1 = FakeHead, C0 = CN()}
  71. RightEye = new('Part', Spider){Size = V3(0.5, 0.5, 0.5), BrickColor = BN('White')}
  72. new('SpecialMesh', RightEye){MeshType = 'Sphere', Scale = V3(1, 1, 1)}
  73. new('Motor6D', Head){Part0 = Head, Part1 = RightEye, C0 = CN(0.5, 0.25, -1.25)}
  74. LeftEye = new('Part', Spider){Size = V3(0.5, 0.5, 0.5), BrickColor = BN('White')}
  75. new('SpecialMesh', LeftEye){MeshType = 'Sphere', Scale = V3(1, 1, 1)}
  76. new('Motor6D', Head){Part0 = Head, Part1 = LeftEye, C0 = CN(-0.5, 0.25, -1.25)}
  77. Torso2 = new('Part', Spider){Size = V3(5.5, 4.3, 7), BrickColor = BN(SpiderColor)}
  78. new('Motor6D', Torso){Part0 = Torso, Part1 = Torso2, C0 = CN(0, 0, 7)}
  79. new('SpecialMesh', Torso2){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
  80. RightLegs = {}
  81. local RightLeg = new('Part', Spider){Size = V3(1, 5, 1), BrickColor = BN(SpiderColor)}
  82. new('CylinderMesh', RightLeg){Scale = V3(1, 1, 1)}
  83. new('Motor6D', RightLeg){Part0 = Torso, Part1 = RightLeg, C0 = CN(1.5, -1.5, -2+L)*CA(0, math.rad(45-L*15), math.rad(-60))*CN(0, 2.5, 0)}
  84. local RightLeg2 = new('Part', Spider){Size = V3(0.8, 5, 0.8), BrickColor = BN(SpiderColor)}
  85. new('CylinderMesh', RightLeg2){Scale = V3(1, 1, 1)}
  86. new('Motor6D', RightLeg2){Part0 = RightLeg, Part1 = RightLeg2, C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(-45))*CN(0, 2.5, 0)}
  87. local RightLeg3 = new('Part', Spider){Size = V3(0.6, 5, 0.6), BrickColor = BN(SpiderColor)}
  88. new('CylinderMesh', RightLeg3){Scale = V3(1, 1, 1)}
  89. new('Motor6D', RightLeg3){Part0 = RightLeg2, Part1 = RightLeg3, C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(-75))*CN(0, 2.5, 0)}
  90. table.insert(RightLegs, {RightLeg, RightLeg2, RightLeg3})
  91. local LeftLeg = new('Part', Spider){Size = V3(1, 5, 1), BrickColor = BN(SpiderColor)}
  92. new('CylinderMesh', LeftLeg){Scale = V3(1, 1, 1)}
  93. new('Motor6D', LeftLeg){Part0 = Torso, Part1 = LeftLeg, C0 = CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(60))*CN(0, 2.5, 0)}
  94. local LeftLeg2 = new('Part', Spider){Size = V3(0.8, 5, 0.8), BrickColor = BN(SpiderColor)}
  95. new('CylinderMesh', LeftLeg2){Scale = V3(1, 1, 1)}
  96. new('Motor6D', LeftLeg2){Part0 = LeftLeg, Part1 = LeftLeg2, C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(45))*CN(0, 2.5, 0)}
  97. local LeftLeg3 = new('Part', Spider){Size = V3(0.6, 5, 0.6), BrickColor = BN(SpiderColor)}
  98. new('CylinderMesh', LeftLeg3){Scale = V3(1, 1, 1)}
  99. new('Motor6D', LeftLeg3){Part0 = LeftLeg2, Part1 = LeftLeg3, C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(75))*CN(0, 2.5, 0)}
  100. table.insert(LeftLegs, {LeftLeg, LeftLeg2, LeftLeg3})
  101. SpiderHumanoid = new('Humanoid', Spider){WalkSpeed = 50}
  102. Platform.CFrame = CN(Offset)
  103. SpiderVelocity = new('BodyVelocity', Platform){maxForce = V3(1/0, 1/0, 1/0)}
  104. SpiderGyro = new('BodyGyro', Platform){maxTorque = V3(1/0, 1/0, 1/0), P = 1000, D = 100}
  105. --Now, on to the fun stuffs.
  106. Player = Game:GetService('Players').LocalPlayer
  107. UserInputService = Game:GetService('UserInputService')
  108. Character:WaitForChild('Animate'):Destroy()
  109. CharacterHumanoid, CharacterTorso = Character:WaitForChild('Humanoid'), Character:WaitForChild('Torso')
  110. CharacterHumanoid.Changed:connect(function()
  111. CharacterHumanoid.Jump = false
  112. new('Motor6D', Torso){Part0 = Torso, Part1 = CharacterTorso, C0 = CN(0, 5, 0)}
  113. Chatting = false
  114. MaxSpeed = 30
  115. Deceleration = 1
  116. SpeedA = 0
  117. SpeedD = 0
  118. CameraAngleX, CameraAngleY = 45, 45
  119. Keys = {}
  120. UserInputService.InputBegan:connect(function(Input)
  121. local Key, InputType, Delta = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta
  122. Chatting = true
  123. elseif Key 'Return' and Chatting then
  124. elseif (Key 'W' or Key 'A' or Key 'S' or Key 'D') and not Chatting then
  125. end
  126. Dragging = true
  127. UserInputService.MouseBehavior = 'LockCurrentPosition'
  128. end)
  129. --[[UserInputService.InputChanged:connect(function(Input)
  130. local Key, InputType, Delta, Position = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta, Input.Position
  131. if InputType 'MouseMovement' and Dragging then
  132. if CameraAngleX > 80 then
  133. elseif CameraAngleX < -80 then
  134. end
  135. end
  136. UserInputService.InputEnded:connect(function(Input)
  137. local Key, InputType, Delta = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta
  138. if (Key 'W' or Key 'A' or Key 'S' or Key 'D') and not Chatting then
  139. end
  140. Dragging = false
  141. end
  142. if Keys['W'] then
  143. SpeedW = SpeedW+Acceleration
  144. SpeedW = MaxSpeed
  145. else
  146. SpeedW = SpeedW-Deceleration
  147. SpeedW = 0
  148. end
  149. if SpeedA < MaxSpeed then
  150. else
  151. end
  152. if SpeedA > 0 then
  153. else
  154. end
  155. if Keys['S'] then
  156. SpeedS = SpeedS+Acceleration
  157. SpeedS = MaxSpeed
  158. else
  159. SpeedS = SpeedS-Deceleration
  160. SpeedS = 0
  161. end
  162. if SpeedD < MaxSpeed then
  163. else
  164. end
  165. if SpeedD > 0 then
  166. else
  167. end
  168. Velocity = V3(SpeedD-SpeedA, 0, SpeedS-SpeedW)
  169. Game:GetService('RunService').Stepped:connect(function(Time)
  170. if Moving then
  171. local RightLeg1 = Leg[1]
  172. local RightLeg3 = Leg[3]
  173. local LeftLeg1 = LeftLegs[L][1]
  174. local LeftLeg3 = LeftLegs[L][3]
  175. local Mult = 1-L%2*2
  176. --C0 = CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(45))*CN(0, 2.5, 0)
  177. --C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
  178. --C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
  179. RightLeg1.Motor6D.C0 = Lerp(RightLeg1.Motor6D.C0, CN(1.5, -1.5, -2+L)*CA(0, math.rad(45-L*15+math.sin(Time*20)*Mult*30), math.rad(-45+math.sin(Time*20)*Mult*30))*CN(0, 2.5, 0), 0.1)
  180. LeftLeg1.Motor6D.C0 = Lerp(LeftLeg1.Motor6D.C0, CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15+math.sin(Time*20)*Mult*-30), math.rad(45+math.sin(Time*20)*Mult*-30))*CN(0, 2.5, 0), 0.1)
  181. else
  182. local RightLeg1 = Leg[1]
  183. local RightLeg3 = Leg[3]
  184. local LeftLeg1 = LeftLegs[L][1]
  185. local LeftLeg3 = LeftLegs[L][3]
  186. local Mult = 1-L%2*2
  187. --C0 = CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(45))*CN(0, 2.5, 0)
  188. --C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
  189. --C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
  190. RightLeg1.Motor6D.C0 = Lerp(RightLeg1.Motor6D.C0, CN(1.5, -1.5, -2+L)*CA(0, math.rad(45-L*15), math.rad(-45))*CN(0, 2.5, 0), 0.25)
  191. LeftLeg1.Motor6D.C0 = Lerp(LeftLeg1.Motor6D.C0, CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(45))*CN(0, 2.5, 0), 0.25)
  192. end
  193. Game:GetService('RunService').RenderStepped:connect(function()
  194. if math.abs(SpiderVelocity.velocity.X) > 0 or math.abs(SpiderVelocity.velocity.Z) > 0 then
  195. else
  196. end
  197. local CoordinateFrame2D = CN(V3(Camera.CoordinateFrame.X, Platform.CFrame.Y, Camera.CoordinateFrame.Z), Platform.Position)
  198. local RelativeVelocity = CoordinateFrame2D*Velocity-CoordinateFrame2D.p
  199. SpiderGyro.cframe = CN(CoordinateFrame2D.p, Platform.Position)
  200. --Camera:Interpolate(CN(Torso.Position)*CA(0, math.rad(CameraAngleY), 0)*CA(math.rad(CameraAngleX), 0, 0)*CN(0, 0, -20), Torso.CFrame, 0.01)
RAW Paste Data

ROBLOX Spider-Man?!I like this game and I hope you like it too! - https://web.roblox.com/games//BloxVerse-Unlimited-Alpha. Roblox vehicle simulator codes list 2019 april.

Bee

Animal crossing free leaf tickets

Feed and grow fish save game location. That’s the law of the jungle and it works underwater as well.

Spider Man In Roblox

  1. Time to become Spider-Man in Roblox! We are trying out some of the Roblox Spider-Man games, which means.A lot of webtastic action!
  2. A new game about the spider superhero is waiting for you. This time here is not only a completely open world, but also an exciting storyline! These tasks will not let you fall asleep at night and instead of breakfast in the morning you will run to your smartphone to plunge into the world of this superhero masterpiece! Oh, my God, look at this! He flies on a rocket launcher like a real cowboy.