Spider Man Simulator Roblox
Apr 8th, 2016
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- CN, CA, V3, U2, C3, BN = CFrame.new, CFrame.Angles, Vector3.new, UDim2.new, Color3.new, BrickColor.new
- return function(configuration)
- local newInstance = Instance.new(instanceType, parent)
- newInstance.TopSurface = 0
- if not newInstance:IsA('CornerWedgePart') then
- end
- newInstance.BrickColor = BN('Medium stone grey')
- end
- if type(value) 'function' then
- else
- end
- if configuration['CFrame'] then
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- if trace > 0 then
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- local i = 0
- i = 1
- if m22 > (i 0 and m00 or m11) then
- end
- local s = math.sqrt(m00-m11-m22+1)
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- local s = math.sqrt(m11-m22-m00+1)
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- local s = math.sqrt(m22-m00-m11+1)
- return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xy = x*ys
- local yy = y*ys
- local zz = z*zs
- 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))
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1]+a[2]*b[2]+a[3]*b[3]+a[4]*b[4]
- if cosTheta >= 0.0001 then
- local theta = math.acos(cosTheta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- else
- finishInterp = t
- else
- local theta = math.acos(-cosTheta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- else
- finishInterp = t
- end
- 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
- function Lerp(a, b, t)
- local qb = {QuaternionFromCFrame(b)}
- local bx, by, bz = b.x, b.y, b.z
- return QuaternionToCFrame(_t*ax+t*bx, _t*ay+t*by, _t*az+t*bz, QuaternionSlerp(qa, qb, t))
- if Obj.Name 'Awesome scary spider' then
- end
- SpiderColor = 'Maroon'
- Spider = new('Model', game.Players.LocalPlayer.Character){Name = 'Awesome scary spider'}
- Platform = new('Part', Spider){Size = V3(30, 1, 30), BrickColor = BN('Really red'), Transparency = 1, CanCollide = true}
- Torso = new('Part', Spider){Size = V3(4, 4, 6), Name = 'Torso', BrickColor = BN(SpiderColor), Transparency = 1}
- new('Motor6D', Platform){Part0 = Platform, Part1 = Torso, C0 = CN(0, 5, 0)}
- TorsoA = new('Part', Spider){Size = V3(4, 5, 3), BrickColor = BN(SpiderColor)}
- new('SpecialMesh', TorsoA){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
- new('Motor6D', Torso){Part0 = Torso, Part1 = TorsoA, C0 = CA(math.rad(90), 0, 0)}
- Head = new('Part', Spider){Size = V3(2, 2, 2), Name = 'Head', BrickColor = BN(SpiderColor), Transparency = 1}
- new('SpecialMesh', Head){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
- Neck = new('Motor6D', Torso){Part0 = Torso, Part1 = Head, C0 = CN(0, 0, -4), Name = 'Neck'}
- FakeHead = new('Part', Spider){Size = V3(2, 2, 2), BrickColor = BN(SpiderColor)}
- new('SpecialMesh', FakeHead){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
- new('Motor6D', Head){Part0 = Head, Part1 = FakeHead, C0 = CN()}
- RightEye = new('Part', Spider){Size = V3(0.5, 0.5, 0.5), BrickColor = BN('White')}
- new('SpecialMesh', RightEye){MeshType = 'Sphere', Scale = V3(1, 1, 1)}
- new('Motor6D', Head){Part0 = Head, Part1 = RightEye, C0 = CN(0.5, 0.25, -1.25)}
- LeftEye = new('Part', Spider){Size = V3(0.5, 0.5, 0.5), BrickColor = BN('White')}
- new('SpecialMesh', LeftEye){MeshType = 'Sphere', Scale = V3(1, 1, 1)}
- new('Motor6D', Head){Part0 = Head, Part1 = LeftEye, C0 = CN(-0.5, 0.25, -1.25)}
- Torso2 = new('Part', Spider){Size = V3(5.5, 4.3, 7), BrickColor = BN(SpiderColor)}
- new('Motor6D', Torso){Part0 = Torso, Part1 = Torso2, C0 = CN(0, 0, 7)}
- new('SpecialMesh', Torso2){MeshType = 'Sphere', Scale = V3(1.5, 1.5, 1.5)}
- RightLegs = {}
- local RightLeg = new('Part', Spider){Size = V3(1, 5, 1), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', RightLeg){Scale = V3(1, 1, 1)}
- 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)}
- local RightLeg2 = new('Part', Spider){Size = V3(0.8, 5, 0.8), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', RightLeg2){Scale = V3(1, 1, 1)}
- new('Motor6D', RightLeg2){Part0 = RightLeg, Part1 = RightLeg2, C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(-45))*CN(0, 2.5, 0)}
- local RightLeg3 = new('Part', Spider){Size = V3(0.6, 5, 0.6), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', RightLeg3){Scale = V3(1, 1, 1)}
- new('Motor6D', RightLeg3){Part0 = RightLeg2, Part1 = RightLeg3, C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(-75))*CN(0, 2.5, 0)}
- table.insert(RightLegs, {RightLeg, RightLeg2, RightLeg3})
- local LeftLeg = new('Part', Spider){Size = V3(1, 5, 1), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', LeftLeg){Scale = V3(1, 1, 1)}
- 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)}
- local LeftLeg2 = new('Part', Spider){Size = V3(0.8, 5, 0.8), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', LeftLeg2){Scale = V3(1, 1, 1)}
- new('Motor6D', LeftLeg2){Part0 = LeftLeg, Part1 = LeftLeg2, C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(45))*CN(0, 2.5, 0)}
- local LeftLeg3 = new('Part', Spider){Size = V3(0.6, 5, 0.6), BrickColor = BN(SpiderColor)}
- new('CylinderMesh', LeftLeg3){Scale = V3(1, 1, 1)}
- new('Motor6D', LeftLeg3){Part0 = LeftLeg2, Part1 = LeftLeg3, C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(75))*CN(0, 2.5, 0)}
- table.insert(LeftLegs, {LeftLeg, LeftLeg2, LeftLeg3})
- SpiderHumanoid = new('Humanoid', Spider){WalkSpeed = 50}
- Platform.CFrame = CN(Offset)
- SpiderVelocity = new('BodyVelocity', Platform){maxForce = V3(1/0, 1/0, 1/0)}
- SpiderGyro = new('BodyGyro', Platform){maxTorque = V3(1/0, 1/0, 1/0), P = 1000, D = 100}
- --Now, on to the fun stuffs.
- Player = Game:GetService('Players').LocalPlayer
- UserInputService = Game:GetService('UserInputService')
- Character:WaitForChild('Animate'):Destroy()
- CharacterHumanoid, CharacterTorso = Character:WaitForChild('Humanoid'), Character:WaitForChild('Torso')
- CharacterHumanoid.Changed:connect(function()
- CharacterHumanoid.Jump = false
- new('Motor6D', Torso){Part0 = Torso, Part1 = CharacterTorso, C0 = CN(0, 5, 0)}
- Chatting = false
- MaxSpeed = 30
- Deceleration = 1
- SpeedA = 0
- SpeedD = 0
- CameraAngleX, CameraAngleY = 45, 45
- Keys = {}
- UserInputService.InputBegan:connect(function(Input)
- local Key, InputType, Delta = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta
- Chatting = true
- elseif Key 'Return' and Chatting then
- elseif (Key 'W' or Key 'A' or Key 'S' or Key 'D') and not Chatting then
- end
- Dragging = true
- UserInputService.MouseBehavior = 'LockCurrentPosition'
- end)
- --[[UserInputService.InputChanged:connect(function(Input)
- local Key, InputType, Delta, Position = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta, Input.Position
- if InputType 'MouseMovement' and Dragging then
- if CameraAngleX > 80 then
- elseif CameraAngleX < -80 then
- end
- end
- UserInputService.InputEnded:connect(function(Input)
- local Key, InputType, Delta = Input.KeyCode.Name, Input.UserInputType.Name, Input.Delta
- if (Key 'W' or Key 'A' or Key 'S' or Key 'D') and not Chatting then
- end
- Dragging = false
- end
- if Keys['W'] then
- SpeedW = SpeedW+Acceleration
- SpeedW = MaxSpeed
- else
- SpeedW = SpeedW-Deceleration
- SpeedW = 0
- end
- if SpeedA < MaxSpeed then
- else
- end
- if SpeedA > 0 then
- else
- end
- if Keys['S'] then
- SpeedS = SpeedS+Acceleration
- SpeedS = MaxSpeed
- else
- SpeedS = SpeedS-Deceleration
- SpeedS = 0
- end
- if SpeedD < MaxSpeed then
- else
- end
- if SpeedD > 0 then
- else
- end
- Velocity = V3(SpeedD-SpeedA, 0, SpeedS-SpeedW)
- Game:GetService('RunService').Stepped:connect(function(Time)
- if Moving then
- local RightLeg1 = Leg[1]
- local RightLeg3 = Leg[3]
- local LeftLeg1 = LeftLegs[L][1]
- local LeftLeg3 = LeftLegs[L][3]
- local Mult = 1-L%2*2
- --C0 = CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(45))*CN(0, 2.5, 0)
- --C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
- --C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
- 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)
- 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)
- else
- local RightLeg1 = Leg[1]
- local RightLeg3 = Leg[3]
- local LeftLeg1 = LeftLegs[L][1]
- local LeftLeg3 = LeftLegs[L][3]
- local Mult = 1-L%2*2
- --C0 = CN(-1.5, -1.5, -2+L)*CA(0, math.rad(-45+L*15), math.rad(45))*CN(0, 2.5, 0)
- --C0 = CN(0, 2.1, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
- --C0 = CN(0, 2.2, 0)*CA(0, 0, math.rad(60))*CN(0, 2.5, 0)
- 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)
- 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)
- end
- Game:GetService('RunService').RenderStepped:connect(function()
- if math.abs(SpiderVelocity.velocity.X) > 0 or math.abs(SpiderVelocity.velocity.Z) > 0 then
- else
- end
- local CoordinateFrame2D = CN(V3(Camera.CoordinateFrame.X, Platform.CFrame.Y, Camera.CoordinateFrame.Z), Platform.Position)
- local RelativeVelocity = CoordinateFrame2D*Velocity-CoordinateFrame2D.p
- SpiderGyro.cframe = CN(CoordinateFrame2D.p, Platform.Position)
- --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.
Feed and grow fish save game location. That’s the law of the jungle and it works underwater as well.
Spider Man In Roblox
- 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!
- 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.