memecreater

brick script

Mar 6th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.36 KB | None | 0 0
  1. -- hey
  2.  
  3.  
  4.  
  5.  
  6. --R6 block by diemiers
  7.  
  8.  
  9. spawn(function()
  10. local message = Instance.new("Message",workspace)
  11. message.Text = "Fe block loaded"
  12. wait(11)
  13. message:Destroy()
  14. end)
  15.  
  16. local name = "Torso"
  17. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").RigType == Enum.HumanoidRigType.R15 then
  18. name = "UpperTorso"
  19. end
  20.  
  21. local ch = game.Players.LocalPlayer.Character
  22. local prt=Instance.new("Model", workspace)
  23. local z1 = Instance.new("Part", prt)
  24. z1.Name="Torso"
  25. z1.CanCollide = false
  26. z1.Anchored = true
  27. local z2 =Instance.new("Part", prt)
  28. z2.Name="Head"
  29. z2.Anchored = true
  30. z2.CanCollide = false
  31. local z3 =Instance.new("Humanoid", prt)
  32. z3.Name="Humanoid"
  33. z1.Position = Vector3.new(0,9999,0)
  34. z2.Position = Vector3.new(0,9991,0)
  35. game.Players.LocalPlayer.Character=prt
  36. wait(5)
  37. game.Players.LocalPlayer.Character=ch
  38. wait(6)
  39. game:GetService('RunService').Stepped:connect(function()
  40. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = true
  41. end)
  42. game:GetService('RunService').RenderStepped:connect(function()
  43. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = true
  44. end)
  45. plr = game.Players.LocalPlayer
  46. mouse = plr:GetMouse()
  47.  
  48. game.Players.LocalPlayer.Character.HumanoidRootPart:Destroy()
  49.  
  50. local Hum = Instance.new("Humanoid")
  51.  
  52.  
  53.  
  54. Hum.Parent = game.Players.LocalPlayer.Character
  55. game.Players.LocalPlayer.Character.Humanoid.Parent = game.Lighting
  56. --game.Players.LocalPlayer.Character:FindFirstChild("Torso").Name = "Head"
  57. --game.Players.LocalPlayer.Character:FindFirstChild("Head"):Destroy()
  58. --game.Players.LocalPlayer.Character:FindFirstChild(name):Destroy()
  59. --game.Players.LocalPlayer.Character.HumanoidRootPart.Name = "GaiPArt"
  60. local root =game.Players.LocalPlayer.Character["Right Arm"] -- game.Players.LocalPlayer.Character["Left Leg"]
  61. root.Name = "HumanoidRootPart"
  62.  
  63. Hum.HipHeight = 5
  64.  
  65.  
  66. workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
  67.  
  68.  
  69.  
  70.  
  71. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  72.  
  73. if v.Name ~=root.Name and v.Name ~="Humanoid" and v.Name ~= "Left Arm" and v.Name ~= "Left Leg" and v.Name ~= "Right Leg" then
  74.  
  75. v:Destroy()
  76.  
  77. elseif v.Name == "Left Arm" then
  78.  
  79. local bp = Instance.new("BodyPosition",v)
  80. bp.MaxForce = Vector3.new(99999,99999,99999)
  81. local bg = Instance.new("BodyGyro",v)
  82. bg.MaxTorque = Vector3.new(9999999,9999999,999999)
  83.  
  84. spawn(function()
  85. bp.D = 300
  86. while true do
  87. bp.Position = root.Position+Vector3.new(0,1.8+1.8+1.8-0.3,0)
  88. wait()
  89. end
  90.  
  91. end)
  92.  
  93. elseif v.Name == "Left Leg" then
  94.  
  95. local bp = Instance.new("BodyPosition",v)
  96. bp.MaxForce = Vector3.new(99999,99999,99999)
  97. local bg = Instance.new("BodyGyro",v)
  98. bg.MaxTorque = Vector3.new(9999999,9999999,999999)
  99.  
  100. spawn(function()
  101. bp.D = 300
  102. while true do
  103. bp.Position = root.Position+Vector3.new(0,1.8-0.3,0)
  104. wait()
  105. end
  106.  
  107. end)
  108.  
  109. elseif v.Name == "Right Leg" then
  110.  
  111. local bp = Instance.new("BodyPosition",v)
  112. bp.MaxForce = Vector3.new(99999,99999,99999)
  113. local bg = Instance.new("BodyGyro",v)
  114. bg.MaxTorque = Vector3.new(9999999,9999999,999999)
  115. spawn(function()
  116. bp.D = 300
  117. while true do
  118. bp.Position = root.Position+Vector3.new(0,1.8+1.8-0.3,0)
  119. wait()
  120. end
  121.  
  122. end)
  123. elseif v.Name == root.Name then
  124.  
  125. local bg = Instance.new("BodyGyro",v)
  126. bg.MaxTorque = Vector3.new(9999999,9999999,999999)
  127. bg.CFrame = CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
  128.  
  129. end
  130.  
  131.  
  132. end
  133.  
  134. --local se = Instance.new("SelectionBox",root)
  135. --se.Adornee = root
  136.  
  137.  
  138. power = 999999 -- change this to make it more or less powerful
  139.  
  140. power = power*10
  141.  
  142. ---
  143. wait(.1)
  144. --local bambam = Instance.new("BodyThrust")
  145. --bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  146. --bambam.Force = Vector3.new(power,0,power)
  147. --bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  148.  
  149.  
  150.  
  151.  
  152. local mouse = game.Players.LocalPlayer:GetMouse()
  153.  
  154.  
  155. local plr = game.Players.LocalPlayer
  156. local torso = root
  157. local flying = true
  158. local deb = true
  159. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  160. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  161. local maxspeed = 120
  162. local speed = 15
  163.  
  164.  
  165. ---local bambam = Instance.new("BodyThrust")
  166. ---bambam.Parent = torso
  167. --bambam.Force = Vector3.new(9999999,0,9999999)
  168. --bambam.Location = torso.Position
  169.  
  170.  
  171. ---
  172.  
  173.  
  174. function Fly()
  175. local bg = Instance.new("BodyGyro", torso)
  176. bg.P = 9e4
  177. bg.maxTorque = Vector3.new(0, 0, 0)
  178. bg.cframe = torso.CFrame
  179. local bv = Instance.new("BodyVelocity", torso)
  180. bv.velocity = Vector3.new(0,0,0)
  181. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  182. repeat wait()
  183.  
  184. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  185. speed = speed+.2
  186. if speed > maxspeed then
  187. speed = maxspeed
  188. end
  189. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  190. speed = speed-1
  191. if speed < 0 then
  192. speed = 0
  193. end
  194. end
  195. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  196. 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
  197. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  198. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  199. 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
  200. else
  201. bv.velocity = Vector3.new(0,0,0)
  202. end
  203.  
  204. until not flying
  205. ctrl = {f = 0, b = 0, l = 0, r = 0}
  206. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  207. speed = 0
  208. bg:Destroy()
  209. bv:Destroy()
  210.  
  211. end
  212. mouse.KeyDown:connect(function(key)
  213. if key:lower() == "e" then
  214. if flying then flying = false
  215. else
  216. flying = true
  217. Fly()
  218. end
  219. elseif key:lower() == "w" then
  220. ctrl.f = 1
  221. elseif key:lower() == "s" then
  222. ctrl.b = -1
  223. elseif key:lower() == "a" then
  224. ctrl.l = -1
  225. elseif key:lower() == "d" then
  226. ctrl.r = 1
  227. end
  228. end)
  229. mouse.KeyUp:connect(function(key)
  230. if key:lower() == "w" then
  231. ctrl.f = 0
  232. elseif key:lower() == "s" then
  233. ctrl.b = 0
  234. elseif key:lower() == "a" then
  235. ctrl.l = 0
  236. elseif key:lower() == "d" then
  237. ctrl.r = 0
  238. elseif key:lower() == "r" then
  239.  
  240. end
  241. end)
  242. Fly()
Add Comment
Please, Sign In to add comment