SirMemz

Untitled

Jun 26th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 = 80
  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. Character = game.Players.LocalPlayer.Character
  82. Player = game.Players.LocalPlayer
  83. char = Character
  84. hum = Character.Humanoid
  85. Torso = Character.Torso
  86. Head = Character.Head
  87.  
  88. char.Shirt.ShirtTemplate = "rbxassetid://1880638957"
  89. char.Pants.PantsTemplate = "rbxassetid://129458425"
  90.  
  91.  
  92. local BC = char["Body Colors"]
  93. BC.HeadColor = BrickColor.new("Pastel brown")
  94. BC.LeftArmColor = BrickColor.new("Pastel brown")
  95. BC.LeftLegColor = BrickColor.new("Pastel brown")
  96. BC.RightArmColor = BrickColor.new("Pastel brown")
  97. BC.RightLegColor = BrickColor.new("Pastel brown")
  98. BC.TorsoColor = BrickColor.new("Pastel brown")
  99.  
  100. char.Head.face.Texture = "rbxassetid://150190685"
  101.  
  102. hum.MaxHealth = math.huge
  103.  
  104.  
  105.  
  106.  
  107. --141378828
  108. Reaper = Instance.new("Model")
  109. Reaper.Parent = Player.Character
  110. Reaper.Name = "Reaper"
  111. rh = Instance.new("Part")
  112. rh.Parent = Reaper
  113. rh.BrickColor = BrickColor.new("Really red")
  114. rh.Locked = true
  115. rh.CanCollide = false
  116. mesh = Instance.new("SpecialMesh")
  117. rh.formFactor = "Symmetric"
  118. mesh.MeshType = "FileMesh"
  119. mesh.MeshId = "http://www.roblox.com/asset/?id=773642322"
  120. mesh.TextureId = "http://www.roblox.com/asset/?id=29938532"
  121. mesh.Parent = rh
  122. local weld = Instance.new("Weld")
  123. weld.Parent = rh
  124. rh.Transparency = 0
  125. weld.Part0 = rh
  126. weld.Part1 = Player.Character.Head
  127. weld.C0 = weld.C0 * CFrame.new(0,-0.70,0.10)
  128.  
  129. local s = Instance.new("Sound",char)
  130. s.SoundId = "http://www.roblox.com/asset/?id=1828370087"
  131. s.Pitch = 1
  132. s.Volume = 2
  133. s.Looped = true
  134. wait(1)
  135. s:play()
  136.  
  137.  
  138. function sandbox(var,func)
  139. local env = getfenv(func)
  140. local newenv = setmetatable({},{
  141. __index = function(self,k)
  142. if k=="script" then
  143. return var
  144. else
  145. return env[k]
  146. end
  147. end,
  148. })
  149. setfenv(func,newenv)
  150. return func
  151. end
  152. cors = {}
  153. mas = Instance.new("Model",game:GetService("Lighting"))
  154. Tool0 = Instance.new("Tool")
  155. Part1 = Instance.new("Part")
  156. SpecialMesh2 = Instance.new("SpecialMesh")
  157. Script3 = Instance.new("Script")
  158. Tool0.Name = "Arrest"
  159. Tool0.Parent = mas
  160. Tool0.GripForward = Vector3.new(-0.77155745, 0.462976098, 0.43629396)
  161. Tool0.GripPos = Vector3.new(0.899999976, 0.5, 0.400000006)
  162. Tool0.GripRight = Vector3.new(0.632408082, 0.63257581, 0.447110623)
  163. Tool0.GripUp = Vector3.new(0.0689874813, -0.620887339, 0.780858338)
  164. Tool0.ToolTip = "Take those skids to gulag!"
  165. Tool0.CanBeDropped = false
  166. Part1.Name = "Handle"
  167. Part1.Parent = Tool0
  168. Part1.FormFactor = Enum.FormFactor.Custom
  169. Part1.Size = Vector3.new(2, 2, 2)
  170. Part1.CFrame = CFrame.new(1.70000003e-05, 1.00001395, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  171. Part1.Position = Vector3.new(1.70000003e-05, 1.00001395, 0)
  172. SpecialMesh2.Parent = Part1
  173. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=88046657"
  174. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  175. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=88046679"
  176. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  177. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  178. Script3.Parent = Part1
  179. debounce = false
  180.  
  181. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  182.  
  183. table.insert(cors,sandbox(Script3,function()
  184. function arrest(hit)
  185. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Head") ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and debounce ~= true and hit.Parent.Head:FindFirstChild("ArrestedGui") == nil then
  186. debounce = true
  187. num = math.random(1,99)
  188. local message = Instance.new("Hint",workspace)
  189. message.Text = hit.Parent.Name.." Has been sent to detention by "..game.Players.LocalPlayer.Name.."! He or she has to spend "..num.." years in jail!"
  190. --hit.Parent:Destroy()
  191.  
  192. hit.Parent.Humanoid.MaxHealth = math.huge
  193. print("Godded!")
  194. a = Instance.new("ForceField", hit.Parent)
  195. a.Visible = false
  196. print("FFed!")
  197.  
  198. local SOUND = Instance.new("Sound", script.Parent)
  199. SOUND.SoundId = "rbxassetid://1846823234"
  200. SOUND.Volume = 10
  201. SOUND:Play()
  202. BillboardGui0 = Instance.new("BillboardGui")
  203. TextLabel1 = Instance.new("TextLabel")
  204. BillboardGui0.Name = "ArrestedGui"
  205. BillboardGui0.Parent = hit.Parent.Head
  206. BillboardGui0.Size = UDim2.new(10, 0, 2, 0)
  207. BillboardGui0.StudsOffset = Vector3.new(0, 3, 0)
  208. TextLabel1.Name = "Text"
  209. TextLabel1.Parent = BillboardGui0
  210. TextLabel1.Transparency = 1
  211. TextLabel1.Size = UDim2.new(1, 0, 1, 0)
  212. TextLabel1.Text = hit.Parent.Name.."| Detention | "..num.. " Years until release"
  213. TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
  214. TextLabel1.BackgroundTransparency = 1
  215. TextLabel1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  216. TextLabel1.Font = Enum.Font.ArialBold
  217. TextLabel1.FontSize = Enum.FontSize.Size48
  218. TextLabel1.TextColor3 = Color3.new(1, 1, 1)
  219. TextLabel1.TextScaled = true
  220. TextLabel1.TextStrokeTransparency = 0
  221. TextLabel1.TextWrapped = true
  222. TextLabel1.TextYAlignment = Enum.TextYAlignment.Top
  223. game:GetService("Debris"):AddItem(SOUND,5)
  224. game:GetService("Debris"):AddItem(message,5)
  225. hit.Parent.Humanoid:Destroy()
  226. --jailtime(hit.Parent)
  227. wait(3)
  228. debounce = false
  229. end
  230.  
  231. end
  232.  
  233.  
  234. function jailtime(char)
  235. for i = num, 0, -1 do
  236. wait(1)
  237. TextLabel1.Text = char.Name.."| Detention | "..i.. " Years until release"
  238. end
  239.  
  240. char.Humanoid.MaxHealth = 100
  241. print("Godded!")
  242. char.ForceField:Destroy()
  243. print("UNFFed!")
  244.  
  245. char.Humanoid.PlatformStand = false
  246.  
  247. BillboardGui0:Destroy()
  248. end
  249.  
  250. script.Parent.Touched:connect(arrest)
  251. end))
  252. for i,v in pairs(mas:GetChildren()) do
  253. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  254. pcall(function() v:MakeJoints() end)
  255. end
  256. mas:Destroy()
  257. for i,v in pairs(cors) do
  258. spawn(function()
  259. pcall(v)
  260. end)
  261. end
  262. base = Instance.new("ScreenGui",plr.PlayerGui)
  263. bbg = Instance.new("BillboardGui",plr.Character.Head)
  264. bbg.Size = UDim2.new(0,200,0,50)
  265. bbg.StudsOffset = Vector3.new(0,3,0)
  266. bbgTl = Instance.new("TextLabel",bbg)
  267. bbgTl.BackgroundTransparency = 1
  268. bbgTl.Size = UDim2.new(10,0,1,0)
  269. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  270. bbgTl.Font = "Code"
  271. bbgTl.Text = " "
  272. bbgTl.TextSize = 25
  273. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  274. bbgTl.TextColor3 = Color3.new(0,0,0)
  275. bbgTl.TextStrokeTransparency = 0
  276. bbgTl.TextWrapped = true
  277. plr.Chatted:connect(function(msg)
  278. bbgTl.Text = msg
  279. wait(5)
  280. if bbgTl.Text == msg then
  281. bbgTl.Text = " "
  282. end
  283. end)
Add Comment
Please, Sign In to add comment