Advertisement
vibrantsinger423

cronk

May 13th, 2019
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.37 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. 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
  5.  
  6. Player=game:GetService("Players").LocalPlayer
  7. Character=Player.Character
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. euler=CFrame.fromEulerAnglesXYZ
  11. it=Instance.new
  12. vt=Vector3.new
  13. cf=CFrame.new
  14. local Effects={}
  15. mouse=Player:GetMouse()
  16.  
  17. game.Players.LocalPlayer.Character.Head.Mesh:destroy()
  18. mouse=game.Players.LocalPlayer:GetMouse()
  19. function doo(limb, pos)
  20. limb:BreakJoints()
  21. local velocity = Instance.new("RocketPropulsion", limb)
  22. velocity.CartoonFactor = 0
  23. velocity.MaxSpeed = 30
  24. velocity.MaxThrust = 9999
  25. velocity.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  26. velocity.Target = game.Players.LocalPlayer.Character.Torso
  27. velocity.TargetOffset = pos
  28. velocity:fire()
  29. local b = Instance.new("BodyGyro", limb)
  30. end
  31.  
  32. function lazor()
  33. --[[
  34. local orb=part(3,Character,"Neon",0,1,BrickColor.new("Dark blue"),"Orb",vt())
  35. local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
  36. local owld=weld(orb,orb,Torso,cf(0,-1.5,8),cf(0,0,0))
  37. so("http://roblox.com/asset/?id=169445572",orb,1,0.9)
  38. so("http://roblox.com/asset/?id=169380495",orb,1,0.6)
  39. so("http://roblox.com/asset/?id=203691346",orb,1,0.9)
  40. for i=1,0.3,-0.01 do
  41. wait()
  42. orb.Transparency=i
  43. omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
  44. MagicBlockx(BrickColor.new("Really black"),orb.CFrame,15,15,15,2,2,2,0.1)
  45. local ef=part(3,workspace,"Neon",0,0,BrickColor.new("Dark blue"),"Effect",vt())
  46. ef.Anchored=true
  47. local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2))
  48. local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0)
  49. ef.CFrame=orb.CFrame*ceef
  50. game:GetService("Debris"):AddItem(ef,2)
  51. coroutine.resume(coroutine.create(function(Part,Mesh)
  52. for i=0,1,0.1 do
  53. wait()
  54. Part.Transparency=i
  55. Part.CFrame=Part.CFrame*cf(0,-1,0)
  56. end
  57. Part.Parent=nil
  58. end),ef,emsh)
  59. end
  60. --orb orb orb
  61. local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
  62. wait(.5)
  63. orb.Parent=nil ]]--
  64. local Pos=cf(Torso.Position,Player:GetMouse().Hit.p).lookVector
  65. local hit,pos = rayCast(Torso.Position,Pos,999,Character)
  66. local mag=(Torso.Position-pos).magnitude
  67. MagicCirclex(BrickColor.new("Really red"),cf(pos),15,15,15,8,8,8,0.02)
  68. MagicBlockx(BrickColor.new("Really red"),cf(pos),15,15,15,8,8,8,0.02)
  69. MagicCylinder(BrickColor.new("Really red"),CFrame.new((Torso.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
  70. for i=1,2 do
  71. MagicRingx(BrickColor.new("Really red"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.04)
  72. end
  73. for i=1,5 do
  74. local tehcf=CFrame.new((Head.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  75. MagicRingx(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  76. end
  77. for i=0,5 do
  78. local tehcf=CFrame.new((Head.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  79. MagicRingx(BrickColor.new("Really red"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  80. end
  81. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Really black"),"Effect",vt())
  82. ref.CFrame=cf(pos)
  83. so("http://roblox.com/asset/?id=203691378",Torso,1,0.7)
  84. so("http://roblox.com/asset/?id=169445602",Torso,1,0.7)
  85. so("http://www.roblox.com/Asset?ID=203691282",Torso,1,.8)
  86. coroutine.resume(coroutine.create(function(Part)
  87. Part.Parent=nil
  88. end),ref)
  89. if hit~=nil then
  90. --MagniDamage(Part,hit,30,90,100,0,"Normal")
  91. end
  92. end
  93.  
  94. function explode()
  95. local hiss=Instance.new("Sound", game.Workspace)
  96. hiss.SoundId="http://www.roblox.com/asset/?id=907668984"
  97. hiss.Pitch=1.1
  98. hiss:Play()
  99. wait(3)
  100. local b=Instance.new("Sound", game.Workspace)
  101. b.SoundId="http://www.roblox.com/asset/?id=2233908"
  102. b.Pitch=0.8
  103. b:Play()
  104. game:GetService("Debris"):AddItem(b,10)
  105. game:GetService("Debris"):AddItem(hiss,10)
  106. local ex=Instance.new("Explosion")
  107. ex.BlastRadius=40
  108. ex.BlastPressure = 30234
  109. ex.Position = game.Players.LocalPlayer.Character.Torso.Position
  110. ex.Parent=game.Workspace
  111. end
  112.  
  113. mouse.KeyDown:connect(function(k)
  114. k=k:lower()
  115. if k=='e' then
  116. sound()
  117. elseif k=='f' then
  118. explode()
  119. elseif k=='q' then
  120. lazor()()
  121. end
  122. end)
  123. function sound()
  124. local hiss = Instance.new("Sound",game.Players.LocalPlayer.Character.Head)
  125. hiss.SoundId = "rbxassetid://216932927" --2352103728 216932927 192791700
  126. hiss.Looped = false
  127. hiss.Pitch = 1
  128. hiss.Volume = 5
  129. hiss:Play()
  130. end
  131.  
  132. function NoOutline(Part)
  133. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  134. end
  135.  
  136. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  137. local fp=it("Part")
  138. fp.formFactor=formfactor
  139. fp.Parent=parent
  140. fp.Reflectance=reflectance
  141. fp.Transparency=transparency
  142. fp.CanCollide=false
  143. fp.Locked=true
  144. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  145. fp.Name=name
  146. fp.Size=size
  147. fp.Position=Character.Torso.Position
  148. NoOutline(fp)
  149. fp.Material=material
  150. fp:BreakJoints()
  151. return fp
  152. end
  153.  
  154. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  155. local mesh=it(Mesh)
  156. mesh.Parent=part
  157. if Mesh=="SpecialMesh" then
  158. mesh.MeshType=meshtype
  159. mesh.MeshId=meshid
  160. end
  161. mesh.Offset=offset
  162. mesh.Scale=scale
  163. return mesh
  164. end
  165.  
  166. function weld(parent,part0,part1,c0)
  167. local weld=it("Weld")
  168. weld.Parent=parent
  169. weld.Part0=part0
  170. weld.Part1=part1
  171. weld.C0=c0
  172. return weld
  173. end
  174.  
  175. function swait(num)
  176. if num==0 or num==nil then
  177. game:service'RunService'.Stepped:wait(0)
  178. else
  179. for i=0,num do
  180. game:service'RunService'.Stepped:wait(0)
  181. end
  182. end
  183. end
  184.  
  185. function MagicBlockx(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  186. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  187. prt.Anchored=true
  188. prt.CFrame=cframe
  189. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  190. game:GetService("Debris"):AddItem(prt,5)
  191. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  192. end
  193.  
  194. so = function(id,par,vol,pit)
  195. coroutine.resume(coroutine.create(function()
  196. local sou = Instance.new("Sound",par or workspace)
  197. sou.Volume=vol
  198. sou.Pitch=pit or 1
  199. sou.SoundId=id
  200. swait()
  201. sou:play()
  202. game:GetService("Debris"):AddItem(sou,6)
  203. end))
  204. end
  205.  
  206. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  207. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  208. end
  209.  
  210. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  211. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  212. prt.Anchored=true
  213. prt.CFrame=cframe
  214. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  215. game:GetService("Debris"):AddItem(prt,2)
  216. coroutine.resume(coroutine.create(function(Part,Mesh)
  217. for i=0,1,delay do
  218. swait()
  219. Part.CFrame=Part.CFrame
  220. Part.Transparency=i
  221. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  222. end
  223. Part.Parent=nil
  224. end),prt,msh)
  225. end
  226.  
  227. function MagicCirclex(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  228. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  229. prt.Anchored=true
  230. prt.CFrame=cframe
  231.  
  232. prt.CanCollide = false
  233. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  234. game:GetService("Debris"):AddItem(prt,2)
  235. coroutine.resume(coroutine.create(function(Part,Mesh)
  236. for i=0,1,delay do
  237. swait()
  238. Part.CFrame=Part.CFrame
  239. Part.Transparency=i
  240. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  241. end
  242. Part.Parent=nil
  243. end),prt,msh)
  244. end
  245.  
  246. function MagicRingx(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  247. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  248. prt.Anchored=true
  249. prt.CFrame=cframe
  250. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  251. game:GetService("Debris"):AddItem(prt,2)
  252. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  253. for i=0,1,delay do
  254. swait()
  255. Part.Transparency=i
  256. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  257. end
  258. Part.Parent=nil
  259. end),prt,msh,(math.random(0,1)+math.random())/5)
  260. end
  261.  
  262. while wait() do
  263. doo(game.Players.LocalPlayer.Character["Left Arm"], Vector3.new(-0.5,-2,-1))
  264. doo(game.Players.LocalPlayer.Character["Right Arm"], Vector3.new(0.5,-2,-1))
  265. doo(game.Players.LocalPlayer.Character["Left Leg"], Vector3.new(-0.5,-2,1))
  266. doo(game.Players.LocalPlayer.Character["Right Leg"], Vector3.new(0.5,-2,1))
  267. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement