SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | > ⚙Mechanized Angel v.2 | |
3 | > - by tomonaoboys | |
4 | > | |
5 | > Hello world! | |
6 | > what things can be a real angel? | |
7 | > Only The angel knows. | |
8 | > There's no light ... Only have fake one. | |
9 | > Warning : this is NOT complete. the move can get added ,removed ,or replaced. | |
10 | > I'm not made for editing. The codes are spagetti. | |
11 | > | |
12 | > Moves : ( *:Able to hold , or required ) | |
13 | > E : Flawing Light It shoots three holy? blasts. they explodes after 100 or got hit any object. | |
14 | > 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. | |
15 | > T : Blink Teleport. Only it is. many my script or edits highly have teleport. | |
16 | --]] | |
17 | local wedge=Instance.new("Part")wedge.Material="Neon"wedge.Anchored=1 wedge.TopSurface=Enum.SurfaceType.Smooth wedge.BottomSurface=Enum.SurfaceType.Smooth wedge.CanCollide=false | |
18 | - | musicId="rbxassetid://389898352"local mcol=Color3.new(1,1,.7)wedge.Color=mcol local Camera=workspace.CurrentCamera Instance.new("SpecialMesh",wedge).MeshType="Wedge"wedge.Size=Vector3.new() |
18 | + | musicId="rbxassetid://985989753"local mcol=Color3.new(1,1,.7)wedge.Color=mcol local Camera=workspace.CurrentCamera Instance.new("SpecialMesh",wedge).MeshType="Wedge"wedge.Size=Vector3.new() |
19 | --local Moon={"🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘"}useless now for idealess | |
20 | ||
21 | local function ToMesh(Part) | |
22 | local Mesh=Instance.new("SpecialMesh",Part) | |
23 | if Part:IsA"WedgePart"then Mesh.MeshType="Wedge" | |
24 | 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 | |
25 | Mesh.Scale=Part.Size*20 Part.Size=Vector3.new() | |
26 | return Mesh | |
27 | end | |
28 | function drawTriangle(a,b,c,parent,PartStat,classic) | |
29 | 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 | |
30 | if not a or not b or not c then error'Attempt to use NIL value'end | |
31 | local TriangleModel=Instance.new("Model",parent) | |
32 | 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}} | |
33 | table.sort(edges,function(a,b) return a.longest.magnitude > b.longest.magnitude end)local edge=edges[1] | |
34 | 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)) | |
35 | 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 | |
36 | local right=edge.longest:Cross(edge.other).unit local up=right:Cross(edge.longest).unit local back=edge.longest.unit | |
37 | 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) | |
38 | 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 | |
39 | for Index, Value in pairs(PartStat or{})do w1[Index]=Value end for Index, Value in pairs(PartStat or{})do w2[Index]=Value end | |
40 | if not classic then w1.Name="Wedge1"w2.Name="Wedge2" | |
41 | TriangleModel.Parent=parent or workspace | |
42 | return TriangleModel | |
43 | else | |
44 | w1.Parent=parent or workspace w2.Parent=parent or workspace return w1,w2 | |
45 | end | |
46 | end | |
47 | function DoSquare(A,B,C,D,parent,PartStat,classic) | |
48 | if not classic then local SquareModel=Instance.new("Model",parent or workspace) | |
49 | local mA=drawTriangle(A,B,C,SquareModel,PartStat)local mB=drawTriangle(C,D,A,SquareModel,PartStat)mA.Name="A"mB.Name="B"return SquareModel | |
50 | 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 | |
51 | function ReDrawSqu(m,A,B,C,D,PartStat)ReDrawTri(m.A,A,B,C,PartStat)B=ReDrawTri(m.B,C,D,A,PartStat)end | |
52 | function ReDrawTri(TriangleModel,a,b,c,PartStat) | |
53 | 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 | |
54 | 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}} | |
55 | table.sort(edges,function(a,b) return a.longest.magnitude > b.longest.magnitude end)local edge=edges[1] | |
56 | 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)) | |
57 | 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 | |
58 | local right=edge.longest:Cross(edge.other).unit local up=right:Cross(edge.longest).unit local back=edge.longest.unit | |
59 | 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) | |
60 | 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 | |
61 | for Index, Value in pairs(PartStat or{})do w1[Index]=Value end for Index, Value in pairs(PartStat or{})do w2[Index]=Value end | |
62 | end | |
63 | 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 | |
64 | local IsChatAvailable=false local HBMode="HeartBeat" | |
65 | if script.ClassName=="Script"then if tostring(game.PlaceId)=="843468296"then owner:Explode()end error("HOW?!??!?!")end | |
66 | local PL=game:service("Players").LocalPlayer script.Parent=PL:FindFirstChildOfClass("PlayerScripts") | |
67 | 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 | |
68 | 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 | |
69 | local function ieraseurmotor(chr) | |
70 | 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 | |
71 | p2:Destroy()end end end if chr:FindFirstChild("Animate")then chr.Animate:Destroy()end | |
72 | if chr:FindFirstChildOfClass("Humanoid")then if chr:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator")then chr:FindFirstChildOfClass("Humanoid").Animator:Destroy()end end | |
73 | end | |
74 | Humanoid=nil local DoEffect=1 local CooldownBox=Instance.new("Folder") | |
75 | 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 | |
76 | 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 | |
77 | if 1 then --Engine ? anyway by tomonaoboys maybe | |
78 | PierceForceField = false E_MainColor=Color3.new(1,1,2/3) | |
79 | local AutomaticRegen=true local HealthRValue=.02 | |
80 | local Players=game:GetService("Players") | |
81 | local ply=Players.LocalPlayer | |
82 | local chr=ply.Character | |
83 | local humanoid=chr:FindFirstChildOfClass("Humanoid") | |
84 | local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense" | |
85 | local Defense=7.77 | |
86 | local Mouse=ply:GetMouse() | |
87 | local rs=game:GetService("RunService")if HBMode=="RenderStepped"then rs=rs.RenderStepped else rs=rs.Heartbeat end | |
88 | local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end | |
89 | function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end | |
90 | function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide | |
91 | if typeof(CF)=="Instance"then CF=CF.CFrame end | |
92 | local FinalD=0 | |
93 | if Dam==1/0 then FinalD=1/0 else FinalD=math.random(Dam-DRand,Dam+DRand)end | |
94 | for i,m in pairs(workspace:GetChildren())do | |
95 | if m:IsA("Model")and m~=chr then | |
96 | local DCFlg=false | |
97 | for i=1,#DCoolDowns do | |
98 | if DCoolDowns[i].Model==m then DCFlg=true end | |
99 | end | |
100 | if m:FindFirstChild("HumanoidRootPart")and not DCFlg then | |
101 | local hp=m.HumanoidRootPart | |
102 | if hp:IsA("BasePart")then | |
103 | if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then | |
104 | local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false | |
105 | if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then | |
106 | FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8)) | |
107 | end end FinalD=FinalD+math.random(0,1) | |
108 | if m:FindFirstChildOfClass("ForceField")and not PierceForceField then | |
109 | Guard=true | |
110 | end | |
111 | 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 | |
112 | if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end | |
113 | if hum.Health~=0 then if K then | |
114 | if KH==nil then KH=1/2 end | |
115 | if Guide then | |
116 | local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000 | |
117 | j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K | |
118 | Debri(j,KH) | |
119 | else | |
120 | local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000 | |
121 | j.Velocity=K | |
122 | Debri(j,KH) | |
123 | end | |
124 | end end | |
125 | local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame | |
126 | local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100 | |
127 | local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0 | |
128 | if not Guard then d.TextColor3=Color3.new(1,1,1)d.Text=tostring(FinalD)else d.TextColor3=Color3.new(.4,.7,1)d.Text="Guard"end | |
129 | spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0) | |
130 | for i=1,50 do | |
131 | if dp.Parent then dp.Anchored=true | |
132 | if i<25 then | |
133 | dp.CFrame=dp.CFrame+Vector3.new(0,.1,0) | |
134 | else | |
135 | d.TextTransparency=i/25-1 | |
136 | d.TextStrokeTransparency=i/25-1 | |
137 | end | |
138 | sw() | |
139 | end | |
140 | end dp:Destroy() | |
141 | end) | |
142 | end | |
143 | end | |
144 | end | |
145 | end | |
146 | end | |
147 | end | |
148 | spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end | |
149 | local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))hs.Name="statsidk" | |
150 | 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 | |
151 | HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0 | |
152 | local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0 | |
153 | HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(.5,1,.5)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3 | |
154 | local HPBar2=Instance.new("Frame",HFrame)HPBar2.Size=UDim2.new(1,0,1,0)HPBar2.BorderSizePixel=0 HPBar2.BackgroundColor3=Color3.new(0,1,0)HPBar2.ZIndex=2 | |
155 | 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 | |
156 | HPBar3.BackgroundTransparency=.5 local AR=0 | |
157 | 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,1,1) | |
158 | wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1 | |
159 | 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,1,1) | |
160 | dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1 | |
161 | while sw()do | |
162 | if chr then | |
163 | if chr.Parent then | |
164 | if AutomaticRegen and humanoid.Health<0 then | |
165 | humanoid.Health=humanoid.Health+HealthRValue | |
166 | end | |
167 | for i=1,#DCoolDowns do | |
168 | if DCoolDowns[i]~=nil then | |
169 | if DCoolDowns[i].Model.Parent then | |
170 | if DCoolDowns[i].Time>0 then | |
171 | DCoolDowns[i].Time=DCoolDowns[i].Time-1 | |
172 | else | |
173 | table.remove(DCoolDowns,i) | |
174 | end | |
175 | else | |
176 | table.remove(DCoolDowns,i) | |
177 | end | |
178 | end | |
179 | end | |
180 | --HPScreen | |
181 | if hs.Parent then | |
182 | HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0) | |
183 | HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0) | |
184 | HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth)) | |
185 | wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed) | |
186 | dft.Text="Defense "..tostring(Defense) | |
187 | end | |
188 | else | |
189 | chr=ply.Character | |
190 | end | |
191 | end | |
192 | end | |
193 | end) | |
194 | end | |
195 | --Global Functions that can use easily | |
196 | --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk | |
197 | --sw ( number ) this function can use like wait() because it has true returning. if think easily, just small version of swait lol | |
198 | local PC=PL.Character debri=function(item,tim)game:service("Debris"):AddItem(item,tim)end | |
199 | local hum=PC:FindFirstChildOfClass("Humanoid") | |
200 | local function DoPrism(pos,top,sid,par,option)--returns model | |
201 | local Model=Instance.new("Model",par) | |
202 | 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 | |
203 | drawTriangle(Position0,Position1,Position3,Model,option).Name="A"drawTriangle(Position1,Position2,Position3,Model,option).Name="B"drawTriangle(Position2,Position0,Position3,Model,option).Name="C" | |
204 | drawTriangle(Position0,Position1,Position2,Model,option).Name="D" | |
205 | return Model | |
206 | end | |
207 | local function ReDrawPrism(m,pos,top,sid,par,option)--returns model | |
208 | local Model=m | |
209 | 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 | |
210 | ReDrawTri(m.A,Position0,Position1,Position3,option) | |
211 | ReDrawTri(m.B,Position1,Position2,Position3,option) | |
212 | ReDrawTri(m.C,Position2,Position0,Position3,option) | |
213 | ReDrawTri(m.D,Position0,Position1,Position2,option) | |
214 | return Model | |
215 | end | |
216 | local function GetBeamLight(Parent,Length,Width0,Width1,FirstTransparent,Color,LightEm) | |
217 | local BPart=Instance.new("Part",Parent)BPart.CanCollide=false BPart.Size=Vector3.new()BPart.Transparency=1 | |
218 | local a0=Instance.new("Attachment",BPart)local a1=Instance.new("Attachment",BPart)a1.Position=Vector3.new(0,0,Length) | |
219 | local beam=Instance.new("Beam",BPart)beam.FaceCamera=1 | |
220 | beam.Attachment0=a0 beam.Attachment1=a1 beam.Segments=0 | |
221 | beam.Width0=Width0 beam.Width1=Width1 beam.Texture="rbxassetid://1251856844"beam.LightEmission=LightEm or 1 | |
222 | beam.Transparency=NumberSequence.new(FirstTransparent,1)beam.Color=ColorSequence.new(Color) | |
223 | return BPart,beam | |
224 | end | |
225 | local function FadeBeamL(Beam,Type,Add) | |
226 | if Beam~=nil then | |
227 | if Beam:IsA("Beam")and Beam.Parent then | |
228 | if Type=="Normal"then | |
229 | spawn(function() | |
230 | for i=0,1,Add do | |
231 | if Beam.Parent then | |
232 | Beam.Transparency=NumberSequence.new(i,1) | |
233 | sw()end | |
234 | end Beam.Parent:Destroy() | |
235 | end) | |
236 | end | |
237 | if Type=="idk"then | |
238 | spawn(function() | |
239 | for i=1,0,-Add do | |
240 | if Beam.Parent then | |
241 | Beam.Transparency=NumberSequence.new(i,1) | |
242 | sw()end | |
243 | end | |
244 | for i=0,1,Add do | |
245 | if Beam.Parent then | |
246 | Beam.Transparency=NumberSequence.new(i,1) | |
247 | sw()end | |
248 | end if Beam.Parent then Beam.Parent:Destroy()end | |
249 | end) | |
250 | end | |
251 | end | |
252 | end | |
253 | end | |
254 | ieraseurmotor(PC)local RootPart=PC.HumanoidRootPart | |
255 | local walk=false local onground=false local walkspeed=50 local Active=false local Effects=Instance.new("Folder",workspace) | |
256 | local function GlitchParts(m,siz,t,Invisible,Hold)spawn(function() | |
257 | local Glit={}local invi={} | |
258 | if not m:IsA'BasePart'then for i,p in pairs(m:children())do | |
259 | if p:IsA"BasePart"then | |
260 | local a=p:Clone()a.Anchored=1 a.CanCollide=nil a:ClearAllChildren() | |
261 | 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) | |
262 | table.insert(Glit,{Pt=a,pst=CF,Sav=p,Tr=p.Transparency})if Invisible then p.Transparency=1 end | |
263 | end | |
264 | end | |
265 | else | |
266 | local a=m:Clone()a.Anchored=1 a.CanCollide=nil a:ClearAllChildren() | |
267 | 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) | |
268 | table.insert(Glit,{Pt=a,pst=CF,Sav=m,Tr=m.Transparency})if Invisible then m.Transparency=1 end | |
269 | end | |
270 | for i=1,t do | |
271 | for i,p in pairs(Glit)do | |
272 | if p.Pt.Parent then | |
273 | if Hold then p.pst=p.Sav.CFrame end | |
274 | p.Pt.CFrame=p.pst*CFrame.new(math.random(-100,100)/siz,math.random(-100,100)/siz,math.random(-100,100)/siz) | |
275 | end | |
276 | end | |
277 | sw() | |
278 | end | |
279 | for i,p in pairs(Glit)do p.Pt:Destroy()if Invisible then p.Sav.Transparency=p.Tr end end | |
280 | end) | |
281 | end | |
282 | local Mouse=PL:GetMouse()local ShowHitBoxes=false FH=FindHumanoid | |
283 | local RArm=PC["Right Arm"]local LArm=PC["Left Arm"]local RLeg=PC["Right Leg"]local LLeg=PC["Left Leg"]local Torso=PC.Torso | |
284 | if 1 then | |
285 | local function motor(part0,part1,c0,c1) | |
286 | local motor=Instance.new("Motor",part0) | |
287 | motor.Part0=part0 motor.Part1=part1 motor.C0=c0 motor.C1=c1 | |
288 | return motor | |
289 | end | |
290 | 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)) | |
291 | 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)) | |
292 | local nek=Torso.Neck local rjoint=RootPart.RootJoint nek.C0=CFrame.new(0,0,0)nek.C1=CFrame.new(0,0,0) | |
293 | rjoint.C0=CFrame.new(0,0,0)rjoint.C1=CFrame.new(0,0,0) | |
294 | function ReCallAnimate() | |
295 | RArm=PC["Right Arm"]LArm=PC["Left Arm"]RLeg=PC["Right Leg"]LLeg=PC["Left Leg"]Torso=PC.Torso RootPart=PC.HumanoidRootPart | |
296 | 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)) | |
297 | 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)) | |
298 | nek=Torso.Neck rjoint=RootPart.RootJoint nek.C0=CFrame.new(0,0,0)nek.C1=CFrame.new(0,0,0) | |
299 | rjoint.C0=CFrame.new(0,0,0)rjoint.C1=CFrame.new(0,0,0)Anim(latest,1) | |
300 | end | |
301 | function Anim(idk,lerpval) | |
302 | rjoint.C0=rjoint.C0:lerp(idk[1],lerpval) | |
303 | nek.C0=nek.C0:lerp(idk[2],lerpval) | |
304 | ra.C0=ra.C0:lerp(idk[3],lerpval) | |
305 | la.C0=la.C0:lerp(idk[4],lerpval) | |
306 | rl.C0=rl.C0:lerp(idk[5],lerpval) | |
307 | ll.C0=ll.C0:lerp(idk[6],lerpval) | |
308 | 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 | |
309 | end | |
310 | end | |
311 | 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 | |
312 | 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 | |
313 | local function CreateHitBox(Size,CF,Script) | |
314 | 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 | |
315 | pt.Parent=Effects if ShowHitBoxes then pt.Transparency=.8 local s=Instance.new("SelectionBox",pt)s.Color3=Color3.new(.5,.5,.5)s.Adornee=pt end | |
316 | local function BreakHitBox()pt:Destroy()end pt.Touched:connect(Script)spawn(function()sw()pt:Destroy()end) | |
317 | end | |
318 | local function CreateHitSphere(Size,CF,Script) | |
319 | local pt=Instance.new("Part")a(pt)pt.CanCollide=false pt.Size=Vector3.new(Size,Size,Size) | |
320 | rot(pt,Vector3.new(),1/0)pt.Transparency=1 pt.CFrame=CF pt.Shape="Ball" | |
321 | pt.Parent=Effects if ShowHitBoxes then pt.Transparency=.8 local s=Instance.new("SelectionBox",pt)s.Color3=Color3.new(.5,.5,.5)s.Adornee=pt end | |
322 | local function BreakHitBox()pt:Destroy()end pt.Touched:connect(Script)spawn(function()sw()pt:Destroy()end) | |
323 | end | |
324 | local function Region3Find(Size,Pos,Script,AutoSearch)--if AutoSearch==true then it automatically insert Humanoid after Part. | |
325 | Pos=typeof(Pos)=="CFrame"and Pos.p or Pos | |
326 | local reg=Region3.new(Pos-Vector3.new(Size/2,Size/2,Size/2),Pos+Vector3.new(Size/2,Size/2,Size/2)) | |
327 | for i,p in pairs(workspace:FindPartsInRegion3WithIgnoreList(reg,{PC,Effects},1000))do | |
328 | 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 | |
329 | end | |
330 | end | |
331 | RayForMovingObj=function(Part,Length,WaterOpt)--or else , JUST CFrame. (return : hitting part / position ) | |
332 | local cf=typeof(Part)=="Instance"and Part.CFrame or Part | |
333 | return workspace:FindPartOnRayWithIgnoreList(Ray.new(cf.p,cf.lookVector*Length),{PC,Effects},true,not WaterOpt) | |
334 | end | |
335 | local MusicEnabled=1 | |
336 | spawn(function()local opos=Vector3.new(0,0,0)local pts=0 | |
337 | local pos=opos | |
338 | local MusicI=nil local MusicPos=0 | |
339 | if PC.Head:FindFirstChild"Running"then PC.Head.Running:Destroy()end | |
340 | --local pos=RootPart.Position | |
341 | if 1 then | |
342 | local frm=Torso.CFrame*CFrame.new(0,1.5,0) local wf=Instance.new("Folder",RootPart)wf.Name="Wings" | |
343 | 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) | |
344 | 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) | |
345 | 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) | |
346 | 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) | |
347 | 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) | |
348 | 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) | |
349 | --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) | |
350 | ua(wf)for _, v in pairs(wf:children())do--auto welding from Ace of Spades script | |
351 | if v.ClassName=="UnionOperation" or v.ClassName=="MeshPart" or v.ClassName=="Part" or v.ClassName=="WedgePart" or v.ClassName=="BasePart" then v.Anchored=false | |
352 | local OR=CFrame.new(v.Position) | |
353 | local P1C, P2C=v.CFrame:inverse() * OR, Torso.CFrame:inverse() * OR | |
354 | local weld=Instance.new("Weld", RootPart) | |
355 | weld.Name=v.Name .. "->" .. Torso.Name | |
356 | weld.Part0=v | |
357 | weld.Part1=Torso | |
358 | weld.C0=P1C | |
359 | weld.C1=P2C | |
360 | end | |
361 | end | |
362 | end | |
363 | for i=0,360,6 do | |
364 | local Head=PC.Head | |
365 | local part=Instance.new("Part",Head)part.Material="Neon"part.Size=Vector3.new(.1,.1,.125) | |
366 | local weld=Instance.new("Weld",part)ToMesh(part)part.Color=Color3.new(1,1,.7) | |
367 | 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) | |
368 | end | |
369 | local namebbg=Instance.new("BillboardGui",PC)namebbg.Size=UDim2.new(16,0,2,0)namebbg.Adornee=RootPart namebbg.Name="NameTag" | |
370 | namebbg.StudsOffset=Vector3.new(0,4.8,0)namebbg.AlwaysOnTop=1 | |
371 | local nt=Instance.new("TextLabel",namebbg)nt.Text="Mechanized Angel"nt.TextColor3=Color3.new(1,1,.7)nt.TextScaled=1 nt.Position=UDim2.new(0,0,-.4,0) | |
372 | nt.Font="Fantasy"nt.BackgroundTransparency=1 nt.TextTransparency=0 nt.TextStrokeTransparency=.5 nt.Size=UDim2.new(1,0,1,0) | |
373 | while sw()do pts=pts+.05 | |
374 | 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 | |
375 | MusicI.SoundId=musicId MusicI.Volume=4 MusicI.Playing=MusicEnabled MusicPos=MusicI.TimePosition | |
376 | pos=RootPart.Position | |
377 | if PC.Parent==nil or PC~=PL.Character then Effects:Destroy()script:Destroy()end | |
378 | if PC then | |
379 | if PC:FindFirstChildOfClass("ForceField")then PC:FindFirstChildOfClass("ForceField").Visible=false else GetInstance("ForceField",PC).Name=""end ua(PC) | |
380 | local hit,pos=workspace:FindPartOnRayWithIgnoreList(Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0).unit*3.5),{PC,Effects},false,true) | |
381 | if not hit then onground=false else onground=true end | |
382 | if (Vector3.new(pos.X,0,pos.Z)-Vector3.new(opos.X,0,opos.Z)).magnitude>=.01 then walk=true else walk=false end | |
383 | if not Active then | |
384 | if onground then | |
385 | if walk then | |
386 | Anim({CFrame.new(0,1+math.sin(pts)/10,0)*CFrame.Angles(-.4,0,0), | |
387 | CFrame.new(0,1.5,0)*CFrame.Angles(.3,0,0), | |
388 | CFrame.new(1.5,0,.4)*CFrame.Angles(-.3,0,.2), | |
389 | CFrame.new(-1.5,0,.4)*CFrame.Angles(-.3,0,-.2), | |
390 | CFrame.new(.5,-1.8,.7)*CFrame.Angles(-.7-math.sin(pts)/15,0,.1-math.sin(pts)/15), | |
391 | CFrame.new(-.5,-1.3,-.55)*CFrame.Angles(0,0,-.1+math.sin(pts)/15), | |
392 | },.3) | |
393 | else | |
394 | Anim({CFrame.new(0,1+math.sin(pts)/10,0)*CFrame.Angles(0,0,0), | |
395 | CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0), | |
396 | CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4), | |
397 | CFrame.new(-.5,.3,-.5)*CFrame.Angles(.3,-3.1,-1.4), | |
398 | CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1-math.sin(pts)/15), | |
399 | CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1+math.sin(pts)/15), | |
400 | },.3) | |
401 | end | |
402 | else | |
403 | Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0), | |
404 | CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0), | |
405 | CFrame.new(1.5,0,0)*CFrame.Angles(0,0,.2), | |
406 | CFrame.new(-1.5,0,0)*CFrame.Angles(0,0,-.2), | |
407 | CFrame.new(.5,-1.8,.2)*CFrame.Angles(-.3-math.sin(pts)/15,0,.1-math.sin(pts)/15), | |
408 | CFrame.new(-.5,-1.5,-.25)*CFrame.Angles(0,0,-.1+math.sin(pts)/15), | |
409 | },.3) | |
410 | end | |
411 | end | |
412 | end | |
413 | if not Active then walkspeed=150 ua(PC)end | |
414 | if not hum then hum=Instance.new("Humanoid",PC)workspace.CurrentCamera.CameraSubject=hum | |
415 | elseif not hum.Parent then hum=Instance.new("Humanoid",PC)workspace.CurrentCamera.CameraSubject=hum end | |
416 | hum.PlatformStand=false hum.Name="No Bright Things , but if you thought." | |
417 | hum.MaxHealth=1/0 hum.Health=0/0 hum.WalkSpeed=walkspeed if walkspeed>0 then hum.JumpPower=50 else hum.JumpPower=0 end | |
418 | if Effects.Parent==nil then Effects:Destroy()Effects=Instance.new("Folder",workspace)end | |
419 | Mouse.TargetFilter=Effects | |
420 | --if not PC:FindFirstChild("WingFolder")then Instance.new("Folder",PC).Name="WingFolder"else PC.WingFolder:ClearAllChildren()end | |
421 | --[[if DoEffect then | |
422 | local fol=PC.WingFolder | |
423 | local frm=Torso.CFrame+Vector3.new(0,1.5,0) | |
424 | 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}) | |
425 | 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}) | |
426 | 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}) | |
427 | 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}) | |
428 | 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}) | |
429 | 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}) | |
430 | end]] | |
431 | hum:ClearAllChildren()opos=pos | |
432 | end | |
433 | end) | |
434 | function chatfunc(text) | |
435 | spawn(function() | |
436 | local rs=game:service'RunService'.RenderStepped | |
437 | local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end | |
438 | local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart | |
439 | local s=GetInstance("Sound",PC)s.SoundId="rbxassetid://418252437"s.Volume=2 | |
440 | if Character:FindFirstChild("cht")then Character.cht:Destroy()end | |
441 | local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffset=Vector3.new(0,4.8,0)b.Name="cht" | |
442 | local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0) | |
443 | local texts={} | |
444 | for i=1,snum do | |
445 | texts[i]=Instance.new("TextButton",b) | |
446 | texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30 | |
447 | 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) | |
448 | texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1,1,1) | |
449 | texts[i].TextStrokeTransparency=1 texts[i].Font="Fantasy"texts[i].TextScaled=1 texts[i].TextTransparency=1 | |
450 | end | |
451 | local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then | |
452 | 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 | |
453 | else texts[i][Set]=Val end end end end | |
454 | for i=1,#texts do | |
455 | if texts[i].Parent then | |
456 | spawn(function()for i2=0,1,.025 do | |
457 | texts[i].Position=texts[i].Position:lerp(UDim2.new((i-1)/#texts,0,.3,0),.15)sw() | |
458 | texts[i].TextTransparency=1-i2 texts[i].TextStrokeTransparency=1-(i2/2) | |
459 | end | |
460 | texts[i].Position=UDim2.new((i-1)/#texts,0,.3,0)texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=.5 | |
461 | end) | |
462 | end | |
463 | --if texts[i].Text~=" "then s:Play()end | |
464 | sw(3) | |
465 | end | |
466 | sw(180) | |
467 | s:Destroy() | |
468 | for i=1,0,-.025 do | |
469 | DoOpt("TextTransparency",1-i)DoOpt("TextStrokeTransparency",.5+(1-i)/2) | |
470 | DoOpt("Position",UDim2.new(.5,0,.3,0),.05) | |
471 | sw() | |
472 | end | |
473 | b:Destroy() | |
474 | end) | |
475 | ||
476 | end | |
477 | PL.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,PL,PL))end) | |
478 | function EfcGUI(ref,alwaysNOTtop,BGCol,Option) | |
479 | local b=Instance.new("BillboardGui",ref)b.Adornee=ref b.AlwaysOnTop=not alwaysNOTtop | |
480 | local t=Instance.new("TextLabel",b)t.Size=UDim2.new(1,0,1,0)t.Text=""t.BorderSizePixel=0 | |
481 | t.BackgroundColor3=BGCol or mcol | |
482 | return b,t | |
483 | end | |
484 | local function Sound(id,parent,vol,pit,extra) | |
485 | local so=GetInstance("Sound",parent or Effects)if extra~=nil then if extra.M=="Dist"then Instance.new("DistortionSoundEffect",so).Level=extra.Val end end | |
486 | 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()so:Destroy()end) | |
487 | end | |
488 | function TriangleSpam(num,Pos,r,r2) | |
489 | for i=1,num do | |
490 | local Model=drawTriangle(Vector3.new(),Vector3.new(),Vector3.new(),Effects,{Transparency=1}) | |
491 | spawn(function()local fpos=typeof(Pos)=="CFrame"and Pos.p or Pos-- local r=1200 local r2=70 | |
492 | local add0=Vector3.new(math.random(-100,100)/r2,math.random(-100,100)/800,math.random(-100,100)/r2) | |
493 | local vec1=fpos local add1=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r) | |
494 | local vec2=fpos local add2=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r) | |
495 | local vec3=fpos local add3=Vector3.new(math.random(-100,100)/r,math.random(-100,100)/r,math.random(-100,100)/r) | |
496 | for i=0,1,.01 do | |
497 | add0=add0/Vector3.new(1.1,1,1.1) | |
498 | add0=add0+Vector3.new(0,.005,0) | |
499 | vec1,vec2,vec3=vec1+add1+add0,vec2+add2+add0,vec3+add3+add0 | |
500 | ReDrawTri(Model,vec1,vec2,vec3,{Transparency=i}) | |
501 | sw() | |
502 | end Model:Destroy() | |
503 | end) | |
504 | end | |
505 | end | |
506 | function LightningEffect(Pos,Seg,Size,Time,Col,Options)--Position {Vector3 Start,Vector3 End} , Segment , Size , Time , Color(or nil) | |
507 | 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] | |
508 | 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} | |
509 | local mag=(p1-p2).Magnitude local col=Col or mcol local LightningSize=Options.LightningSiz | |
510 | local OldPos=CFrame.new(p1)local Step=mag/Seg local CF=CFrame.new(p1,p2) | |
511 | if Options.AutoSegment then Step=Seg end | |
512 | for i=1+Step,mag-Step,Step do | |
513 | 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) | |
514 | local pt=Instance.new("Part",Effects)pt.Color=Col pt.Material="Neon" | |
515 | 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) | |
516 | pt.Anchored=1 pt.CanCollide=nil | |
517 | if Options.Fade then pt.Transparency=lerp(Options.Transparency,1,i/mag)else pt.Transparency=Options.Transparency end | |
518 | 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 | |
519 | OldPos=Pos | |
520 | 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) | |
521 | end | |
522 | local Pos=CF*CFrame.new(0,0,mag) | |
523 | local pt=Instance.new("Part",Effects)pt.Color=Col pt.Material="Neon" | |
524 | 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) | |
525 | pt.Anchored=1 pt.CanCollide=nil | |
526 | if Options.Fade then pt.Transparency=1 else pt.Transparency=Options.Transparency end | |
527 | local Mesh=Instance.new("SpecialMesh",pt)Mesh.MeshType="Cylinder"Mesh.Scale=Vector3.new((Pos.p-OldPos.p).Magnitude,Size,Size)*20 | |
528 | 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) | |
529 | end | |
530 | --Lightning Options (table) (n = default) : Fade=false (fading by range?) , AutoSegment=false , Transparency=0 , LightningSiz=1 , Block = false , SizeFade=0 | |
531 | --I've added table option to dodge INSANE OPTIONS like some my scripts (Destroyer)... that was terrible. | |
532 | local NormalAttackNumber=0 Holding={} | |
533 | Mouse.KeyDown:connect(function(k3y) | |
534 | Holding[k3y]=true | |
535 | if not Active then | |
536 | if k3y=="e"and GetCDown"Flawing Light"then | |
537 | DoCDown("Flawing Light",.5) | |
538 | for i=1,3 do | |
539 | local part=Instance.new("Part",Effects)part.Size=Vector3.new(1,1,1)part.Shape="Ball"ToMesh(part)part.Anchored=1 | |
540 | part.Material="Neon"part.Color=mcol | |
541 | 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) | |
542 | spawn(function()for i=1,100 do | |
543 | local h,p=RayForMovingObj(part,1) | |
544 | if h==nil then part.CFrame=part.CFrame*CFrame.new(0,0,-1) | |
545 | else break end sw() | |
546 | end | |
547 | Region3Find(12,part.CFrame,function(p,h)h.Health=nil GlitchParts(p,200,60,1)p:Destroy()end,1) | |
548 | local b,g=EfcGUI(part)part.Transparency=1 | |
549 | 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 | |
550 | end | |
551 | part:Destroy()end) | |
552 | sw(6) | |
553 | end | |
554 | end | |
555 | if k3y=="r"and GetCDown"Infinite Bright"then Active=true | |
556 | walkspeed=60 chatfunc("Feel the Light...") | |
557 | Sound(255679384,PC,4,3.7)Sound(392838370,PC,2,1) | |
558 | for i=0,1,.02 do | |
559 | Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0), | |
560 | CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0), | |
561 | CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4), | |
562 | CFrame.new(-1.4,1.2,0)*CFrame.Angles(math.rad(180),0,-.1), | |
563 | CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1), | |
564 | CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1), | |
565 | },.4)sw() | |
566 | end | |
567 | spawn(function()local keepit=4 local num=0 | |
568 | while sw(keepit)and Active do | |
569 | if num<78 then num=num+1 else keepit=8 end | |
570 | Camera.CFrame=Camera.CFrame*CFrame.Angles(math.rad(math.random(-10,10)/20),math.rad(math.random(-10,10)/20),0) | |
571 | Sound(1145252750,PC,1,2) | |
572 | local CF=CFrame.new(LArm.CFrame.p,Mouse.Hit.p) | |
573 | local h,p=RayForMovingObj(CF,4000) | |
574 | LightningEffect({p,LArm.CFrame*CFrame.new(0,-1,0)},10,.4,10,Color3.new(1,1,.7),{LightningSiz=.5,SizeFade=1,Fade=true}) | |
575 | local ref=spawnref(p) | |
576 | local b,g=EfcGUI(ref) | |
577 | 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 | |
578 | end ref:Destroy()end) | |
579 | 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 | |
580 | efc.Parent=Effects efc.Anchored=1 efc.CanCollide=nil | |
581 | efc.Material="Neon"efc.Color=mcol local away=Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))/500 | |
582 | spawn(function()for i=0,1,.01 do efc.Transparency=i efc.CFrame=efc.CFrame+away sw()end efc:Destroy()end)end end,1) | |
583 | end | |
584 | end)local num=0 | |
585 | while sw()and(Holding.r or num<45)do if num<46 then num=num+1 end | |
586 | Anim({CFrame.new(0,1,0)*CFrame.Angles(0,-1,0), | |
587 | CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0), | |
588 | CFrame.new(.5,.3,-.5)*CFrame.Angles(.3,3.1,1.4), | |
589 | CFrame.new(-1.8,.3,-.9)*CFrame.Angles(0,-.8,-1.6), | |
590 | CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1), | |
591 | CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1), | |
592 | },.6)sw() | |
593 | end | |
594 | DoCDown("Infinite Bright",1) | |
595 | Active=nil | |
596 | end | |
597 | if k3y=="t"and GetCDown"Blink"then | |
598 | local Pos=Mouse.Hit local OldCF=RootPart.CFrame | |
599 | if Mouse.Target then | |
600 | Sound(289556450,Effects,5)Sound(1012554393,Effects,1) | |
601 | RootPart.CFrame=Pos+Vector3.new(0,2,0)local CF=RootPart.CFrame | |
602 | local ref=spawnref(OldCF)local b=Instance.new("BillboardGui",ref)b.Size=UDim2.new(30,0,30,0) | |
603 | b.AlwaysOnTop=1 local d=Instance.new("ImageLabel",b)d.BackgroundTransparency=1 d.Image="rbxassetid://328647556"d.Size=UDim2.new(1,0,1,0) | |
604 | 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) | |
605 | local ref=spawnref(OldCF)local b=Instance.new("BillboardGui",ref)b.Size=UDim2.new(10,0,10,0) | |
606 | b.AlwaysOnTop=1 local d=Instance.new("ImageLabel",b)d.BackgroundTransparency=1 d.Image="rbxassetid://328647556"d.Size=UDim2.new(1,0,1,0) | |
607 | 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) | |
608 | spawn(function() | |
609 | 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}) | |
610 | 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}) | |
611 | sw()end Model:Destroy()end)DoCDown("Blink",1)TriangleSpam(20,RootPart.CFrame.p,800,40) | |
612 | end | |
613 | end | |
614 | if k3y=="z"and GetCDown"Judgement Prism"then Active=true walkspeed=30 | |
615 | for i=0,1,.05 do | |
616 | Anim({CFrame.new(0,1,0)*CFrame.Angles(0,0,0), | |
617 | CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0), | |
618 | CFrame.new(1.3,1.4,0)*CFrame.Angles(math.rad(180),0,.1), | |
619 | CFrame.new(-1.3,1.4,0)*CFrame.Angles(math.rad(180),0,-.1), | |
620 | CFrame.new(.5,-2,0)*CFrame.Angles(0,0,.1), | |
621 | CFrame.new(-.5,-2,0)*CFrame.Angles(0,0,-.1), | |
622 | },.5)sw() | |
623 | end | |
624 | Active=false | |
625 | DoCDown("Judgement Prism",12) | |
626 | local Pos=CFrame.new(RootPart.Position) | |
627 | local PrismTop=CFrame.new(0,12,0)local PrismSide=CFrame.new(9,0,0)--just two number is easier I think | |
628 | --Animate Prism | |
629 | local m=DoPrism(Pos,PrismTop,PrismSide,Effects,{Transparency=1}) | |
630 | for i=1,.8,-.0025 do | |
631 | Pos=Pos*CFrame.new(0,.1,0)*CFrame.Angles(0,.05,0) | |
632 | PrismTop=PrismTop:lerp(CFrame.new(0,9,0),.1)PrismSide=PrismSide:lerp(CFrame.new(6,0,0),.1) | |
633 | ReDrawPrism(m,Pos,PrismTop,PrismSide,Effects,{Transparency=i}) | |
634 | sw() | |
635 | end m:Destroy() | |
636 | local sound=GetInstance("Sound",PC)sound.SoundId="rbxassetid://255679384"sound.Volume=5 | |
637 | sound:Play() | |
638 | while 1 and(sound.Parent~=nil and sound.Playing and sound.Parent.Parent~=nil )do | |
639 | Pos=Pos*CFrame.Angles(0,.05,0) | |
640 | local m=DoPrism(Pos,PrismTop,PrismSide,Effects,{Transparency=.8}) | |
641 | sw() | |
642 | m:Destroy() | |
643 | end | |
644 | Sound(878000314,Effects,2.5)LightningEffect({Pos,Pos+Vector3.new(0,300,0)},60,3,1,mcol,{SizeFade=.5,Fade=true,LightningSiz=3}) | |
645 | TriangleSpam(40,Pos,1200,70) | |
646 | sw(60) | |
647 | for i=1,10 do | |
648 | local Pos=Mouse.Hit | |
649 | LightningEffect({Pos,Pos+Vector3.new(0,300,0)},60,1,5,mcol,{SizeFade=.5,Fade=true,LightningSiz=5}) | |
650 | TriangleSpam(4,Pos,1200,120)Sound(480357531,Effects,2)Sound(1145252750,Effects,2) | |
651 | for i=1,10 do | |
652 | local pt=Instance.new("Part",Effects)pt.Color=mcol pt.Material="Neon" | |
653 | pt.Anchored=1 pt.CanCollide=nil pt.Size=Vector3.new()local m=ToMesh(pt) | |
654 | local CF=Pos*rc()pt.CFrame=CF local add=math.random(5,100)/100 | |
655 | spawn(function() | |
656 | 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() | |
657 | end) | |
658 | end | |
659 | Region3Find(17,Pos,function(p,h) | |
660 | if h.Parent then | |
661 | for i,p in pairs(h.Parent:GetDescendants())do | |
662 | if p:IsA"BasePart"then | |
663 | local part=Instance.new("Part",Effects)part.Material="Neon"part.Size=p.Size | |
664 | part.Color=mcol part.Anchored=1 part.CanCollide=nil part.CFrame=CFrame.new(p.Position) | |
665 | local add=Vector3.new(math.random(-100,100)/200,math.random(-100,100)/200,math.random(-100,100)/200) | |
666 | spawn(function()for i=0,1,.01 do part.CFrame=part.CFrame+add part.Transparency=i sw()end part:Destroy()end) | |
667 | end | |
668 | end h:Destroy()p.Parent:Destroy() | |
669 | end | |
670 | end,1) | |
671 | --[[spawn(function()local ref=spawnref(Pos) | |
672 | local b,g=EfcGUI(ref)ref.Transparency=1 | |
673 | 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 | |
674 | end ref:Destroy()end)]] | |
675 | sw(20) | |
676 | end | |
677 | end | |
678 | end | |
679 | if k3y=="m"then MusicEnabled=not MusicEnabled end | |
680 | end) | |
681 | Mouse.KeyUp:connect(function(k3y) | |
682 | if Holding[k3y]then Holding[k3y]=nil end | |
683 | end) | |
684 | if 1 then | |
685 | Mouse.Button1Down:connect(function() | |
686 | if not Active then | |
687 | end | |
688 | end) | |
689 | end | |
690 | print"Load finished."print"Hello world!" | |
691 | warn'Credits : her boy friend:koonguy98755 , Do not erase this.' | |
692 | warn'For my love roblox' |