marioisdabomb

FE mlg tea (testing)

Dec 1st, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --
  87. --by SazErenos i think
  88. wait(.2)
  89.  
  90. vPlayer=owner
  91.  
  92.  
  93.  
  94. Tool=script.Parent
  95. --if script.Parent.className~="Tool" then
  96.  
  97. Tool=Instance.new("Tool")
  98. Tool.Name="Tea"
  99. Tool.Parent=vPlayer.Backpack
  100. Handle=Instance.new("Part")
  101. Handle.Size=Vector3.new(2.6,2.6,2.6)
  102. Handle.TopSurface=0
  103. Handle.BottomSurface=0
  104. Handle.Name="Handle"
  105. Handle.formFactor="Custom"
  106. Handle.Parent=Tool
  107. Handle.BrickColor=BrickColor:White()
  108. Tool.GripRight=Vector3.new(0,0,1)
  109. Tool.GripPos=Vector3.new(-1.08,-.1,.1)
  110.  
  111.  
  112. m=Instance.new("SpecialMesh")
  113. m.MeshType="FileMesh"
  114. m.MeshId="http://www.roblox.com/asset/?id=1029523"
  115. m.Parent=Handle
  116. m.Scale=Vector3.new(.05,.05,.05)
  117. --script:clone().Parent=Tool
  118. script.Parent=Tool
  119. wait()
  120. --else
  121.  
  122. Tool=script.Parent
  123. Mouse=vPlayer:GetMouse()
  124. deb=true
  125. onClick=function()
  126. if deb==false then
  127. return
  128. end
  129. deb=false
  130. e=0
  131. rs=vPlayer.Character["Torso"]["Right Shoulder"]
  132.  
  133.  
  134. s=Instance.new("Sound")
  135. s.SoundId="http://www.roblox.com/asset/?id=159257160"
  136. s.Volume=1
  137. s.Parent=Tool.Handle
  138. s:Play()
  139. game:GetService("Debris"):AddItem(s,5)
  140. wait(5)
  141. lolol=rs.C0
  142. for i=1, 4 do
  143. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
  144. wait(.031)
  145. end
  146. s=Instance.new("Sound")
  147. s.Volume=1
  148. s.Parent=Tool.Handle
  149. s.Name="Throw"
  150. s.Pitch=.8
  151. s.SoundId="http://www.roblox.com/asset/?id=189505665"
  152. s:Play()
  153. game:GetService("Debris"):AddItem(s,5)
  154. for i=1, 2 do
  155. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  156. wait(.031)
  157. end
  158. --throw
  159. hh=Tool.Handle:clone()
  160. dir=(hh.Position - owner.Hit.p).unit*-1
  161. Tool.Handle.Transparency=1
  162. hh.CanCollide=true
  163. hh.Parent=workspace
  164. hh.Velocity=dir*200+Vector3.new(0,5,0)
  165. ff=Instance.new("BodyForce")
  166. ff.force=Vector3.new(0,hh:GetMass()*140,0)
  167. ff.Parent=hh
  168. for i=1, 2 do
  169. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  170. hh.Velocity=dir*330
  171. wait(.031)
  172. end
  173. hitdeb=true
  174. hh.Touched:connect(function(hit)
  175. if hit==nil or hitdeb==false then return end
  176. if hit.Parent==nil then return end
  177. if hit.Parent:FindFirstChild("Humanoid")~=nil and hh:FindFirstChild("Hit")==nil then
  178. if hit.Parent==owner then return end
  179. hitdeb=false
  180. hit.Anchored=true
  181. hh.Anchored=true
  182. s=Instance.new("Sound")
  183. s.Volume=1
  184. s.Parent=hit
  185. s.Name="Hit1"
  186. s.SoundId="http://www.roblox.com/asset/?id=167783266"
  187. s:Play()
  188. wait(.5)
  189. hit.Anchored=false
  190. hit.Parent:BreakJoints()
  191. s=Instance.new("Sound")
  192. s.Volume=1
  193. s.Parent=hh
  194. s.Name="Hit1"
  195. s.SoundId="http://www.roblox.com/asset/?id=168009623"
  196. s:Play()
  197. s=Instance.new("Sound")
  198. s.Volume=1
  199. s.Parent=hh
  200. s.Name="Hit2"
  201. s.SoundId="http://www.roblox.com/asset/?id=163680447"
  202. s:Play()
  203. s5=Instance.new("Sound")
  204. s5.Volume=1
  205. s5.Parent=hh
  206. s5.Name="Hit"
  207. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  208. s5.Pitch=.85
  209. s5:Play()
  210. e=Instance.new("Explosion",workspace)
  211. e.Position=hh.Position
  212. e.BlastPressure=e.BlastPressure*4
  213.  
  214. for _,v in pairs(hit.Parent:children()) do
  215. if v:IsA("BasePart") then
  216. v.Velocity=(v.Position - hh.Position).unit * 90 + Vector3.new(math.random(-20,20),math.random(0,20),math.random(-20,20))
  217. v.RotVelocity=-v.Velocity * 1.2
  218. end
  219. end
  220.  
  221. m=Instance.new("Model",workspace)
  222. m.Name="Illuminaughty"
  223. p=Instance.new("Part",m)
  224. p.Name="REK"
  225. p.TopSurface=0
  226. p.BottomSurface=0
  227. p.Anchored=true
  228. p.CanCollide=false
  229. p.Transparency=1
  230. p.CFrame=hh.CFrame
  231. b=Instance.new("BillboardGui",p)
  232. b.Size=UDim2.new(25,0,25,0)
  233. b.Adornee=p
  234. --ss=script.REKT:clone()
  235. --ss.Disabled=false
  236. --recentchar=b
  237. --ss.Parent=b
  238. partica(b)
  239.  
  240.  
  241. hh.Transparency=1
  242. for i=1, 20 do
  243. p=Instance.new("Part")
  244. p.TopSurface=0
  245. p.BottomSurface=0
  246. p.Name="Shard"
  247. 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)
  248. p.BrickColor=hh.BrickColor
  249. p.CanCollide=false
  250. p.formFactor="Custom"
  251. p.Size=Vector3.new(.2,.2,.2)
  252. if math.random(1,3)==1 then
  253. m=Instance.new("BlockMesh")
  254. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  255. m.Parent=p
  256. else
  257. m=Instance.new("SpecialMesh")
  258. m.MeshType="Wedge"
  259. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  260. m.Parent=p
  261. end
  262. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  263. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  264. p.Parent=workspace
  265. end
  266.  
  267. hh.Anchored=true
  268.  
  269. end
  270. if hit.Parent:FindFirstChild("Humanoid")==nil and hh:FindFirstChild("Hit")==nil and hit.CanCollide==true then
  271. hh.Transparency=1
  272. for i=1, 20 do
  273. p=Instance.new("Part")
  274. p.TopSurface=0
  275. p.BottomSurface=0
  276. p.Name="Shard"
  277. 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)
  278. p.BrickColor=hh.BrickColor
  279. p.CanCollide=false
  280. p.formFactor="Custom"
  281. p.Size=Vector3.new(.2,.2,.2)
  282. if math.random(1,3)==1 then
  283. m=Instance.new("BlockMesh")
  284. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  285. m.Parent=p
  286. else
  287. m=Instance.new("SpecialMesh")
  288. m.MeshType="Wedge"
  289. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  290. m.Parent=p
  291. end
  292. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  293. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  294. p.Parent=workspace
  295. end
  296. for i=1, 4 do
  297. s5=Instance.new("Sound")
  298. s5.Volume=1
  299. s5.Parent=hh
  300. s5.Name="Hit"
  301. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  302. s5.Pitch=.85
  303. s5:Play()
  304. end
  305. hh.Anchored=true
  306. end
  307. end)
  308. game:GetService("Debris"):AddItem(hh,5)
  309. wait(4.33)
  310. Tool.Handle.Transparency=0
  311. deb=true
  312. end
  313. Tool.Activated:connect(onClick)
  314. --end
  315. partica=function(hit)
  316. wait()
  317. Images={
  318. "http://www.roblox.com/asset/?id=186565637",
  319. "http://www.roblox.com/asset/?id=186565642",
  320. "http://www.roblox.com/asset/?id=186565650",
  321. "http://www.roblox.com/asset/?id=186565652",
  322. "http://www.roblox.com/asset/?id=186565662",
  323. "http://www.roblox.com/asset/?id=186565671",
  324. "http://www.roblox.com/asset/?id=186565685",
  325. "http://www.roblox.com/asset/?id=186565693",
  326. "http://www.roblox.com/asset/?id=186565702",
  327. "http://www.roblox.com/asset/?id=186565710",
  328. "http://www.roblox.com/asset/?id=186565720",
  329. "http://www.roblox.com/asset/?id=186565730",
  330. "http://www.roblox.com/asset/?id=186565734",
  331. "http://www.roblox.com/asset/?id=186565741",
  332. "http://www.roblox.com/asset/?id=186565749",
  333. "http://www.roblox.com/asset/?id=186565754",
  334. }
  335. sos=b--script.Parent
  336. for i=1, #Images do
  337. p=Instance.new("ImageLabel",sos)
  338. p.Image=Images[i]
  339. p.BackgroundTransparency=1
  340. p.Visible=false
  341. p.Size=UDim2.new(1,0,1,0)
  342. p.Name=i
  343. end
  344. i=0
  345. sossij=0
  346. lel=game:GetService("RunService").Heartbeat:connect(function()
  347. if i<#Images then
  348. if sossij==1 then
  349. i=i+1
  350. --[[script.Parent[i]]b:children()[i].Visible=true
  351. if i>1 then
  352. --[[script.Parentb[i-1]]b:children()[i]:Destroy()
  353. end
  354. sossij=0
  355. else
  356. sossij=1
  357. end
  358. else
  359. lel:disconnect()
  360. end
  361. end)
  362. rekt={"http://www.roblox.com/asset/?id=185386536",
  363. "http://www.roblox.com/asset/?id=8979672",
  364. "http://www.roblox.com/asset/?id=10524802",
  365. "http://www.roblox.com/asset/?id=176067516",
  366. "http://www.roblox.com/asset/?id=179012130",
  367. "http://www.roblox.com/asset/?id=155875030",
  368. "http://www.roblox.com/asset/?id=180976600",
  369. "http://www.roblox.com/asset/?id=188207856",
  370. "http://www.roblox.com/asset/?id=89513267",
  371. }
  372. sparkles={"http://www.roblox.com/asset/?id=186675771",
  373. "http://www.roblox.com/asset/?id=185386497",
  374. "http://www.roblox.com/asset/?id=185386514"}
  375. for jooj=1, 30 do
  376. p=Instance.new("Part",sos)
  377. p.Name="Shrubbery"
  378. p.TopSurface=0
  379. p.BottomSurface=0
  380. p.Transparency=1
  381.  
  382. p.Shape="Ball"
  383. soos=math.random(1,3)
  384. p.Size=Vector3.new(soos,soos,soos)
  385. p.CFrame=sos.Parent.CFrame * CFrame.new(Vector3.new(math.random(-50,50),math.random(-10,100),math.random(-50,50))/10)
  386.  
  387. p.Velocity=Vector3.new(math.random(-30,30),math.random(10,100),math.random(-30,30))
  388. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  389.  
  390. b=Instance.new("BillboardGui",p)
  391. b.Name="SOSSIJ"
  392. b.Size=UDim2.new(soos*2,0,soos*2,0)
  393. b.Adornee=p
  394. s=Instance.new("ImageLabel",b)
  395. s.Name="Qaeoisgeyhuehuehuehuehuehuehueheuehu"
  396. s.Size=UDim2.new(1,0,1,0)
  397. s.Image=rekt[math.random(1,#rekt)]
  398. s.BackgroundTransparency=1
  399.  
  400. p.Elasticity=0
  401.  
  402. f=Instance.new("BodyForce")
  403. f.force=Vector3.new(0,p:GetMass()*140,0)
  404. f.Parent=p
  405.  
  406. coroutine.resume(coroutine.create(function(p)
  407. while p.Parent~=nil do
  408. p.Rotation=-p.Parent.Parent.Rotation.x + p.Parent.Parent.Rotation.z
  409. wait()
  410. end
  411. end),s)
  412.  
  413. game:GetService("Debris"):AddItem(p,15)
  414. end
  415. for jooj=1, 40 do
  416. p=Instance.new("Part",sos)
  417. p.Name="Spork"
  418. p.TopSurface=0
  419. p.BottomSurface=0
  420. p.Transparency=1
  421. p.CanCollide=false
  422. p.Shape="Ball"
  423. soos=1
  424. p.Size=Vector3.new(soos,soos,soos)
  425. p.CFrame=sos.Parent.CFrame * CFrame.new(Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))/10)
  426.  
  427. p.Velocity=Vector3.new(math.random(-30,30),math.random(10,100),math.random(-30,30))
  428. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  429. soos=math.random(1,3)
  430. b=Instance.new("BillboardGui",p)
  431. b.Name="SOSSIJ"
  432. b.Size=UDim2.new(soos,0,soos,0)
  433. b.Adornee=p
  434. s=Instance.new("ImageLabel",b)
  435. s.Name="Qaeoisgeyhuehuehuehuehuehuehueheuehu"
  436. s.Size=UDim2.new(1,0,1,0)
  437. s.Image=sparkles[math.random(1,#sparkles)]
  438. s.BackgroundTransparency=1
  439. bbbg=b
  440. p.Elasticity=0
  441.  
  442. f=Instance.new("BodyVelocity")
  443. f.velocity=p.Velocity / 5
  444. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  445. f.Parent=p
  446.  
  447. coroutine.resume(coroutine.create(function(p)
  448. while p.Parent~=nil do
  449. p.Rotation=-p.Parent.Parent.Rotation.x + p.Parent.Parent.Rotation.z
  450. p.Parent.Parent.BodyVelocity.velocity=p.Parent.Parent.BodyVelocity.velocity - Vector3.new(0,183/800,0)
  451. wait()
  452. end
  453. end),s)
  454.  
  455. game:GetService("Debris"):AddItem(p,12)
  456. end
  457. repeat wait() until i==#Images
  458. --script.Parent]]b:children()[tonumber(#Images)].Visible=false
  459. --script.Parent]]b:children()[tonumber(#Images)]:Remove()
  460. bbbg:Destroy()
  461. wait(10)
  462. --sos.Parent.Parent:Destroy()
  463. end
Advertisement
Add Comment
Please, Sign In to add comment