BINO2002

Untitled

Apr 19th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.65 KB | None | 0 0
  1. -- MLG Probe - build: 1.455.2
  2. -- Made by jillmiles1
  3.  
  4. wait()
  5. local Player = game:service'Players'.LocalPlayer
  6. local Mouse = Player:GetMouse()
  7. local RbxU = LoadLibrary'RbxUtility'
  8. local Create = RbxU.Create
  9. local Cam = workspace.CurrentCamera
  10. local SID = 156434403
  11.  
  12. script.Parent = Player:FindFirstChild('PlayerGui')
  13. script.Parent = nil
  14.  
  15. local Services = {
  16. work = game:service'Workspace',
  17. lighting = game:service'Lighting',
  18. debris = game:service'Debris',
  19. run = game:GetService('RunService'),
  20. }
  21.  
  22. local EarthPart = nil
  23. local BagPart = nil
  24. local CanPart = nil
  25. local GunPart = nil
  26. local HeadPart = nil
  27. local KnifePart = nil
  28.  
  29. local function Probe()
  30. if EarthPart ~= nil and workspace:FindFirstChild(EarthPart.Name,true) then
  31. EarthPart:remove()
  32. EarthPart = nil
  33. end
  34. local Earth = Create'Part'{CFrame=Cam.Focus,Parent=workspace,Name='NilProbeEarth',Anchored=true,CanCollide=false,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  35. local EarthMesh = Create'SpecialMesh'{Parent=Earth,MeshId='http://www.roblox.com/asset/?id=10061232',Scale=Vector3.new(3,3,3),TextureId='http://www.roblox.com/asset/?id=10061209'}
  36. local Bag = Create'Part'{Parent=Earth,Anchored=true,CanCollide=false,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  37. local BagMesh = Create'SpecialMesh'{Parent=Bag,MeshId='http://www.roblox.com/asset/?id=19106014',Scale=Vector3.new(1,1,1),TextureId='http://www.roblox.com/asset/?id=37305301'}
  38. local Can = Create'Part'{Parent=Earth,Anchored=true,CanCollide=false,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  39. local CanMesh = Create'SpecialMesh'{Parent=Can,MeshId='http://www.roblox.com/asset/?id=10470609',Scale=Vector3.new(1.2,1.2,1.2),TextureId='http://www.roblox.com/asset/?id=10550002'}
  40. local Gun = Create'Part'{Parent=Earth,Anchored=true,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  41. local GunMesh = Create'SpecialMesh'{Parent=Gun,MeshId='http://www.roblox.com/asset/?id=94219391',Scale=Vector3.new(.75,.75,.75),TextureId='http://www.roblox.com/asset/?id=94219470'}
  42. local Headphones = Create'Part'{Parent=Earth,Anchored=true,CanCollide=false,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  43. local HeadphonesMesh = Create'SpecialMesh'{Parent=Headphones,MeshId='http://www.roblox.com/asset/?id=99878143',Scale=Vector3.new(1,1,1),TextureId='http://www.roblox.com/asset/?id=151491772'}
  44. local Knife = Create'Part'{Parent=Earth,Anchored=true,CanCollide=false,Locked=true,FormFactor='Custom',Size=Vector3.new(.2,.2,.2)}
  45. local KnifeMesh = Create'SpecialMesh'{Parent=Knife,MeshId='http://www.roblox.com/asset/?id=121944778',Scale=Vector3.new(.7,.7,.7),TextureId='http://www.roblox.com/asset/?id=177974585'}
  46. local Sound = Create'Sound'{Parent=Earth,Volume=.4,SoundId='rbxassetid://'..tonumber(SID),Looped=true}
  47. Earth.Changed:connect(function()
  48. if (not(workspace:FindFirstChild(Earth.Name,true))) then
  49. Probe()
  50. end
  51. end)
  52. Sound:Play()
  53. BagPart = Bag
  54. CanPart = Can
  55. GunPart = Gun
  56. HeadPart = Headphones
  57. KnifePart = Knife
  58. EarthPart = Earth
  59. end Probe()
  60.  
  61. local Commands = {}
  62. CheckChat = function(msg)
  63. local CmdRun = false
  64. for i,v in pairs(Commands) do
  65. if msg:lower():sub(1,#(v.Cmd..'/')) == v.Cmd..'/' then
  66. msg = msg:sub(#(v.Cmd..'/')+1)
  67. CmdRun = true
  68. return v.Func(msg)
  69. end
  70. end
  71. if not CmdRun then
  72. NewChat(msg)
  73. end
  74. end
  75.  
  76. NC = function(cmd,func)
  77. table.insert(Commands,{Cmd = cmd,Func = func})
  78. end
  79.  
  80. NC('refresh',function(msg)
  81. Probe()
  82. end)
  83.  
  84. NC('music',function(msg)
  85. SID = msg
  86. Probe()
  87. NewChat('Music is now '..game:GetService('MarketplaceService'):GetProductInfo(tonumber(SID)).Name)
  88. end)
  89.  
  90. NewChat = function(msg) spawn(function()
  91. if EarthPart ~= nil and EarthPart.Parent ~= nil then
  92. local BG = Instance.new('BillboardGui')
  93. BG.Parent=EarthPart
  94. BG.Size=UDim2.new(5,0,3,0)
  95. BG.StudsOffset=Vector3.new(0,4.8,0)
  96. local PN = Instance.new('TextLabel')
  97. PN.Parent=BG
  98. PN.BackgroundTransparency=1
  99. PN.Position=UDim2.new(0,0,.98,0)
  100. PN.Size=UDim2.new(1,0,.3,0)
  101. PN.ZIndex=2
  102. PN.Font='SourceSansBold'
  103. PN.FontSize='Size18'
  104. PN.TextColor3=Color3.new(0/255,0/255,255/255)
  105. PN.Text=Player.Name..' :MLG-PROBE'
  106. end
  107. if #msg ~= 50 then
  108. local PCB = Instance.new('TextLabel')
  109. PCB.Parent=EarthPart:FindFirstChild('BillboardGui',true)
  110. PCB.BackgroundColor3=Color3.new(255/255,255/255,255/255)
  111. PCB.BackgroundTransparency=1
  112. PCB.Position=UDim2.new(0,0,.9,0)
  113. PCB.Size=UDim2.new(1,0,.15,0)
  114. PCB.ZIndex=3
  115. PCB.Font='ArialBold'
  116. PCB.FontSize='Size24'
  117. PCB.TextColor3=Color3.new(255/255,255/255,255/255)
  118. PCB.TextTransparency=1
  119. msg = '[MLG-PROBE]: '..msg:gsub('','\5')
  120. spawn(function()
  121. for i = .1,1,.1 do
  122. PCB.TextTransparency = PCB.TextTransparency -.1
  123. Services.run.RenderStepped:wait()
  124. end
  125. end)
  126. for v = 1, #msg do
  127. PCB.Text = string.sub(msg,1,v)
  128. Services.run.RenderStepped:wait()
  129. end
  130. delay(wait(),function()
  131. while wait(.15) do
  132. PCB.TextColor3 = BrickColor.Random().Color
  133. end
  134. end)
  135. PCB:TweenPosition(UDim2.new(0,0,0,0),'In','Linear',2.7)
  136. wait(3)
  137. for i = .1,1,.1 do
  138. PCB.TextTransparency = PCB.TextTransparency +.1
  139. Services.run.Stepped:wait()
  140. end
  141. PCB:remove()
  142. end
  143. end) end
  144. game:service'StarterGui':GetCoreGuiEnabled('All',true)
  145. Player.Chatted:connect(function(msg)
  146. if msg:lower():sub(1,3) == '/e ' then
  147. msg = msg:sub(4)
  148. end
  149. CheckChat(msg)
  150. end)
  151.  
  152. local Num = 1 local Num2 = .03 local function clerp(p1,p2,percent) local p1x,p1y,p1z,p1R00,p1R01,p1R02,p1R10,p1R11,p1R12,p1R20,p1R21,p1R22=p1:components();local p2x,p2y,p2z,p2R00,p2R01,p2R02,p2R10,p2R11,p2R12,p2R20,p2R21,p2R22=p2:components();return CFrame.new(p1x+percent*(p2x-p1x),p1y+percent*(p2y-p1y),p1z+percent*(p2z-p1z),p1R00+percent*(p2R00-p1R00),p1R01+percent*(p2R01-p1R01),p1R02+percent*(p2R02-p1R02),p1R10+percent*(p2R10-p1R10),p1R11+percent*(p2R11-p1R11),p1R12+percent*(p2R12-p1R12),p1R20+percent*(p2R20-p1R20),p1R21+percent*(p2R21-p1R21),p1R22+percent*(p2R22-p1R22)) end
  153. Services.run.Stepped:connect(function()
  154. local r,e = ypcall(function()
  155. Num = Num + Num2
  156. if EarthPart ~= nil then
  157. local EPos = EarthPart.CFrame.p
  158. EarthPart.CFrame = clerp(EarthPart.CFrame,CFrame.new(Cam.Focus.p)*CFrame.Angles(0,Num*.13,0)*CFrame.new(0,math.sin(Num),0)*CFrame.fromEulerAnglesXYZ(Num/2,Num/2,Num/2),.1)
  159. BagPart.CFrame = clerp(BagPart.CFrame,CFrame.new(EPos)*CFrame.Angles(0,Num*2.1,0)*CFrame.new(3.1,math.sin(Num*.13),0)*CFrame.fromEulerAnglesXYZ(Num,Num,Num),.17)
  160. CanPart.CFrame = clerp(CanPart.CFrame,CFrame.new(EPos)*CFrame.Angles(0,Num*1.2,0)*CFrame.new(3.8,math.sin(Num*.1),0)*CFrame.fromEulerAnglesXYZ(Num,Num,Num),.17)
  161. GunPart.CFrame = clerp(GunPart.CFrame,CFrame.new(EPos)*CFrame.Angles(0,Num*.7,0)*CFrame.new(5.1,math.sin(Num*.17),0)*CFrame.fromEulerAnglesXYZ(Num,Num,Num),.17)
  162. HeadPart.CFrame = clerp(HeadPart.CFrame,CFrame.new(EPos)*CFrame.Angles(0,Num*2.3,0)*CFrame.new(4.1,math.sin(Num*2.1),0)*CFrame.fromEulerAnglesXYZ(Num,Num,Num),.17)
  163. KnifePart.CFrame = clerp(KnifePart.CFrame,CFrame.new(EPos)*CFrame.Angles(0,Num*1.8,0)*CFrame.new(3.5,math.sin(Num*3.1),0)*CFrame.fromEulerAnglesXYZ(Num,Num,Num),.17)
  164. end
  165. end)
  166. end)
  167.  
  168. Mouse.Button1Down:connect(function()
  169. if Mouse.Target ~= nil and Mouse.Hit ~= nil then
  170. spawn(function()
  171. local Dist = ((EarthPart.Position-Mouse.Hit.p).magnitude)
  172. local Bullet = Create'Part'{BrickColor=BrickColor.new('New Yeller'),Parent=GunPart,Name='Bullet',Anchored=true,CanCollide=true,Locked=true,FormFactor='Custom'}
  173. Bullet.Size=Vector3.new(.2,Dist,.2)
  174. Bullet.CFrame = CFrame.new(GunPart.Position,Mouse.Hit.p)
  175. * CFrame.new(0,0,-Dist/2.3)
  176. * CFrame.Angles(math.pi/2,0,0)
  177. pcall(function()
  178. local obj = Mouse.Target
  179. if obj.ClassName == 'Part' and obj ~= Bullet then
  180. if obj.Name == 'Head' then
  181. local HeadSound = Instance.new("Sound",obj) HeadSound.Pitch = 1 HeadSound.Volume = 1 HeadSound.Looped = false HeadSound.SoundId = "rbxassetid://131313234"
  182. HeadSound:Play()
  183. if obj.Parent:FindFirstChild('Humanoid',true) then
  184. for _,charobj in ipairs(obj.Parent:GetChildren()) do
  185. if charobj.ClassName == 'Part' then
  186. charobj.BrickColor = BrickColor.Black()
  187. end
  188. pcall(function() charobj:MakeJoints() end)
  189. if charobj.ClassName == 'BodyColors' then
  190. charobj.HeadColor = BrickColor.Black()
  191. charobj.LeftArmColor = BrickColor.Black()
  192. charobj.LeftLegColor = BrickColor.Black()
  193. charobj.RightArmColor = BrickColor.Black()
  194. charobj.RightLegColor = BrickColor.Black()
  195. charobj.TorsoColor = BrickColor.Black()
  196. end
  197. end
  198. obj.Parent.Humanoid.Health = 0
  199. end
  200. if obj.Parent:FindFirstChild('Humanoid',true) then
  201. obj.Died:connect(function()
  202. local HeadSound = Instance.new("Sound",obj) HeadSound.Pitch = 1 HeadSound.Volume = 1 HeadSound.Looped = false HeadSound.SoundId = "rbxassetid://131979189"
  203. HeadSound:Play()
  204. end)
  205. end
  206. else
  207. if obj.Parent:FindFirstChild('Humanoid',true) then
  208. obj.Parent.Humanoid.Health = obj.Parent.Humanoid.Health - 15
  209. end
  210. if obj.Parent:FindFirstChild('Humanoid',true) then
  211. obj.Died:connect(function()
  212. local HeadSound = Instance.new("Sound",obj) HeadSound.Pitch = 1 HeadSound.Volume = 1 HeadSound.Looped = false HeadSound.SoundId = "rbxassetid://131979189"
  213. HeadSound:Play()
  214. end)
  215. end
  216. end
  217. elseif obj.ClassName == 'Hat' then
  218. obj:remove()
  219. end
  220. end)
  221. local GunSound = Instance.new("Sound",workspace) GunSound.Pitch = 1 GunSound.Volume = .6 GunSound.Looped = false GunSound.SoundId = "rbxassetid://132456235"
  222. GunSound:Play()
  223. for i = 0,1,.1 do
  224. Bullet.Size = Bullet.Size + Vector3.new(.05,.05,.05)
  225. Bullet.Transparency = Bullet.Transparency + .1
  226. Services.run.RenderStepped:wait()
  227. end
  228. Bullet:remove()
  229. delay(8,function()
  230. GunSound:Destroy()
  231. end)
  232. end)
  233. end
  234. end) Player.Character = nil;wait();Player:remove();NewChat('MLGProbe; Created by jillmiles1') wait(1) NewChat('Enjoy!')
Add Comment
Please, Sign In to add comment