SHOW:
|
|
- or go back to the newest paste.
1 | - | script.Parent = workspace.RobTheSnowman |
1 | + | script.Parent = workspace.DeathlessNoobs |
2 | ||
3 | sn = table.concat({"D","a","r","k","M","a","t","t","e","r"}) | |
4 | ||
5 | spd = 0.1 | |
6 | ||
7 | d = {10,15} | |
8 | ||
9 | Decs={} | |
10 | ||
11 | Decs.Totem = "35624068" Decs.Tornado = "1051557" Decs.SpikeBall = "9982590" Decs.Fist = "65322375" Decs.RedCliffT = "49754754" Decs.RedCliff = "49754655" Decs.Chakram = "18430887" Decs.Chakram2 = "47260990" Decs.Chakram3 = "19251107" Decs.Diamond = "9756362" Decs.Sword1 = "rbxasset://fonts/s" .. "word.mesh" Decs.EF1 = "64467174" Decs.TSkull1="36869975" Decs.Skull1="36869983" Decs.Shield1="60120613" Decs.Ring="3270017" Decs.Shine="48965808" Decs.Crack="49173398" Decs.Cloud="1095708" Decs.Spike="1033714" Decs.Rock="1290033" Decs.Crown="20329976" Decs.Crown2="1323306" | |
12 | ||
13 | p = game:service'Players' l = game:service'Lighting' w = workspace | |
14 | ||
15 | cw2=coroutine.wrap w=wait wt=0.1 s=script it=Instance.new v3=Vector3.new c3=Color3.new ud=UDim2.new cn=CFrame.new ca=CFrame.Angles pi=math.pi rd=math.rad | |
16 | ||
17 | v310 = v3(1/0,1/0,1/0) bc=BrickColor.new ab=math.abs de=math.deg ts=tostring tn=tonumber ti=table.insert tr=table.remove cw=function(func) coroutine.resume(coroutine.create(function() func() end)) end | |
18 | ||
19 | mf=math.floor cr=coroutine.resume cc=coroutine.create sf=string.find sb=string.sub rn=math.random | |
20 | ||
21 | function q(f) cr(cc(function() f() end)) end | |
22 | ||
23 | function ft(tablez,item) for i=1,#tablez do if tablez[i] == item then return i end end return nil end | |
24 | ||
25 | qi = function(ttz) local qii = it(ttz[1],ttz[2]) table.foreach(ttz,function(oi,oi2) if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) return qii end | |
26 | ||
27 | function ft2(tablez,item) for i=1,#tablez do if tablez[i][1] == item then return i end end return nil end | |
28 | ||
29 | function re(par,obj) if type(par) ~= "userdata" or type(obj) ~= "string" then return nil end if par:findFirstChild(obj) then par[obj]:Remove'' end end | |
30 | ||
31 | function pa(pa,pn,sh,x,y,z,c,a,tr,re,bc2) local fp=nil if sh ~= "Wedge" and sh ~= "CornerWedge" then fp=it("Part",pa) fp.Shape=sh fp.formFactor="Custom" elseif sh == "Wedge" then fp=it("WedgePart",pa) fp.formFactor="Custom" | |
32 | ||
33 | elseif sh == "CornerWedge" then fp=it("CornerWedgePart",pa) end fp.Size=v3(x,y,z) fp.CanCollide=c fp.Anchored=false fp.BrickColor=bc(bc2) fp.Transparency=tr fp.Reflectance=re fp.BottomSurface=0 fp.Name=pn --fp.FrontSurface="Hinge" | |
34 | ||
35 | fp.TopSurface=0 fp:BreakJoints() fp.Anchored = a return fp end | |
36 | ||
37 | function clearit(tab) for xx=1,#tab do tab[xx]:Remove'' end end | |
38 | ||
39 | function weld(pa,p0,p1,x,y,z,a,b,c) local fw=it("Weld",pa) fw.Part0=p0 fw.Part1=p1 fw.C0=cn(x,y,z) *ca(a,b,c) return fw end | |
40 | ||
41 | function fade(prt,incr) q(function() for i=prt.Transparency,1,incr do prt.Transparency=i w() end prt:Remove'' end) end | |
42 | ||
43 | function appear(prt,incr) q(function() for i=1,0,-incr do prt.Transparency=i w() end end) end | |
44 | ||
45 | function stick(hit2,hit) local weld=it("Weld") weld.Part0=hit2 weld.Part1=hit local HitPos=hit2.Position local CJ=cn(HitPos) | |
46 | ||
47 | local C0=hit2.CFrame:inverse() *CJ local C1=hit.CFrame:inverse() * CJ weld.C0=C0 weld.C1=C1 weld.Parent=hit2 end | |
48 | ||
49 | function stick2(hit2,hit,tostick) local weld=it("Weld") weld.Part0=tostick weld.Part1=hit2 local HitPos=hit.Position local CJ=cn(HitPos) local C0=hit2.CFrame:inverse() *CJ local C1=hit.CFrame:inverse() * CJ weld.C0=C1 weld.C1=C0 weld.Parent=hit2 end | |
50 | ||
51 | function invis(o) for i,v in pairs(o:children()) do if v:IsA("BasePart") then v.Transparency=1 end invis(v) end end | |
52 | ||
53 | function newhats(p,o,o2) for i,v in pairs(p:children()) do if v:IsA("Hat") then v.Handle.Transparency = 1 local np=v.Handle:Clone'' np.Transparency=0 np.Mesh.Scale=np.Mesh.Scale*1.1 np.Parent=o np.CFrame=v.Handle.CFrame stick2(np,o2,o) end end end | |
54 | ||
55 | function ray(Pos, Dir,xxz) local xxz2=c if xxz ~= nil then xxz2=nil end return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2) end | |
56 | ||
57 | function findclass(prt,cls) clases=0 for i,v in pairs(prt:children()) do if v.className:lower() == cls:lower() then clases=clases + 1 end end return clases end | |
58 | ||
59 | function getclass(prt,cls) for i,v in pairs(prt:children()) do if v.className:lower() == cls:lower() then return v end end return nil end | |
60 | ||
61 | function rtab(tabz,obj) for i=1,#tabz do if tabz[i] == obj then tr(tabz,i) break end end end | |
62 | ||
63 | function RandomPlayer(spiz) local torz=spis local torses={} for i,v in pairs(Serv.kx:children()) do if v ~= Serv.kx.LocalPlayer and v.Character ~= nil and v.Character:findFirstChild("Torso") then ti(torses,v.Character.Torso) end end if #torses > 0 then torz=torses[rn(1,#torses)] end return torz end | |
64 | ||
65 | function FDesDes(ob,str) for i,v in pairs(ob:children()) do if v.Name:lower() == str:lower() then return true end return FDesDes(v,str) end end | |
66 | ||
67 | deb = function(ob,it) game:service'Debris':AddItem(ob,it) end | |
68 | ||
69 | function RandomExplosionColor() colz={"New Yeller","Bright yellow","Neon orange","Deep orange","Really red","Bright red"} return colz[rn(1,#colz)] end | |
70 | ||
71 | function findhum(anc) for i,vx in pairs(anc:children()) do if vx:IsA("Humanoid") then return vx end end return nil end | |
72 | ||
73 | Lightning = function(p0,p1,tym,ofs,col,th,tra) -- start end times offset color thickness | |
74 | ||
75 | local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs} | |
76 | ||
77 | for i=1,tym do | |
78 | ||
79 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col) | |
80 | ||
81 | li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
82 | ||
83 | local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz | |
84 | ||
85 | if tym == i then | |
86 | ||
87 | local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2) | |
88 | ||
89 | li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2) | |
90 | ||
91 | else | |
92 | ||
93 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2) | |
94 | ||
95 | end | |
96 | ||
97 | curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25) | |
98 | ||
99 | end | |
100 | ||
101 | end | |
102 | ||
103 | function Trail(ob,times,waitz,col,thickz,ofz) q(function() local oldpos=(ob.CFrame *ofz).p for i=1,times do local obp=(ob.CFrame *ofz).p local mag=(oldpos - obp).magnitude local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true tr.CFrame=cn(oldpos,obp) tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) | |
104 | ||
105 | local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz) q(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end) tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp w(waitz) end end) end | |
106 | ||
107 | sTrail={} | |
108 | ||
109 | function Trail2(lopz,ob,waitz,col,thickz,ofz) q(function() ti(sTrail,ob) | |
110 | ||
111 | local oldpos=(ob.CFrame *ofz).p local lopz2=0 | |
112 | ||
113 | local function loltr() local obp=(ob.CFrame *ofz).p lopz2=lopz2 + 1 | |
114 | ||
115 | local mag=(oldpos - obp).magnitude | |
116 | ||
117 | local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true | |
118 | ||
119 | tr.CFrame=cn(oldpos,obp) | |
120 | ||
121 | tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) | |
122 | ||
123 | local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz) | |
124 | ||
125 | q(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end) | |
126 | ||
127 | tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp end | |
128 | ||
129 | repeat loltr() | |
130 | ||
131 | w(waitz) until ft(sTrail,ob) == nil or lopz2 == lopz loltr() end) end | |
132 | ||
133 | asset="http://www.roblox.com/asset/?id=" | |
134 | ||
135 | a={} | |
136 | ||
137 | a.ClickHold=0 | |
138 | ||
139 | a.c=true -- weapon change or act debounce | |
140 | ||
141 | a.s={} | |
142 | ||
143 | a.cr={20,1.5} | |
144 | ||
145 | ky = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "} | |
146 | ||
147 | Anim = "None" | |
148 | ||
149 | mouse = nil | |
150 | ||
151 | Sounds={ | |
152 | ||
153 | Break="3264793"; | |
154 | ||
155 | Berserk="2676305"; | |
156 | ||
157 | Fire1="2760979"; | |
158 | ||
159 | Imbue="2785493"; | |
160 | ||
161 | Ghost="3264923"; | |
162 | ||
163 | Block="rbxasset://sounds\\metal.ogg"; | |
164 | ||
165 | Boom="16976189"; | |
166 | ||
167 | SniperFire="1369158"; | |
168 | ||
169 | ShotgunFire2="1868836"; | |
170 | ||
171 | MinigunFire="2692806"; | |
172 | ||
173 | MinigunCharge="2692844"; | |
174 | ||
175 | MinigunDischarge="1753007"; | |
176 | ||
177 | Flashbang="16976189"; | |
178 | ||
179 | Beep="15666462"; | |
180 | ||
181 | Smash="2801263"; | |
182 | ||
183 | Punch="31173820"; | |
184 | ||
185 | Slash="rbxasset://sounds/swordslash.wav"; | |
186 | ||
187 | Falcon="1387390"; | |
188 | ||
189 | Cast="2101137"; | |
190 | ||
191 | Spin="1369159"; | |
192 | ||
193 | Abscond="2767090"; | |
194 | ||
195 | ElectricalCharge="2800815"; | |
196 | ||
197 | FireExplosion="3264793"; | |
198 | ||
199 | SaberLightUp="10209303"; | |
200 | ||
201 | SaberSlash="10209280"; | |
202 | ||
203 | SaberHit="44463749"; | |
204 | ||
205 | EnergyBlast="10209268"; | |
206 | ||
207 | Lunge="rbxasset://sounds/swordlunge.wav"; | |
208 | ||
209 | Unsheath="rbxasset://sounds/unsheath.wav"; | |
210 | ||
211 | } | |
212 | ||
213 | wss = 16 | |
214 | ||
215 | caw = true | |
216 | ||
217 | pl = p.LocalPlayer | |
218 | ||
219 | bp = pl.Backpack | |
220 | ||
221 | pg = pl.PlayerGui | |
222 | ||
223 | c = pl.Character | |
224 | ||
225 | to = c.Torso | |
226 | ||
227 | he = c.Head he.face.Face = "Bottom" | |
228 | ||
229 | hu =c.Humanoid | |
230 | ||
231 | q(function() bp[sn]:Remove() end) | |
232 | ||
233 | local su = it("Model",c) su.Name = "Suit1" | |
234 | ||
235 | cl = "className" | |
236 | ||
237 | for i,v in pairs(to:children()) do if v[cl]=="BodyGyro" or v[cl]=="BodyPosition" or v[cl]=="Hat" or v[cl]=="CharacterMesh" then v:Remove() end end | |
238 | ||
239 | for i,v in pairs(c:children()) do if v[cl]=="BodyGyro" or v[cl]=="BodyPosition" or v[cl]=="Hat" or v[cl]=="CharacterMesh" then v:Remove() end end | |
240 | ||
241 | pcall(function() c.Block:Remove() end) | |
242 | ||
243 | local block = qi({"BoolValue",c,Value=false,Name="Block"}) | |
244 | ||
245 | local hd=he:Clone'' | |
246 | ||
247 | to.Transparency = 1 | |
248 | ||
249 | he.Transparency = 1 | |
250 | ||
251 | a.Bodyas=0 | |
252 | ||
253 | a.insw={} | |
254 | ||
255 | function cleanweld(wexx,namzi) local tn=ft2(a.insw,wexx) if tn==nil then return end | |
256 | ||
257 | if namzi=="p0" then | |
258 | ||
259 | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=0,0,0 elseif namzi=="p1" then | |
260 | ||
261 | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=0,0,0 elseif namzi=="a0" then | |
262 | ||
263 | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=0,0,0 elseif namzi=="a1" then | |
264 | ||
265 | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=0,0,0 | |
266 | ||
267 | end | |
268 | ||
269 | end | |
270 | ||
271 | function ws(ii) | |
272 | ||
273 | wss = ii | |
274 | ||
275 | end | |
276 | ||
277 | function c2(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) q(function() c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) end) end | |
278 | ||
279 | a.Welding=0 function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) | |
280 | ||
281 | if ft2(a.insw,wexx)==nil then ti(a.insw,{wexx,{}}) local tn=ft2(a.insw,wexx) | |
282 | ||
283 | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=wexx.C0.x,wexx.C0.y,wexx.C0.z | |
284 | ||
285 | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=wexx.C1.x,wexx.C1.y,wexx.C1.z | |
286 | ||
287 | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=wexx.C0:toEulerAnglesXYZ() | |
288 | ||
289 | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=wexx.C1:toEulerAnglesXYZ() end local tn=ft2(a.insw,wexx) | |
290 | ||
291 | local xx2,yy2,zz2=0,0,0 local x2,y2,z2=0,0,0 if c0orc1==0 then | |
292 | ||
293 | xx2,yy2,zz2=a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"] x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] elseif c0orc1==1 then xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] x2,y2,z2=a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"] else xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] | |
294 | ||
295 | x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] end a.Welding=a.Welding + 1 local twa=1 if smmx >= 1 then else | |
296 | ||
297 | for i=smmx,0.8,smmx do twa = 1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then | |
298 | ||
299 | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) | |
300 | ||
301 | wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))end w() end | |
302 | ||
303 | for i=0.8,1,smmx*0.45 do twa = 1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then | |
304 | ||
305 | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) | |
306 | ||
307 | wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))end w() end | |
308 | ||
309 | end | |
310 | ||
311 | local i=1 if c0orc1==0 then wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) elseif c0orc1==1 then wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) | |
312 | ||
313 | else wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) wexx.C1=ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) end a.Welding=a.Welding - 1 local tn=ft2(a.insw,wexx) | |
314 | ||
315 | if c0orc1==0 then | |
316 | ||
317 | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) | |
318 | ||
319 | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) | |
320 | ||
321 | elseif c0orc1==1 then | |
322 | ||
323 | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) | |
324 | ||
325 | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) | |
326 | ||
327 | elseif c0orc1==3 then | |
328 | ||
329 | local x,y,z=wexx.C0.x,wexx.C0.y,wexx.C0.z | |
330 | ||
331 | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) | |
332 | ||
333 | local x,y,z=wexx.C1:toEulerAnglesXYZ() | |
334 | ||
335 | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) | |
336 | ||
337 | end end | |
338 | ||
339 | to["Left Hip"].Part0=to to["Right Hip"].Part0=to to["Left Shoulder"].Part0=to to["Right Shoulder"].Part0=to | |
340 | ||
341 | p={} | |
342 | ||
343 | t=pa(su,"Torso","Block",1.99,1.99,1,false,false,0,0,ts(to.BrickColor)) | |
344 | ||
345 | la=pa(su,"Left Arm","Block",0,0,0,false,false,0,0,ts(c["Left Arm"].BrickColor)) law=weld(la,t,la,-1.5,1,0,0,0,0) | |
346 | ||
347 | ra=pa(su,"Right Arm","Block",0,0,0,false,false,0,0,ts(c["Right Arm"].BrickColor)) raw=weld(ra,t,ra,1.5,1,0,0,0,0) | |
348 | ||
349 | ll=pa(su,"Left Leg","Block",0,0,0,false,false,0,0,ts(c["Left Leg"].BrickColor)) llw=weld(ll,t,ll,-0.5,-1,0,0,0,0) | |
350 | ||
351 | rl=pa(su,"Right Leg","Block",0,0,0,false,false,0,0,ts(c["Right Leg"].BrickColor)) rlw=weld(rl,t,rl,0.5,-1,0,0,0,0) | |
352 | ||
353 | local hd2 = hd:Clone() hd2.Parent = su hd2.Transparency = 0 hd2.face.Face = "Front" hd2.Name = "FakeHead" hw=weld(hd2,t,hd2,0,1.5,0,0,0,0) | |
354 | ||
355 | hd.Name = "Head" hd.Parent=su hd.Transparency=1 hd.face:Remove() hw2=weld(hd,t,hd,0,1.5,0,0,0,0) | |
356 | ||
357 | tw=weld(t,to,t,0,0,0,0,0,0) | |
358 | ||
359 | local fhu = it("Humanoid",su) fhu.MaxHealth = 1/0 fhu.PlatformStand = true | |
360 | ||
361 | pcall(function() c.Shirt:Clone().Parent = su end) | |
362 | ||
363 | lh = to["Left Hip"] rh = to["Right Hip"] ls = to["Left Shoulder"] rs = to["Right Shoulder"] | |
364 | ||
365 | lh.Part0=t rh.Part0=t ls.Part0=t rs.Part0=t | |
366 | ||
367 | law2 = it("Weld",la) raw2 = it("Weld",ra) llw2 = it("Weld",ll) rlw2 = it("Weld",rl) | |
368 | ||
369 | law2.Part0 = la raw2.Part0 = ra llw2.Part0 =ll rlw2.Part0 = rl | |
370 | ||
371 | law2.C0 = cn(0,-1,0) raw2.C0 = cn(0,-1,0) llw2.C0 = cn(0,-1,0) rlw2.C0 = cn(0,-1,0) | |
372 | ||
373 | la.Transparency=1 ra.Transparency=1 ll.Transparency=1 rl.Transparency=1 | |
374 | ||
375 | c["Left Arm"].Transparency = 0 c["Right Arm"].Transparency = 0 | |
376 | ||
377 | c["Left Leg"].Transparency = 0 c["Right Leg"].Transparency = 0 | |
378 | ||
379 | Armb=true Armb2=true | |
380 | ||
381 | Legb=true Legb2=true | |
382 | ||
383 | function Armz(ison) Armb=ison if ison then | |
384 | ||
385 | law.Part0=c["Left Arm"] law.C0=cn(-1.5,1,0) raw.Part0=c["Right Arm"] raw.C0=cn(1.5,1,0) | |
386 | ||
387 | ls.Part1 = c["Left Arm"] rs.Part1 = c["Right Arm"] law2.Part1 = la raw2.Part1 = ra | |
388 | ||
389 | else | |
390 | ||
391 | law2.Part0 = la law2.Part1 = c["Left Arm"] raw2.Part0 = ra raw2.Part1 = c["Right Arm"] | |
392 | ||
393 | ls.Part1 = t rs.Part1 = t law.Part0=t law.C0=cn(-1.5,1,0) raw.Part0=t raw.C0=cn(1.5,1,0) | |
394 | ||
395 | end end | |
396 | ||
397 | function Legz(ison) Legb=ison if ison then | |
398 | ||
399 | llw.Part0=c["Left Leg"] llw.C0=cn(-0.5,-1,0) rlw.Part0=c["Right Leg"] rlw.C0=cn(0.5,-1,0) | |
400 | ||
401 | lh.Part1 = c["Left Leg"] rh.Part1 = c["Right Leg"] llw2.Part1 = ll rlw2.Part1 = rl | |
402 | ||
403 | else | |
404 | ||
405 | llw2.Part0 = ll llw2.Part1 = c["Left Leg"] rlw2.Part0 = rl rlw2.Part1 = c["Right Leg"] | |
406 | ||
407 | lh.Part1 = t rh.Part1 = t llw.Part0=t llw.C0=cn(-0.5,-1,0) rlw.Part0=t rlw.C0=cn(0.5,-1,0) | |
408 | ||
409 | end end function Headz(ison) if ison then he.Transparency=0 else end end | |
410 | ||
411 | Armz(true) Legz(true) --newhats(c,hd2,he) | |
412 | ||
413 | hax2sazc = "BUTTSEXSYSTEM" | |
414 | ||
415 | function Sound(sidz,pit,vol,parz) local sid=sidz if sid:sub(1,3) ~= "rbx" then sid = asset .. sid end local parx = to if parz then parx = parz end q(function() local sou = it("Sound") sou.SoundId = sid sou.Pitch = pit sou.Volume = vol/1.5 sou.Parent = parx game:service'Lighting'[hax2sazc].Value = sou w(5) sou:Remove'' end) end | |
416 | ||
417 | Sound("Your_F*cking_Name_here",1,1,he) | |
418 | ||
419 | function SplashDmg(tehsit,pos,dmgx,mag,forc,fu) q(function() | |
420 | ||
421 | local function dive(obj) for i,v in pairs(obj:children()) do if i%(#obj:children()/5)==0 then w() end --if i%antisplashdamagesexhack==0 then w() end --i%(#obj:children()/4)==0 then w() end | |
422 | ||
423 | if not v:IsA("Model") and v ~= to and v:IsA("BasePart") and v.Name=="Torso" and getclass(v.Parent,"Humanoid") ~= nil and (v.Position - pos).magnitude < mag then local av=getclass(v.Parent,"Humanoid") Dmgz(true,av,dmgx,v,fu) if tehsit then av.Sit=true end | |
424 | ||
425 | --elseif v:IsA("BasePart") and (v.Position-pos).magnitude < mag and not v.Anchored and v:GetMass() < 200 and v.Name ~= "Handle" and findclass(v.Parent,"Humanoid") <1 and findclass(v.Parent.Parent,"Humanoid") <1 and v.Parent.Parent.Name ~= "Suit" then if (v.Position-pos).magnitude < mag/2 then v:BreakJoints() v.CFrame=cn(v.Position,pos)*ca(0,rd(180),0) end v.Velocity=cn(pos,v.Position).lookVector*forc | |
426 | ||
427 | else q(function() if #v:children() > 0 and not v:IsA("BasePart") and v.className~="Script" and v.className~="Camera" then dive(v) end end) end | |
428 | ||
429 | end end -- func and loop end | |
430 | ||
431 | dive(workspace) dive(workspace.CurrentCamera) end) end | |
432 | ||
433 | for i,v in pairs(c:children()) do if v.Name == su.Name and v ~= su then v:Remove() end end | |
434 | ||
435 | function BlastMesh(col2,pos,adjus2,sc) local adjus=adjus2 *cn(0,-0.12*sc,0) local spi=pa(m,"","Block",0,0,0,false,false,1,0,col2) spi.Anchored=true local spim=it("SpecialMesh",spi) spim.MeshType="FileMesh" spim.MeshId=asset .. Decs.Crown spim.Scale=v3(sc*1.4,(sc*0.4),sc*1.4) q(function() local fu=spim.Scale local spix=0 for i=1,0.4,-0.05 do spix=spix + 15 spi.Transparency=i spim.Scale=v3(((fu.x*i)/2)+(fu.x/2),fu.y,((fu.z*i)/2)+(fu.z/2)) spi.CFrame=pos.CFrame *adjus *ca(0,rd(spix),0) w() end for i=0.4,1,0.05 do spix=spix + 15 spi.Transparency=i spim.Scale=v3(fu.x*i,fu.y,fu.z*i) spi.CFrame=pos.CFrame *adjus *ca(0,rd(spix),0) w() end spi:Remove'' end) end | |
436 | ||
437 | function GlowMesh(anch,meshid2,rootz,mv3,colzz,adjus,l1,l2,l3) | |
438 | ||
439 | local spi=pa(c,"","Block",1,1,1,false,false,l1,0,colzz) local spim=it("SpecialMesh",spi) if meshid2:lower()=="sphere" then spim.MeshType="Sphere" elseif meshid2:lower()=="block" then spim.MeshType="Brick" else spim.MeshType="FileMesh" spim.MeshId=meshid2 end | |
440 | ||
441 | if anch then local spiw=weld(spi,rootz,spi,0,0,0,0,0,0) spiw.C0 =spiw.C0 *adjus else spi.Anchored=true spi.CFrame=adjus end | |
442 | ||
443 | q(function() for i=l1,l2,l1 do spi.Transparency=i spim.Scale=mv3*i w() end spi:Remove'' end) | |
444 | ||
445 | end | |
446 | ||
447 | function Explode(onb,scz,colzz,dmge) q(function() local scale=scz*2 local scale2=scale*0.825 | |
448 | ||
449 | local e1=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e1.Anchored=true e1.CFrame=onb*ca(rd(-90),0,0) local e1m=it("SpecialMesh",e1) e1m.MeshType="FileMesh" e1m.MeshId=asset .. Decs.Ring | |
450 | ||
451 | local e2=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e2.Anchored=true e2.CFrame=onb*ca(0,0,0) local e2m=it("SpecialMesh",e2) e2m.MeshType="FileMesh" e2m.MeshId=asset .. Decs.Ring | |
452 | ||
453 | local e3=pa(c,"","Block",0,0,0,false,false,0.3,0,colzz) e3.Anchored=true e3.CFrame=onb*ca(0,0,0) local e3m=it("SpecialMesh",e3) e3m.MeshType="FileMesh" e3m.MeshId=asset .. Decs.Crown | |
454 | ||
455 | SplashDmg(false,onb.p,dmge,scale/1.6,125) q(function() for i=0.4,1,0.04 do w() end fade(e1,0.1) fade(e2,0.1) fade(e3,0.1) end) for i=0.3,1,0.035 do | |
456 | ||
457 | e3m.Scale=v3((scale2/1.3)*i,(scale2/2)*i,(scale2/1.3)*i) e2m.Scale=v3((scale2*1.3)*i,(scale2*1.3)*i,(scale2*1.3)*i) e1m.Scale=v3((scale2*1.3)*i,(scale2*1.3)*i,(scale2*1.3)*i) e1.CFrame=onb*ca(rd(-90),rd(360),0) e2.CFrame=onb*ca(0,rd(360),0) e3.CFrame=onb*ca(rd(180),rd(360),0) w() | |
458 | ||
459 | end | |
460 | ||
461 | end) end | |
462 | ||
463 | function splat2(pos,dmge) | |
464 | ||
465 | local dbr=it("Model",workspace) local colz2="Bright red" if ts(dmge)=="Block!" then colz2="Bright blue" end | |
466 | ||
467 | dbr.Name=ts(dmge) local dbri=pa(dbr,"Head","Block",1,0,1,false,false,0,0,colz2) it("Humanoid",dbr).MaxHealth=0 | |
468 | ||
469 | dbri.Anchored=true dbri.CFrame=cn(pos + v3(rn(-15,15)/10,3,rn(-15,15)/10)) game:service'Debris':AddItem(dbr,0.5) end | |
470 | ||
471 | local DBDH={} | |
472 | ||
473 | function Dmgz(blockz,aihu,dmgzz2,pos,fuu) if ft(DBDH,aihu.Parent) or aihu == hu then return end if aihu.Health==0 then return end if aihu.Parent:findFirstChild("ForceField") then return end dmgdeb2=true q(function() if (aihu.Parent:findFirstChild("Block") and aihu.Parent.Block:IsA("BoolValue") and aihu.Parent.Block.Value and not blockz) or pos.Name:lower()=="shield" then splat2(pos.Position,"Bl" .. "ock!") w(0.2) Sound(Sounds.Block,1.4,3) return end | |
474 | ||
475 | local dmgzz=dmgzz2 if game:service'Players':findFirstChild(aihu.Parent.Name) == nil then dmgzz=dmgzz*1.2 end ti(DBDH,aihu.Parent) if rn(1,a.cr[1]) == 1 then aihu:TakeDamage(dmgzz*a.cr[2]) dmgzz="Crit! " ..ts(dmgzz*a.cr[2]) else q(function() fuu(aihu.Parent) end) aihu:TakeDamage(dmgzz) end if not pos then return end splat2(pos.Position,dmgzz) q(function() w(0.08) tr(DBDH,ft(DBDH,aihu.Parent)) end) | |
476 | ||
477 | end) end | |
478 | ||
479 | function rayHit(wai,lolk,weplol,adjus,magz,tim) local DebounceTable2={} q(function() | |
480 | ||
481 | local hitx=0 local tymzup=false q(function() w(wai) tymzup=true end) | |
482 | ||
483 | repeat w() local tries=0 local bhit,bpos=nil,v3(999,999,999) | |
484 | ||
485 | repeat tries=tries + 1 local xx=0 local yy=0 if tries==1 then xx=1 elseif tries==2 then xx=-1 elseif tries == 3 then yy=1 elseif tries == 4 then yy=-1 elseif tries == 5 then xx=-1 yy=-1 elseif tries == 6 then xx,yy=1,1 elseif tries == 7 then xx,yy=-1,1 elseif tries == 8 then xx,yy=1,-1 end | |
486 | ||
487 | bhit,bpos=ray((weplol.CFrame *adjus *cn(xx,yy,-0.8)).p,weplol.Position - (weplol.CFrame *adjus *cn(0,0,2)).p) | |
488 | ||
489 | if bhit ~= nil and (bpos - weplol.Position).magnitude < magz+0.8 then break end until tries > 8 | |
490 | ||
491 | if bhit==nil or (bpos - weplol.Position).magnitude > magz+0.8 then else local brea=false | |
492 | ||
493 | for i,v in pairs(bhit.Parent:children()) do local dmge=rn(d[1],d[2])*tim | |
494 | ||
495 | if v:IsA("Humanoid") and not DebounceTable2[v.Parent.Name] then DebounceTable2[v.Parent.Name]=true Dmgz(false,v,dmge,bhit) Sound(Sounds.Smash,0.9,1) hitx=hitx+1 brea=true break end end | |
496 | ||
497 | if bhit.Parent ~= workspace and not brea then for i,v in pairs(bhit.Parent.Parent:children()) do local dmge=rn(d[1],d[2])*tim | |
498 | ||
499 | if v.Parent:findFirstChild("Humanoid") and not DebounceTable2[v.Parent.Parent.Name] then DebounceTable2[v.Parent.Parent.Name]=true Dmgz(false,v.Parent.Humanoid,dmge,bhit) Sound(Sounds.Smash,0.9,1) hitx=hitx+1 break end end | |
500 | ||
501 | end | |
502 | ||
503 | end until hitx >= lolk or tymzup end) end | |
504 | ||
505 | function GetRegion(p0,p1,f,f2) q(function() | |
506 | ||
507 | for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),c,100) ) do if v.Parent:findFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent:findFirstChild("Torso") then q(function() f(v.Parent) end) elseif f2 and v.Parent.Parent:findFirstChild("Humanoid") == nil then f2(v) end end | |
508 | ||
509 | end) end | |
510 | ||
511 | function FindGround(pos) local ax,ay,az = pos:toEulerAnglesXYZ() | |
512 | ||
513 | local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0))) | |
514 | ||
515 | if bhit and bpos then return cn(bpos)*ca(ax,ay,az) end return nil end | |
516 | ||
517 | function MakeCrater(pos,sc,tyms,debz) q(function() if not debz then debz = 5 end | |
518 | ||
519 | local bhit,bpos=ray(pos,pos - (pos + v3(0,200,0))) | |
520 | ||
521 | if bhit and bpos then | |
522 | ||
523 | for i=1,tyms do q(function() | |
524 | ||
525 | local gr = pa(su,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name) gr.Material = bhit.Material gr.TopSurface = bhit.TopSurface | |
526 | ||
527 | gr.CFrame = cn(bpos+v3(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40))) wait(debz) fade(gr,0.1) | |
528 | ||
529 | end) end | |
530 | ||
531 | end | |
532 | ||
533 | end) | |
534 | ||
535 | end | |
536 | ||
537 | function ForceBrick(v,rootpos,force) q(function() if v:GetMass() > 100 or v.Anchored or getclass(v,"Weld") then return end | |
538 | ||
539 | v:BreakJoints() v.Velocity = cn(rootpos,v.Position).lookVector*force | |
540 | ||
541 | end) end | |
542 | ||
543 | --Dio's functions | |
544 | ||
545 | function SpawnSword(pos,sc,dmg,col) if pos == nil then return end q(function() MakeCrater(pos.p+v3(0,2,0),3,3,3) | |
546 | ||
547 | GlowMesh(false,"Sphere",t,v3(7*sc,1.5*sc,7*sc),col,pos,0.1,1,0.05) | |
548 | ||
549 | local pro = pa(su,"","Block",2*sc,2*sc,7*sc,true,true,0.3,0,"") local prom = qi({"SpecialMesh",pro,Scale=v3(3*sc,2*sc,4*sc),VertexColor=v3(0,0,1),MeshType="FileMesh",MeshId=asset .. Decs.RedCliff,TextureId=asset .. Decs.RedCliffT}) | |
550 | ||
551 | pro.CFrame = pos*ca(rd(-25),0,0)*cn(0,-3*sc,0) local cff = pro.CFrame for i=0.1,1,0.15 do pro.CFrame=cff*cn(0,6*sc*i,0)*ca(rd(-90),0,0)*ca(0,0,rd(90)) wait() end | |
552 | ||
553 | local rr = sc*1.5 GetRegion(pro.Position-v3(rr,rr,rr),pro.Position+v3(rr,rr,rr),function(v) v.Humanoid.PlatformStand = true local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(pro.Position,v.Torso.Position+v3(0,20,0)).lookVector*40}) Dmgz(false,v.Humanoid,rn(d[1],d[2]),v.Torso) wait(0.15) bpp:Remove() v.Humanoid.PlatformStand = false end) wait(1) for i=1,0,-0.15 do pro.CFrame=cff*cn(0,6*sc*i,0)*ca(rd(-90),0,0)*ca(0,0,rd(90)) wait() end pro:Remove() end) | |
554 | ||
555 | end local bped = {} | |
556 | ||
557 | function SpikeSucker(pos,sc) | |
558 | ||
559 | local bal = pa(c,"","Ball",4*sc,4*sc,4*sc,false,true,0.16,0,"Navy blue") bal.CFrame = pos | |
560 | ||
561 | local spi = pa(c,"","Ball",0,0,0,false,true,0.16,0,"Navy blue") spi.CFrame = bal.CFrame local spm = qi({"SpecialMesh",spi,MeshType="FileMesh",MeshId=asset .. Decs.SpikeBall}) | |
562 | ||
563 | local dia = pa(bal,"","Block",0,0,0,false,true,0.3,0,"Navy blue") qi({"SpecialMesh",dia,Scale=v3(1*sc,2*sc,1*sc),MeshType="FileMesh",MeshId=asset .. Decs.Diamond}) | |
564 | ||
565 | local dia2 = dia:Clone() dia2.Parent = bal local dia3 = dia:Clone() dia3.Parent = bal local tms = 0 local rr=10*sc for x=1,4 do | |
566 | ||
567 | for i=0,1,0.1 do tms = tms + 1 | |
568 | ||
569 | spm.Scale = v3(i,i,i)*1.7 spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4)) dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0) dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0) dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0) | |
570 | ||
571 | if tms%3==0 then GetRegion(bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(1,3),v.Torso) if v.Torso:findFirstChild("SBP") == nil then ti(bped,v) qi({"BodyPosition",v.Torso,Name="SBP",D=6000,maxForce=v3(200000,200000,200000),position=bal.Position}) end end) end | |
572 | ||
573 | wait() | |
574 | ||
575 | end | |
576 | ||
577 | for i=1,0,-0.1 do tms = tms + 1 | |
578 | ||
579 | spm.Scale = v3(i,i,i)*1.7 spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4)) dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0) dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0) dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0) | |
580 | ||
581 | if tms%3==0 then GetRegion(bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(1,3),v.Torso) if v.Torso:findFirstChild("SBP") == nil then ti(bped,v) qi({"BodyPosition",v.Torso,Name="SBP",D=6000,maxForce=v3(200000,200000,200000),position=bal.Position}) end end) end | |
582 | ||
583 | wait() | |
584 | ||
585 | end | |
586 | ||
587 | for i,v in pairs(bped) do q(function() for i,vv in pairs(v.Torso:children()) do if vv.Name == "SBP" then vv:Remove() end end end) end | |
588 | ||
589 | end | |
590 | ||
591 | q(function() fade(dia,0.2) fade(dia2,0.2) fade(dia3,0.2) for i=0.1,1,0.1 do spi.Transparency = i spm.Scale = spm.Scale*1.1 bal.Transparency = i bal.Size = bal.Size*1.1 bal.CFrame = pos wait() end spi:Remove() bal:Remove() end) | |
592 | ||
593 | end | |
594 | ||
595 | function Blackspace(pos,tms,dmg) | |
596 | ||
597 | local bal = pa(c,"","Ball",52,52,52,false,true,1,0,"Really black") bal.CFrame = pos | |
598 | ||
599 | for i=1,0.5,-0.1 do bal.Transparency =i wait() end | |
600 | ||
601 | for i=1,tms do local o = 25 | |
602 | ||
603 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(25,0,0).p,4,2.5,"Institutional white",0.3,0) | |
604 | ||
605 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(-25,0,0).p,4,2.5,"Institutional white",0.3,0) | |
606 | ||
607 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,25,0).p,4,2.5,"Institutional white",0.3,0) | |
608 | ||
609 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,-25,0).p,4,2.5,"Institutional white",0.3,0) | |
610 | ||
611 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,0,25).p,4,2.5,"Institutional white",0.3,0) | |
612 | ||
613 | Lightning(pos.p,pos*ca(rd(i*o),rd(i*o),rd(i*o))*cn(0,0,-25).p,4,2.5,"Institutional white",0.3,0) | |
614 | ||
615 | local rr = 25 if i%4==0 then GetRegion(pos.p-v3(rr,rr,rr),pos.p+v3(rr,rr,rr),function(v) Dmgz(false,v.Humanoid,rn(3,5),v.Torso) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(bal.Position,v.Torso.Position).lookVector*10}) wait(0.1) bpp:Remove() end) end | |
616 | ||
617 | wait(0.05) | |
618 | ||
619 | end | |
620 | ||
621 | for i=0.5,1,0.1 do bal.Transparency =i wait() end bal:Remove() | |
622 | ||
623 | end | |
624 | ||
625 | function MatterBall(pos,sc,spid,tyms,dmgmul) q(function() | |
626 | ||
627 | local cor = db1:Clone() cor.Mesh.Scale=v3(sc,sc,sc)*5 local cor2 = db2:Clone() cor2.Mesh.Scale = cor.Mesh.Scale*1.55 qi({"Fire",cor,Color=bc('Navy blue').Color,SecondaryColor=bc('Navy blue').Color,Size=sc*3.5,Heat=0}) | |
628 | ||
629 | cor.Transparency = 0.05 cor.Anchored = true cor2.Anchored = true cor2.Transparency = 0.4 cor.Parent = su cor2.Parent = cor cor.CFrame = pos | |
630 | ||
631 | local corms = cor.Mesh.Scale local cor2ms = cor2.Mesh.Scale for i=1,tyms do local lolvt = {-2*sc,2*sc} | |
632 | ||
633 | local lolv3 = v3(0,0,0) local lolrn = rn(1,3) if lolrn == 1 then lolv3=v3(lolvt[rn(1,2)],0,0) elseif lolrn == 2 then lolv3=v3(0,lolvt[rn(1,2)],0) elseif lolrn == 3 then lolv3=v3(0,0,lolvt[rn(1,2)]) end cor.Mesh.Scale=corms+lolv3 cor2.Mesh.Scale=cor2ms+lolv3 | |
634 | ||
635 | cor.CFrame = pos*cn(0,0,-spid*i) | |
636 | ||
637 | local bhit,bpos=ray(cor.Position,cor.Position - (cor.CFrame *cn(0,0,1)).p) | |
638 | ||
639 | if bhit and (bpos - cor.Position).magnitude < (spid*1.1) then break end | |
640 | ||
641 | cor.CFrame=cor.CFrame*ca(rd(rn(-360,360)),rd(rn(-360,360)),rd(rn(-360,360))) cor2.CFrame = cor.CFrame | |
642 | ||
643 | local lolpos = FindGround(cor.CFrame) if lolpos and i%rn(2,3)==0 then GlowMesh(false,asset .. Decs.Crown,t,v3(2.6*sc,0.8*sc,2.6*sc),'Navy blue',cn(lolpos.p+v3(0,0.15*sc,0)),0.1,1,0.05) end | |
644 | ||
645 | wait() end cor.Fire:Remove() | |
646 | ||
647 | q(function() | |
648 | ||
649 | local n1 = pa(su,"","Block",0,0,0,true,true,0.3,0,"Navy blue") qi({"SpecialMesh",n1,Scale=v3(3.5,3.5,8),MeshType="FileMesh",MeshId=asset .. Decs.Chakram}) | |
650 | ||
651 | local n2 = n1:Clone() n2.Parent = su n1.CFrame = cor.CFrame*ca(0,rd(-45),0) n2.CFrame = cor.CFrame*ca(0,rd(45),0) | |
652 | ||
653 | for i=1,8 do n1.Mesh.Scale = n1.Mesh.Scale+v3(0.3*sc,0.3*sc,0.35*sc) n2.Mesh.Scale = n1.Mesh.Scale cor.Transparency = cor.Transparency + 0.12 n1.Transparency = cor.Transparency n2.Transparency = n1.Transparency cor2.Transparency = cor2.Transparency + 0.1 cor.Mesh.Scale = cor.Mesh.Scale+v3(2.3*sc,2.3*sc,2.3*sc) cor2.Mesh.Scale = cor.Mesh.Scale*1.55 wait() end n1:Remove() n2:Remove() cor:Remove() cor2:Remove() end) | |
654 | ||
655 | local rr = sc GetRegion(cor.Position-v3(rr,rr,rr),cor.Position+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(cor.Position,v.Torso.Position+v3(0,2,0)).lookVector*60}) Dmgz(false,v.Humanoid,rn(d[1],d[2])*dmgmul,v.Torso) wait(0.12) bpp:Remove() end) | |
656 | ||
657 | end) end | |
658 | ||
659 | function FistBoom(pos,sc,dmg,TYMZEH) q(function() | |
660 | ||
661 | local rip = pa(su,"","Block",1,1,1,false,true,0.2,0,"Navy blue") ripm = qi({"SpecialMesh",rip,MeshType="Sphere"}) | |
662 | ||
663 | rip.CFrame = pos*cn(-4*sc/2,4*sc/2,0)*ca(0,0,rd(45)) | |
664 | ||
665 | for i=1,3.5,0.5 do rip.Size=v3(1,i*2,1) rip.CFrame = pos*cn((-4+i)*sc,(4-i)*sc,0)*ca(0,0,rd(45)) wait() end | |
666 | ||
667 | for i=1,3.5,0.25 do rip.Size=v3(i*2,7,1) rip.CFrame = pos*ca(0,0,rd(45)) wait() end | |
668 | ||
669 | local fis = pa(su,"","Block",0,0,0,false,true,0.2,0,"Navy blue") fism = qi({"SpecialMesh",fis,Scale=v3(8*sc,8*sc,8*sc),MeshType="FileMesh",MeshId=asset .. Decs.Fist}) | |
670 | ||
671 | for i=0.5,5.5,1 do fism.Scale = v3(8*sc,((8*sc)/5.5)*i,8*sc) fis.CFrame = pos*cn(0,0,-i*sc)*ca(rd(-90),rd(-90),0) wait() end | |
672 | ||
673 | fism.Scale = fism.Scale+v3(1*sc,1*sc,1*sc) fis.CFrame = pos*cn(0,5*sc,-5*sc)*ca(rd(45),0,0)*ca(rd(-90),rd(-90),0) rip.CFrame=pos*ca(rd(45),0,0) qi({"Fire",fis,Heat=-25,Size=15,Color=bc('Navy blue').Color,SecondaryColor=bc('Navy blue').Color}) | |
674 | ||
675 | local arm = pa(su,"","Block",1,1,1,false,true,0.2,0,"Navy blue") armm = it('CylinderMesh',arm) | |
676 | ||
677 | arm.CFrame = cn(rip.Position,fis.CFrame*cn(0,-5.5,0).p)*cn(0,0,-(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude/2-0.5)*ca(rd(90),0,0) armm.Scale = v3(4*sc,(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1,4*sc) | |
678 | ||
679 | for i=1,7 do fis.CFrame=fis.CFrame*cn(0,TYMZEH/7,0) | |
680 | ||
681 | arm.CFrame = cn(rip.Position,fis.CFrame*cn(0,-5.5,0).p)*cn(0,0,-(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude/2-0.5)*ca(rd(90),0,0) armm.Scale = v3(4*sc,(rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1,4*sc) | |
682 | ||
683 | wait() end local armag = (rip.Position-fis.CFrame*cn(0,-5.5,0).p).magnitude+1 | |
684 | ||
685 | for x=45,0,-5 do | |
686 | ||
687 | rip.CFrame = pos*ca(rd(x+180),0,0) fis.CFrame=rip.CFrame*cn(0,0,(armag-1)+(5.5*sc))*ca(rd(90),rd(-90),0) | |
688 | ||
689 | arm.CFrame = rip.CFrame*cn(0,0,((armag-1)/2)+0.5)*ca(rd(90),0,0) | |
690 | ||
691 | wait() | |
692 | ||
693 | end | |
694 | ||
695 | q(function() local cfz = {rip.CFrame,arm.CFrame,fis.CFrame} for i=1,15 do local lolv3=v3(rn(-1*sc,1*sc),rn(-1*sc,1*sc),rn(-1*sc,1*sc)) rip.CFrame=cfz[1]+lolv3 fis.CFrame=cfz[3]+lolv3 arm.CFrame=cfz[2]+lolv3 wait() end | |
696 | ||
697 | for i=armag,0,-armag/15 do armm.Scale =v3(4,i,4) fis.CFrame=rip.CFrame*cn(0,0,(i)+(5.5*sc))*ca(rd(90),rd(-90),0) arm.CFrame = rip.CFrame*cn(0,0,((i-1)/2)+0.5)*ca(rd(90),0,0) wait() end arm:Remove() | |
698 | ||
699 | for i=5.5,0.5,-1 do fism.Scale = v3(8*sc,((8*sc)/5.5)*i,8*sc) fis.CFrame = pos*cn(0,0,-i*sc)*ca(rd(-90),rd(-90),0) wait() end fis:Remove() | |
700 | ||
701 | for i=0.2,1,0.1 do ripm.Scale = ripm.Scale+v3(0.2*sc,0.2*sc,0.2*sc) rip.Transparency = i wait() end rip:Remove() end) | |
702 | ||
703 | local rr = 6.5*sc GetRegion(fis.Position-v3(rr,rr,rr),fis.Position+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(fis.Position-v3(0,1*sc,0),v.Torso.Position+v3(0,2,0)).lookVector*75}) Dmgz(false,v.Humanoid,rn(d[1]*2,d[2]*2.5),v.Torso) wait(0.15) bpp:Remove() end,function(v) ForceBrick(v,fis.Position,100) end) | |
704 | ||
705 | MakeCrater(fis.Position+v3(0,2,0),5,7,10) | |
706 | ||
707 | end) end | |
708 | ||
709 | WormDrill = function(target,sca) q(function() local spiran = rn(-360,360) local slope = {} | |
710 | ||
711 | for i=90,-270,-10 do table.insert(slope,cn(target.p)*ca(0,rd(spiran),0)*cn(0,0,30*sca)*ca(rd(i),0,0)*cn(0,0,30*sca)) end | |
712 | ||
713 | local mm = it('Model',su) local tr = 0.15 | |
714 | ||
715 | local worm0 = pa(mm,"","Block",0,60,0,true,true,tr,0,"Navy blue") qi({"SpecialMesh",worm0,Scale=v3(9*sca,12*sca,9*sca),MeshType="FileMesh",MeshId="http://www.roblox.com/asset/?id=12137531"}) | |
716 | ||
717 | local worm1 = pa(mm,"","Block",10*sca,6*sca,10*sca,true,true,tr,0,"Navy blue") it('CylinderMesh',worm1) | |
718 | ||
719 | local worm2 = pa(mm,"","Block",9.5*sca,6*sca,9.5*sca,true,true,tr,0,"Navy blue") it('CylinderMesh',worm2) | |
720 | ||
721 | local worm3 = pa(mm,"","Block",9*sca,6*sca,9*sca,true,true,tr,0,"Navy blue") it('CylinderMesh',worm3) | |
722 | ||
723 | local worm4 = pa(mm,"","Block",8.5*sca,6*sca,8.5*sca,true,true,tr,0,"Navy blue") it('CylinderMesh',worm4) | |
724 | ||
725 | local worm5 = pa(mm,"","Block",8*sca,6*sca,8*sca,true,true,tr,0,"Navy blue") it('CylinderMesh',worm5) | |
726 | ||
727 | local worm6 = pa(mm,"","Block",7.2*sca,6*sca,7.2*sca,true,true,tr,0,"Navy blue") qi({"SpecialMesh",worm6,Scale=v3(4*sca,18.5*sca,4*sca),MeshType="FileMesh",MeshId="http://www.roblox.com/asset/?id=1033714"}) | |
728 | ||
729 | for i=1,#slope-6 do if i+6 == 10 then MakeCrater(slope[i+6].p+v3(0,10,0),13,9,20) end if i+5 == 27 then local rr = 8*sca GetRegion(slope[i+5].p-v3(rr,rr,rr),slope[i+5].p+v3(rr,rr,rr),function(v) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(slope[i+5].p,v.Torso.Position+v3(0,2,0)).lookVector*120}) Dmgz(false,v.Humanoid,rn(d[1]*3.2,d[2]*4),v.Torso) wait(0.2) bpp:Remove() end,function(v) ForceBrick(v,slope[i+5].p,150) end) MakeCrater(slope[i+5].p+v3(0,10,0),13,9,20) end | |
730 | ||
731 | worm0.CFrame = slope[i+6]*ca(rd(160),0,0)*ca(0,rd(0),0)*cn(0,5*sca,0) worm1.CFrame = slope[i+5] worm2.CFrame = slope[i+4] worm3.CFrame = slope[i+3] worm4.CFrame = slope[i+2] worm5.CFrame = slope[i+1] worm6.CFrame = slope[i]*ca(rd(180),0,0)*cn(0,4*sca,0) wait(0.04) end | |
732 | ||
733 | worm0:Remove() worm1:Remove() worm2:Remove() worm3:Remove() worm4:Remove() worm5:Remove() worm6:Remove() | |
734 | ||
735 | end) end | |
736 | ||
737 | SpawnTornado = function(pos,sc,ski,tyms) q(function() | |
738 | ||
739 | local tor = pa(su,"","Block",0,0,0,true,true,1,0,"Navy blue") qi({"SpecialMesh",tor,Scale=v3(6.4*sc,8*sc,6.5*sc),MeshType="FileMesh",MeshId=asset .. Decs.Tornado}) | |
740 | ||
741 | tor.CFrame = pos q(function() for i=1,0.2,-0.1 do tor.Transparency = i wait() end end) | |
742 | ||
743 | local zz = 0 local tpos = tor.Position | |
744 | ||
745 | q(function() while tor.Parent do zz = zz+1 | |
746 | ||
747 | tor.CFrame = pos*cn(0,0,-zz/2.6)*ca(0,rd(zz*5),0)*cn(0,0,zz*ski/30)*ca(0,rd(zz*25),0) wait() | |
748 | ||
749 | local rr = 7*sc GetRegion(tor.Position-v3(rr,rr,rr),tor.Position+v3(rr,rr,rr),function(v) if v.Torso:findFirstChild("SRP") == nil then local bp = qi({"BodyPosition",v.Torso,Name="SRP",maxForce=v3(1/0,1/0,1/0),position=tor.CFrame*cn(0,0,8*sc).p}) while tor.Parent do v.Humanoid.PlatformStand=true bp.position=tor.CFrame*cn(0,0,8*sc).p | |
750 | ||
751 | if rn(1,4) == 2 then Dmgz(false,v.Humanoid,rn(1,2),v.Torso) end | |
752 | ||
753 | wait() end bp:Remove() Dmgz(true,v.Humanoid,rn(d[1]*2,d[2]*2),v.Torso) local bpp = qi({"BodyVelocity",v.Torso,maxForce=v3(1/0,1/0,1/0),velocity=cn(tpos,v.Torso.Position+v3(0,2,0)).lookVector*100}) wait(0.35) bpp:Remove() v.Humanoid.PlatformStand = false else end end) | |
754 | ||
755 | end end) | |
756 | ||
757 | wait(tyms) tpos = tor.Position local torm = tor.Mesh.Scale tor:Remove() GlowMesh(false,asset .. Decs.Tornado,t,torm*3,'Navy blue',cn(tpos),0.2,1,0.05) | |
758 | ||
759 | end) end | |
760 | ||
761 | ---- TUT01LOL | |
762 | ||
763 | han = pa(su,"","Block",0.4,0.4,0.4,false,false,0,0,"Navy blue") it('CylinderMesh',han) | |
764 | ||
765 | hanw = qi({"Weld",han,Part0=t,Part1=han,C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0)}) | |
766 | ||
767 | han2 = pa(su,"","Block",0.35,4,0.35,false,false,0,0,"Black") it('CylinderMesh',han2) | |
768 | ||
769 | han2w = qi({"Weld",han2,Part0=han,Part1=han2,C0=cn(0,1,0)}) | |
770 | ||
771 | han3 = pa(su,"","Block",0,0,0,false,false,0,0,"Navy blue") qi({"SpecialMesh",han3,MeshType="Sphere",Scale=v3(0.4,0.4,0.4)*5}) | |
772 | ||
773 | han3w = qi({"Weld",han2,Part0=han2,Part1=han3,C0=cn(0,-2,0)}) | |
774 | ||
775 | han4 = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",han4,MeshType="Sphere",Scale=v3(0.5,0.7,0.2)*5}) | |
776 | ||
777 | han4w = qi({"Weld",han2,Part0=han3,Part1=han4,C0=ca(0,rd(90),0)}) | |
778 | ||
779 | for i=1,7 do | |
780 | ||
781 | des = pa(su,"","Block",0.4,0.2,0.4,false,false,0,0,"Navy blue") it('CylinderMesh',des).Scale = v3(1,0.4,1) | |
782 | ||
783 | desw = qi({"Weld",han,Part0=han2,Part1=des,C0=cn(0,-0.9+(i/3),0)*ca(rd(rn(-15,15)),0,rd(rn(-15,15)))}) | |
784 | ||
785 | end | |
786 | ||
787 | for i=0,270,90 do | |
788 | ||
789 | des = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.1,0.4,0.1),MeshId=asset .. Decs.Spike}) | |
790 | ||
791 | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=ca(0,rd(i),0)*cn(0,1.8,0.3)*ca(rd(90),0,0)}) | |
792 | ||
793 | end | |
794 | ||
795 | han5 = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han5,MeshType="Sphere",Scale=v3(0.35,0.6,0.35)*5}) | |
796 | ||
797 | han5w = qi({"Weld",han2,Part0=han2,Part1=han5,C0=cn(0,2,0)}) | |
798 | ||
799 | han6 = pa(su,"","Wedge",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",han6,MeshType="Wedge",Scale=v3(0.1,1,0.5)*5}) | |
800 | ||
801 | han6w = qi({"Weld",han2,Part0=han2,Part1=han6,C0=cn(0,2.4,0.05)*ca(rd(10),0,0)}) | |
802 | ||
803 | han7 = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",han7,MeshType="FileMesh",Scale=v3(0.75,0.75,2),MeshId=asset .. Decs.Ring}) | |
804 | ||
805 | han7w = qi({"Weld",han2,Part0=han2,Part1=han7,C0=cn(0,2.9,0)*ca(0,rd(90),0)}) | |
806 | ||
807 | han8 = pa(su,"","Block",0,0,0,false,false,0.3,0.1,"Really blue") qi({"SpecialMesh",han8,MeshType="Sphere",Scale=v3(0.7,0.7,0.7)*5}) | |
808 | ||
809 | han8w = qi({"Weld",han2,Part0=han2,Part1=han8,C0=cn(0,2.9,0)*ca(0,0,0)}) | |
810 | ||
811 | han9 = pa(su,"","Block",0,0,0,false,false,0,0,"Institutional white") qi({"SpecialMesh",han9,Scale=v3(0.25,1,0.25),MeshType="FileMesh",MeshId = asset .. Decs.Chakram3}) | |
812 | ||
813 | han9w = qi({"Weld",han2,Part0=han2,Part1=han9,C0=cn(0,2.9,0)*ca(0,0,rd(90))}) | |
814 | ||
815 | q(function() while true do wait(0.035) han9w.C0 = han9w.C0 *ca(0,rd(10),0) end end) | |
816 | ||
817 | for i=0,2 do | |
818 | ||
819 | des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=asset .. Decs.Diamond}) | |
820 | ||
821 | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,2.1+(i/2.1),0.6+(i/5))*ca(rd(150-(i*30)),0,0)}) | |
822 | ||
823 | end | |
824 | ||
825 | des = pa(su,"","Block",0,0,0,false,false,0,0.05,"Really black") qi({"SpecialMesh",des,MeshType="FileMesh",Scale=v3(0.2,1,0.2),MeshId=asset .. Decs.Diamond}) | |
826 | ||
827 | desw = qi({"Weld",han2,Part0=han2,Part1=des,C0=cn(0,3.6,0.7)*ca(rd(50),0,0)}) | |
828 | ||
829 | bla = pa(su,"","Wedge",0.2,1,2,false,false,0,0.05,"") qi({"SpecialMesh",bla,Scale=v3(0.56,1,1),MeshType="Wedge"}) | |
830 | ||
831 | blaw = qi({"Weld",han2,Part0=han8,Part1=bla,C0=cn(0,0.5,-1.2)*ca(rd(30),0,0)}) | |
832 | ||
833 | bla2 = pa(su,"","Wedge",0.2,0.7,2,false,false,0,0.05,"") qi({"SpecialMesh",bla2,Scale=v3(0.53,1,1),MeshType="Wedge"}) | |
834 | ||
835 | bla2w = qi({"Weld",han2,Part0=bla,Part1=bla2,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)}) | |
836 | ||
837 | bla3 = pa(su,"","Wedge",0.2,0.4,2,false,false,0,0.05,"") qi({"SpecialMesh",bla3,Scale=v3(0.5,1,1),MeshType="Wedge"}) | |
838 | ||
839 | bla3w = qi({"Weld",han2,Part0=bla2,Part1=bla3,C0=cn(0,-0.5,-0.75)*ca(rd(-20),0,0)}) | |
840 | ||
841 | han10 = pa(su,"","Block",0,0,0,false,false,0,1,"Really black") it('CylinderMesh',han10).Scale = v3(1.2,0.57,1.2) | |
842 | ||
843 | han10 = qi({"Weld",han2,Part0=bla,Part1=han10,C0=cn(0,-0.37,1.35)*ca(0,0,rd(90))}) | |
844 | ||
845 | han11 = pa(su,"","Block",0.2,0.37,0.7,false,false,0,0,"") it('BlockMesh',han11).Scale = v3(0.48,1,0.9) | |
846 | ||
847 | han11 = qi({"Weld",han2,Part0=bla,Part1=han11,C0=cn(0,-0.32,1.3)}) | |
848 | ||
849 | --http://www.roblox.com/Knights-of-the-Seventh-Sanctum-Sword-and-Shield-item?id=60357959 | |
850 | ||
851 | raa = c["Right Arm"] | |
852 | ||
853 | laa = c["Left Arm"] | |
854 | ||
855 | clawa1 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=asset .. Decs.Spike}) | |
856 | ||
857 | clawa1w = qi({"Weld",han2,Part0=laa,Part1=clawa1,C0=ca(rd(180),0,0)*cn(-0.2,1.25,0)}) | |
858 | ||
859 | clawa2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",clawa2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=asset .. Decs.Spike}) | |
860 | ||
861 | clawa2w = qi({"Weld",han2,Part0=laa,Part1=clawa2,C0=ca(rd(180),0,0)*cn(0.2,1.25,0)}) | |
862 | ||
863 | clawb1 = pa(su,"","Block",0,0,0,false,false,0,0.4,"Navy blue") qi({"SpecialMesh",clawb1,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=asset .. Decs.Spike}) | |
864 | ||
865 | clawb1w = qi({"Weld",han2,Part0=clawa1,Part1=clawb1,C0=cn(0,0.15,0)}) | |
866 | ||
867 | clawb2 = pa(su,"","Block",0,0,0,false,false,0,0.4,"Navy blue") qi({"SpecialMesh",clawb2,MeshType="FileMesh",Scale=v3(0.12,0.8,0.12),MeshId=asset .. Decs.Spike}) | |
868 | ||
869 | clawb2w = qi({"Weld",han2,Part0=clawa2,Part1=clawb2,C0=cn(0,0.15,0)}) | |
870 | ||
871 | badge = pa(su,"","Block",0,0,0,false,false,0,0,"Navy blue") qi({"SpecialMesh",badge,MeshType="FileMesh",Scale=v3(0.15,1,0.5),MeshId=asset .. Decs.Diamond}) | |
872 | ||
873 | badgew = qi({"Weld",han2,Part0=laa,Part1=badge,C0=cn(-0.5,0,0)*ca(rd(25),0,0)}) | |
874 | ||
875 | badge2 = pa(su,"","Block",0,0,0,false,false,0,0,"Really black") qi({"SpecialMesh",badge2,MeshType="FileMesh",Scale=v3(0.149,1,0.495),MeshId=asset .. Decs.Diamond}) | |
876 | ||
877 | badge2w = qi({"Weld",han2,Part0=badge,Part1=badge2}) | |
878 | ||
879 | ef = pa(su,"","Block",0,0,0,false,true,1,0,"Navy blue") qi({"SpecialMesh",ef,MeshType="FileMesh",Scale=v3(7,7,4),MeshId=asset .. Decs.Chakram2}) | |
880 | ||
881 | --efw = qi({"Weld",han2,Part0=t,Part1=ef,C0=cn(0,-2.9,0)*ca(rd(90),0,0)}) | |
882 | ||
883 | db1 = pa(su,"","Block",0,0,0,false,false,1,0,"Really black") qi({"SpecialMesh",db1,MeshType="Sphere",Scale=v3(1,1,1)*5}) | |
884 | ||
885 | db1w = qi({"Weld",han2,Part0=laa,Part1=db1,C0=cn(0,-2,0)}) | |
886 | ||
887 | db2 = pa(su,"","Block",0,0,0,false,false,1,0.1,"Navy blue") qi({"SpecialMesh",db2,MeshType="Sphere",Scale=v3(1.2,1.2,1.2)*5}) | |
888 | ||
889 | db2w = qi({"Weld",han2,Part0=db1,Part1=db2,C0=cn(0,0,0)}) | |
890 | ||
891 | local ebs = false | |
892 | ||
893 | function eb(wutarm,aa,siz) if not siz then siz = 1 end q(function() db1.Mesh.Scale=v3(siz,siz,siz)*5 db1w.Part0 = wutarm db1w.C0 = cn(0,-1+(-siz/1.25),0) if not ebs then ebs = true | |
894 | ||
895 | if aa then db1.Transparency = 0.1 else for i=1,0.1,-0.1 do db1.Transparency = i wait() end end | |
896 | ||
897 | else | |
898 | ||
899 | ebs = false if aa then db1.Transparency = 1 else for i=0.1,1,0.1 do db1.Transparency = i wait() end end | |
900 | ||
901 | end end) end | |
902 | ||
903 | local efm = ef.Mesh.Scale | |
904 | ||
905 | function e(aa) if aa ~= nil then ef.Mesh.Scale=efm*aa else ef.Mesh.Scale=efm end if ef.Transparency < 0.4 then | |
906 | ||
907 | for i=0.3,1,0.1 do ef.Transparency = i wait() end | |
908 | ||
909 | else | |
910 | ||
911 | q(function() for i=1,0.3,-0.1 do ef.Transparency = i wait() end end) | |
912 | ||
913 | end end | |
914 | ||
915 | q(function() while true do if ebs then for i=0.4,0.7,0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i wait() db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) end | |
916 | ||
917 | for i=0.7,0.4,-0.025 do local tra = (i+0.15)*(db1.Mesh.Scale.x/4) db2.Transparency =i db2.Mesh.Scale=db1.Mesh.Scale*1.2+v3(tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5),tra*(db1.Mesh.Scale.x/5)) wait() end else db2.Transparency = 1 db2.Mesh.Scale = v3(1.2,1.2,1.2)*5 end wait() end end) | |
918 | ||
919 | q(function() while true do for i=0,1,0.05 do badge.Transparency = i wait() end badge.Transparency = 1 wait(1) for i=1,0,-0.05 do badge.Transparency = i wait() end wait(4) end end) | |
920 | ||
921 | sho = pa(su,"","Block",0,0,0,false,false,0,0,"Black") qi({"SpecialMesh",sho,Scale=v3(1.1,1.1,1.1)*5,MeshType="Wedge"}) | |
922 | ||
923 | show = qi({"Weld",han2,Part0=raa,Part1=sho,C0=cn(0,0.545,0)*ca(rd(180),rd(90),0)}) | |
924 | ||
925 | chak = pa(su,"","Block",0,0,0,false,false,0,0,"") qi({"SpecialMesh",chak,Scale=v3(0.09,0.09,0.24)*5,MeshType="FileMesh",MeshId=asset .. Decs.Chakram}) | |
926 | ||
927 | chakw = qi({"Weld",han2,Part0=raa,Part1=chak,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)}) | |
928 | ||
929 | chak2 = pa(su,"","Block",0,0,0,false,false,0.1,0.1,"Navy blue") qi({"SpecialMesh",chak2,Scale=v3(0.15,0.15,0.05)*5,MeshType="FileMesh",MeshId=asset .. Decs.Chakram2}) | |
930 | ||
931 | chak2w = qi({"Weld",han2,Part0=raa,Part1=chak2,C0=cn(0.56,0.5,0)*ca(0,rd(-90),0)}) | |
932 | ||
933 | local efww = 0 | |
934 | ||
935 | q(function() while true do wait() if FindGround(to.CFrame) then efww = efww+25 ef.CFrame = FindGround(to.CFrame)*ca(0,rd(efww),0)*ca(rd(90),0,0) else ef.CFrame=cn(10000,10000,10000) end end end) | |
936 | ||
937 | q(function() while true do wait(0.035) --[[efw.C0 = efw.C0*ca(0,0,rd(25))]] chak2w.C0 = chak2w.C0*ca(0,0,rd(25)) end end) | |
938 | ||
939 | ---- TUT02LOL | |
940 | ||
941 | function Act(k,kb) | |
942 | ||
943 | if kb then | |
944 | ||
945 | if k == "e" and Anim=="None" then | |
946 | ||
947 | Anim = "SpawnSwords" Armz(false) e() eb(raa) | |
948 | ||
949 | c2(law,spd,3,-1.5,1,0,30,0,30) c2(tw,spd,3,0,0,0,0,-95,0) c2(hw,spd,3,0,1.5,0,0,95,0) | |
950 | ||
951 | c1(raw,spd,3,1,0.5,0,0,0,-80) c2(raw,spd,3,1,0.4,0,0,0,-140) for i=1,5 do SpawnSword(FindGround(to.CFrame*cn(0,-2.75,-0.5+(-i*8)-i)),1+(i/10),15,"Navy blue") wait(0.06) end | |
952 | ||
953 | eb(raa) wait(0.2) e() c2(law,spd,3,-1.5,1,0,0,0,0) c2(hw,spd,3,0,1.5,0,0,0,0) c2(tw,spd,3,0,0,0,0,0,0) c1(raw,spd,3,1.5,1,0,0,0,0) Armz(true) | |
954 | ||
955 | Anim = "None" | |
956 | ||
957 | elseif k == "q" and Anim=="None" then | |
958 | ||
959 | Anim = "GravGrab" Armz(false) e() eb(laa) caw = false | |
960 | ||
961 | c2(raw,spd,3,1.5,1,0,30,0,20) c2(tw,spd,3,0,0,0,0,95,0) c2(hw,spd,3,0,1.5,0,0,-95,0) | |
962 | ||
963 | c1(law,spd,3,-1,0.5,0,0,0,130) SpikeSucker(to.CFrame*cn(0,5,-6),1) eb(laa) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) | |
964 | ||
965 | c2(law,spd,3,-1,0.5,0,45,0,90) c2(hw,spd,3,0,1.5,0,0,90,0) c2(tw,spd,3,0,0,0,0,-90,0) c2(hanw,spd,0,-0.1,-2.2,0,0,90,170) | |
966 | ||
967 | Trail(bla3,15,0,"Navy blue",0.65,cn(0,-0.2,-1)) rayHit(0.6,1,ra,ca(rd(-90),0,0),8,1.3) | |
968 | ||
969 | c1(raw,spd,3,1.3,0.5,0,-30,0,-135) wait(0.5) c2(hanw,spd,0,-0.1,-1.1,0,0,0,75) | |
970 | ||
971 | caw = true c2(hw,spd,3,0,1.5,0,0,0,0) c2(tw,spd,3,0,0,0,0,0,0) c2(law,spd,3,-1.5,1,0,0,0,0) c1(raw,spd,3,1.5,1,0,30,3,20) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) c1(raw,spd,3,1.5,1,0,0,0,0) | |
972 | ||
973 | e() Anim = "None" Armz(true) | |
974 | ||
975 | elseif k == "z" and Anim=="None" then | |
976 | ||
977 | Anim = "Blackspace" Armz(false) Legz(false) caw = false | |
978 | ||
979 | c2(raw,spd,3,1.5,1,0,20,0,-20) c2(law,spd,3,-1.5,1,0,20,0,20) c2(rlw,spd,3,0.5,-1,0,20,0,-20) c2(llw,spd,3,-0.5,-1,0,20,0,20) c1(tw,spd*0.5,3,0,7,0,0,0,0) Blackspace(t.CFrame,40,3) | |
980 | ||
981 | c2(raw,spd,3,1.5,1,0,0,0,0) c2(law,spd,3,-1.5,1,0,0,0,0) c2(rlw,spd,3,0.5,-1,0,0,0,0) c2(llw,spd,3,-0.5,-1,0,0,0,0) c1(tw,spd,3,0,0,0,0,0,0) Anim = "None" Armz(true) Legz(true) caw = true | |
982 | ||
983 | elseif k == "g" and Anim=="None" then | |
984 | ||
985 | Anim = "MatterBall" e() Armz(false) fac = true | |
986 | ||
987 | c2(tw,spd*1.3,3,0,0,0,0,-90,0) c2(hw,spd*1.3,3,0,1.5,0,0,90,0) c1(law,spd*1.3,3,-1,0.5,0,50,0,90-math.deg((to.Position - mouse.hit.p).unit.y)) | |
988 | ||
989 | eb(laa,nil,3) wait(0.5) | |
990 | ||
991 | c2(tw,spd*1.55,3,0,0,0,0,70,0) c2(hw,spd*1.55,3,0,1.5,0,0,-70,0) c1(law,spd*1.55,3,-1,0.5,0,-20,0,90-math.deg((to.Position - mouse.hit.p).unit.y)) eb(laa,true,2) MatterBall(cn(db1.Position,la.CFrame*cn(0,-20,0).p),3,5,30,1.5) | |
992 | ||
993 | fac = false c2(tw,spd*1.3,3,0,0,0,0,0,0) c2(hw,spd*1.3,3,0,1.5,0,0,0,0) c1(law,spd*1.3,3,-1.5,1,0,0,0,0) e() Armz(true) wait(0.1) Anim = "None" | |
994 | ||
995 | elseif k == "r" and Anim=="None" then | |
996 | ||
997 | Anim = "Block" Armz(false) fac = true | |
998 | ||
999 | c2(tw,spd,3,0,0,0,0,-65,0) c2(hw,spd,3,0,1.5,0,0,65,0) c1(raw,spd,3,1.5,0.5,0.2,-100,-25,-5) c2(law,spd,3,-1.3,1,0.2,20,0,20) | |
1000 | ||
1001 | local spm = chak2.Mesh.Scale for i=1,11,1 do chak2.Reflectance = i/40 chak2.Mesh.Scale = spm*i wait() end | |
1002 | ||
1003 | block.Value = true repeat wait() until not ky[k] for i=11,1,-1 do chak2.Reflectance = i/40 chak2.Mesh.Scale = spm*i wait() end chak2.Reflectance = 0 | |
1004 | ||
1005 | block.Value = false c2(tw,spd*1.3,3,0,0,0,0,0,0) c2(hw,spd*1.3,3,0,1.5,0,0,0,0) c2(law,spd*1.3,3,-1.5,1,0,0,0,0) c1(raw,spd*1.3,3,1.5,1,0,0,0,0) Armz(true) fac = false Anim = "None" | |
1006 | ||
1007 | elseif k == "v" and Anim=="None" then | |
1008 | ||
1009 | Anim = "FistBoom" Armz(false) fac = true | |
1010 | ||
1011 | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) | |
1012 | ||
1013 | c2(hanw,spd*1.5,0,-0.1,-1.2,0,0,-30,100) c1(raw,spd*1.5,3,1.5,0.5,0,-135,-60,0) wait(0.2) FistBoom(cn(to.CFrame*cn(-1.5,1.5,-4).p,to.CFrame*cn(-1.5,1.5,-5).p),1,rn(d[1]*2,d[2]*2),(to.Position-v3(mouse.hit.p.x,to.Position.y,mouse.hit.p.z)).magnitude-10) fac = false c1(raw,spd,3,1,0.5,0,-50,70,0) | |
1014 | ||
1015 | wait(0.2) c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) | |
1016 | ||
1017 | c1(raw,spd*0.8,3,1.5,1,0,0,0,0) Armz(true) Anim = "None" | |
1018 | ||
1019 | elseif k=="n" and Anim=="None" then | |
1020 | ||
1021 | Anim = "Worm" Armz(false) e(3) fac = true caw = false | |
1022 | ||
1023 | c2(tw,spd,3,0,0,0,0,-90,0) c2(hw,spd,3,0,1.5,0,0,90,0) c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) | |
1024 | ||
1025 | c2(hanw,spd,0,-0.1,-1.5,0,0,0,180) c1(raw,spd,3,1,0.5,0,-180,0,-30) c1(raw,spd,3,1,0.5,0,0,0,-90) | |
1026 | ||
1027 | local tpos = mouse.hit.p if (tpos - bla2.Position).magnitude < 2000 then q(function() local to = pa(su,"","Block",2,1,2,false,true,0.1,0,"Navy blue") it('CylinderMesh',to) local to2 = pa(su,"","Block",0,0,0,false,true,0.1,0,"Navy blue") qi({"SpecialMesh",to2,Scale=v3(2,2,2),MeshType="FileMesh",MeshId=asset .. Decs.Totem}) | |
1028 | ||
1029 | for i=1,5,0.5 do to.Size=v3(2,i,2) to.CFrame=cn(tpos+v3(0,i/2,0)) to2.CFrame = to.CFrame*cn(0,(i/2)+1,0) wait() end wait(3.5) for i=0.2,1,0.1 do to.Transparency = i to2.Transparency = i wait() end to:Remove() to2:Remove() end) | |
1030 | ||
1031 | for i=1,8 do Lightning(bla2.Position,tpos,math.floor((bla2.Position-tpos).magnitude/18)+1,1.5,"Navy blue",0.3,0) wait(0.12) end fac = false | |
1032 | ||
1033 | caw = true q(function() wait(1) WormDrill(cn(tpos),rn(25,30)/10) end) c1(law,spd,3,-1.5,0.25,0,0,0,180) q(function() local to = pa(su,"","Block",1.5,1.5,1.5,false,true,0.1,0,"Navy blue") qi({"SpecialMesh",to,MeshType="Sphere"}) for i=1,15,1 do to.Size=v3(1.5,i*2,1.5) to.CFrame=la.CFrame*cn(0,-2+(-i),0) wait() end GlowMesh(false,"Sphere",t,v3(35,35,35),'Navy blue',la.CFrame*cn(0,-32,0),0.1,1,0.1) fade(to,0.1) end) | |
1034 | ||
1035 | end fac = false caw = true c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) | |
1036 | ||
1037 | c2(tw,spd,3,0,0,0,0,0,0) c2(hw,spd,3,0,1.5,0,0,0,0) c2(law,spd*0.8,3,-1.5,1,0,0,0,0) c1(raw,spd*0.8,3,1.5,1,0,0,0,0) Armz(true) e(3) Anim = "None" | |
1038 | ||
1039 | elseif k == "y" and Anim == "None" then | |
1040 | ||
1041 | Anim = "Whirlwind" Armz(false) e() fac = true | |
1042 | ||
1043 | c1(raw,spd*1.5,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd*1.5,3,1.5,0.5,0,-340,0,25) hanw.Part0 = raa hanw.C0 = cn(-0.1,-1.1,0)*ca(0,0,rd(75)) hanw.C1=ca(0,rd(-105),0) | |
1044 | ||
1045 | c2(hanw,spd,0,-0.1,-1.2,0,0,0,90) c2(hanw,spd,1,0,0,0,0,0,0) c1(raw,spd,3,1,0.5,0,-180,0,0) wait(0.1) | |
1046 | ||
1047 | local to = pa(su,"","Block",0,0,0,false,false,0.2,0,"Navy blue") it('CylinderMesh',to).Scale=v3(9,0.2,9)*5 local tom = qi({"Weld",to,Part0=ra,Part1=to}) | |
1048 | ||
1049 | q(function() for i=1,40 do if i == 20 then SpawnTornado(t.CFrame*cn(0,3,0),1,1.2,6) SpawnTornado(t.CFrame*ca(0,rd(-45),0)*cn(0,3,0),1,1.2,6) SpawnTornado(t.CFrame*ca(0,rd(45),0)*cn(0,3,0),1,1.2,6) end tom.C0 = cn(0,-2.3,0)*ca(rd(rn(-8,8)),0,rd(rn(-8,8))) wait() end fade(to,0.1) end) c1(hanw,spd*0.3,1,0,0,0,360*5,0,0) cleanweld(hanw,"a1") | |
1050 | ||
1051 | c2(hanw,spd*0.7,0,-0.1,-1.2,0,0,0,70) c1(raw,spd,3,1.5,0.5,0,-340/2,0,40) c1(raw,spd,3,1.5,0.5,0,-340,0,25) hanw.Part0 = t hanw.C1=ca(0,0,0) hanw.C0=cn(0.7,-0.7,0.65)*ca(0,0,rd(45))*ca(0,rd(90),0) | |
1052 | ||
1053 | c1(raw,spd,3,1.5,1,0,0,0,0) Armz(true) e() fac = false Anim ="None" | |
1054 | ||
1055 | end | |
1056 | ||
1057 | else | |
1058 | ||
1059 | if k == "q" then | |
1060 | ||
1061 | end -- q end | |
1062 | ||
1063 | end -- bool end | |
1064 | ||
1065 | end -- func end | |
1066 | ||
1067 | bin = it("HopperBin",bp) --bin = it("Tool") it("Part",bin).Name = "Handle" | |
1068 | ||
1069 | bin.Name = sn | |
1070 | ||
1071 | ---- TUT03LOL | |
1072 | ||
1073 | bin.Selected:connect(function(mouse2) mouse = mouse2 | |
1074 | ||
1075 | mouse.KeyDown:connect(function(k) ky[k:lower()] = true | |
1076 | ||
1077 | Act(k:lower(),true) end) | |
1078 | ||
1079 | mouse.KeyUp:connect(function(k) ky[k:lower()] = false | |
1080 | ||
1081 | Act(k:lower(),false) end) | |
1082 | ||
1083 | mouse.Button1Down:connect(function() end) | |
1084 | ||
1085 | end) | |
1086 | ||
1087 | ---- TUT04LOL | |
1088 | ||
1089 | bin.Deselected:connect(function() | |
1090 | ||
1091 | end) | |
1092 | ||
1093 | --bin.Parent = c | |
1094 | ||
1095 | fac = false local bgg = it('BodyGyro',to) | |
1096 | ||
1097 | ---- TUT05LOL | |
1098 | ||
1099 | q(function() while wait() do | |
1100 | ||
1101 | if caw then hu.WalkSpeed = wss else hu.WalkSpeed = 0 end | |
1102 | ||
1103 | if fac then bgg.maxTorque = v3(1/0,1/0,1/0) bgg.D = 50 bgg.cframe = cn(to.Position,v3(mouse.hit.p.x,to.Position.y,mouse.hit.p.z)) else bgg.maxTorque = v3(0,0,0) end | |
1104 | ||
1105 | end end) |