Advertisement
marioisdabomb

Untitled

Jun 15th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.30 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. --
  142. --by SazErenos i think
  143. wait(.2)
  144.  
  145. vPlayer=owner
  146.  
  147.  
  148.  
  149. Tool=script.Parent
  150. --if script.Parent.className~="Tool" then
  151.  
  152. Tool=Instance.new("Tool")
  153. Tool.Name="Tea"
  154. Tool.Parent=vPlayer.Backpack
  155. Handle=Instance.new("Part")
  156. Handle.Size=Vector3.new(2.6,2.6,2.6)
  157. Handle.TopSurface=0
  158. Handle.BottomSurface=0
  159. Handle.Name="Handle"
  160. Handle.formFactor="Custom"
  161. Handle.Parent=Tool
  162. Handle.BrickColor=BrickColor:White()
  163. Tool.GripRight=Vector3.new(0,0,1)
  164. Tool.GripPos=Vector3.new(-1.08,-.1,.1)
  165.  
  166.  
  167. m=Instance.new("SpecialMesh")
  168. m.MeshType="FileMesh"
  169. m.MeshId="http://www.roblox.com/asset/?id=1029523"
  170. m.Parent=Handle
  171. m.Scale=Vector3.new(.05,.05,.05)
  172. --script:clone().Parent=Tool
  173. script.Parent=Tool
  174. wait()
  175. --else
  176.  
  177. Tool=script.Parent
  178. Mouse=vPlayer:GetMouse()
  179. deb=true
  180. onClick=function()
  181. if deb==false then
  182. return
  183. end
  184. deb=false
  185. e=0
  186. rs=vPlayer.Character["Torso"]["Right Shoulder"]
  187.  
  188.  
  189. s=Instance.new("Sound")
  190. s.SoundId="http://www.roblox.com/asset/?id=159257160"
  191. s.Volume=1
  192. s.Parent=Tool.Handle
  193. s:Play()
  194. game:GetService("Debris"):AddItem(s,5)
  195. wait(5)
  196. lolol=rs.C0
  197. for i=1, 4 do
  198. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
  199. wait(.031)
  200. end
  201. s=Instance.new("Sound")
  202. s.Volume=1
  203. s.Parent=Tool.Handle
  204. s.Name="Throw"
  205. s.Pitch=.8
  206. s.SoundId="http://www.roblox.com/asset/?id=189505665"
  207. s:Play()
  208. game:GetService("Debris"):AddItem(s,5)
  209. for i=1, 2 do
  210. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  211. wait(.031)
  212. end
  213. --throw
  214. hh=Tool.Handle:clone()
  215. dir=(hh.Position - owner.Hit.p).unit*-1
  216. Tool.Handle.Transparency=1
  217. hh.CanCollide=true
  218. hh.Parent=workspace
  219. hh.Velocity=dir*200+Vector3.new(0,5,0)
  220. ff=Instance.new("BodyForce")
  221. ff.force=Vector3.new(0,hh:GetMass()*140,0)
  222. ff.Parent=hh
  223. for i=1, 2 do
  224. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  225. hh.Velocity=dir*330
  226. wait(.031)
  227. end
  228. hitdeb=true
  229. hh.Touched:connect(function(hit)
  230. if hit==nil or hitdeb==false then return end
  231. if hit.Parent==nil then return end
  232. if hit.Parent:FindFirstChild("Humanoid")~=nil and hh:FindFirstChild("Hit")==nil then
  233. if hit.Parent==owner then return end
  234. hitdeb=false
  235. hit.Anchored=true
  236. hh.Anchored=true
  237. s=Instance.new("Sound")
  238. s.Volume=1
  239. s.Parent=hit
  240. s.Name="Hit1"
  241. s.SoundId="http://www.roblox.com/asset/?id=167783266"
  242. s:Play()
  243. wait(.5)
  244. hit.Anchored=false
  245. hit.Parent:BreakJoints()
  246. s=Instance.new("Sound")
  247. s.Volume=1
  248. s.Parent=hh
  249. s.Name="Hit1"
  250. s.SoundId="http://www.roblox.com/asset/?id=168009623"
  251. s:Play()
  252. s=Instance.new("Sound")
  253. s.Volume=1
  254. s.Parent=hh
  255. s.Name="Hit2"
  256. s.SoundId="http://www.roblox.com/asset/?id=163680447"
  257. s:Play()
  258. s5=Instance.new("Sound")
  259. s5.Volume=1
  260. s5.Parent=hh
  261. s5.Name="Hit"
  262. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  263. s5.Pitch=.85
  264. s5:Play()
  265. e=Instance.new("Explosion",workspace)
  266. e.Position=hh.Position
  267. e.BlastPressure=e.BlastPressure*4
  268.  
  269. for _,v in pairs(hit.Parent:children()) do
  270. if v:IsA("BasePart") then
  271. v.Velocity=(v.Position - hh.Position).unit * 90 + Vector3.new(math.random(-20,20),math.random(0,20),math.random(-20,20))
  272. v.RotVelocity=-v.Velocity * 1.2
  273. end
  274. end
  275.  
  276. m=Instance.new("Model",workspace)
  277. m.Name="Illuminaughty"
  278. p=Instance.new("Part",m)
  279. p.Name="REK"
  280. p.TopSurface=0
  281. p.BottomSurface=0
  282. p.Anchored=true
  283. p.CanCollide=false
  284. p.Transparency=1
  285. p.CFrame=hh.CFrame
  286. b=Instance.new("BillboardGui",p)
  287. b.Size=UDim2.new(25,0,25,0)
  288. b.Adornee=p
  289. --ss=script.REKT:clone()
  290. --ss.Disabled=false
  291. --recentchar=b
  292. --ss.Parent=b
  293. partica(b)
  294.  
  295.  
  296. hh.Transparency=1
  297. for i=1, 20 do
  298. p=Instance.new("Part")
  299. p.TopSurface=0
  300. p.BottomSurface=0
  301. p.Name="Shard"
  302. p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10)
  303. p.BrickColor=hh.BrickColor
  304. p.CanCollide=false
  305. p.formFactor="Custom"
  306. p.Size=Vector3.new(.2,.2,.2)
  307. if math.random(1,3)==1 then
  308. m=Instance.new("BlockMesh")
  309. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  310. m.Parent=p
  311. else
  312. m=Instance.new("SpecialMesh")
  313. m.MeshType="Wedge"
  314. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  315. m.Parent=p
  316. end
  317. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  318. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  319. p.Parent=workspace
  320. end
  321.  
  322. hh.Anchored=true
  323.  
  324. end
  325. if hit.Parent:FindFirstChild("Humanoid")==nil and hh:FindFirstChild("Hit")==nil and hit.CanCollide==true then
  326. hh.Transparency=1
  327. for i=1, 20 do
  328. p=Instance.new("Part")
  329. p.TopSurface=0
  330. p.BottomSurface=0
  331. p.Name="Shard"
  332. p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10)
  333. p.BrickColor=hh.BrickColor
  334. p.CanCollide=false
  335. p.formFactor="Custom"
  336. p.Size=Vector3.new(.2,.2,.2)
  337. if math.random(1,3)==1 then
  338. m=Instance.new("BlockMesh")
  339. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  340. m.Parent=p
  341. else
  342. m=Instance.new("SpecialMesh")
  343. m.MeshType="Wedge"
  344. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  345. m.Parent=p
  346. end
  347. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  348. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  349. p.Parent=workspace
  350. end
  351. for i=1, 4 do
  352. s5=Instance.new("Sound")
  353. s5.Volume=1
  354. s5.Parent=hh
  355. s5.Name="Hit"
  356. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  357. s5.Pitch=.85
  358. s5:Play()
  359. end
  360. hh.Anchored=true
  361. end
  362. end)
  363. game:GetService("Debris"):AddItem(hh,5)
  364. wait(4.33)
  365. Tool.Handle.Transparency=0
  366. deb=true
  367. end
  368. Tool.Activated:connect(onClick)
  369. --end
  370. partica=function(hit)
  371. wait()
  372. Images={
  373. "http://www.roblox.com/asset/?id=186565637",
  374. "http://www.roblox.com/asset/?id=186565642",
  375. "http://www.roblox.com/asset/?id=186565650",
  376. "http://www.roblox.com/asset/?id=186565652",
  377. "http://www.roblox.com/asset/?id=186565662",
  378. "http://www.roblox.com/asset/?id=186565671",
  379. "http://www.roblox.com/asset/?id=186565685",
  380. "http://www.roblox.com/asset/?id=186565693",
  381. "http://www.roblox.com/asset/?id=186565702",
  382. "http://www.roblox.com/asset/?id=186565710",
  383. "http://www.roblox.com/asset/?id=186565720",
  384. "http://www.roblox.com/asset/?id=186565730",
  385. "http://www.roblox.com/asset/?id=186565734",
  386. "http://www.roblox.com/asset/?id=186565741",
  387. "http://www.roblox.com/asset/?id=186565749",
  388. "http://www.roblox.com/asset/?id=186565754",
  389. }
  390. sos=b--script.Parent
  391. for i=1, #Images do
  392. p=Instance.new("ImageLabel",sos)
  393. p.Image=Images[i]
  394. p.BackgroundTransparency=1
  395. p.Visible=false
  396. p.Size=UDim2.new(1,0,1,0)
  397. p.Name=i
  398. end
  399. i=0
  400. sossij=0
  401. lel=game:GetService("RunService").Heartbeat:connect(function()
  402. if i<#Images then
  403. if sossij==1 then
  404. i=i+1
  405. --[[script.Parent[i]]b:children()[i].Visible=true
  406. if i>1 then
  407. --[[script.Parentb[i-1]]b:children()[i]:Destroy()
  408. end
  409. sossij=0
  410. else
  411. sossij=1
  412. end
  413. else
  414. lel:disconnect()
  415. end
  416. end)
  417. rekt={"http://www.roblox.com/asset/?id=185386536",
  418. "http://www.roblox.com/asset/?id=8979672",
  419. "http://www.roblox.com/asset/?id=10524802",
  420. "http://www.roblox.com/asset/?id=176067516",
  421. "http://www.roblox.com/asset/?id=179012130",
  422. "http://www.roblox.com/asset/?id=155875030",
  423. "http://www.roblox.com/asset/?id=180976600",
  424. "http://www.roblox.com/asset/?id=188207856",
  425. "http://www.roblox.com/asset/?id=89513267",
  426. }
  427. sparkles={"http://www.roblox.com/asset/?id=186675771",
  428. "http://www.roblox.com/asset/?id=185386497",
  429. "http://www.roblox.com/asset/?id=185386514"}
  430. for jooj=1, 30 do
  431. p=Instance.new("Part",sos)
  432. p.Name="Shrubbery"
  433. p.TopSurface=0
  434. p.BottomSurface=0
  435. p.Transparency=1
  436.  
  437. p.Shape="Ball"
  438. soos=math.random(1,3)
  439. p.Size=Vector3.new(soos,soos,soos)
  440. p.CFrame=sos.Parent.CFrame * CFrame.new(Vector3.new(math.random(-50,50),math.random(-10,100),math.random(-50,50))/10)
  441.  
  442. p.Velocity=Vector3.new(math.random(-30,30),math.random(10,100),math.random(-30,30))
  443. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  444.  
  445. b=Instance.new("BillboardGui",p)
  446. b.Name="SOSSIJ"
  447. b.Size=UDim2.new(soos*2,0,soos*2,0)
  448. b.Adornee=p
  449. s=Instance.new("ImageLabel",b)
  450. s.Name="Qaeoisgeyhuehuehuehuehuehuehueheuehu"
  451. s.Size=UDim2.new(1,0,1,0)
  452. s.Image=rekt[math.random(1,#rekt)]
  453. s.BackgroundTransparency=1
  454.  
  455. p.Elasticity=0
  456.  
  457. f=Instance.new("BodyForce")
  458. f.force=Vector3.new(0,p:GetMass()*140,0)
  459. f.Parent=p
  460.  
  461. coroutine.resume(coroutine.create(function(p)
  462. while p.Parent~=nil do
  463. p.Rotation=-p.Parent.Parent.Rotation.x + p.Parent.Parent.Rotation.z
  464. wait()
  465. end
  466. end),s)
  467.  
  468. game:GetService("Debris"):AddItem(p,15)
  469. end
  470. for jooj=1, 40 do
  471. p=Instance.new("Part",sos)
  472. p.Name="Spork"
  473. p.TopSurface=0
  474. p.BottomSurface=0
  475. p.Transparency=1
  476. p.CanCollide=false
  477. p.Shape="Ball"
  478. soos=1
  479. p.Size=Vector3.new(soos,soos,soos)
  480. p.CFrame=sos.Parent.CFrame * CFrame.new(Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))/10)
  481.  
  482. p.Velocity=Vector3.new(math.random(-30,30),math.random(10,100),math.random(-30,30))
  483. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  484. soos=math.random(1,3)
  485. b=Instance.new("BillboardGui",p)
  486. b.Name="SOSSIJ"
  487. b.Size=UDim2.new(soos,0,soos,0)
  488. b.Adornee=p
  489. s=Instance.new("ImageLabel",b)
  490. s.Name="Qaeoisgeyhuehuehuehuehuehuehueheuehu"
  491. s.Size=UDim2.new(1,0,1,0)
  492. s.Image=sparkles[math.random(1,#sparkles)]
  493. s.BackgroundTransparency=1
  494. bbbg=b
  495. p.Elasticity=0
  496.  
  497. f=Instance.new("BodyVelocity")
  498. f.velocity=p.Velocity / 5
  499. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  500. f.Parent=p
  501.  
  502. coroutine.resume(coroutine.create(function(p)
  503. while p.Parent~=nil do
  504. p.Rotation=-p.Parent.Parent.Rotation.x + p.Parent.Parent.Rotation.z
  505. p.Parent.Parent.BodyVelocity.velocity=p.Parent.Parent.BodyVelocity.velocity - Vector3.new(0,183/800,0)
  506. wait()
  507. end
  508. end),s)
  509.  
  510. game:GetService("Debris"):AddItem(p,12)
  511. end
  512. repeat wait() until i==#Images
  513. --script.Parent]]b:children()[tonumber(#Images)].Visible=false
  514. --script.Parent]]b:children()[tonumber(#Images)]:Remove()
  515. bbbg:Destroy()
  516. wait(10)
  517. --sos.Parent.Parent:Destroy()
  518. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement