Advertisement
Kittdy2

Untitled

Jan 1st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.53 KB | None | 0 0
  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. spawn (function()
  87. lp=owner
  88. pl=lp.Character
  89. tol=Instance.new("HopperBin",lp.Backpack)
  90. tol.Name="Skull_Smasher"--jarredbcv
  91. asd=0
  92. Part = function(x,y,z,color,tr,cc,an,parent)
  93. local p = Instance.new('Part',parent or Weapon)
  94. p.formFactor = 'Custom'
  95. p.Size = Vector3.new(x,y,z)
  96. p.BrickColor = BrickColor.new(color)
  97. p.CanCollide = cc
  98. p.Transparency = tr
  99. p.Anchored = an
  100. p.TopSurface,p.BottomSurface = 0,0
  101. return p
  102. end
  103. fir = function(n1,n2,n3,n4,n5,n6,hs,fs,parent)
  104. local fi = Instance.new('Fire',parent or Weapon)
  105. fi.Color=Color3.new(n1,n2,n3)
  106. fi.Heat=hs
  107. fi.SecondaryColor=Color3.new(n4,n5,n6)
  108. fi.Size=fs
  109. return fi
  110. end
  111. wPart = function(x,y,z,color,tr,cc,an,parent)
  112. local wp = Instance.new('WedgePart',parent or Weapon)
  113. wp.formFactor = 'Custom'
  114. wp.Size = Vector3.new(x,y,z)
  115. wp.BrickColor = BrickColor.new(color)
  116. wp.CanCollide = cc
  117. wp.Transparency = tr
  118. wp.Anchored = an
  119. wp.TopSurface,wp.BottomSurface = 0,0
  120. return wp
  121. end
  122. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  123. p0.Position = p1.Position
  124. local w = Instance.new('Motor',par or p0)
  125. w.Part0 = p0
  126. w.Part1 = p1
  127. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  128. return w
  129. end
  130. Mesh = function(par,num,x,y,z)
  131. local msh = _
  132. if num == 1 then msh = Instance.new("CylinderMesh",par)
  133. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  134. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  135. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  136. end
  137. msh.Scale = Vector3.new(x,y,z)
  138. return msh
  139. end
  140. function onKeyDown(key)
  141. key = key:lower()
  142. if key == "e" then
  143. --for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/-1), 0) wait()end
  144. end
  145. if key == "q" then
  146. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), math.rad(angle/2)) wait()end
  147. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(0), 1)wait()end
  148. for i=1,20 do wait()
  149. partz= Part(15,15,15,'Really black',0,true,true,workspace)
  150. partz.CFrame= CFrame.new(pl.Torso.Position+Vector3.new(0,0,10)) * CFrame.Angles(math.random()-.5,math.random()-.5,math.random()-.5) + Vector3.new(0,-8,0) + pl.Torso.CFrame.lookVector*(i+5)*3.5
  151. function touch(hit)
  152. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  153. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-10 end end
  154. partz.Touched:connect(touch)
  155. game.Debris:AddItem(partz,1)
  156. end
  157. for angle = 0, 45, 5 do wait()fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))end
  158. end
  159. end
  160. function onClicked(mouse)
  161. asd=10
  162. for angle = 45, 95, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)wait()end
  163. for angle = 95, 5, -20 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), 0)wait()end
  164. for angle = 5, 45, 10 do fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/angle - 5), 0)wait()end
  165. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(45), math.rad(10), 0)
  166. asd=0
  167. end
  168. tol.Selected:connect(function(mouse)
  169. mouse.Button1Down:connect(function() onClicked(mouse) end)
  170. mouse.KeyDown:connect(onKeyDown)
  171. mo=Instance.new("Model",pl)
  172. bas = Part(1,1,1,'',1,false,false,mo)
  173. bas:BreakJoints()
  174. pa1= Part(.5,.5,3,'Really black',0,false,false,mo)
  175. wl1= Weld(pa1,bas,0,-1.5,0,0,0,0,mo)
  176. pa2= Part(.6,.1,1,'Institutional white',0,false,false,mo)
  177. wl2= Weld(pa2,pa1,0,.1,-1,0,0,0,mo)
  178. pa3= Part(.6,.1,1,'Institutional white',0,false,false,mo)
  179. wl3= Weld(pa3,pa1,0,-.1,0,0,0,0,mo)
  180. pa4= Part(.6,.1,1,'Institutional white',0,false,false,mo)
  181. wl4= Weld(pa4,pa1,0,.1,1,0,0,0,mo)
  182. pa5= Part(.1,.6,1,'Institutional white',0,false,false,mo)
  183. wl5= Weld(pa5,pa1,.1,0,1,0,0,0,mo)
  184. pa6= Part(.1,.6,1,'Institutional white',0,false,false,mo)
  185. wl6= Weld(pa6,pa1,-.1,0,0,0,0,0,mo)
  186. pa7= Part(.1,.6,1,'Institutional white',0,false,false,mo)
  187. wl7= Weld(pa7,pa1,.1,0,-1,0,0,0,mo)
  188. pa8= Part(.6,.1,.6,'Institutional white',0,false,false,mo)
  189. wl8= Weld(pa8,pa1,0,0,-.6,1,0,0,mo)
  190. pa9= Part(.6,.1,.6,'Institutional white',0,false,false,mo)
  191. wl9= Weld(pa9,pa1,0,0,.6,-1,0,0,mo)
  192. pa10= Part(.75,.75,.75,'Institutional white',0,false,false,mo)
  193. wl10= Weld(pa10,pa1,0,0,1.75,1,1,1,mo)
  194. pa11= Part(.75,.75,.75,'Really black',0,false,false,mo)
  195. wl11= Weld(pa11,pa1,0,0,1.75,2,2,2,mo)
  196. pa12= wPart(.5,.5,.5,'Really black',0,false,false,mo)
  197. wl12= Weld(pa12,pa1,0,-.5,-1.75,0,0,0,mo)
  198. pa13= wPart(.5,.5,.5,'Really black',0,false,false,mo)
  199. wl13= Weld(pa13,pa1,0,.5,-1.75,0,0,math.pi/1,mo)
  200. pa14= wPart(.5,.5,.5,'Really black',0,false,false,mo)
  201. wl14= Weld(pa14,pa1,.5,0,-1.75,0,0,math.pi/2,mo)
  202. pa15= wPart(.5,.5,.5,'Really black',0,false,false,mo)
  203. wl15= Weld(pa15,pa1,-.5,0,-1.75,0,0,math.pi/-2,mo)
  204. pa16= Part(1.1,.1,1.1,'Institutional white',0,false,false,mo)
  205. mes1= Mesh(pa16,1,1,1,1)
  206. wl16= Weld(pa16,pa1,0,0,-1.5,math.pi/2,0,0,mo)
  207. pa17= Part(.75,.75,0,'Really black',0,false,false,mo)
  208. wl17= Weld(pa17,pa1,0,0,-1.6,0,0,0,mo)
  209. pa18= Part(0,0,0,'Really black',1,false,false,mo)
  210. wl18= Weld(pa18,pa1,0,0,-2,0,0,0,mo)
  211. firs= fir(1,1,1,1,1,1,0,0,pa18)
  212. HAMER= Part(1,1,1,'Really black',0,false,false,mo)
  213. mes2= Mesh(HAMER,3,2,3,2)
  214. wl19= Weld(HAMER,pa1,0,0,-4,0,0,0,mo)
  215. pa20= Part(1,1,1,'Institutional white',.4,false,false,mo)
  216. mes3= Mesh(pa20,3,2.3,3.3,2.3)
  217. wl20= Weld(pa20,HAMER,0,0,0,0,0,0,mo)
  218. pa21= Part(0,0,0,'Institutional white',0,false,false,mo)
  219. mes4= Mesh(pa21,'http://www.roblox.com/asset/?id=9982590',.3,.01,.3)
  220. wl21= Weld(pa21,HAMER,0,0,1,math.pi/2,0,0,mo)
  221. pa22= Part(0,0,0,'Institutional white',0,false,false,mo)
  222. mes5= Mesh(pa22,'http://www.roblox.com/asset/?id=9982590',.3,.01,.3)
  223. wl22= Weld(pa22,HAMER,0,0,-1,math.pi/2,0,0,mo)
  224. pa23= Part(0,0,0,'Institutional white',0,false,false,mo)
  225. mes6= Mesh(pa23,'http://www.roblox.com/asset/?id=9982590',.5,.01,.5)
  226. wl23= Weld(pa23,HAMER,0,1.5,0,math.pi/1,0,0,mo)
  227. pa24= Part(0,0,0,'Institutional white',0,false,false,mo)
  228. mes7= Mesh(pa24,'http://www.roblox.com/asset/?id=9982590',.5,.01,.5)
  229. wl24= Weld(pa24,HAMER,0,-1.5,0,math.pi/1,0,0,mo)
  230. pa24= Part(0,0,0,'Institutional white',0,false,false,mo)
  231. mes7= Mesh(pa24,'http://www.roblox.com/asset/?id=9982590',.5,.01,.5)
  232. wl24= Weld(pa24,HAMER,0,-1.5,0,math.pi/1,0,0,mo)
  233. pa25= Part(0,0,0,'Institutional white',0,false,false,mo)
  234. mes8= Mesh(pa25,'http://www.roblox.com/asset/?id=4770583',3,3,.1)
  235. wl25= Weld(pa25,HAMER,-1,0,0,math.pi/2,math.pi/2,math.pi/1,mo)
  236. pa26= Part(0,0,0,'Institutional white',0,false,false,mo)
  237. mes9= Mesh(pa26,'http://www.roblox.com/asset/?id=4770583',3,3,.1)
  238. wl26= Weld(pa26,HAMER,1,0,0,math.pi/2,math.pi/-2,math.pi/1,mo)
  239. pa27= Part(0,0,0,'Institutional white',0,false,false,mo)
  240. mes10= Mesh(pa27,1,3,11,3)
  241. wl27= Weld(pa27,HAMER,.5,1,0,math.pi/2,0,0,mo)
  242. pa28= Part(0,0,0,'Institutional white',0,false,false,mo)
  243. mes11= Mesh(pa28,1,3,11,3)
  244. wl28= Weld(pa28,HAMER,-.5,1,0,math.pi/2,0,0,mo)
  245. pa29= Part(0,0,0,'Institutional white',0,false,false,mo)
  246. mes12= Mesh(pa29,1,3,11,3)
  247. wl29= Weld(pa29,HAMER,.5,-1,0,math.pi/2,0,0,mo)
  248. pa30= Part(0,0,0,'Institutional white',0,false,false,mo)
  249. mes13= Mesh(pa30,1,3,11,3)
  250. wl30= Weld(pa30,HAMER,-.5,-1,0,math.pi/2,0,0,mo)
  251. pa31= Part(0,0,0,'Institutional white',0,false,false,mo)
  252. mes14= Mesh(pa31,1,3,11,3)
  253. wl31= Weld(pa31,HAMER,0,1,.5,0,0,math.pi/2,mo)
  254. pa32= Part(0,0,0,'Institutional white',0,false,false,mo)
  255. mes15= Mesh(pa32,1,3,11,3)
  256. wl32= Weld(pa32,HAMER,0,1,-.5,0,0,math.pi/2,mo)
  257. pa33= Part(0,0,0,'Institutional white',0,false,false,mo)
  258. mes16= Mesh(pa33,1,3,11,3)
  259. wl33= Weld(pa33,HAMER,0,-1,-.5,0,0,math.pi/2,mo)
  260. pa34= Part(0,0,0,'Institutional white',0,false,false,mo)
  261. mes17= Mesh(pa34,1,3,11,3)
  262. wl34= Weld(pa34,HAMER,0,-1,.5,0,0,math.pi/2,mo)
  263.  
  264. function touch(hit)
  265. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  266. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-asd end end
  267. HAMER.Touched:connect(touch)
  268.  
  269. fakel = Instance.new("Weld",mo)
  270. fakel.Part0 = pl.Torso
  271. fakel.Part1 = bas
  272. coroutine.wrap(function()
  273. for angle = 0, 45, 5 do
  274. if fakel == nil then return end
  275. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle), math.rad(angle/2), math.rad(0))
  276. wait()
  277. end
  278. end)()
  279. welditbro = Instance.new("Weld", mo)
  280. welditbro.C0 = CFrame.new(0, 0.5, 0)
  281. welditbro.Part0 = pl['Right Arm']
  282. welditbro.Part1 = bas
  283. loop=false
  284. coroutine.resume(coroutine.create(function(c)
  285. local origc1 = wl19.C1
  286. while wait() do
  287. if loop == true then break end
  288. for i=0,(2*math.pi)-(math.pi/90),math.pi/90 do wait()--omg
  289. wl19.C1 = origc1-Vector3.new(0,0,(math.sin(i)*.5)+.4)
  290. end end end))
  291. end)
  292. tol.Deselected:connect(function(mouse)
  293. loop=true
  294. mo:remove()
  295. end)--nine hours. jarrebcv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement