Advertisement
Kittdy2

Untitled

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