Advertisement
lafur

P

Mar 27th, 2019
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end local plr = game:GetService("Players").LocalPlayer
  6. local char = plr.Character
  7. local mou = plr:GetMouse()
  8. local equipped = false
  9. local hum = char:FindFirstChildOfClass("Humanoid")
  10. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  11. local head = char:FindFirstChild("Head")
  12. local tweenserv = game:GetService("TweenService")
  13.  
  14. local pepsi = Instance.new("Tool", plr.Backpack)
  15. pepsi.Name = "Pepsi"
  16. pepsi.CanBeDropped = true
  17. local hand = Instance.new("Part", pepsi)
  18. hand.Size = Vector3.new(1, 1, 1)
  19. hand.Transparency = 1
  20. hand.Name = "Handle"
  21. local handle = Instance.new("Part", hand)
  22. handle.Size = Vector3.new(0.3, 1, 0.4)
  23. handle.Material = "Neon"
  24. handle.BrickColor = BrickColor.new("Crimson")
  25. local handlew = Instance.new("Weld", handle)
  26. handlew.Part0 = hand
  27. handlew.Part1 = handle
  28. handlew.C1 = CFrame.new(0, 0, 0.2)
  29. local handle2 = Instance.new("Part", hand)
  30. handle2.Size = Vector3.new(0.05, 0.9, 0.3)
  31. handle2.Material = "Fabric"
  32. handle2.BrickColor = BrickColor.new("Crimson")
  33. local handle2w = Instance.new("Weld", handle)
  34. handle2w.Part0 = hand
  35. handle2w.Part1 = handle2
  36. handle2w.C1 = CFrame.new(0.15, 0, 0.2)
  37. local handle3 = Instance.new("Part", hand)
  38. handle3.Size = Vector3.new(0.05, 0.9, 0.3)
  39. handle3.Material = "Fabric"
  40. handle3.BrickColor = BrickColor.new("Crimson")
  41. local handle3w = Instance.new("Weld", handle)
  42. handle3w.Part0 = hand
  43. handle3w.Part1 = handle3
  44. handle3w.C1 = CFrame.new(-0.15, 0, 0.2)
  45. local bottom = Instance.new("Part", hand)
  46. bottom.Size = Vector3.new(0.4, 0.1, 0.5)
  47. bottom.Material = "Neon"
  48. bottom.BrickColor = BrickColor.new("Crimson")
  49. local bottomw = Instance.new("Weld", bottom)
  50. bottomw.Part0 = hand
  51. bottomw.Part1 = bottom
  52. bottomw.C1 = CFrame.new(0, 0.5, 0.2)
  53. local bot1 = Instance.new("Part", hand)
  54. bot1.Shape = "Cylinder"
  55. bot1.Size = Vector3.new(1.6, 1, 1)
  56. bot1.BrickColor = BrickColor.new("Really black")
  57. bot1.Material = "Neon"
  58. local bot1w = Instance.new("Weld", bot1)
  59. bot1w.Part0 = hand
  60. bot1w.Part1 = bot1
  61. bot1w.C1 = CFrame.new(0.8, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  62. local bot2 = Instance.new("Part", hand)
  63. bot2.Shape = "Ball"
  64. bot2.Size = Vector3.new(1, 1, 1)
  65. bot2.BrickColor = BrickColor.new("Really black")
  66. bot2.Material = "Neon"
  67. local bot2w = Instance.new("Weld", bot2)
  68. bot2w.Part0 = hand
  69. bot2w.Part1 = bot2
  70. bot2w.C1 = CFrame.new(0, -0.9, 1.5)
  71. local cap = Instance.new("Part", hand)
  72. cap.Shape = "Cylinder"
  73. cap.Size = Vector3.new(0.2, 0.3, 0.3)
  74. cap.BrickColor = BrickColor.new("Crimson")
  75. cap.Material = "Neon"
  76. local capw = Instance.new("Weld", cap)
  77. capw.Part0 = hand
  78. capw.Part1 = cap
  79. capw.C1 = CFrame.new(2, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  80. local ban = Instance.new("Part", hand)
  81. ban.Shape = "Cylinder"
  82. ban.Size = Vector3.new(0.7, 1.05, 1.05)
  83. ban.BrickColor = BrickColor.new("Really blue")
  84. ban.Material = "Neon"
  85. local banw = Instance.new("Weld", ban)
  86. banw.Part0 = hand
  87. banw.Part1 = ban
  88. banw.C1 = CFrame.new(0.8, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  89. local good = Instance.new("Decal", ban)
  90. good.Texture = "rbxassetid://358890684"
  91. good.Face = "Front"
  92.  
  93.  
  94. pepsi.Equipped:connect(function()
  95. equipped = true
  96. mou.Button1Down:connect(function()
  97. if equipped == true then
  98. clicked = true
  99.  
  100. yum = Instance.new("Part", pepsi)
  101. yum.BrickColor = BrickColor.new("Really black")
  102. yum.Material = "Neon"
  103. yum.Anchored = true
  104. yum.CanCollide = false
  105. yum.Locked = true
  106. eh = Instance.new("ParticleEmitter", yum)
  107. eh.Texture = "rbxassetid://358890684"
  108. eh.Lifetime = NumberRange.new(1)
  109. eh.Rate = 90
  110. eh.SpreadAngle = Vector2.new(360, 360)
  111. MLG = Instance.new("Sound", bot1)
  112. MLG.SoundId = "rbxassetid://525289290"
  113. MLG.Volume = 20
  114. MLG.Looped = true
  115. MLG:Play()
  116.  
  117. while clicked == true do
  118. local ray = Ray.new(cap.CFrame.p, (mou.Hit.p - cap.CFrame.p).unit * 300)
  119. local part, position = workspace:FindPartOnRay(ray, char, false, true)
  120. dis = (cap.CFrame.p - position).magnitude
  121. yum.Size = Vector3.new(0.9, 0.9, dis)
  122. yum.Transparency = 0
  123. yum.CFrame = CFrame.new(cap.CFrame.p, position) * CFrame.new(0, 0, -dis / 2)
  124. local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
  125. local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
  126. local partprop = {Size = Vector3.new(20, 20, 20);
  127. Transparency = 1}
  128. local partprop2 = {Size = Vector3.new(5, 5, dis);
  129. Transparency = 1}
  130. tween2 = tweenserv:Create(yum, tweeninfo2, partprop2)
  131. tween2:Play()
  132. if mou.Target ~= nil and mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  133. yumtor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso")
  134. yumhum = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
  135. if yumtor ~= nil then
  136. NOOO = Instance.new("Part", mou.Target.Parent)
  137. NOOO.Shape = "Ball"
  138. NOOO.BrickColor = BrickColor.new("Really black")
  139. NOOO.Material = "Neon"
  140. NOOO.Anchored = true
  141. NOOO.CanCollide = false
  142. NOOO.Size = Vector3.new(0.1, 0.1, 0.1)
  143. NOOO.CFrame = yumtor.CFrame
  144. if not yumtor:FindFirstChild("parti1") or not yumtor:FindFirstChild("parti2") or not yumtor:FindFirstChild("parti3") or not yumtor:FindFirstChild("parti4") or not yumtor:FindFirstChild("parti5") then
  145. parti = Instance.new("ParticleEmitter", yumtor)
  146. parti.Texture = "rbxassetid:/0"
  147. parti. EmissionDirection = "Top"
  148. parti.Rate = 100
  149. parti.Name = "parti1"
  150. parti.SpreadAngle = Vector2.new(360, 360)
  151. parti.Lifetime = NumberRange.new(2)
  152. parti2 = Instance.new("ParticleEmitter", yumtor)
  153. parti2.Texture = "rbxassetid://0"
  154. parti2. EmissionDirection = "Front"
  155. parti2.Rate = 100
  156. parti2.Name = "parti2"
  157. parti2.SpreadAngle = Vector2.new(360, 360)
  158. parti2.Lifetime = NumberRange.new(2)
  159. parti3 = Instance.new("ParticleEmitter", yumtor)
  160. parti3.Texture = "rbxassetid://0"
  161. parti3.EmissionDirection = "Back"
  162. parti3.Rate = 100
  163. parti3.Name = "parti3"
  164. parti3.SpreadAngle = Vector2.new(360, 360)
  165. parti3.Lifetime = NumberRange.new(2)
  166. parti4 = Instance.new("ParticleEmitter", yumtor)
  167. parti4.Texture = "rbxassetid://0"
  168. parti4.EmissionDirection = "Left"
  169. parti4.Rate = 100
  170. parti4.Name = "parti4"
  171. parti4.SpreadAngle = Vector2.new(360, 360)
  172. parti4.Lifetime = NumberRange.new(2)
  173. parti5 = Instance.new("ParticleEmitter", yumtor)
  174. parti5.Texture = "rbxassetid://0"
  175. parti5.EmissionDirection = "Right"
  176. parti5.Rate = 100
  177. parti5.Name = "parti5"
  178. parti5.SpreadAngle = Vector2.new(360, 360)
  179. parti5.Lifetime = NumberRange.new(2)
  180. end
  181. if yumtor:FindFirstChild("mlgagaga") then
  182. local hi2 = yumtor:FindFirstChild("mlgagaga")
  183. hi2:Play()
  184. else
  185. local hi = Instance.new("Sound", yumtor)
  186. hi.SoundId = "rbxassetid://1542642349"
  187. hi.Name = "mlgagaga"
  188. hi.Volume = 10
  189. hi.Looped = false
  190. hi:Play()
  191. end
  192. tween = tweenserv:Create(NOOO, tweeninfo, partprop)
  193. tween:Play()
  194. game:GetService("Debris"):AddItem(NOOO, 1)
  195. yumhum.WalkSpeed = 1
  196. yumhum.JumpPower = 1
  197. yumhum.Health = 0
  198. mou.Target.Parent:BreakJoints()
  199. for i,v in pairs(mou.Target.Parent:GetChildren()) do
  200. if v:IsA("Part") then
  201. v.Material = "Neon"
  202. v.BrickColor = BrickColor.new("Really black")
  203. end
  204. if v:IsA("Shirt") then
  205. v:Destroy()
  206. end
  207. if v:IsA("Pants") then
  208. v:Destroy()
  209. end
  210. if v:IsA("Accessory") then
  211. v:Destroy()
  212. end
  213. end
  214. end
  215. end
  216. wait()
  217. end
  218.  
  219. end
  220. end)
  221. mou.Button1Up:connect(function()
  222. clicked = false
  223. if equipped == true then
  224. MLG:Stop()
  225. eh:Destroy()
  226. game:GetService("Debris"):AddItem(yum, 0)
  227. end
  228. end)
  229. end)
  230.  
  231. pepsi.Unequipped:connect(function()
  232. equipped = false
  233. clicked = false
  234. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement