Advertisement
StarzoZero

Roblox FE SHOOP DA WOOP

Dec 21st, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. -- This FE code was created by iPxter. He did NOT convert it! (there you go, guest)
  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.  
  88. me = owner
  89. if script.Parent.className ~= "HopperBin" then
  90. h = Instance.new("HopperBin",me.Backpack)
  91. h.Name = "LAZOR"
  92. script.Parent = h
  93. end
  94. bin = script.Parent
  95. function prop(part, parent, collide, tran, ref, x, y, z, color)
  96. part.Parent = parent
  97. part.formFactor = 0
  98. part.CanCollide = collide
  99. part.Transparency = tran
  100. part.Reflectance = ref
  101. part.Size = Vector3.new(x,y,z)
  102. part.BrickColor = BrickColor.new(color)
  103. part.TopSurface = 0
  104. part.BottomSurface = 0
  105. part:BreakJoints()
  106. end
  107. function weld(w, p, p0, p1, a, b, c, x, y, z)
  108. w.Parent = p
  109. w.Part0 = p0
  110. w.Part1 = p1
  111. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  112. end
  113. function mesh(mesh, parent, x, y, z, type)
  114. mesh.Parent = parent
  115. mesh.Scale = Vector3.new(x, y, z)
  116. mesh.MeshType = type
  117. end
  118. using = false
  119. sound = Instance.new("Sound",me.Character.Head)
  120. sound.Volume = 0.6
  121. sound.Pitch = 1
  122. sound.SoundId = "rbxasset://sounds/uuhhh.wav"
  123. bin.Selected:connect(function(mouse)
  124. mouse.Button1Down:connect(function()
  125. if using then return end
  126. using = true
  127. local blagh = Instance.new("Model",me.Character)
  128. blagh.Name = "LAZOR"
  129. local paw = mouse.Hit.p
  130. local pa1 = Instance.new("Part")
  131. prop(pa1,blagh,false,0,0,1,1,1,"Really black")
  132. local m1 = Instance.new("SpecialMesh")
  133. mesh(m1, pa1, 1.07,1,0.3,"Brick")
  134. local w1 = Instance.new("Weld")
  135. weld(w1, me.Character.Head, me.Character.Head, pa1, 0.4, 0, 0, 0, -0.4, 0.9)
  136. local pa2 = pa1:clone()
  137. prop(pa2,blagh,false,0,0,1,1,1,"Really black")
  138. local w2 = Instance.new("Weld")
  139. weld(w2, me.Character.Head, me.Character.Head, pa2, -0.4, 0, 0, 0, 0.4, 0.9)
  140. local pa3 = Instance.new("Part")
  141. prop(pa3,blagh,false,0,0,1,1,1,"Really red")
  142. local m3 = Instance.new("SpecialMesh")
  143. mesh(m3,pa3,1.3,1.23,0.29,"Brick")
  144. local w3 = Instance.new("Weld")
  145. weld(w3, me.Character.Head, me.Character.Head, pa3, 0.4, 0, 0, 0, -0.4, 0.9)
  146. local pa4 = pa3:clone()
  147. prop(pa4,blagh,false,0,0,1,1,1,"Really red")
  148. local w4 = Instance.new("Weld")
  149. weld(w4, me.Character.Head, me.Character.Head, pa4, -0.4, 0, 0, 0, 0.4, 0.9)
  150. local eye1a = Instance.new("Part")
  151. prop(eye1a,blagh,false,0,0,1,1,1,"Institutional white")
  152. eye1a.Shape = "Ball"
  153. local emesh1 = Instance.new("SpecialMesh")
  154. mesh(emesh1,eye1a,0.75,0.75,0.75,"Sphere")
  155. local ew = Instance.new("Weld")
  156. weld(ew, me.Character.Head, me.Character.Head, eye1a, 0, 0, 0, 0.45, -1.3, 1.1)
  157. local eye1b = Instance.new("Part")
  158. prop(eye1b,blagh,false,0,0,1,1,1,"Really black")
  159. eye1b.Shape = "Ball"
  160. local emesh1b = Instance.new("SpecialMesh")
  161. mesh(emesh1b,eye1b,0.4,0.4,0.4,"Sphere")
  162. local ew2 = Instance.new("Weld")
  163. weld(ew2, eye1a, eye1a, eye1b, 0, 0, 0, 0.09, -0.04, 0.2)
  164. local eye2a = eye1a:clone()
  165. prop(eye2a,blagh,false,0,0,1,1,1,"Institutional white")
  166. local ew3 = Instance.new("Weld")
  167. weld(ew3, me.Character.Head, me.Character.Head, eye2a, 0, 0, 0, -0.45, -1.3, 1.1)
  168. local eye2b = eye1b:clone()
  169. prop(eye2b,blagh,false,0,0,1,1,1,"Really black")
  170. local ew5 = Instance.new("Weld")
  171. weld(ew5, eye2a, eye2a, eye2b, 0, 0, 0, -0.05, 0.07, 0.2)
  172. local bill = Instance.new("BillboardGui",pa1)
  173. bill.Adornee = bill.Parent
  174. bill.Size = UDim2.new(0,150,0,80)
  175. local txt = Instance.new("TextLabel",bill)
  176. txt.Size = UDim2.new(0,0,0,0)
  177. txt.Position = UDim2.new(0,100,0,-20)
  178. txt.Text = "IMA FIRIN' MAH LAZORR!!"
  179. txt.FontSize = "Size24"
  180. txt.TextColor3 = Color3.new(0,0,0)
  181. sound.Volume = 0.6
  182. for i=1, 5 do
  183. sound.Pitch = math.random(400,900)/1000
  184. sound:play()
  185. wait(0.1)
  186. end
  187. local bg = Instance.new("BodyGyro",me.Character.Torso)
  188. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  189. bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
  190. for i=1, 5 do
  191. sound.Pitch = math.random(400,900)/1000
  192. sound:play()
  193. wait(0.2)
  194. end
  195. txt.Text = "BLAARGHH!!!!!!"
  196. sound.Volume = 0.85
  197. for i=1, 60 do
  198. local dist = (me.Character.Head.Position - paw).magnitude
  199. if dist >= 600 then
  200. dist = 600
  201. end
  202. bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
  203. sound.Pitch = math.random(550,750)/1000
  204. sound:play()
  205. local bewm = Instance.new("Part")
  206. prop(bewm, blagh, false, 0.4, 0.25, 1, 1, dist, "Cyan")
  207. bewm.Anchored = true
  208. local mes = Instance.new("SpecialMesh")
  209. mesh(mes,bewm,1.2,1.2,1,"Brick")
  210. bewm.CFrame = CFrame.new(me.Character.Head.Position, paw) * CFrame.new(0,0,-bewm.Size.Z/2) * CFrame.new(0,0,-1)
  211. local luck = math.random(1,3)
  212. if luck == 1 then
  213. local cfr = Instance.new("Part",blagh)
  214. cfr.Size = Vector3.new(1,1,1)
  215. cfr.Transparency = 1
  216. cfr.Anchored = true
  217. cfr.CFrame = bewm.CFrame * CFrame.new(0,0,-bewm.Size.Z/2)
  218. local ex = Instance.new("Explosion")
  219. ex.Parent = blagh
  220. ex.Position = cfr.Position
  221. ex.BlastRadius = 9
  222. ex.BlastPressure = 400000
  223. ex.Hit:connect(function(part)
  224. if part:GetMass() < 240 then
  225. part.Anchored = false
  226. part:BreakJoints()
  227. end
  228. end)
  229. end
  230. wait()
  231. bewm:remove()
  232. end
  233. blagh:remove()
  234. bg:remove()
  235. using = false
  236. end)
  237. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement