Advertisement
Beeish

Untitled

Aug 4th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.50 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
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. --[[
  146. > ⚙Mechanized Angel
  147. > - by tomonaoboys
  148. >
  149. > Hello world!
  150. > what things can be a real angel?
  151. > Only The angel knows.
  152. > There's no light ... Only have fake one.
  153. > Warning : this is NOT complete. the move can get added ,removed ,or replaced.
  154. > I'm not made for editing. The codes are spagetti.
  155. >
  156. > Moves : ( *:Able to hold , or required ) ( ✦:it came from Others Idea. Thanks to them very much.)
  157. > E : Flawing Light It shoots three holy? blasts. they explodes after 100 or got hit any object.
  158. > R* : Infinite Bright It spams something like beam? ...it shoots continuous beam. gatling? WARNING : it makes missing sound if you are using potato. I highly do this on server.
  159. > T : Blink Teleport. Only it is. many my script or edits highly have teleport.
  160. > Z : Judgement Prism It's laggy attack ever I made less laggy , just effects are not bad. else its ded
  161. > X✦ : Purifying Blast It spawns many boxes (but just 30...), and it falls on you. they moves beautiful bit...?
  162. >
  163. > maybe some thing will get improved when next update come.
  164. --]]
  165. local wedge=Instance.new("Part")wedge.Material="Neon"wedge.Anchored=1 wedge.TopSurface=Enum.SurfaceType.Smooth wedge.BottomSurface=Enum.SurfaceType.Smooth wedge.CanCollide=false
  166. musicId="rbxassetid://526788848"local mcol=Color3.new(1,0,0)wedge.Color=mcol local Camera=workspace.CurrentCamera Instance.new("SpecialMesh",wedge).MeshType="Wedge"wedge.Size=Vector3.new()
  167. --local Moon={"🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘"}useless now for idealess
  168. whil={tomonaoboys=1,duckiles=1,Melody_Cow=1,krit2552=1,Fragmentation123=1}owner=owner or game:service'Players'.LocalPlayer
  169. if script.ClassName=="LocalScript"then if not whil[tostring(owner)]then while 1 do Instance.new("Part",workspace.CurrentCamera) end end end
  170. local function ToMesh(Part)
  171. local Mesh=Instance.new("SpecialMesh",Part)
  172. if Part:IsA"WedgePart"then Mesh.MeshType="Wedge"
  173. elseif Part.Shape==Enum.PartType.Block then Mesh.MeshType="Brick"elseif Part.Shape==Enum.PartType.Ball then Mesh.MeshType="Sphere"elseif Part.Shape==Enum.PartType.Cylinder then Mesh.MeshType="Cylinder"end
  174. Mesh.Scale=Part.Size*20 Part.Size=Vector3.new()
  175. return Mesh
  176. end
  177. function drawTriangle(a,b,c,parent,PartStat,classic)
  178. a=typeof(a)=="CFrame"and a.p or a b=typeof(b)=="CFrame"and b.p or b c=typeof(c)=="CFrame"and c.p or c
  179. if not a or not b or not c then error'Attempt to use NIL value'end
  180. local TriangleModel=Instance.new("Model",parent)
  181. local siz=0 local edges={{longest=(c-b),other=(a-b),position=b},{longest=(a-c),other=(b-c),position=c},{longest=(b-a),other=(c-a),position=a}}
  182. table.sort(edges,function(a,b) return a.longest.magnitude > b.longest.magnitude end)local edge=edges[1]
  183. local theta=math.acos(edge.longest.unit:Dot(edge.other.unit))local s1=Vector2.new(edge.other.magnitude * math.cos(theta),edge.other.magnitude * math.sin(theta))
  184. local s2=Vector2.new(edge.longest.magnitude-s1.x,s1.y)local p1=edge.position + edge.other * 0.5 local p2=edge.position + edge.longest + (edge.other-edge.longest) * 0.5
  185. local right=edge.longest:Cross(edge.other).unit local up=right:Cross(edge.longest).unit local back=edge.longest.unit
  186. local cf1=CFrame.new(p1.x,p1.y,p1.z,-right.x,up.x,back.x,-right.y,up.y,back.y,-right.z,up.z,back.z)local cf2=CFrame.new(p2.x,p2.y,p2.z,right.x,up.x,-back.x,right.y,up.y,-back.y,right.z,up.z,-back.z)
  187. local w1=wedge:Clone()local w2=wedge:Clone()w1.Mesh.Scale=Vector3.new(siz,s1.y,s1.x)*20 w2.Mesh.Scale=Vector3.new(siz,s2.y,s2.x)*20 w1.CFrame=cf1 w2.CFrame=cf2 w1.Parent=TriangleModel w2.Parent=TriangleModel
  188. for Index, Value in pairs(PartStat or{})do w1[Index]=Value end for Index, Value in pairs(PartStat or{})do w2[Index]=Value end
  189. if not classic then w1.Name="Wedge1"w2.Name="Wedge2"
  190. TriangleModel.Parent=parent or workspace
  191. return TriangleModel
  192. else
  193. w1.Parent=parent or workspace w2.Parent=parent or workspace return w1,w2
  194. end
  195. end
  196. function DoSquare(A,B,C,D,parent,PartStat,classic)
  197. if not classic then local SquareModel=Instance.new("Model",parent or workspace)
  198. local mA=drawTriangle(A,B,C,SquareModel,PartStat)local mB=drawTriangle(C,D,A,SquareModel,PartStat)mA.Name="A"mB.Name="B"return SquareModel
  199. else local a,b=drawTriangle(A,B,C,parent,PartStat,1)local c,d=drawTriangle(C,D,A,parent,PartStat,1)return a,b,c,d end end
  200. function ReDrawSqu(m,A,B,C,D,PartStat)ReDrawTri(m.A,A,B,C,PartStat)B=ReDrawTri(m.B,C,D,A,PartStat)end
  201. function ReDrawTri(TriangleModel,a,b,c,PartStat)
  202. a=typeof(a)=="CFrame"and a.p or a b=typeof(b)=="CFrame"and b.p or b c=typeof(c)=="CFrame"and c.p or c
  203. local siz=0 local edges={{longest=(c-b),other=(a-b),position=b},{longest=(a-c),other=(b-c),position=c},{longest=(b-a),other=(c-a),position=a}}
  204. table.sort(edges,function(a,b) return a.longest.magnitude > b.longest.magnitude end)local edge=edges[1]
  205. local theta=math.acos(edge.longest.unit:Dot(edge.other.unit))local s1=Vector2.new(edge.other.magnitude * math.cos(theta),edge.other.magnitude * math.sin(theta))
  206. local s2=Vector2.new(edge.longest.magnitude-s1.x,s1.y)local p1=edge.position + edge.other * 0.5 local p2=edge.position + edge.longest + (edge.other-edge.longest) * 0.5
  207. local right=edge.longest:Cross(edge.other).unit local up=right:Cross(edge.longest).unit local back=edge.longest.unit
  208. local cf1=CFrame.new(p1.x,p1.y,p1.z,-right.x,up.x,back.x,-right.y,up.y,back.y,-right.z,up.z,back.z)local cf2=CFrame.new(p2.x,p2.y,p2.z,right.x,up.x,-back.x,right.y,up.y,-back.y,right.z,up.z,-back.z)
  209. local w1=TriangleModel.Wedge1 local w2=TriangleModel.Wedge2 w1.Mesh.Scale=Vector3.new(siz,s1.y,s1.x)*20 w2.Mesh.Scale=Vector3.new(siz,s2.y,s2.x)*20 w1.CFrame=cf1 w2.CFrame=cf2 w1.Parent=TriangleModel w2.Parent=TriangleModel
  210. for Index, Value in pairs(PartStat or{})do w1[Index]=Value end for Index, Value in pairs(PartStat or{})do w2[Index]=Value end
  211. end
  212. owner=owner function lerp(a,b,t)return a*(1-t)+(b*t)end function rc()return CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))end
  213. local IsChatAvailable=false local HBMode="HeartBeat"
  214. if script.ClassName=="Script"then if tostring(game.PlaceId)=="843468296"then owner:Explode()end error("HOW?!??!?!")end
  215. local PL=game:service("Players").LocalPlayer script.Parent=PL:FindFirstChildOfClass("PlayerScripts")
  216. function a(part)local j=Instance.new("BodyVelocity",part)j.MaxForce=Vector3.new(1/0,1/0,1/0)j.Velocity=Vector3.new(0,0,0)end
  217. if 1 then local InsertModel=Instance.new'Model'GetInstance=function(CallInst,Parent)if InsertModel:FindFirstChildOfClass(CallInst)==nil then Instance.new(CallInst,InsertModel)end local Obj=InsertModel:Clone():FindFirstChildOfClass(CallInst)Obj.Parent=Parent or nil return Obj end end
  218. local function ieraseurmotor(chr)
  219. for i,p in pairs(chr:children())do for i2,p2 in pairs(p:children())do if p2:IsA("Motor6D")and(tostring(p2)~="RootJoint"and tostring(p2)~="Neck")then
  220. p2:Destroy()end end end if chr:FindFirstChild("Animate")then chr.Animate:Destroy()end
  221. if chr:FindFirstChildOfClass("Humanoid")then if chr:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator")then chr:FindFirstChildOfClass("Humanoid").Animator:Destroy()end end
  222. end
  223. Humanoid=nil local DoEffect=1 local CooldownBox=Instance.new("Folder")
  224. function DoCDown(Name,time)local tag=Instance.new("Part",CooldownBox)tag.Name=Name debri(tag,time)end function GetCDown(Name)return not CooldownBox:FindFirstChild(Name)end
  225. local function FindHumanoid(Part)local humanoid=nil if Part.Parent then if Part.Parent~=PL.Character and Part.Parent:FindFirstChildOfClass("Humanoid")~=nil then humanoid=Part.Parent:FindFirstChildOfClass("Humanoid")else if Part.Parent.Parent then if Part.Parent.Parent:FindFirstChildOfClass("Humanoid")and Part.Parent.Parent~=PL.Character then humanoid=Part.Parent.Parent:FindFirstChildOfClass("Humanoid")end end end end if humanoid==Humanoid then humanoid=nil end return humanoid end
  226. if 1 then --Engine ? anyway by tomonaoboys maybe
  227. PierceForceField = false E_MainColor=Color3.new(1,0,0)
  228. local AutomaticRegen=true local HealthRValue=.02
  229. local Players=owner
  230. local ply=Players.LocalPlayer
  231. local chr=ply.Character
  232. local humanoid=chr:FindFirstChildOfClass("Humanoid")
  233. local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense"
  234. local Defense=7.77
  235. local rs=game:GetService("RunService")if HBMode=="RenderStepped"then rs=rs.RenderStepped else rs=rs.Heartbeat end
  236. local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end
  237. function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  238. function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide
  239. if typeof(CF)=="Instance"then CF=CF.CFrame end
  240. local FinalD=0
  241. if Dam==1/0 then FinalD=1/0 else FinalD=math.random(Dam-DRand,Dam+DRand)end
  242. for i,m in pairs(workspace:GetChildren())do
  243. if m:IsA("Model")and m~=chr then
  244. local DCFlg=false
  245. for i=1,#DCoolDowns do
  246. if DCoolDowns[i].Model==m then DCFlg=true end
  247. end
  248. if m:FindFirstChild("HumanoidRootPart")and not DCFlg then
  249. local hp=m.HumanoidRootPart
  250. if hp:IsA("BasePart")then
  251. if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then
  252. local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false
  253. if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then
  254. FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8))
  255. end end FinalD=FinalD+math.random(0,1)
  256. if m:FindFirstChildOfClass("ForceField")and not PierceForceField then
  257. Guard=true
  258. end
  259. if not Guard then hum.Health=hum.Health-FinalD if Dam==1/0 then hum.Health=nil if hum.Parent then hum.Parent:BreakJoints()end end end
  260. if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end
  261. if hum.Health~=0 then if K then
  262. if KH==nil then KH=1/2 end
  263. if Guide then
  264. local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  265. j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K
  266. Debri(j,KH)
  267. else
  268. local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  269. j.Velocity=K
  270. Debri(j,KH)
  271. end
  272. end end
  273. local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame
  274. local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100
  275. local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0
  276. if not Guard then d.TextColor3=Color3.new(1,0,0)d.Text=tostring(FinalD)else d.TextColor3=Color3.new(1,0,0)d.Text="Guard"end
  277. spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0)
  278. for i=1,50 do
  279. if dp.Parent then dp.Anchored=true
  280. if i<25 then
  281. dp.CFrame=dp.CFrame+Vector3.new(0,.1,0)
  282. else
  283. d.TextTransparency=i/25-1
  284. d.TextStrokeTransparency=i/25-1
  285. end
  286. sw()
  287. end
  288. end dp:Destroy()
  289. end)
  290. end
  291. end
  292. end
  293. end
  294. end
  295. end
  296. spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end
  297. local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))hs.Name="statsidk"
  298. local HFrame=Instance.new("Frame",hs)HFrame.Position=UDim2.new(.4,0,.8,0)HFrame.Size=UDim2.new(.2,0,.03,0)HFrame.BackgroundTransparency=.5
  299. HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0
  300. local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0
  301. HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(1,0,0)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3
  302. local HPBar2=Instance.new("Frame",HFrame)HPBar2.Size=UDim2.new(1,0,1,0)HPBar2.BorderSizePixel=0 HPBar2.BackgroundColor3=Color3.new(1,0,0)HPBar2.ZIndex=2
  303. local HPBar3=Instance.new("Frame",HFrame)HPBar3.Size=UDim2.new(1,0,1,0)HPBar3.BorderSizePixel=0 HPBar3.BackgroundColor3=Color3.new(1,0,0)HPBar3.ZIndex=1
  304. HPBar3.BackgroundTransparency=.5 local AR=0
  305. local wst=Instance.new("TextLabel",hs)wst.Size=UDim2.new(.09,0,.03,0)wst.Text="WalkSpeed 0"wst.Position=UDim2.new(.91,0,.4,0)wst.BackgroundColor3=E_MainColor wst.TextStrokeTransparency=0 wst.TextColor3=Color3.new(1,0,0)
  306. wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1
  307. local dft=Instance.new("TextLabel",hs)dft.Size=UDim2.new(.09,0,.03,0)dft.Text="Defense 0"dft.Position=UDim2.new(.91,0,.368,0)dft.BackgroundColor3=E_MainColor dft.TextStrokeTransparency=0 dft.TextColor3=Color3.new(1,0,0)
  308. dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1
  309. while sw()do
  310. if chr then
  311. if chr.Parent then
  312. if AutomaticRegen and humanoid.Health<0 then
  313. humanoid.Health=humanoid.Health+HealthRValue
  314. end
  315. for i=1,#DCoolDowns do
  316. if DCoolDowns[i]~=nil then
  317. if DCoolDowns[i].Model.Parent then
  318. if DCoolDowns[i].Time>0 then
  319. DCoolDowns[i].Time=DCoolDowns[i].Time-1
  320. else
  321. table.remove(DCoolDowns,i)
  322. end
  323. else
  324. table.remove(DCoolDowns,i)
  325. end
  326. end
  327. end
  328. --HPScreen
  329. if hs.Parent then
  330. HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
  331. HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0)
  332. HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth))
  333. wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed)
  334. dft.Text="Defense "..tostring(Defense)
  335. end
  336. else
  337. chr=ply.Character
  338. end
  339. end
  340. end
  341. end)
  342. end
  343. --Global Functions that can use easily
  344. --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk
  345. --sw ( number ) this function can use like wait() because it has true returning. if think easily, just small version of swait lol
  346. local PC=PL.Character debri=function(item,tim)game:service("Debris"):AddItem(item,tim)end
  347. local hum=PC:FindFirstChildOfClass("Humanoid")
  348. local function DoPrism(pos,top,sid,par,option)--returns model
  349. local Model=Instance.new("Model",par)
  350. local Position0,Position1,Position2,Position3=pos*sid,pos*CFrame.Angles(0,math.rad(120),0)*sid,pos*CFrame.Angles(0,math.rad(240),0)*sid,pos*top
  351. drawTriangle(Position0,Position1,Position3,Model,option).Name="A"drawTriangle(Position1,Position2,Position3,Model,option).Name="B"drawTriangle(Position2,Position0,Position3,Model,option).Name="C"
  352. drawTriangle(Position0,Position1,Position2,Model,option).Name="D"
  353. return Model
  354. end
  355. local function ReDrawPrism(m,pos,top,sid,par,option)--returns model
  356. local Model=m
  357. local Position0,Position1,Position2,Position3=pos*sid,pos*CFrame.Angles(0,math.rad(120),0)*sid,pos*CFrame.Angles(0,math.rad(240),0)*sid,pos*top
  358. ReDrawTri(m.A,Position0,Position1,Position3,option)
  359. ReDrawTri(m.B,Position1,Position2,Position3,option)
  360. ReDrawTri(m.C,Position2,Position0,Position3,option)
  361. ReDrawTri(m.D,Position0,Position1,Position2,option)
  362. return Model
  363. end
  364. local function GetBeamLight(Parent,Length,Width0,Width1,FirstTransparent,Color,LightEm)
  365. local BPart=Instance.new("Part",Parent)BPart.CanCollide=false BPart.Size=Vector3.new()BPart.Transparency=1
  366. local a0=Instance.new("Attachment",BPart)local a1=Instance.new("Attachment",BPart)a1.Position=Vector3.new(0,0,Length)
  367. local beam=Instance.new("Beam",BPart)beam.FaceCamera=1
  368. beam.Attachment0=a0 beam.Attachment1=a1 beam.Segments=0
  369. beam.Width0=Width0 beam.Width1=Width1 beam.Texture="rbxassetid://1251856844"beam.LightEmission=LightEm or 1
  370. beam.Transparency=NumberSequence.new(FirstTransparent,1)beam.Color=ColorSequence.new(Color)
  371. return BPart,beam
  372. end
  373. local function FadeBeamL(Beam,Type,Add)
  374. if Beam~=nil then
  375. if Beam:IsA("Beam")and Beam.Parent then
  376. if Type=="Normal"then
  377. spawn(function()
  378. for i=0,1,Add do
  379. if Beam.Parent then
  380. Beam.Transparency=NumberSequence.new(i,1)
  381. sw()end
  382. end Beam.Parent:Destroy()
  383. end)
  384. end
  385. if Type=="idk"then
  386. spawn(function()
  387. for i=1,0,-Add do
  388. if Beam.Parent then
  389. Beam.Transparency=NumberSequence.new(i,1)
  390. sw()end
  391. end
  392. for i=0,1,Add do
  393. if Beam.Parent then
  394. Beam.Transparency=NumberSequence.new(i,1)
  395. sw()end
  396. end if Beam.Parent then Beam.Parent:Destroy()end
  397. end)
  398. end
  399. end
  400. end
  401. end
  402. ieraseurmotor(PC)local RootPart=PC.HumanoidRootPart
  403. local walk=false local onground=false local walkspeed=16 local Active=false local Effects=Instance.new("Folder",workspace)
  404. local function GlitchParts(m,siz,t,Invisible,Hold)spawn(function()
  405. local Glit={}local invi={}
  406. if not m:IsA'BasePart'then for i,p in pairs(m:children())do
  407. if p:IsA"BasePart"then
  408. local a=p:Clone()a.Anchored=1 a.CanCollide=nil a:ClearAllChildren()
  409. local CF=a.CFrame a.Parent=Effects a.CFrame=CF*CFrame.new(math.random(-100,100)/siz,math.random(-100,100)/siz,math.random(-100,100)/siz)
  410. table.insert(Glit,{Pt=a,pst=CF,Sav=p,Tr=p.Transparency})if Invisible then p.Transparency=1 end
  411. end
  412. end
  413. else
  414. local a=m:Clone()a.Anchored=1 a.CanCollide=nil a:ClearAllChildren()
  415. local CF=a.CFrame a.Parent=Effects a.CFrame=CF*CFrame.new(math.random(-100,100)/siz,math.random(-100,100)/siz,math.random(-100,100)/siz)
  416. table.insert(Glit,{Pt=a,pst=CF,Sav=m,Tr=m.Transparency})if Invisible then m.Transparency=1 end
  417. end
  418. for i=1,t do
  419. for i,p in pairs(Glit)do
  420. if p.Pt.Parent then
  421. if Hold then p.pst=p.Sav.CFrame end
  422. p.Pt.CFrame=p.pst*CFrame.new(math.random(-100,100)/siz,math.random(-100,100)/siz,math.random(-100,100)/siz)
  423. end
  424. end
  425. sw()
  426. end
  427. for i,p in pairs(Glit)do p.Pt:Destroy()if Invisible then p.Sav.Transparency=p.Tr end end
  428. end)
  429. end
  430. local Mouse=PL:GetMouse()local ShowHitBoxes=false FH=FindHumanoid
  431. local RArm=PC["Right Arm"]local LArm=PC["Left Arm"]local RLeg=PC["Right Leg"]local LLeg=PC["Left Leg"]local Torso=PC.Torso
  432. if 1 then
  433. local function motor(part0,part1,c0,c1)
  434. local motor=Instance.new("Motor",part0)
  435. motor.Part0=part0 motor.Part1=part1 motor.C0=c0 motor.C1=c1
  436. return motor
  437. end
  438. local ra=motor(Torso,RArm,CFrame.new(1.5,0,0),CFrame.new(0,0,0))local la=motor(Torso,LArm,CFrame.new(-1.5,0,0),CFrame.new(0,0,0))
  439. local rl=motor(Torso,RLeg,CFrame.new(.5,-2,0),CFrame.new(0,0,0))local ll=motor(Torso,LLeg,CFrame.new(-.5,-2,0),CFrame.new(0,0,0))
  440. local nek=Torso.Neck local rjoint=RootPart.RootJoint nek.C0=CFrame.new(0,0,0)nek.C1=CFrame.new(0,0,0)
  441. rjoint.C0=CFrame.new(0,0,0)rjoint.C1=CFrame.new(0,0,0)
  442. function ReCallAnimate()
  443. RArm=PC["Right Arm"]LArm=PC["Left Arm"]RLeg=PC["Right Leg"]LLeg=PC["Left Leg"]Torso=PC.Torso RootPart=PC.HumanoidRootPart
  444. ra=motor(Torso,RArm,CFrame.new(1.5,0,0),CFrame.new(0,0,0))la=motor(Torso,LArm,CFrame.new(-1.5,0,0),CFrame.new(0,0,0))
  445. rl=motor(Torso,RLeg,CFrame.new(.5,-2,0),CFrame.new(0,0,0))ll=motor(Torso,LLeg,CFrame.new(-.5,-2,0),CFrame.new(0,0,0))
  446. nek=Torso.Neck rjoint=RootPart.RootJoint nek.C0=CFrame.new(0,0,0)nek.C1=CFrame.new(0,0,0)
  447. rjoint.C0=CFrame.new(0,0,0)rjoint.C1=CFrame.new(0,0,0)Anim(latest,1)
  448. end
  449. function Anim(idk,lerpval)
  450. rjoint.C0=rjoint.C0:lerp(idk[1],lerpval)
  451. nek.C0=nek.C0:lerp(idk[2],lerpval)
  452. ra.C0=ra.C0:lerp(idk[3],lerpval)
  453. la.C0=la.C0:lerp(idk[4],lerpval)
  454. rl.C0=rl.C0:lerp(idk[5],lerpval)
  455. ll.C0=ll.C0:lerp(idk[6],lerpval)
  456. latest={}latest[1]=rjoint.C0 latest[2]=nek.C0 latest[3]=ra.C0 latest[4]=la.C0 latest[5]=rl.C0 latest[6]=ll.C0
  457. end
  458. end
  459. local function spawnref(Position)Position=typeof(Position)=="Vector3"and CFrame.new(Position)or Position local ref=Instance.new("Part",Effects)ref.Transparency=1 ref.Size=Vector3.new()ref.CFrame=Position ref.Anchored=1 ref.CanCollide=nil return ref end
  460. local function ua(part)if part:IsA("BasePart")then part.Anchored=false end local c=part:GetChildren()for i=1,#c do ua(c[i])end end local function rot(part,vec3,pow)local j=Instance.new("BodyAngularVelocity",part)j.MaxTorque=Vector3.new(pow,pow,pow)j.AngularVelocity=vec3 return j end
  461. local function CreateHitBox(Size,CF,Script)
  462. local pt=Instance.new("Part")a(pt)pt.CanCollide=false pt.Size=Size rot(pt,Vector3.new(),1/0)pt.Transparency=1 pt.CFrame=CF
  463. pt.Parent=Effects if ShowHitBoxes then pt.Transparency=.8 local s=Instance.new("SelectionBox",pt)s.Color3=Color3.new(1,0,0)s.Adornee=pt end
  464. local function BreakHitBox()pt:Destroy()end pt.Touched:connect(Script)spawn(function()sw()pt:Destroy()end)
  465. end
  466. local function CreateHitSphere(Size,CF,Script)
  467. local pt=Instance.new("Part")a(pt)pt.CanCollide=false pt.Size=Vector3.new(Size,Size,Size)
  468. rot(pt,Vector3.new(),1/0)pt.Transparency=1 pt.CFrame=CF pt.Shape="Ball"
  469. pt.Parent=Effects if ShowHitBoxes then pt.Transparency=.8 local s=Instance.new("SelectionBox",pt)s.Color3=Color3.new(1,0,0)s.Adornee=pt end
  470. local function BreakHitBox()pt:Destroy()end pt.Touched:connect(Script)spawn(function()sw()pt:Destroy()end)
  471. end
  472. local function Region3Find(Size,Pos,Script,AutoSearch)--if AutoSearch==true then it automatically insert Humanoid after Part.
  473. Pos=typeof(Pos)=="CFrame"and Pos.p or Pos
  474. local reg=Region3.new(Pos-Vector3.new(Size/2,Size/2,Size/2),Pos+Vector3.new(Size/2,Size/2,Size/2))
  475. for i,p in pairs(workspace:FindPartsInRegion3WithIgnoreList(reg,{PC,Effects},1000))do
  476. if AutoSearch then local h=FH(p)if h then spawn(function()if h.Parent then Script(p,h)end end)end else spawn(function()Script(p)end)end
  477. end
  478. end
  479. RayForMovingObj=function(Part,Length,WaterOpt)--or else , JUST CFrame. (return : hitting part / position )
  480. local cf=typeof(Part)=="Instance"and Part.CFrame or Part
  481. return workspace:FindPartOnRayWithIgnoreList(Ray.new(cf.p,cf.lookVector*Length),{PC,Effects},true,not WaterOpt)
  482. end
  483. local MusicEnabled=1 local Dead=nil
  484. ondied=function()
  485. Dead=true
  486. for i=1,2 do
  487. for i,p in pairs(PC:GetDescendants())do
  488. if p:IsA"BasePart"then
  489. local part=Instance.new("Part",Effects)part.Material="Neon"part.Size=p.Size
  490. part.Color=mcol part.Anchored=1 part.CanCollide=nil part.CFrame=CFrame.new(p.Position)
  491. local add=Vector3.new(math.random(-100,100)/1200,math.random(-100,100)/1200,math.random(-100,100)/1200)
  492. spawn(function()for i=0,1,.005 do part.CFrame=part.CFrame+add part.Transparency=i sw()end part:Destroy()end)
  493. end
  494. end
  495. end
  496. PC:Remove()
  497. end
  498. spawn(function()local opos=Vector3.new(0,0,0)local pts=0
  499. local pos=opos
  500. local MusicI=nil local MusicPos=0
  501. if PC.Head:FindFirstChild"Running"then PC.Head.Running:Destroy()end
  502. --local pos=RootPart.Position
  503. if 1 then
  504. local frm=Torso.CFrame*CFrame.new(0,1.5,0) local wf=Instance.new("Folder",RootPart)wf.Name="Wings"
  505. local a,b,c,d=DoSquare(frm*CFrame.new(2,.5,2),frm*CFrame.new(3,4,2),frm*CFrame.new(6,3,4),frm*CFrame.new(7,3,5),wf,{Transparency=.7,Anchored=nil},1)
  506. local d,e,f,g=DoSquare(frm*CFrame.new(-2,.5,2),frm*CFrame.new(-3,4,2),frm*CFrame.new(-6,3,4),frm*CFrame.new(-7,3,5),wf,{Transparency=.7,Anchored=nil},1)
  507. local h,i=drawTriangle(frm*CFrame.new(2,-.5,1.5),frm*CFrame.new(3,-.5,1.2),frm*CFrame.new(8,-2,1.5),wf,{Transparency=.9,Anchored=nil},1)
  508. local j,k=drawTriangle(frm*CFrame.new(-2,-.5,1.5),frm*CFrame.new(-3,-.5,1.2),frm*CFrame.new(-8,-2,1.5),wf,{Transparency=.9,Anchored=nil},1)
  509. local l,m=drawTriangle(frm*CFrame.new(1.5,0,1.5),frm*CFrame.new(3,-.6,1.9),frm*CFrame.new(8,2,3),wf,{Transparency=.8,Anchored=nil},1)
  510. local n,o=drawTriangle(frm*CFrame.new(-1.5,0,1.5),frm*CFrame.new(-3,-.6,1.9),frm*CFrame.new(-8,2,3),wf,{Transparency=.8,Anchored=nil},1)
  511. --ToMesh(a)ToMesh(b)ToMesh(c)ToMesh(d)ToMesh(e)ToMesh(f)ToMesh(g)ToMesh(h)ToMesh(i)ToMesh(j)ToMesh(k)ToMesh(l)ToMesh(m)ToMesh(n)ToMesh(o)
  512. ua(wf)for _, v in pairs(wf:children())do--auto welding from Ace of Spades script
  513. if v.ClassName=="UnionOperation" or v.ClassName=="MeshPart" or v.ClassName=="Part" or v.ClassName=="WedgePart" or v.ClassName=="BasePart" then v.Anchored=false
  514. local OR=CFrame.new(v.Position)
  515. local P1C, P2C=v.CFrame:inverse() * OR, Torso.CFrame:inverse() * OR
  516. local weld=Instance.new("Weld", RootPart)
  517. weld.Name=v.Name .. "->" .. Torso.Name
  518. weld.Part0=v
  519. weld.Part1=Torso
  520. weld.C0=P1C
  521. weld.C1=P2C
  522. end
  523. end
  524. end
  525. for i=0,360,6 do
  526. local Head=PC.Head
  527. local part=Instance.new("Part",Head)part.Material="Neon"part.Size=Vector3.new(.1,.1,.125)
  528. local weld=Instance.new("Weld",part)ToMesh(part)part.Color=Color3.new(1,0,0)
  529. weld.Part0=Head weld.Part1=part weld.C0=CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,1)+Vector3.new(0,1.5,0)
  530. end
  531. local namebbg=Instance.new("BillboardGui",PC)namebbg.Size=UDim2.new(16,0,2,0)namebbg.Adornee=RootPart namebbg.Name="NameTag"
  532. namebbg.StudsOffset=Vector3.new(0,4.8,0)namebbg.AlwaysOnTop=1
  533. local nt=Instance.new("TextLabel",namebbg)nt.Text="Mechanized Angel"nt.TextColor3=Color3.new(1,0,0)nt.TextScaled=1 nt.Position=UDim2.new(0,0,-.4,0)hum.Died:connect(ondied)
  534. nt.Font="Fantasy"nt.BackgroundTransparency=1 nt.TextTransparency=0 nt.TextStrokeTransparency=.5 nt.Size=UDim2.new(1,0,1,0)
  535. for i,p in pairs(PC:GetDescendants())do
  536. local par=p.Parent
  537. p.Changed:connect(function(E)
  538. if tostring(E)=="Parent"then
  539. sw()pcall(function()p.Parent=par end)
  540. end
  541. end)
  542. end
  543. while sw()do pts=pts+.05
  544. if (PC.Parent==nil or PC.Parent.Parent==nil or PC~=PL.Character)and not Dead then
  545. sw()if pcall(function()PC.Parent=workspace end)then
  546. PL.Character=PC print'someone removed character , but revived.'
  547. else Dead=true
  548. end
  549. end
  550. if not Dead then
  551. if MusicI then if not MusicI.Parent then MusicI=GetInstance("Sound",PC)MusicI.TimePosition=MusicPos end else MusicI=GetInstance("Sound",PC)MusicI.TimePosition=MusicPos end
  552. MusicI.SoundId=musicId MusicI.Volume=4 MusicI.Playing=MusicEnabled MusicPos=MusicI.TimePosition
  553. pos=RootPart.Position
  554. if PC then
  555. if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else GetInstance("ForceField",PC).Name=""end ua(PC)
  556. local hit,pos=workspace:FindPartOnRayWithIgnoreList(Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0).unit*3.5),{PC,Effects},false,true)
  557. if not hit then onground=false else onground=true end
  558. if (Vector3.new(pos.X,0,pos.Z)-Vector3.new(opos.X,0,opos.Z)).magnitude>=.01 then walk=true else walk=false end
  559. if not Active then
  560. if onground then
  561. if walk then
  562. Anim({CFrame.new(0,1+math.sin(pts)/10,0)*CFrame.Angles(-.4,0,0),
  563. CFrame.new(0,1.5,0)*CFrame.Angles(.3,0,0),
  564. CFrame.new(1.5,0,.4)*CFrame.Angles(-.3,0,.2),
  565. CFrame.new(-1.5,0,.4)*CFrame.Angles(-.3,0,-.2),
  566. CFrame.new(.5,-1.8,.7)*CFrame.Angles(-.7-math.sin(pts)/15,0,.1-math.sin(pts)/15),
  567. CFrame.new(-.5,-1.3,-.55)*CFrame.Angles(0,0,-.1+math.sin(pts)/15),
  568. },.3)
  569. else
  570. Anim({CFrame.new(0,1+math.sin(pts)/10,0)*CFrame.Angles(0,0,0),
  571. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  572. CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4),
  573. CFrame.new(-.5,.3,-.5)*CFrame.Angles(.3,-3.1,-1.4),
  574. CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1-math.sin(pts)/15),
  575. CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1+math.sin(pts)/15),
  576. },.3)
  577. end
  578. else
  579. Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0),
  580. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  581. CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.2),
  582. CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,-.2),
  583. CFrame.new(.5,-1.8,.2)*CFrame.Angles(-.3-math.sin(pts)/15,0,.1-math.sin(pts)/15),
  584. CFrame.new(-.5,-1.5,-.25)*CFrame.Angles(0,0,-.1+math.sin(pts)/15),
  585. },.3)
  586. end
  587. end
  588. end
  589. if not Active then walkspeed=30 ua(PC)end
  590. if not hum then hum=Instance.new("Humanoid",PC)hum.Died:connect(ondied)workspace.CurrentCamera.CameraSubject=hum
  591. elseif not hum.Parent then hum=Instance.new("Humanoid",PC)hum.Died:connect(ondied)workspace.CurrentCamera.CameraSubject=hum end
  592. hum.PlatformStand=false hum.Name="No Bright Things , but if you thought."
  593. hum.MaxHealth=1/0 hum.Health=0/0 hum.WalkSpeed=walkspeed if walkspeed>0 then hum.JumpPower=50 else hum.JumpPower=0 end
  594. if Effects.Parent==nil then Effects:Destroy()Effects=Instance.new("Folder",workspace)end
  595. Mouse.TargetFilter=Effects
  596. --if not PC:FindFirstChild("WingFolder")then Instance.new("Folder",PC).Name="WingFolder"else PC.WingFolder:ClearAllChildren()end
  597. --[[if DoEffect then
  598. local fol=PC.WingFolder
  599. local frm=Torso.CFrame+Vector3.new(0,1.5,0)
  600. DoSquare(frm*CFrame.new(2,.5,2),frm*CFrame.new(3,4,2),frm*CFrame.new(6,3,4),frm*CFrame.new(7,3,5),fol,{Transparency=.7})
  601. DoSquare(frm*CFrame.new(-2,.5,2),frm*CFrame.new(-3,4,2),frm*CFrame.new(-6,3,4),frm*CFrame.new(-7,3,5),fol,{Transparency=.7})
  602. drawTriangle(frm*CFrame.new(2,-.5,1.5),frm*CFrame.new(3,-.5,1.2),frm*CFrame.new(8,-2,1.5),fol,{Transparency=.9})
  603. drawTriangle(frm*CFrame.new(-2,-.5,1.5),frm*CFrame.new(-3,-.5,1.2),frm*CFrame.new(-8,-2,1.5),fol,{Transparency=.9})
  604. drawTriangle(frm*CFrame.new(1.5,0,1.5),frm*CFrame.new(3,-.6,1.9),frm*CFrame.new(8,2,3),fol,{Transparency=.8})
  605. drawTriangle(frm*CFrame.new(-1.5,0,1.5),frm*CFrame.new(-3,-.6,1.9),frm*CFrame.new(-8,2,3),fol,{Transparency=.8})
  606. end]]
  607. end
  608. hum:ClearAllChildren()opos=pos
  609. end
  610. end)
  611. function chatfunc(text)if not Dead then
  612. spawn(function()
  613. local rs=game:service'RunService'.RenderStepped
  614. local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  615. local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
  616. local s=GetInstance("Sound",PC)s.SoundId="rbxassetid://418252437"s.Volume=2
  617. if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  618. local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffset=Vector3.new(0,4.8,0)b.Name="cht"
  619. local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  620. local texts={}
  621. for i=1,snum do
  622. texts[i]=Instance.new("TextButton",b)
  623. texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  624. texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum+math.random(-100,100)/100,0,math.random(-100,100)/100,0)
  625. texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1,0,0)
  626. texts[i].TextStrokeTransparency=1 texts[i].Font="Fantasy"texts[i].TextScaled=1 texts[i].TextTransparency=1
  627. end
  628. local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then
  629. if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end
  630. else texts[i][Set]=Val end end end end
  631. for i=1,#texts do
  632. if texts[i].Parent then
  633. spawn(function()for i2=0,1,.025 do
  634. texts[i].Position=texts[i].Position:lerp(UDim2.new((i-1)/#texts,0,.3,0),.15)sw()
  635. texts[i].TextTransparency=1-i2 texts[i].TextStrokeTransparency=1-(i2/2)
  636. end
  637. texts[i].Position=UDim2.new((i-1)/#texts,0,.3,0)texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=.5
  638. end)
  639. end
  640. --if texts[i].Text~=" "then s:Play()end
  641. sw(3)
  642. end
  643. sw(180)
  644. s:Destroy()
  645. for i=1,0,-.025 do
  646. DoOpt("TextTransparency",1-i)DoOpt("TextStrokeTransparency",.5+(1-i)/2)
  647. DoOpt("Position",UDim2.new(.5,0,.3,0),.05)
  648. sw()
  649. end
  650. b:Destroy()
  651. end)
  652. end
  653. end
  654. PL.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,PL,PL))end)
  655. function EfcGUI(ref,alwaysNOTtop,BGCol,Option)
  656. local b=Instance.new("BillboardGui",ref)b.Adornee=ref b.AlwaysOnTop=not alwaysNOTtop
  657. local t=Instance.new("TextLabel",b)t.Size=UDim2.new(1,0,1,0)t.Text=""t.BorderSizePixel=0
  658. t.BackgroundColor3=BGCol or mcol
  659. return b,t
  660. end
  661. local function Sound(id,parent,vol,pit,pos)local R=nil
  662. if pos then R=spawnref(pos)end
  663. local so=GetInstance("Sound",R or parent or Effects)
  664. so.SoundId="rbxassetid://"..tostring(id)if vol~=nil then so.Volume=vol else so.Volume=1 end if pit~=nil then so.Pitch=pit else so.Pitch=1 end so:Play()so.Ended:connect(function()if R then R:Destroy()else so:Destroy()end end)
  665. end
  666. function TriangleSpam(num,Pos,r,r2)
  667. for i=1,num do
  668. local Model=drawTriangle(Vector3.new(),Vector3.new(),Vector3.new(),Effects,{Transparency=1})
  669. spawn(function()local fpos=typeof(Pos)=="CFrame"and Pos.p or Pos-- local r=1200 local r2=70
  670. local add0=Vector3.new(math.random(-100,100)/r2,math.random(-100,100)/800,math.random(-100,100)/r2)
  671. local vec1=fpos local add1=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r)
  672. local vec2=fpos local add2=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r)
  673. local vec3=fpos local add3=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r)
  674. for i=0,1,.01 do
  675. add0=add0/Vector3.new(1.1,1,1.1)
  676. add0=add0+Vector3.new(0,.005,0)
  677. vec1,vec2,vec3=vec1+add1+add0,vec2+add2+add0,vec3+add3+add0
  678. ReDrawTri(Model,vec1,vec2,vec3,{Transparency=i})
  679. sw()
  680. end Model:Destroy()
  681. end)
  682. end
  683. end
  684. function LightningEffect(Pos,Seg,Size,Time,Col,Options)--Position {Vector3 Start,Vector3 End} , Segment , Size , Time , Color(or nil)
  685. local p1,p2=typeof(Pos[1])=="CFrame"and Pos[1].p or Pos[1],typeof(Pos[2])=="CFrame"and Pos[2].p or Pos[2]
  686. Options={Fade=Options.Fade or false,AutoSegment=Options.AutoSegment or false,Transparency=Options.Transparency or 0,LightningSiz=Options.LightningSiz or 1,Block=Options.Block or false,SizeFade=Options.SizeFade or 0}
  687. local mag=(p1-p2).Magnitude local col=Col or mcol local LightningSize=Options.LightningSiz
  688. local OldPos=CFrame.new(p1)local Step=mag/Seg local CF=CFrame.new(p1,p2)
  689. if Options.AutoSegment then Step=Seg end
  690. for i=1+Step,mag-Step,Step do
  691. local Pos=CF*CFrame.new(0,0,-i)*CFrame.new(math.random(-LightningSize*50,LightningSize*50)/50,math.random(-LightningSize*50,LightningSize*50)/50,math.random(-LightningSize*50,LightningSize*50)/50)
  692. local pt=Instance.new("Part",Effects)pt.Color=Col pt.Material="Neon"
  693. pt.Size=Vector3.new()pt.CFrame=(CFrame.new(OldPos.p,Pos.p)*CFrame.new(0,0,-(Pos.p-OldPos.p).Magnitude/2))*CFrame.Angles(0,math.rad(90),0)
  694. pt.Anchored=1 pt.CanCollide=nil
  695. if Options.Fade then pt.Transparency=lerp(Options.Transparency,1,i/mag)else pt.Transparency=Options.Transparency end
  696. local Mesh=Instance.new("SpecialMesh",pt)Mesh.MeshType=not Options.Block and"Cylinder"or "Brick"Mesh.Scale=Vector3.new((Pos.p-OldPos.p).Magnitude,Size,Size)*20
  697. OldPos=Pos
  698. spawn(function()local tr=pt.Transparency for i=0,1,Time/100 do pt.Transparency=lerp(tr,1,i)sw()Mesh.Scale=Mesh.Scale-Vector3.new(0,Options.SizeFade,Options.SizeFade)end pt:Destroy()end)
  699. end
  700. local Pos=CF*CFrame.new(0,0,mag)
  701. local pt=Instance.new("Part",Effects)pt.Color=Col pt.Material="Neon"
  702. pt.Size=Vector3.new()pt.CFrame=(CFrame.new(OldPos.p,Pos.p)*CFrame.new(0,0,-(Pos.p-OldPos.p).Magnitude/2))*CFrame.Angles(0,math.rad(90),0)
  703. pt.Anchored=1 pt.CanCollide=nil
  704. if Options.Fade then pt.Transparency=1 else pt.Transparency=Options.Transparency end
  705. local Mesh=Instance.new("SpecialMesh",pt)Mesh.MeshType="Cylinder"Mesh.Scale=Vector3.new((Pos.p-OldPos.p).Magnitude,Size,Size)*20
  706. spawn(function()local tr=pt.Transparency for i=0,1,Time/100 do pt.Transparency=lerp(tr,1,i)sw()Mesh.Scale=Mesh.Scale-Vector3.new(0,Options.SizeFade,Options.SizeFade)end pt:Destroy()end)
  707. end
  708. --Lightning Options (table) (n = default) : Fade=false (fading by range?) , AutoSegment=false , Transparency=0 , LightningSiz=1 , Block = false , SizeFade=0
  709. --I've added table option to dodge INSANE OPTIONS like some my scripts (Destroyer)... that was terrible.
  710. local NormalAttackNumber=0 Holding={}
  711. Mouse.KeyDown:connect(function(k3y)
  712. Holding[k3y]=true
  713. if not Dead then
  714. if not Active then
  715. if k3y=="e"and GetCDown"Flawing Light"then
  716. DoCDown("Flawing Light",.5)
  717. for i=1,3 do
  718. local part=Instance.new("Part",Effects)part.Size=Vector3.new(1,1,1)part.Shape="Ball"ToMesh(part)part.Anchored=1
  719. part.Material="Neon"part.Color=mcol
  720. part.CFrame=CFrame.new((RootPart.CFrame+Vector3.new(math.random(-50,50)/10,5+math.random(-50,50)/10,math.random(-50,50)/10)).p,Mouse.Hit.p)
  721. spawn(function()for i=1,100 do
  722. local h,p=RayForMovingObj(part,1)
  723. if h==nil then part.CFrame=part.CFrame*CFrame.new(0,0,-1)
  724. else break end sw()
  725. end
  726. Region3Find(12,part.CFrame,function(p,h)h.Health=nil GlitchParts(p,200,60,1)p:Destroy()end,1)
  727. local b,g=EfcGUI(part)part.Transparency=1
  728. g.Rotation=45 for i=0,60 do b.Size=b.Size:lerp(UDim2.new(18,0,18,0),.1)sw()g.BackgroundTransparency=i/60
  729. end
  730. part:Destroy()end)
  731. sw(6)
  732. end
  733. end
  734. if k3y=="r"and GetCDown"Infinite Bright"then Active=true
  735. walkspeed=8 chatfunc("FEEL DESTRUCTION")
  736. Sound(255679384,PC,4,3.7,LArm.CFrame)Sound(392838370,PC,2,1,LArm.CFrame)
  737. for i=0,1,.02 do
  738. Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0),
  739. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  740. CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4),
  741. CFrame.new(-1.4,1.2,0)*CFrame.Angles(math.rad(180),0,-.1),
  742. CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
  743. CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1),
  744. },.4)sw()
  745. end
  746. spawn(function()local keepit=4 local num=0
  747. while sw(keepit)and Active do
  748. if num<78 then num=num+1 else keepit=8 end
  749. Camera.CFrame=Camera.CFrame*CFrame.Angles(math.rad(math.random(-10,10)/20),math.rad(math.random(-10,10)/20),0)
  750. Sound(1145252750,PC,1,2,LArm.CFrame)
  751. local CF=CFrame.new(LArm.CFrame.p,Mouse.Hit.p)
  752. local h,p=RayForMovingObj(CF,4000)
  753. LightningEffect({p,LArm.CFrame*CFrame.new(0,-1,0)},10,.4,10,Color3.new(1,0,0),{LightningSiz=.5,SizeFade=1,Fade=true})
  754. local ref=spawnref(p)
  755. local b,g=EfcGUI(ref)
  756. spawn(function()g.Rotation=math.random(360)for i=0,30 do b.Size=b.Size:lerp(UDim2.new(10,0,10,0),.1)sw()g.BackgroundTransparency=i/30
  757. end ref:Destroy()end)
  758. Region3Find(7,p,function(p,h)h.Health=nil p:Destroy()for i=1,2 do local efc=Instance.new("Part")efc.Size=p.Size efc.Position=p.CFrame.p
  759. efc.Parent=Effects efc.Anchored=1 efc.CanCollide=nil
  760. efc.Material="Neon"efc.Color=mcol local away=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))/500
  761. spawn(function()for i=0,1,.01 do efc.Transparency=i efc.CFrame=efc.CFrame+away sw()end efc:Destroy()end)end end,1)
  762. end
  763. end)local num=0
  764. while sw()and(Holding.r or num<45)do if num<46 then num=num+1 end
  765. Anim({CFrame.new(0,1,0)*CFrame.Angles(0,-1,0),
  766. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  767. CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4),
  768. CFrame.new(-1.8,.3,-.9)*CFrame.Angles(0,-.8,-1.6),
  769. CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
  770. CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1),
  771. },.6)sw()
  772. end
  773. DoCDown("Infinite Bright",1)
  774. Active=nil
  775. end
  776. if k3y=="t"and GetCDown"Blink"then
  777. local Pos=Mouse.Hit local OldCF=RootPart.CFrame
  778. if Mouse.Target then
  779. Sound(289556450,Effects,5,1,OldCF)Sound(1012554393,Effects,1,1,OldCF)
  780. RootPart.CFrame=Pos+Vector3.new(0,2,0)local CF=RootPart.CFrame
  781. local ref=spawnref(OldCF)local b=Instance.new("BillboardGui",ref)b.Size=UDim2.new(30,0,30,0)
  782. b.AlwaysOnTop=1 local d=Instance.new("ImageLabel",b)d.BackgroundTransparency=1 d.Image="rbxassetid://328647556"d.Size=UDim2.new(1,0,1,0)
  783. spawn(function()for i=0,1,.025 do d.Rotation=lerp(d.Rotation,180,.15)sw()end for i=0,1,.05 do d.ImageTransparency=i sw()end ref:Destroy()end)
  784. local ref=spawnref(OldCF)local b=Instance.new("BillboardGui",ref)b.Size=UDim2.new(10,0,10,0)
  785. b.AlwaysOnTop=1 local d=Instance.new("ImageLabel",b)d.BackgroundTransparency=1 d.Image="rbxassetid://328647556"d.Size=UDim2.new(1,0,1,0)
  786. spawn(function()for i=0,1,.025 do d.Rotation=lerp(d.Rotation,-180,.15)sw()end for i=0,1,.05 do d.ImageTransparency=i sw()end ref:Destroy()end)
  787. spawn(function()
  788. local Model=DoSquare(CF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),CF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),OldCF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),OldCF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),Effects,{Transparency=1})
  789. for i=0,1,.05 do ReDrawSqu(Model,CF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),CF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),OldCF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),OldCF*CFrame.new(math.random(-100,100)/50,math.random(-100,100)/50,math.random(-100,100)/50),{Transparency=i})
  790. sw()end Model:Destroy()end)DoCDown("Blink",1)TriangleSpam(20,RootPart.CFrame.p,800,40)
  791. end
  792. end
  793. if k3y=="z"and GetCDown"Judgement Prism"then Active=true walkspeed=8
  794. for i=0,1,.05 do
  795. Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0),
  796. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  797. CFrame.new(1.3,1.4,0)*CFrame.Angles(math.rad(180),0,.1),
  798. CFrame.new(-1.3,1.4,0)*CFrame.Angles(math.rad(180),0,-.1),
  799. CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1),
  800. CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1),
  801. },.5)sw()
  802. end
  803. Active=false
  804. DoCDown("Judgement Prism",12)
  805. local Pos=CFrame.new(RootPart.Position)
  806. local PrismTop=CFrame.new(0,12,0)local PrismSide=CFrame.new(9,0,0)--just two number is easier I think
  807. --Animate Prism
  808. local m=DoPrism(Pos,PrismTop,PrismSide,Effects,{Transparency=1})
  809. for i=1,.8,-.0025 do
  810. Pos=Pos*CFrame.new(0,.1,0)*CFrame.Angles(0,.05,0)
  811. PrismTop=PrismTop:lerp(CFrame.new(0,9,0),.1)PrismSide=PrismSide:lerp(CFrame.new(6,0,0),.1)
  812. ReDrawPrism(m,Pos,PrismTop,PrismSide,Effects,{Transparency=i})
  813. sw()
  814. end m:Destroy()
  815. local ref=spawnref(Pos)
  816. local sound=GetInstance("Sound",ref)sound.SoundId="rbxassetid://255679384"sound.Volume=5
  817. sound:Play()
  818. while 1 and(sound.Parent~=nil and sound.Playing and sound.Parent.Parent~=nil )do
  819. Pos=Pos*CFrame.Angles(0,.05,0)
  820. local m=DoPrism(Pos,PrismTop,PrismSide,Effects,{Transparency=.8})
  821. sw()
  822. m:Destroy()
  823. end
  824. Sound(878000314,Effects,2.5,1,Pos)LightningEffect({Pos,Pos+Vector3.new(0,300,0)},60,3,1,mcol,{SizeFade=.5,Fade=true,LightningSiz=3})
  825. TriangleSpam(40,Pos,1200,70)
  826. sw(60)
  827. for i=1,10 do
  828. local Pos=Mouse.Hit
  829. LightningEffect({Pos,Pos+Vector3.new(0,300,0)},60,1,5,mcol,{SizeFade=.5,Fade=true,LightningSiz=5})
  830. TriangleSpam(4,Pos,1200,120)Sound(480357531,Effects,2,1,Pos)Sound(1145252750,Effects,1,1,Pos)
  831. for i=1,10 do
  832. local pt=Instance.new("Part",Effects)pt.Color=mcol pt.Material="Neon"
  833. pt.Anchored=1 pt.CanCollide=nil pt.Size=Vector3.new()local m=ToMesh(pt)
  834. local CF=Pos*rc()pt.CFrame=CF local add=math.random(5,100)/100
  835. spawn(function()
  836. for i=1,0,-.01 do m.Scale=Vector3.new(i,i,i)*20 pt.CFrame=pt.CFrame+Vector3.new(0,add,0)sw()end pt:Destroy()
  837. end)
  838. end
  839. Region3Find(17,Pos,function(p,h)
  840. if h.Parent then
  841. for i,p in pairs(h.Parent:GetDescendants())do
  842. if p:IsA"BasePart"then
  843. local part=Instance.new("Part",Effects)part.Material="Neon"part.Size=p.Size
  844. part.Color=mcol part.Anchored=1 part.CanCollide=nil part.CFrame=CFrame.new(p.Position)
  845. local add=Vector3.new(math.random(-100,100)/200,math.random(-100,100)/200,math.random(-100,100)/200)
  846. spawn(function()for i=0,1,.01 do part.CFrame=part.CFrame+add part.Transparency=i sw()end part:Destroy()end)
  847. end
  848. end h:Destroy()p.Parent:Destroy()
  849. end
  850. end,1)
  851. sw(20)
  852. end
  853. end
  854. if k3y=="x"and GetCDown"Purifying Blast"then Active=true --rbxassetid://1346253336
  855. chatfunc"There's glowing things such as Light , will fall to defeat you."
  856. DoCDown("Purifying Blast",7.77)
  857. for i=0,1,.045 do walkspeed=0
  858. Anim({CFrame.new(0,-1.5,0)*CFrame.Angles(0,0,0),
  859. CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),
  860. CFrame.new(1.3,0,0)*CFrame.Angles(math.rad(0),0,.1),
  861. CFrame.new(-1.3,0,0)*CFrame.Angles(math.rad(0),0,-.1),
  862. CFrame.new(.5,-1,-.5)*CFrame.Angles(math.rad(10),0,.1),
  863. CFrame.new(-.5,-1.2,1)*CFrame.Angles(math.rad(-80),0,-.1),
  864. },.3)sw()
  865. end
  866. for id=1,50 do
  867. local sp=CFrame.new(math.random(-200,200)/20,math.random(-200,200)/20+70,math.random(-200,200)/20)+RootPart.CFrame.p
  868. local Flow=CFrame.new(math.random(-50,50)/10,math.random(-50,50)/10,math.random(-50,50)/10)
  869. local idk=CFrame.new(math.random(-200,200)/5,math.random(-200,200)/20,math.random(-200,200)/5)
  870. local Rotate=rc()
  871. spawn(function()
  872.  
  873. local p=GetInstance("Part",Effects)p.Anchored=1 p.CanCollide=nil p.Color=E_MainColor p.Anchored=1
  874. local a0=Instance.new("Attachment",p)a0.Position=Vector3.new(0,.5,0)local a1=Instance.new("Attachment",p)a1.Position=-a0.Position
  875. local t=GetInstance("Trail",p)t.Transparency=NumberSequence.new(0,1)t.LightEmission=1 t.LightInfluence=0 t.Texture="rbxassetid://1251856844"
  876. t.FaceCamera=1 t.Lifetime=.5 t.Attachment0=a0 t.Attachment1=a1 t.Color=ColorSequence.new(Color3.new(1,0,0))
  877. p.Size=Vector3.new(1,1,1)local m=ToMesh(p)p.Material="Neon"
  878. p.CFrame=RootPart.CFrame*sp
  879. for i=0,1,.02 do p.Transparency=1-i/2
  880. t.Transparency=NumberSequence.new(1-i,1)
  881. p.CFrame=sp:lerp(sp*Flow,i)*Rotate
  882. sw()
  883. end
  884. for i=0,id/20,.025 do
  885. p.CFrame=sp:lerp(sp*Flow,i+1)*Rotate
  886. sw()
  887. end
  888. local sav=p.CFrame local add=math.random(-150,150)
  889. for i=0,1,.05 do
  890. local sav=sav*CFrame.new(0,math.sin(i*math.pi/2)*add,0)
  891. p.CFrame=sav:lerp(RootPart.CFrame*idk,i)*rc()
  892. sw()
  893. end
  894. local ref=spawnref(RootPart.CFrame*idk)
  895. Sound(201858087,ref,1,1)
  896. local b,g=EfcGUI(ref)
  897. spawn(function()g.Rotation=math.random(360)for i=0,60 do b.Size=b.Size:lerp(UDim2.new(20,0,20,0),.1)sw()g.BackgroundTransparency=i/60
  898. end ref:Destroy()end)
  899. Region3Find(20,RootPart.CFrame*idk,function(p,h)h.Health=nil p:Destroy()for i=1,2 do local efc=Instance.new("Part")efc.Size=p.Size efc.Position=p.CFrame.p
  900. efc.Parent=Effects efc.Anchored=1 efc.CanCollide=nil
  901. efc.Material="Neon"efc.Color=mcol local away=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))/500
  902. spawn(function()for i=0,1,.01 do efc.Transparency=i efc.CFrame=efc.CFrame+away sw()end efc:Destroy()end)end end,1)
  903. p.Transparency=1 debri(p,1)
  904. end)
  905. end
  906. Active=false
  907. end
  908. end
  909. if k3y=="m"then MusicEnabled=not MusicEnabled end
  910. end
  911. end)
  912. Mouse.KeyUp:connect(function(k3y)
  913. if Holding[k3y]then Holding[k3y]=nil end
  914. end)
  915. if 1 then
  916. Mouse.Button1Down:connect(function()
  917. if not Active then
  918. end
  919. end)
  920. end
  921. print"Load finished."print"Hello world!"
  922. warn'Credits : tomonaoboys , Do not erase this.'
  923. warn'Private Version - Do not trade this easily.'
  924. warn"Now won't spawn error by death , and death effects available?"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement