SirMemz

Testing

Jun 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. repeat wait()
  2. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4. repeat wait() until mouse
  5. local plr = game.Players.LocalPlayer
  6. local torso = plr.Character.Head
  7. local flying = false
  8. local deb = true
  9. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  10. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  11. local maxspeed = 50
  12. local speed = 0
  13.  
  14. function Fly()
  15. local bg = Instance.new("BodyGyro", torso)
  16. bg.P = 9e4
  17. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  18. bg.cframe = torso.CFrame
  19. local bv = Instance.new("BodyVelocity", torso)
  20. bv.velocity = Vector3.new(0,0.1,0)
  21. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  22. repeat wait()
  23. plr.Character.Humanoid.PlatformStand = true
  24. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  25. speed = speed+.5+(speed/maxspeed)
  26. if speed > maxspeed then
  27. speed = maxspeed
  28. end
  29. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  30. speed = speed-1
  31. if speed < 0 then
  32. speed = 0
  33. end
  34. end
  35. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  36. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  37. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  38. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  39. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  40. else
  41. bv.velocity = Vector3.new(0,0.1,0)
  42. end
  43. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  44. until not flying
  45. ctrl = {f = 0, b = 0, l = 0, r = 0}
  46. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  47. speed = 0
  48. bg:Destroy()
  49. bv:Destroy()
  50. plr.Character.Humanoid.PlatformStand = false
  51. end
  52. mouse.KeyDown:connect(function(key)
  53. if key:lower() == "e" then
  54. if flying then flying = false
  55. else
  56. flying = true
  57. Fly()
  58. end
  59. elseif key:lower() == "w" then
  60. ctrl.f = 1
  61. elseif key:lower() == "s" then
  62. ctrl.b = -1
  63. elseif key:lower() == "a" then
  64. ctrl.l = -1
  65. elseif key:lower() == "d" then
  66. ctrl.r = 1
  67. end
  68. end)
  69. mouse.KeyUp:connect(function(key)
  70. if key:lower() == "w" then
  71. ctrl.f = 0
  72. elseif key:lower() == "s" then
  73. ctrl.b = 0
  74. elseif key:lower() == "a" then
  75. ctrl.l = 0
  76. elseif key:lower() == "d" then
  77. ctrl.r = 0
  78. end
  79. end)
  80. Fly()
  81.  
  82. plr = game.Players.LocalPlayer
  83. repeat wait() until plr.Character
  84. char = plr.Character
  85.  
  86. wait(1/60)
  87.  
  88. print("Principal edit by Emmet0421 -> 'RIP Hastebin.' ")
  89. print("Original Baldi V2 script created by Theamazingnater")
  90.  
  91. char.Humanoid.JumpPower = 100
  92. char.Humanoid.Animator:Destroy()
  93. char.Animate:Destroy()
  94. char.Head.face.Transparency = 1
  95. local sweep = Instance.new("Part")
  96. local slap = Instance.new("Sound",char)
  97. slap.SoundId = "rbxassetid://1953631953"
  98. slap.Volume = 20
  99. local congrats = Instance.new("Sound",char)
  100. congrats.SoundId = "rbxassetid://1923529022"
  101. congrats.Volume = 20
  102. local death = Instance.new("Sound",char)
  103. death.SoundId = "rbxassetid://1923953264"
  104. death.Volume = 20
  105. local schoolhouse = Instance.new("Sound",char)
  106. schoolhouse.SoundId = "rbxassetid://1923529022"
  107. schoolhouse.Volume = 20
  108. local doors = Instance.new("Sound",char)
  109. doors.SoundId = "rbxassetid://1923529022"
  110. doors.Volume = 20
  111. local sweepdecal1 = Instance.new("Decal",sweep)
  112. local sweepdecal2 = Instance.new("Decal",sweep)
  113. local weld = Instance.new("Weld",sweep)
  114. sweepdecal1.Face = "Back"
  115. sweepdecal1.Texture = "rbxassetid://1923831055"
  116. sweepdecal2.Face = "Front"
  117. sweepdecal2.Texture = "rbxassetid://1923831055"
  118. sweep.Name = "gotta sweep sweep sweep"
  119. sweep.Size = Vector3.new(4.2, 8.4, 0.114)
  120. sweep.Transparency = 1
  121. sweep.CanCollide = false
  122. weld.Part0 = char.Torso
  123. weld.Part1 = sweep
  124. weld.C0 = CFrame.new(-0.466694832, 1.18746996, -0.594377518, -0.999195099, 0, 0.0401160046, 0, 1, 0, -0.0401160046, 0, -0.999195099)
  125. sweep.Parent = char
  126. local vel = Instance.new("BodyVelocity",sweep)
  127. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  128. vel.Velocity = Vector3.new(0,0,0)
  129. for i,v in pairs(char:GetChildren()) do
  130. if v.ClassName == "Part" then
  131. v.Transparency = 1
  132.  
  133. elseif v.ClassName == "Accessory" then
  134. v.Handle.Transparency = 1
  135. end
  136. end
  137. mouse = plr:GetMouse()
  138. SpeedofBaldi = 80
  139. using = false
  140. char.Torso.Touched:connect(function(part)
  141. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  142. if human and using then
  143. human.Health = 0
  144. death:Play()
  145. end
  146. end)
  147. function Taunt()
  148. local rd = math.random(1,3)
  149. if rd == 1 then
  150. congrats:Play()
  151. end
  152. if rd == 2 then
  153. schoolhouse:Play()
  154. end
  155. if rd == 3 then
  156. doors:Play()
  157. end
  158. end
  159. function Teleport()
  160. char.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  161. slap:Play()
  162. using = true
  163. sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1923831055"
  164. sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1923831055"
  165. wait(0.4)
  166. using = false
  167. sweepdecal1.Face = "Back"
  168. sweepdecal1.Texture = "rbxassetid://1923831055"
  169. sweepdecal2.Face = "Front"
  170. sweepdecal2.Texture = "rbxassetid://1923831055"
  171. end
  172. mouse.KeyDown:connect(function(k)
  173. if k == "v" then
  174. Taunt()
  175. end
  176. if k == "f" then
  177. Teleport()
  178. end
  179. end)
  180.  
  181. function move()
  182. vel.Velocity = char.Torso.CFrame.lookVector * SpeedofBaldi
  183. sweepdecal1.Texture = "http://www.roblox.com/asset/?id=1923831055"
  184. sweepdecal2.Texture = "http://www.roblox.com/asset/?id=1923831055"
  185. using = true
  186. slap:Play()
  187. wait(0.4)
  188. using = false
  189. vel.Velocity = Vector3.new(0,0,0)
  190. sweepdecal1.Face = "Back"
  191. sweepdecal1.Texture = "rbxassetid://1923831055"
  192. sweepdecal2.Face = "Front"
  193. sweepdecal2.Texture = "rbxassetid://1923831055"
  194. end
  195. mouse.Button1Down:connect(function()
  196. move()
  197. end)
Add Comment
Please, Sign In to add comment