Advertisement
yonidrori

Untitled

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