SHOW:
|
|
- or go back to the newest paste.
1 | loadstring(game:HttpGet("https://pastebin.com/raw/MwxMbBWp"))() | |
2 | -- Script -- | |
3 | local p = game.Players.LocalPlayer | |
4 | Player = game:GetService("Players").LocalPlayer | |
5 | Cha = Player.Character | |
6 | mouse = game.Players.LocalPlayer:GetMouse() | |
7 | name = Player.Name | |
8 | me = game.Players[name] | |
9 | laydown = false | |
10 | shoot = false | |
11 | camo = false | |
12 | prop = false | |
13 | ||
14 | Cha.Head.Transparency = 1 | |
15 | ||
16 | local new = Instance.new("Part", Player.Character) | |
17 | new.Name = "hed" | |
18 | new.formFactor = "Symmetric" | |
19 | new.TopSurface = "Smooth" | |
20 | new.BottomSurface = "Smooth" | |
21 | new.Transparency = 0 | |
22 | new.FormFactor = "Custom" | |
23 | new.Size = Cha.Head.Size | |
24 | new.CFrame = Player.Character.Head.CFrame | |
25 | new.BrickColor = Player.Character.Head.BrickColor | |
26 | newmeshhh = Instance.new("SpecialMesh",new) | |
27 | newmeshhh.MeshType = "Head" | |
28 | newmeshhh.Scale = Vector3.new(1.2,1.2,1.2) | |
29 | weldT = Instance.new("Weld", Player.Character.Torso) | |
30 | weldT.Part0 = Player.Character.Head | |
31 | weldT.Part1 = new | |
32 | weldT.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
33 | ||
34 | ||
35 | function rand(a)return (math.random()-.5)*2*a end | |
36 | function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end | |
37 | function fade(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,1,increment do part.Transparency = part.Transparency+increment wait(1/30)end end,{p,s,inc})end | |
38 | function appear(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,0,-increment do part.Transparency = part.Transparency-increment wait(1/30)end end,{p,s,inc})end | |
39 | function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref) | |
40 | local p = Instance.new("Part",Parent)p.Name = Name | |
41 | p.FormFactor = "Custom"p.Size = Size | |
42 | p.Anchored = Anch p.CFrame = CFrame | |
43 | p.BrickColor = BrickColor.new(Color)p.Transparency = Trans | |
44 | p.TopSurface = 0 p.CanCollide = Can | |
45 | p.BottomSurface = 0 p.Material = Mat | |
46 | p.Reflectance = Ref or 0;p:BreakJoints() | |
47 | p.Locked = true;return p | |
48 | end | |
49 | function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref) | |
50 | local p = Instance.new("WedgePart",Parent)p.Name = Name | |
51 | p.FormFactor = "Custom"p.Size = Size | |
52 | p.Anchored = Anch p.CFrame = CFrame | |
53 | p.BrickColor = BrickColor.new(Color)p.Transparency = Trans | |
54 | p.TopSurface = 0 p.CanCollide = Can | |
55 | p.BottomSurface = 0 p.Material = Mat | |
56 | p.Reflectance = Ref or 0;p:BreakJoints() | |
57 | p.Locked = true;return p | |
58 | end | |
59 | function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref) | |
60 | local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size | |
61 | p.Anchored = Anch p.CFrame = CFrame | |
62 | p.BrickColor = BrickColor.new(Color)p.Transparency = Trans | |
63 | p.TopSurface = 0 p.CanCollide = Can | |
64 | p.BottomSurface = 0 p.Material = Mat | |
65 | p.Reflectance = Ref or 0;p:BreakJoints() | |
66 | p.Locked = true;return p | |
67 | end | |
68 | function Mesh(Parent,Type,Scale,ID,TID) | |
69 | local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type | |
70 | m.Scale = Scale or Vector3.new(1,1,1) | |
71 | if ID then m.MeshId = ID end if TID then m.TextureId = TID end | |
72 | return m | |
73 | end | |
74 | function Weld(p1,p2,c0,c1) | |
75 | local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2 | |
76 | w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new() | |
77 | return w | |
78 | end | |
79 | function cslerp(start,destination,increment) | |
80 | local function s(a,b,c)return (1-c)*a+(c*b)end | |
81 | local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()} | |
82 | local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()} | |
83 | for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end | |
84 | return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6]) | |
85 | end | |
86 | local char | |
87 | function rayCast(pos,dir,collidedlist,startpos,endpos,distleft) | |
88 | collidedlist = collidedlist | |
89 | startpos = startpos or pos | |
90 | distleft = distleft or dir.unit * dir.magnitude | |
91 | endpos = endpos or pos + distleft | |
92 | local ray = Ray.new(pos,distleft) | |
93 | local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist) | |
94 | if hitz~=nil then | |
95 | if hitz.CanCollide==false then | |
96 | table.insert(collidedlist,hitz) | |
97 | local newpos = enz | |
98 | local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude) | |
99 | if newdistleft~=Vector3.new()then | |
100 | return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01)) | |
101 | end | |
102 | end | |
103 | end | |
104 | return hitz,enz,ray | |
105 | end | |
106 | function findSurface(part,position) | |
107 | local obj = part.CFrame:pointToObjectSpace(position) | |
108 | local siz = part.Size/2 | |
109 | for i,v in pairs(Enum.NormalId:GetEnumItems()) do | |
110 | local vec = Vector3.FromNormalId(v) | |
111 | local wvec = part.CFrame:vectorToWorldSpace(vec) | |
112 | local vz = (obj)/(siz*vec) | |
113 | if (math.abs(vz.X-1)<0.01 or math.abs(vz.Y-1)<0.01 or math.abs(vz.Z-1)<0.01) then | |
114 | return wvec,vec | |
115 | end | |
116 | end | |
117 | end | |
118 | ---------------- | |
119 | Player=game:GetService("Players").LocalPlayer | |
120 | Character=Player.Character | |
121 | Cha=Character | |
122 | PlayerGui=Player.PlayerGui | |
123 | Backpack=Player.Backpack | |
124 | Torso=Character.Torso | |
125 | Head=Character.Head | |
126 | Humanoid=Character.Humanoid | |
127 | m=Instance.new('Model',Character) | |
128 | LeftArm=Character["Left Arm"] | |
129 | LeftLeg=Character["Left Leg"] | |
130 | RightArm=Character["Right Arm"] | |
131 | RightLeg=Character["Right Leg"] | |
132 | LS=Torso["Left Shoulder"] | |
133 | LH=Torso["Left Hip"] | |
134 | RS=Torso["Right Shoulder"] | |
135 | RH=Torso["Right Hip"] | |
136 | Face = Head.face | |
137 | Neck=Torso.Neck | |
138 | it=Instance.new | |
139 | attacktype=1 | |
140 | vt=Vector3.new | |
141 | cf=CFrame.new | |
142 | euler=CFrame.fromEulerAnglesXYZ | |
143 | angles=CFrame.Angles | |
144 | cloaked=false | |
145 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
146 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
147 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
148 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
149 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
150 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
151 | RootPart=Character.HumanoidRootPart | |
152 | RootJoint=RootPart.RootJoint | |
153 | RootCF=euler(-1.57,0,3.14) | |
154 | attack = false | |
155 | attackdebounce = false | |
156 | deb=false | |
157 | equipped=true | |
158 | hand=false | |
159 | MMouse=nil | |
160 | combo=0 | |
161 | mana=0 | |
162 | trispeed=.2 | |
163 | attackmode='none' | |
164 | local idle=0 | |
165 | local Anim="Idle" | |
166 | local Effects={} | |
167 | local gun=false | |
168 | local shoot=false | |
169 | player=nil | |
170 | mana=0 | |
171 | Attacking=false | |
172 | asset = "http://www.roblox.com/asset/?id=" | |
173 | meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362} | |
174 | ||
175 | ||
176 | mouse=Player:GetMouse() | |
177 | --save shoulders | |
178 | RSH, LSH=nil, nil | |
179 | --welds | |
180 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
181 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
182 | LH=Torso["Left Hip"] | |
183 | RH=Torso["Right Hip"] | |
184 | TorsoColor=Torso.BrickColor | |
185 | function NoOutline(Part) | |
186 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
187 | end | |
188 | player=Player | |
189 | ch=Character | |
190 | RSH=ch.Torso["Right Shoulder"] | |
191 | LSH=ch.Torso["Left Shoulder"] | |
192 | -- | |
193 | --RSH.Parent=nil | |
194 | --LSH.Parent=nil | |
195 | -- | |
196 | RW.Name="Right Shoulder" | |
197 | RW.Part0=ch.Torso | |
198 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
199 | RW.C1=cf(0, 0.5, 0) | |
200 | RW.Part1=ch["Right Arm"] | |
201 | RW.Parent=ch.Torso | |
202 | -- | |
203 | LW.Name="Left Shoulder" | |
204 | LW.Part0=ch.Torso | |
205 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
206 | LW.C1=cf(0, 0.5, 0) | |
207 | LW.Part1=ch["Left Arm"] | |
208 | LW.Parent=ch.Torso | |
209 | ||
210 | Player=game:GetService('Players').LocalPlayer | |
211 | Character=Player.Character | |
212 | Mouse=Player:GetMouse() | |
213 | m=Instance.new('Model',Character) | |
214 | ||
215 | ||
216 | local function weldBetween(a, b) | |
217 | local weldd = Instance.new("ManualWeld") | |
218 | weldd.Part0 = a | |
219 | weldd.Part1 = b | |
220 | weldd.C0 = CFrame.new() | |
221 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
222 | weldd.Parent = a | |
223 | return weldd | |
224 | end | |
225 | ||
226 | it=Instance.new | |
227 | ||
228 | function nooutline(part) | |
229 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
230 | end | |
231 | ||
232 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
233 | local fp=it("Part") | |
234 | fp.formFactor=formfactor | |
235 | fp.Parent=parent | |
236 | fp.Reflectance=reflectance | |
237 | fp.Transparency=transparency | |
238 | fp.CanCollide=false | |
239 | fp.Locked=true | |
240 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
241 | fp.Name=name | |
242 | fp.Size=size | |
243 | fp.Position=Character.Torso.Position | |
244 | nooutline(fp) | |
245 | fp.Material=material | |
246 | fp:BreakJoints() | |
247 | return fp | |
248 | end | |
249 | ||
250 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
251 | local mesh=it(Mesh) | |
252 | mesh.Parent=part | |
253 | if Mesh=="SpecialMesh" then | |
254 | mesh.MeshType=meshtype | |
255 | mesh.MeshId=meshid | |
256 | end | |
257 | mesh.Offset=offset | |
258 | mesh.Scale=scale | |
259 | return mesh | |
260 | end | |
261 | ||
262 | function weld(parent,part0,part1,c0,c1) | |
263 | local weld=it("Weld") | |
264 | weld.Parent=parent | |
265 | weld.Part0=part0 | |
266 | weld.Part1=part1 | |
267 | weld.C0=c0 | |
268 | weld.C1=c1 | |
269 | return weld | |
270 | end | |
271 | ||
272 | ||
273 | Player=game:GetService('Players').LocalPlayer | |
274 | Character=Player.Character | |
275 | Mouse=Player:GetMouse() | |
276 | m=Instance.new('Model',Character) | |
277 | ||
278 | ||
279 | local function weldBetween(a, b) | |
280 | local weldd = Instance.new("ManualWeld") | |
281 | weldd.Part0 = a | |
282 | weldd.Part1 = b | |
283 | weldd.C0 = CFrame.new() | |
284 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
285 | weldd.Parent = a | |
286 | return weldd | |
287 | end | |
288 | ||
289 | it=Instance.new | |
290 | ||
291 | function nooutline(part) | |
292 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
293 | end | |
294 | ||
295 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
296 | local fp=it("Part") | |
297 | fp.formFactor=formfactor | |
298 | fp.Parent=parent | |
299 | fp.Reflectance=reflectance | |
300 | fp.Transparency=transparency | |
301 | fp.CanCollide=false | |
302 | fp.Locked=true | |
303 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
304 | fp.Name=name | |
305 | fp.Size=size | |
306 | fp.Position=Character.Torso.Position | |
307 | nooutline(fp) | |
308 | fp.Material=material | |
309 | fp:BreakJoints() | |
310 | return fp | |
311 | end | |
312 | ||
313 | function swait(num) | |
314 | if num==0 or num==nil then | |
315 | game:service'RunService'.Stepped:wait(0) | |
316 | else | |
317 | for i=0,num do | |
318 | game:service'RunService'.Stepped:wait(0) | |
319 | end | |
320 | end | |
321 | end | |
322 | ||
323 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
324 | local mesh=it(Mesh) | |
325 | mesh.Parent=part | |
326 | if Mesh=="SpecialMesh" then | |
327 | mesh.MeshType=meshtype | |
328 | mesh.MeshId=meshid | |
329 | end | |
330 | mesh.Offset=offset | |
331 | mesh.Scale=scale | |
332 | return mesh | |
333 | end | |
334 | ||
335 | function weld(parent,part0,part1,c0,c1) | |
336 | local weld=it("Weld") | |
337 | weld.Parent=parent | |
338 | weld.Part0=part0 | |
339 | weld.Part1=part1 | |
340 | weld.C0=c0 | |
341 | weld.C1=c1 | |
342 | return weld | |
343 | end | |
344 | ||
345 | ||
346 | local function CFrameFromTopBack(at, top, back) | |
347 | local right = top:Cross(back) | |
348 | return CFrame.new(at.x, at.y, at.z, | |
349 | right.x, top.x, back.x, | |
350 | right.y, top.y, back.y, | |
351 | right.z, top.z, back.z) | |
352 | end | |
353 | ||
354 | function Triangle(a, b, c) | |
355 | local edg1 = (c-a):Dot((b-a).unit) | |
356 | local edg2 = (a-b):Dot((c-b).unit) | |
357 | local edg3 = (b-c):Dot((a-c).unit) | |
358 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
359 | a, b, c = a, b, c | |
360 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
361 | a, b, c = b, c, a | |
362 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
363 | a, b, c = c, a, b | |
364 | else | |
365 | assert(false, "unreachable") | |
366 | end | |
367 | ||
368 | local len1 = (c-a):Dot((b-a).unit) | |
369 | local len2 = (b-a).magnitude - len1 | |
370 | local width = (a + (b-a).unit*len1 - c).magnitude | |
371 | ||
372 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
373 | ||
374 | local list = {} | |
375 | ||
376 | local Color = BrickColor.new("Really black") | |
377 | ||
378 | if len1 > 0.01 then | |
379 | local w1 = Instance.new('WedgePart', m) | |
380 | game:GetService("Debris"):AddItem(w1,5) | |
381 | w1.Material = "SmoothPlastic" | |
382 | w1.FormFactor = 'Custom' | |
383 | w1.BrickColor = Color | |
384 | w1.Transparency = 0 | |
385 | w1.Reflectance = 0 | |
386 | w1.Material = "SmoothPlastic" | |
387 | w1.CanCollide = false | |
388 | NoOutline(w1) | |
389 | local sz = Vector3.new(0.2, width, len1) | |
390 | w1.Size = sz | |
391 | local sp = Instance.new("SpecialMesh",w1) | |
392 | sp.MeshType = "Wedge" | |
393 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
394 | w1:BreakJoints() | |
395 | w1.Anchored = false | |
396 | w1.Parent = workspace | |
397 | w1.Transparency = 0.7 | |
398 | table.insert(Effects,{w1,"Disappear",.01}) | |
399 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
400 | table.insert(list,w1) | |
401 | end | |
402 | ||
403 | if len2 > 0.01 then | |
404 | local w2 = Instance.new('WedgePart', m) | |
405 | game:GetService("Debris"):AddItem(w2,5) | |
406 | w2.Material = "SmoothPlastic" | |
407 | w2.FormFactor = 'Custom' | |
408 | w2.BrickColor = Color | |
409 | w2.Transparency = 0 | |
410 | w2.Reflectance = 0 | |
411 | w2.Material = "SmoothPlastic" | |
412 | w2.CanCollide = false | |
413 | NoOutline(w2) | |
414 | local sz = Vector3.new(0.2, width, len2) | |
415 | w2.Size = sz | |
416 | local sp = Instance.new("SpecialMesh",w2) | |
417 | sp.MeshType = "Wedge" | |
418 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
419 | w2:BreakJoints() | |
420 | w2.Anchored = false | |
421 | w2.Parent = workspace | |
422 | w2.Transparency = 0.7 | |
423 | table.insert(Effects,{w2,"Disappear",.01}) | |
424 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
425 | table.insert(list,w2) | |
426 | end | |
427 | return unpack(list) | |
428 | end | |
429 | ||
430 | ||
431 | so = function(id,par,vol,pit) | |
432 | coroutine.resume(coroutine.create(function() | |
433 | local sou = Instance.new("Sound",par or workspace) | |
434 | sou.Volume=vol | |
435 | sou.Pitch=pit or 1 | |
436 | sou.SoundId=id | |
437 | swait() | |
438 | sou:play() | |
439 | game:GetService("Debris"):AddItem(sou,6) | |
440 | end)) | |
441 | end | |
442 | ||
443 | function clerp(a,b,t) | |
444 | local qa = {QuaternionFromCFrame(a)} | |
445 | local qb = {QuaternionFromCFrame(b)} | |
446 | local ax, ay, az = a.x, a.y, a.z | |
447 | local bx, by, bz = b.x, b.y, b.z | |
448 | local _t = 1-t | |
449 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
450 | end | |
451 | ||
452 | function QuaternionFromCFrame(cf) | |
453 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
454 | local trace = m00 + m11 + m22 | |
455 | if trace > 0 then | |
456 | local s = math.sqrt(1 + trace) | |
457 | local recip = 0.5/s | |
458 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
459 | else | |
460 | local i = 0 | |
461 | if m11 > m00 then | |
462 | i = 1 | |
463 | end | |
464 | if m22 > (i == 0 and m00 or m11) then | |
465 | i = 2 | |
466 | end | |
467 | if i == 0 then | |
468 | local s = math.sqrt(m00-m11-m22+1) | |
469 | local recip = 0.5/s | |
470 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
471 | elseif i == 1 then | |
472 | local s = math.sqrt(m11-m22-m00+1) | |
473 | local recip = 0.5/s | |
474 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
475 | elseif i == 2 then | |
476 | local s = math.sqrt(m22-m00-m11+1) | |
477 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
478 | end | |
479 | end | |
480 | end | |
481 | ||
482 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
483 | local xs, ys, zs = x + x, y + y, z + z | |
484 | local wx, wy, wz = w*xs, w*ys, w*zs | |
485 | local xx = x*xs | |
486 | local xy = x*ys | |
487 | local xz = x*zs | |
488 | local yy = y*ys | |
489 | local yz = y*zs | |
490 | local zz = z*zs | |
491 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
492 | end | |
493 | ||
494 | function QuaternionSlerp(a, b, t) | |
495 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
496 | local startInterp, finishInterp; | |
497 | if cosTheta >= 0.0001 then | |
498 | if (1 - cosTheta) > 0.0001 then | |
499 | local theta = math.acos(cosTheta) | |
500 | local invSinTheta = 1/math.sin(theta) | |
501 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
502 | finishInterp = math.sin(t*theta)*invSinTheta | |
503 | else | |
504 | startInterp = 1-t | |
505 | finishInterp = t | |
506 | end | |
507 | else | |
508 | if (1+cosTheta) > 0.0001 then | |
509 | local theta = math.acos(-cosTheta) | |
510 | local invSinTheta = 1/math.sin(theta) | |
511 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
512 | finishInterp = math.sin(t*theta)*invSinTheta | |
513 | else | |
514 | startInterp = t-1 | |
515 | finishInterp = t | |
516 | end | |
517 | end | |
518 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
519 | end | |
520 | ||
521 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
522 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
523 | end | |
524 | ||
525 | local function CFrameFromTopBack(at, top, back) | |
526 | local right = top:Cross(back) | |
527 | return CFrame.new(at.x, at.y, at.z, | |
528 | right.x, top.x, back.x, | |
529 | right.y, top.y, back.y, | |
530 | right.z, top.z, back.z) | |
531 | end | |
532 | ||
533 | function Triangle(a, b, c) | |
534 | local edg1 = (c-a):Dot((b-a).unit) | |
535 | local edg2 = (a-b):Dot((c-b).unit) | |
536 | local edg3 = (b-c):Dot((a-c).unit) | |
537 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
538 | a, b, c = a, b, c | |
539 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
540 | a, b, c = b, c, a | |
541 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
542 | a, b, c = c, a, b | |
543 | else | |
544 | assert(false, "unreachable") | |
545 | end | |
546 | ||
547 | local len1 = (c-a):Dot((b-a).unit) | |
548 | local len2 = (b-a).magnitude - len1 | |
549 | local width = (a + (b-a).unit*len1 - c).magnitude | |
550 | ||
551 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
552 | ||
553 | local list = {} | |
554 | ||
555 | if len1 > 0.01 then | |
556 | local w1 = Instance.new('WedgePart', m) | |
557 | game:GetService("Debris"):AddItem(w1,5) | |
558 | w1.Material = "SmoothPlastic" | |
559 | w1.FormFactor = 'Custom' | |
560 | w1.BrickColor = BrickColor.new("Really black") | |
561 | w1.Transparency = 0 | |
562 | w1.Reflectance = 0 | |
563 | w1.Material = "SmoothPlastic" | |
564 | w1.CanCollide = false | |
565 | NoOutline(w1) | |
566 | local sz = Vector3.new(0.2, width, len1) | |
567 | w1.Size = sz | |
568 | local sp = Instance.new("SpecialMesh",w1) | |
569 | sp.MeshType = "Wedge" | |
570 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
571 | w1:BreakJoints() | |
572 | w1.Anchored = false | |
573 | w1.Parent = workspace | |
574 | w1.Transparency = 0.7 | |
575 | table.insert(Effects,{w1,"Disappear",.01}) | |
576 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
577 | table.insert(list,w1) | |
578 | end | |
579 | ||
580 | if len2 > 0.01 then | |
581 | local w2 = Instance.new('WedgePart', m) | |
582 | game:GetService("Debris"):AddItem(w2,5) | |
583 | w2.Material = "SmoothPlastic" | |
584 | w2.FormFactor = 'Custom' | |
585 | w2.BrickColor = BrickColor.new("Really black") | |
586 | w2.Transparency = 0 | |
587 | w2.Reflectance = 0 | |
588 | w2.Material = "SmoothPlastic" | |
589 | w2.CanCollide = false | |
590 | NoOutline(w2) | |
591 | local sz = Vector3.new(0.2, width, len2) | |
592 | w2.Size = sz | |
593 | local sp = Instance.new("SpecialMesh",w2) | |
594 | sp.MeshType = "Wedge" | |
595 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
596 | w2:BreakJoints() | |
597 | w2.Anchored = false | |
598 | w2.Parent = workspace | |
599 | w2.Transparency = 0.7 | |
600 | table.insert(Effects,{w2,"Disappear",.01}) | |
601 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
602 | table.insert(list,w2) | |
603 | end | |
604 | return unpack(list) | |
605 | end | |
606 | ||
607 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
608 | if hit.Parent==nil then | |
609 | return | |
610 | end | |
611 | h=hit.Parent:FindFirstChild("Humanoid") | |
612 | for _,v in pairs(hit.Parent:children()) do | |
613 | if v:IsA("Humanoid") then | |
614 | h=v | |
615 | end | |
616 | end | |
617 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
618 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
619 | end | |
620 | if hit.Parent.className=="Hat" then | |
621 | hit=hit.Parent.Parent:findFirstChild("Head") | |
622 | end | |
623 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
624 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
625 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
626 | return | |
627 | end]] | |
628 | -- hs(hit,1.2) | |
629 | c=Instance.new("ObjectValue") | |
630 | c.Name="creator" | |
631 | c.Value=game:service("Players").LocalPlayer | |
632 | c.Parent=h | |
633 | game:GetService("Debris"):AddItem(c,.5) | |
634 | Damage=math.random(minim,maxim) | |
635 | -- h:TakeDamage(Damage) | |
636 | blocked=false | |
637 | block=hit.Parent:findFirstChild("Block") | |
638 | if block~=nil then | |
639 | print(block.className) | |
640 | if block.className=="NumberValue" then | |
641 | if block.Value>0 then | |
642 | blocked=true | |
643 | if decreaseblock==nil then | |
644 | block.Value=block.Value-1 | |
645 | end | |
646 | end | |
647 | end | |
648 | if block.className=="IntValue" then | |
649 | if block.Value>0 then | |
650 | blocked=true | |
651 | if decreaseblock~=nil then | |
652 | block.Value=block.Value-1 | |
653 | end | |
654 | end | |
655 | end | |
656 | end | |
657 | if blocked==false then | |
658 | -- h:TakeDamage(Damage) | |
659 | h.Health=h.Health-Damage | |
660 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey")) | |
661 | else | |
662 | h.Health=h.Health-(Damage/2) | |
663 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
664 | end | |
665 | if Type=="Knockdown" then | |
666 | hum=hit.Parent.Humanoid | |
667 | hum.PlatformStand=true | |
668 | coroutine.resume(coroutine.create(function(HHumanoid) | |
669 | swait(1) | |
670 | HHumanoid.PlatformStand=false | |
671 | end),hum) | |
672 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
673 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
674 | local bodvol=Instance.new("BodyVelocity") | |
675 | bodvol.velocity=angle*knockback | |
676 | bodvol.P=5000 | |
677 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
678 | bodvol.Parent=hit | |
679 | rl=Instance.new("BodyAngularVelocity") | |
680 | rl.P=3000 | |
681 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
682 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
683 | rl.Parent=hit | |
684 | game:GetService("Debris"):AddItem(bodvol,.5) | |
685 | game:GetService("Debris"):AddItem(rl,.5) | |
686 | elseif Type=="Normal" then | |
687 | vp=Instance.new("BodyVelocity") | |
688 | vp.P=500 | |
689 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
690 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
691 | if KnockbackType==1 then | |
692 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
693 | elseif KnockbackType==2 then | |
694 | vp.velocity=Property.CFrame.lookVector*knockback | |
695 | end | |
696 | if knockback>0 then | |
697 | vp.Parent=hit.Parent.Torso | |
698 | end | |
699 | game:GetService("Debris"):AddItem(vp,.5) | |
700 | elseif Type=="Up" then | |
701 | local bodyVelocity=Instance.new("BodyVelocity") | |
702 | bodyVelocity.velocity=vt(0,60,0) | |
703 | bodyVelocity.P=5000 | |
704 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
705 | bodyVelocity.Parent=hit | |
706 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
707 | rl=Instance.new("BodyAngularVelocity") | |
708 | rl.P=3000 | |
709 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
710 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
711 | rl.Parent=hit | |
712 | game:GetService("Debris"):AddItem(rl,.5) | |
713 | elseif Type=="Snare" then | |
714 | bp=Instance.new("BodyPosition") | |
715 | bp.P=2000 | |
716 | bp.D=100 | |
717 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
718 | bp.position=hit.Parent.Torso.Position | |
719 | bp.Parent=hit.Parent.Torso | |
720 | game:GetService("Debris"):AddItem(bp,1) | |
721 | elseif Type=="Target" then | |
722 | if Targetting==false then | |
723 | ZTarget=hit.Parent.Torso | |
724 | coroutine.resume(coroutine.create(function(Part) | |
725 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
726 | swait(5) | |
727 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
728 | end),ZTarget) | |
729 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
730 | targetgui=Instance.new("BillboardGui") | |
731 | targetgui.Parent=ZTarget | |
732 | targetgui.Size=UDim2.new(10,100,10,100) | |
733 | targ=Instance.new("ImageLabel") | |
734 | targ.Parent=targetgui | |
735 | targ.BackgroundTransparency=1 | |
736 | targ.Image="rbxassetid://4834067" | |
737 | targ.Size=UDim2.new(1,0,1,0) | |
738 | cam.CameraType="Scriptable" | |
739 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
740 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
741 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
742 | Targetting=true | |
743 | RocketTarget=ZTarget | |
744 | for i=1,Property do | |
745 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
746 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
747 | swait() | |
748 | end | |
749 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
750 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
751 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
752 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
753 | end | |
754 | Targetting=false | |
755 | RocketTarget=nil | |
756 | targetgui.Parent=nil | |
757 | cam.CameraType="Custom" | |
758 | end | |
759 | end | |
760 | debounce=Instance.new("BoolValue") | |
761 | debounce.Name="DebounceHit" | |
762 | debounce.Parent=hit.Parent | |
763 | debounce.Value=true | |
764 | game:GetService("Debris"):AddItem(debounce,Delay) | |
765 | c=Instance.new("ObjectValue") | |
766 | c.Name="creator" | |
767 | c.Value=Player | |
768 | c.Parent=h | |
769 | game:GetService("Debris"):AddItem(c,.5) | |
770 | CRIT=false | |
771 | hitDeb=true | |
772 | AttackPos=6 | |
773 | end | |
774 | end | |
775 | ||
776 | showDamage=function(Char,Dealt,du,Color) | |
777 | m=Instance.new("Model") | |
778 | m.Name=tostring(Dealt) | |
779 | h=Instance.new("Humanoid") | |
780 | h.Health=0 | |
781 | h.MaxHealth=0 | |
782 | h.Parent=m | |
783 | c=Instance.new("Part") | |
784 | c.Transparency=0 | |
785 | c.BrickColor=Color | |
786 | c.Name="Head" | |
787 | c.TopSurface=0 | |
788 | c.BottomSurface=0 | |
789 | c.formFactor="Plate" | |
790 | c.Size=Vector3.new(1,.4,1) | |
791 | ms=Instance.new("CylinderMesh") | |
792 | ms.Scale=Vector3.new(.8,.8,.8) | |
793 | if CRIT==true then | |
794 | ms.Scale=Vector3.new(1,1.25,1) | |
795 | end | |
796 | ms.Parent=c | |
797 | c.Reflectance=0 | |
798 | Instance.new("BodyGyro").Parent=c | |
799 | c.Parent=m | |
800 | if Char:findFirstChild("Head")~=nil then | |
801 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
802 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
803 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
804 | end | |
805 | f=Instance.new("BodyPosition") | |
806 | f.P=2000 | |
807 | f.D=100 | |
808 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
809 | f.position=c.Position+Vector3.new(0,3,0) | |
810 | f.Parent=c | |
811 | game:GetService("Debris"):AddItem(m,.5+du) | |
812 | c.CanCollide=false | |
813 | m.Parent=workspace | |
814 | c.CanCollide=false | |
815 | end | |
816 | function Smoke(origin,color) | |
817 | local p = Part("Effect",workspace,Vector3.new(2,2,2),origin*CFrame.new(rand(5),-1,rand(5)),color or "Black",.1,false,false,"SmoothPlastic") | |
818 | local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25)) | |
819 | local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0) | |
820 | q(function(pa,me) | |
821 | fade(pa,.1) | |
822 | for i=25,100 do | |
823 | me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15) | |
824 | wait(1/30) | |
825 | end | |
826 | pa:Destroy() | |
827 | end,{p,m}) | |
828 | end | |
829 | function brickMagic(origin,color,size) | |
830 | local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic") | |
831 | local m = Mesh(p,"Brick") | |
832 | q(function(pa,me) | |
833 | fade(pa,.2) | |
834 | for i=20,100 do | |
835 | me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05) | |
836 | wait(1/30) | |
837 | end | |
838 | pa:Destroy() | |
839 | end,{p,m}) | |
840 | end | |
841 | function spikeMagic(origin,size,color) | |
842 | local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic") | |
843 | local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"]) | |
844 | q(function(pa,me) | |
845 | appear(pa,1) | |
846 | for i=1,size,.5 do | |
847 | wait(1/30) | |
848 | pa.CFrame = pa.CFrame*CFrame.new(0,.5,0) | |
849 | end | |
850 | wait(math.random(2,3))fade(pa,0) | |
851 | Delay(3,function()pa:Destroy()end) | |
852 | end,{p,m}) | |
853 | end | |
854 | function placePart(origin,size,color,material) | |
855 | local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material) | |
856 | local m = Mesh(p,"Brick") | |
857 | q(function(pa,me) | |
858 | wait(5) | |
859 | fade(pa,0) | |
860 | Delay(1.25,function()pa:Destroy()end) | |
861 | end,{p,m}) | |
862 | end | |
863 | function placePartRandSize(origin,min,max,color,material) | |
864 | local p = Part("Effect",workspace,Vector3.new(math.random(min,max),math.random(min,max),math.random(min,max)),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material) | |
865 | local m = Mesh(p,"Brick") | |
866 | q(function(pa,me) | |
867 | wait(5) | |
868 | fade(pa,0) | |
869 | Delay(1.25,function()pa:Destroy()end) | |
870 | end,{p,m}) | |
871 | end | |
872 | function crater(origin,dist) | |
873 | local b = workspace.Base | |
874 | local bc = b and tostring(b.BrickColor) or "Bright green" | |
875 | local m = b and b.Material or "Grass" | |
876 | for i=0,360,30 do | |
877 | local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5)) | |
878 | placePartRandSize(cf,5,15,bc,m) | |
879 | end | |
880 | end | |
881 | function cylinderExplode(origin,color,size,ysize) | |
882 | local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic") | |
883 | local m = Instance.new("CylinderMesh",p) | |
884 | q(function(pa,me) | |
885 | for i=.2,1,.0075 do | |
886 | me.Scale = me.Scale+Vector3.new(.1,0,.1) | |
887 | pa.Transparency = i | |
888 | wait(1/30) | |
889 | end | |
890 | pa:Destroy() | |
891 | end,{p,m}) | |
892 | end | |
893 | function ringExplode(origin,color,size) | |
894 | local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic") | |
895 | local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"]) | |
896 | q(function(pa,me) | |
897 | for i=.2,1,.0075 do | |
898 | me.Scale = me.Scale+Vector3.new(0.25,0.25,0) | |
899 | pa.Transparency = i | |
900 | wait(1/30) | |
901 | end | |
902 | pa:Destroy() | |
903 | end,{p,m}) | |
904 | end | |
905 | function crownExplode(origin,color,size) | |
906 | local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic") | |
907 | local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"]) | |
908 | q(function(pa,me) | |
909 | for i=.2,1,.025 do | |
910 | me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75) | |
911 | pa.Transparency = i | |
912 | wait(1/30) | |
913 | end | |
914 | pa:Destroy() | |
915 | end,{p,m}) | |
916 | end | |
917 | function glitter(origin,color) | |
918 | local p = Part("Effect",workspace,Vector3.new(0.75,0.75,0.75),origin*CFrame.new(rand(5),rand(5),rand(5))*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,false,"SmoothPlastic") | |
919 | local m = Mesh(p,"Brick",Vector3.new(1,1,1)) | |
920 | q(function(pa,me) | |
921 | fade(pa,0) | |
922 | for i=0,1,.05 do | |
923 | me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05) | |
924 | wait(1/30) | |
925 | end | |
926 | pa:Destroy() | |
927 | end,{p,m}) | |
928 | end | |
929 | function sphereExtend(origin,color,size) | |
930 | local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic") | |
931 | local m = Mesh(p,"Sphere") | |
932 | q(function(pa,me) | |
933 | for i=0,1,0.05 do | |
934 | me.Scale = me.Scale+Vector3.new(0,i*10,0) | |
935 | pa.Transparency = i | |
936 | wait(1/30) | |
937 | end | |
938 | pa:Destroy() | |
939 | end,{p,m}) | |
940 | end | |
941 | function quickSound(id,v) | |
942 | local s = Instance.new("Sound",workspace) | |
943 | s.SoundId = id | |
944 | s.PlayOnRemove = true | |
945 | s.Volume = v or 1 | |
946 | delay(0.025,function()s:remove()end) | |
947 | end | |
948 | function checkDmgArea(origin,dmg,d) | |
949 | for i,v in pairs(workspace:children())do | |
950 | if v~=char and v:FindFirstChild("Torso") then | |
951 | local h; | |
952 | for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end | |
953 | local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude | |
954 | if dist < d and h~=nil then | |
955 | h.Health = h.Health - dmg | |
956 | end | |
957 | end | |
958 | end | |
959 | end | |
960 | ||
961 | ||
962 | ||
963 | p1 = Instance.new("Part", Cha) | |
964 | p1.BrickColor = BrickColor.new("Really black") | |
965 | p1.FormFactor = Enum.FormFactor.Custom | |
966 | p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
967 | p1.CFrame = CFrame.new(-0.0500000007, 10.3249998, 8.20000172, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
968 | p1.Anchored = false | |
969 | p1.CanCollide = false | |
970 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
971 | p1.TopSurface = Enum.SurfaceType.Smooth | |
972 | b1 = Instance.new("SpecialMesh", p1) | |
973 | b1.MeshType = Enum.MeshType.Brick | |
974 | b1.Name = "Mesh" | |
975 | b1.Scale = Vector3.new(0.50000006, 0.75, 0.50000006) | |
976 | p2 = Instance.new("Part", Cha) | |
977 | p2.BrickColor = BrickColor.new("Really black") | |
978 | p2.FormFactor = Enum.FormFactor.Custom | |
979 | p2.Size = Vector3.new(0.200000003, 0.200000003, 2) | |
980 | p2.CFrame = CFrame.new(-0.0500000007, 10.3249998, 12.4000015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
981 | p2.Anchored = false | |
982 | p2.CanCollide = false | |
983 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
984 | p2.TopSurface = Enum.SurfaceType.Smooth | |
985 | b2 = Instance.new("SpecialMesh", p2) | |
986 | b2.MeshType = Enum.MeshType.Brick | |
987 | b2.Name = "Mesh" | |
988 | b2.Scale = Vector3.new(0.99999994, 0.750000238, 1) | |
989 | p3 = Instance.new("Part", Cha) | |
990 | p3.BrickColor = BrickColor.new("Really black") | |
991 | p3.FormFactor = Enum.FormFactor.Custom | |
992 | p3.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006) | |
993 | p3.CFrame = CFrame.new(-0.0500000007, 10.4749994, 11.8000002, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
994 | p3.Anchored = false | |
995 | p3.CanCollide = false | |
996 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
997 | p3.TopSurface = Enum.SurfaceType.Smooth | |
998 | b3 = Instance.new("SpecialMesh", p3) | |
999 | b3.MeshType = Enum.MeshType.Brick | |
1000 | b3.Name = "Mesh" | |
1001 | b3.Scale = Vector3.new(0.99999994, 0.750000298, 1) | |
1002 | p4 = Instance.new("Part", Cha) | |
1003 | p4.BrickColor = BrickColor.new("Really black") | |
1004 | p4.FormFactor = Enum.FormFactor.Custom | |
1005 | p4.Size = Vector3.new(0.200000003, 0.200000003, 3.40000033) | |
1006 | p4.CFrame = CFrame.new(-0.0500000007, 10.1999998, 12.0000019, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1007 | p4.Anchored = false | |
1008 | p4.CanCollide = false | |
1009 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
1010 | p4.TopSurface = Enum.SurfaceType.Smooth | |
1011 | b4 = Instance.new("SpecialMesh", p4) | |
1012 | b4.MeshType = Enum.MeshType.Brick | |
1013 | b4.Name = "Mesh" | |
1014 | b4.Scale = Vector3.new(0.99999994, 0.500000179, 1) | |
1015 | p5 = Instance.new("Part", Cha) | |
1016 | p5.BrickColor = BrickColor.new("Really black") | |
1017 | p5.FormFactor = Enum.FormFactor.Custom | |
1018 | p5.Size = Vector3.new(0.25, 0.200000003, 0.200000003) | |
1019 | p5.CFrame = CFrame.new(-0.0500000007, 10.5249987, 11.9500017, 1, 1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, 6.60023616e-015, 1) | |
1020 | p5.Anchored = false | |
1021 | p5.CanCollide = false | |
1022 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
1023 | p5.TopSurface = Enum.SurfaceType.Smooth | |
1024 | b5 = Instance.new("SpecialMesh", p5) | |
1025 | b5.MeshType = Enum.MeshType.Cylinder | |
1026 | b5.Name = "Mesh" | |
1027 | b5.Scale = Vector3.new(1, 0.875, 0.875) | |
1028 | p6 = Instance.new("Part", Cha) | |
1029 | p6.BrickColor = BrickColor.new("Really black") | |
1030 | p6.FormFactor = Enum.FormFactor.Custom | |
1031 | p6.Size = Vector3.new(1.45000005, 0.200000003, 0.200000003) | |
1032 | p6.CFrame = CFrame.new(-0.0500000231, 10.2249994, 7.57500076, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1033 | p6.Anchored = false | |
1034 | p6.CanCollide = false | |
1035 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
1036 | p6.TopSurface = Enum.SurfaceType.Smooth | |
1037 | b6 = Instance.new("SpecialMesh", p6) | |
1038 | b6.MeshType = Enum.MeshType.Cylinder | |
1039 | b6.Name = "Mesh" | |
1040 | b6.Scale = Vector3.new(1, 0.5, 0.5) | |
1041 | p7 = Instance.new("Part", Cha) | |
1042 | p7.BrickColor = BrickColor.new("Pastel brown") | |
1043 | p7.Transparency = 1 | |
1044 | p7.FormFactor = Enum.FormFactor.Custom | |
1045 | p7.Size = Vector3.new(0.5, 0.5, 1) | |
1046 | p7.CFrame = CFrame.new(-0.0500000007, 9.75, 12.8249979, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
1047 | p7.Anchored = false | |
1048 | p7.CanCollide = false | |
1049 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
1050 | p7.TopSurface = Enum.SurfaceType.Smooth | |
1051 | b7 = Instance.new("SpecialMesh", p7) | |
1052 | b7.MeshType = Enum.MeshType.Brick | |
1053 | b7.Name = "Mesh" | |
1054 | p8 = Instance.new("Part", Cha) | |
1055 | p8.BrickColor = BrickColor.new("Really black") | |
1056 | p8.FormFactor = Enum.FormFactor.Custom | |
1057 | p8.Size = Vector3.new(0.200000003, 0.25000003, 3.5) | |
1058 | p8.CFrame = CFrame.new(-0.0500000007, 10.0749998, 12.0500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1059 | p8.Anchored = false | |
1060 | p8.CanCollide = false | |
1061 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
1062 | p8.TopSurface = Enum.SurfaceType.Smooth | |
1063 | b8 = Instance.new("SpecialMesh", p8) | |
1064 | b8.MeshType = Enum.MeshType.Brick | |
1065 | b8.Name = "Mesh" | |
1066 | b8.Scale = Vector3.new(0.99999994, 1, 1) | |
1067 | p9 = Instance.new("Part", Cha) | |
1068 | p9.BrickColor = BrickColor.new("Really black") | |
1069 | p9.FormFactor = Enum.FormFactor.Custom | |
1070 | p9.Size = Vector3.new(0.200000003, 0.200000003, 0.300000131) | |
1071 | p9.CFrame = CFrame.new(-0.0500000007, 10.0999994, 14.7750015, -4.37113883e-008, 0, -1, -1.50995803e-007, 1, 6.60023616e-015, 1, 1.50995803e-007, -4.37113883e-008) | |
1072 | p9.Anchored = false | |
1073 | p9.CanCollide = false | |
1074 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
1075 | p9.TopSurface = Enum.SurfaceType.Smooth | |
1076 | b9 = Instance.new("SpecialMesh", p9) | |
1077 | b9.MeshType = Enum.MeshType.Cylinder | |
1078 | b9.Name = "Mesh" | |
1079 | b9.Scale = Vector3.new(0.5, 0.99999994, 1) | |
1080 | p10 = Instance.new("Part", Cha) | |
1081 | p10.BrickColor = BrickColor.new("Really black") | |
1082 | p10.FormFactor = Enum.FormFactor.Custom | |
1083 | p10.Size = Vector3.new(0.200000003, 0.5, 0.800000012) | |
1084 | p10.CFrame = CFrame.new(-0.0500000007, 9.82392216, 12.5223665, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111) | |
1085 | p10.Anchored = false | |
1086 | p10.CanCollide = false | |
1087 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
1088 | p10.TopSurface = Enum.SurfaceType.Smooth | |
1089 | b10 = Instance.new("SpecialMesh", p10) | |
1090 | b10.MeshType = Enum.MeshType.Brick | |
1091 | b10.Name = "Mesh" | |
1092 | b10.Scale = Vector3.new(0.99999994, 1, 1) | |
1093 | p11 = Instance.new("Part", Cha) | |
1094 | p11.BrickColor = BrickColor.new("Really black") | |
1095 | p11.FormFactor = Enum.FormFactor.Custom | |
1096 | p11.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012) | |
1097 | p11.CFrame = CFrame.new(-0.0500000007, 9.6954546, 13.0453367, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111) | |
1098 | p11.Anchored = false | |
1099 | p11.CanCollide = false | |
1100 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
1101 | p11.TopSurface = Enum.SurfaceType.Smooth | |
1102 | b11 = Instance.new("SpecialMesh", p11) | |
1103 | b11.MeshType = Enum.MeshType.Brick | |
1104 | b11.Name = "Mesh" | |
1105 | b11.Scale = Vector3.new(0.99999994, 0.500000119, 1) | |
1106 | p12 = Instance.new("Part", Cha) | |
1107 | p12.BrickColor = BrickColor.new("Really black") | |
1108 | p12.FormFactor = Enum.FormFactor.Custom | |
1109 | p12.Size = Vector3.new(0.200000003, 0.450000048, 0.200000003) | |
1110 | p12.CFrame = CFrame.new(-0.0500000007, 9.8826685, 13.1200056, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111) | |
1111 | p12.Anchored = false | |
1112 | p12.CanCollide = false | |
1113 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
1114 | p12.TopSurface = Enum.SurfaceType.Smooth | |
1115 | b12 = Instance.new("SpecialMesh", p12) | |
1116 | b12.MeshType = Enum.MeshType.Brick | |
1117 | b12.Name = "Mesh" | |
1118 | b12.Scale = Vector3.new(0.99999994, 1, 0.50000006) | |
1119 | p13 = Instance.new("Part", Cha) | |
1120 | p13.BrickColor = BrickColor.new("Really black") | |
1121 | p13.FormFactor = Enum.FormFactor.Custom | |
1122 | p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1123 | p13.CFrame = CFrame.new(-0.0500000007, 9.86914063, 12.0564413, -4.37113883e-008, 0, 1, -0.139172822, 0.990268111, -6.08343731e-009, -0.990268111, -0.139172822, -4.32859935e-008) | |
1124 | p13.Anchored = false | |
1125 | p13.CanCollide = false | |
1126 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
1127 | p13.TopSurface = Enum.SurfaceType.Smooth | |
1128 | b13 = Instance.new("SpecialMesh", p13) | |
1129 | b13.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1130 | b13.TextureId = "" | |
1131 | b13.MeshType = Enum.MeshType.FileMesh | |
1132 | b13.Name = "Mesh" | |
1133 | b13.Scale = Vector3.new(0.5, 0.5, 0.349999994) | |
1134 | p14 = Instance.new("Part", Cha) | |
1135 | p14.BrickColor = BrickColor.new("Really black") | |
1136 | p14.FormFactor = Enum.FormFactor.Custom | |
1137 | p14.Size = Vector3.new(0.600000024, 0.200000003, 0.249999896) | |
1138 | p14.CFrame = CFrame.new(-0.0500000007, 10.0249996, 14.1000032, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1139 | p14.Anchored = false | |
1140 | p14.CanCollide = false | |
1141 | p14.BottomSurface = Enum.SurfaceType.Smooth | |
1142 | p14.TopSurface = Enum.SurfaceType.Smooth | |
1143 | b14 = Instance.new("SpecialMesh", p14) | |
1144 | b14.MeshType = Enum.MeshType.Cylinder | |
1145 | b14.Name = "Mesh" | |
1146 | b14.Scale = Vector3.new(1, 0.750000179, 1) | |
1147 | p15 = Instance.new("Part", Cha) | |
1148 | p15.BrickColor = BrickColor.new("Really black") | |
1149 | p15.FormFactor = Enum.FormFactor.Custom | |
1150 | p15.Size = Vector3.new(0.200000003, 0.200000003, 0.44999975) | |
1151 | p15.CFrame = CFrame.new(-0.0500000007, 10.0250006, 14.5500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1152 | p15.Anchored = false | |
1153 | p15.CanCollide = false | |
1154 | p15.BottomSurface = Enum.SurfaceType.Smooth | |
1155 | p15.TopSurface = Enum.SurfaceType.Smooth | |
1156 | b15 = Instance.new("SpecialMesh", p15) | |
1157 | b15.MeshType = Enum.MeshType.Brick | |
1158 | b15.Name = "Mesh" | |
1159 | b15.Scale = Vector3.new(0.99999994, 0.750000179, 1) | |
1160 | p16 = Instance.new("Part", Cha) | |
1161 | p16.BrickColor = BrickColor.new("Really black") | |
1162 | p16.FormFactor = Enum.FormFactor.Custom | |
1163 | p16.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003) | |
1164 | p16.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1165 | p16.Anchored = false | |
1166 | p16.CanCollide = false | |
1167 | p16.BottomSurface = Enum.SurfaceType.Smooth | |
1168 | p16.TopSurface = Enum.SurfaceType.Smooth | |
1169 | b16 = Instance.new("SpecialMesh", p16) | |
1170 | b16.MeshType = Enum.MeshType.Cylinder | |
1171 | b16.Name = "Mesh" | |
1172 | p17 = Instance.new("Part", Cha) | |
1173 | p17.BrickColor = BrickColor.new("Really black") | |
1174 | p17.FormFactor = Enum.FormFactor.Custom | |
1175 | p17.Size = Vector3.new(0.200000003, 0.75, 0.200000003) | |
1176 | p17.CFrame = CFrame.new(-0.0500000007, 9.72500038, 14.7750015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1177 | p17.Anchored = false | |
1178 | p17.CanCollide = false | |
1179 | p17.BottomSurface = Enum.SurfaceType.Smooth | |
1180 | p17.TopSurface = Enum.SurfaceType.Smooth | |
1181 | b17 = Instance.new("SpecialMesh", p17) | |
1182 | b17.MeshType = Enum.MeshType.Brick | |
1183 | b17.Name = "Mesh" | |
1184 | b17.Scale = Vector3.new(0.99999994, 1, 0.500000715) | |
1185 | p18 = Instance.new("Part", Cha) | |
1186 | p18.BrickColor = BrickColor.new("Really black") | |
1187 | p18.FormFactor = Enum.FormFactor.Custom | |
1188 | p18.Size = Vector3.new(0.200000003, 0.200000003, 0.650000095) | |
1189 | p18.CFrame = CFrame.new(-0.0500000007, 10.5499992, 11.5250006, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1190 | p18.Anchored = false | |
1191 | p18.CanCollide = false | |
1192 | p18.BottomSurface = Enum.SurfaceType.Smooth | |
1193 | p18.TopSurface = Enum.SurfaceType.Smooth | |
1194 | b18 = Instance.new("SpecialMesh", p18) | |
1195 | b18.MeshType = Enum.MeshType.Brick | |
1196 | b18.Name = "Mesh" | |
1197 | b18.Scale = Vector3.new(0.99999994, 0.500000358, 1) | |
1198 | p19 = Instance.new("Part", Cha) | |
1199 | p19.BrickColor = BrickColor.new("Really black") | |
1200 | p19.FormFactor = Enum.FormFactor.Custom | |
1201 | p19.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1202 | p19.CFrame = CFrame.new(-0.0500000007, 10.6750002, 11.3250027, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
1203 | p19.Anchored = false | |
1204 | p19.CanCollide = false | |
1205 | p19.BottomSurface = Enum.SurfaceType.Smooth | |
1206 | p19.TopSurface = Enum.SurfaceType.Smooth | |
1207 | b19 = Instance.new("SpecialMesh", p19) | |
1208 | b19.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1209 | b19.TextureId = "" | |
1210 | b19.MeshType = Enum.MeshType.FileMesh | |
1211 | b19.Name = "Mesh" | |
1212 | b19.Scale = Vector3.new(0.25, 0.25, 0.349999994) | |
1213 | p20 = Instance.new("Part", Cha) | |
1214 | p20.BrickColor = BrickColor.new("Really black") | |
1215 | p20.FormFactor = Enum.FormFactor.Custom | |
1216 | p20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1217 | p20.CFrame = CFrame.new(-0.0500000007, 10.874999, 10.8750019, -1.07284414e-007, 1, -5.21080397e-015, 1, 1.07284414e-007, 3.17865059e-008, 3.17865059e-008, -1.80060697e-015, -1) | |
1218 | p20.Anchored = false | |
1219 | p20.CanCollide = false | |
1220 | p20.BottomSurface = Enum.SurfaceType.Smooth | |
1221 | p20.TopSurface = Enum.SurfaceType.Smooth | |
1222 | b20 = Instance.new("SpecialMesh", p20) | |
1223 | b20.MeshType = Enum.MeshType.Cylinder | |
1224 | b20.Name = "Mesh" | |
1225 | b20.Scale = Vector3.new(0.500000358, 1, 1) | |
1226 | p21 = Instance.new("Part", Cha) | |
1227 | p21.BrickColor = BrickColor.new("Really black") | |
1228 | p21.FormFactor = Enum.FormFactor.Custom | |
1229 | p21.Size = Vector3.new(0.300000072, 0.200000003, 0.200000003) | |
1230 | p21.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -1, -1.50995803e-007, -3.17865059e-008, -1.50995803e-007, 1, -6.60023616e-015, 3.17865059e-008, -1.80060697e-015, -1) | |
1231 | p21.Anchored = false | |
1232 | p21.CanCollide = false | |
1233 | p21.BottomSurface = Enum.SurfaceType.Smooth | |
1234 | p21.TopSurface = Enum.SurfaceType.Smooth | |
1235 | b21 = Instance.new("SpecialMesh", p21) | |
1236 | b21.MeshType = Enum.MeshType.Cylinder | |
1237 | b21.Name = "Mesh" | |
1238 | p22 = Instance.new("Part", Cha) | |
1239 | p22.BrickColor = BrickColor.new("Really black") | |
1240 | p22.FormFactor = Enum.FormFactor.Custom | |
1241 | p22.Size = Vector3.new(0.5, 0.200000003, 0.5) | |
1242 | p22.CFrame = CFrame.new(-0.0500000007, 10.7749996, 11.3499994, -1, 8.74227766e-008, 0, 0, 0, -1, -8.74227766e-008, -1, 0) | |
1243 | p22.Anchored = false | |
1244 | p22.CanCollide = false | |
1245 | p22.BottomSurface = Enum.SurfaceType.Smooth | |
1246 | p22.TopSurface = Enum.SurfaceType.Smooth | |
1247 | b22 = Instance.new("SpecialMesh", p22) | |
1248 | b22.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1249 | b22.TextureId = "" | |
1250 | b22.MeshType = Enum.MeshType.FileMesh | |
1251 | b22.Name = "Mesh" | |
1252 | b22.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015) | |
1253 | b22.Scale = Vector3.new(0.100000001, 1, 0.100000001) | |
1254 | p23 = Instance.new("Part", Cha) | |
1255 | p23.BrickColor = BrickColor.new("Really black") | |
1256 | p23.FormFactor = Enum.FormFactor.Custom | |
1257 | p23.Size = Vector3.new(0.5, 0.5, 0.5) | |
1258 | p23.CFrame = CFrame.new(-0.0499995016, 10.7749996, 10.0999994, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
1259 | p23.Anchored = false | |
1260 | p23.CanCollide = false | |
1261 | p23.BottomSurface = Enum.SurfaceType.Smooth | |
1262 | p23.TopSurface = Enum.SurfaceType.Smooth | |
1263 | b23 = Instance.new("SpecialMesh", p23) | |
1264 | b23.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1265 | b23.TextureId = "" | |
1266 | b23.MeshType = Enum.MeshType.FileMesh | |
1267 | b23.Name = "Mesh" | |
1268 | b23.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015) | |
1269 | b23.Scale = Vector3.new(0.200000003, 1, 0.200000003) | |
1270 | p24 = Instance.new("Part", Cha) | |
1271 | p24.BrickColor = BrickColor.new("Really black") | |
1272 | p24.FormFactor = Enum.FormFactor.Custom | |
1273 | p24.Size = Vector3.new(0.200000003, 0.224999994, 0.224999994) | |
1274 | p24.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.2750015, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1275 | p24.Anchored = false | |
1276 | p24.CanCollide = false | |
1277 | p24.BottomSurface = Enum.SurfaceType.Smooth | |
1278 | p24.TopSurface = Enum.SurfaceType.Smooth | |
1279 | b24 = Instance.new("SpecialMesh", p24) | |
1280 | b24.MeshType = Enum.MeshType.Cylinder | |
1281 | b24.Name = "Mesh" | |
1282 | b24.Scale = Vector3.new(0.500000119, 1, 1) | |
1283 | p25 = Instance.new("Part", Cha) | |
1284 | p25.BrickColor = BrickColor.new("Really black") | |
1285 | p25.FormFactor = Enum.FormFactor.Custom | |
1286 | p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1287 | p25.CFrame = CFrame.new(-0.0500000007, 10.5249996, 10.3000031, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
1288 | p25.Anchored = false | |
1289 | p25.CanCollide = false | |
1290 | p25.BottomSurface = Enum.SurfaceType.Smooth | |
1291 | p25.TopSurface = Enum.SurfaceType.Smooth | |
1292 | b25 = Instance.new("SpecialMesh", p25) | |
1293 | b25.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1294 | b25.TextureId = "" | |
1295 | b25.MeshType = Enum.MeshType.FileMesh | |
1296 | b25.Name = "Mesh" | |
1297 | b25.Scale = Vector3.new(0.25, 0.5, 0.349999994) | |
1298 | p26 = Instance.new("Part", Cha) | |
1299 | p26.BrickColor = BrickColor.new("Really black") | |
1300 | p26.FormFactor = Enum.FormFactor.Custom | |
1301 | p26.Size = Vector3.new(0.200000003, 1.20000005, 0.5) | |
1302 | p26.CFrame = CFrame.new(-0.0500000007, 9.51616573, 10.9198675, -1, -1.50995803e-007, 0, -1.40000864e-007, 0.927183807, 0.374606699, -5.65640406e-008, 0.374606699, -0.927183807) | |
1303 | p26.Anchored = false | |
1304 | p26.CanCollide = false | |
1305 | p26.BottomSurface = Enum.SurfaceType.Smooth | |
1306 | p26.TopSurface = Enum.SurfaceType.Smooth | |
1307 | b26 = Instance.new("SpecialMesh", p26) | |
1308 | b26.MeshType = Enum.MeshType.Brick | |
1309 | b26.Name = "Mesh" | |
1310 | b26.Scale = Vector3.new(0.99999994, 1, 1) | |
1311 | p27 = Instance.new("Part", Cha) | |
1312 | p27.BrickColor = BrickColor.new("Really black") | |
1313 | p27.FormFactor = Enum.FormFactor.Custom | |
1314 | p27.Size = Vector3.new(0.200000003, 1, 0.200000003) | |
1315 | p27.CFrame = CFrame.new(-0.275000006, 9.72679424, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1) | |
1316 | p27.Anchored = false | |
1317 | p27.CanCollide = false | |
1318 | p27.BottomSurface = Enum.SurfaceType.Smooth | |
1319 | p27.TopSurface = Enum.SurfaceType.Smooth | |
1320 | b27 = Instance.new("SpecialMesh", p27) | |
1321 | b27.MeshType = Enum.MeshType.Brick | |
1322 | b27.Name = "Mesh" | |
1323 | b27.Scale = Vector3.new(0.5, 1, 0.750000119) | |
1324 | p28 = Instance.new("Part", Cha) | |
1325 | p28.BrickColor = BrickColor.new("Really black") | |
1326 | p28.FormFactor = Enum.FormFactor.Custom | |
1327 | p28.Size = Vector3.new(0.200000003, 0.200000003, 0.550000012) | |
1328 | p28.CFrame = CFrame.new(-0.0500000007, 9.92500019, 9.52500153, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1329 | p28.Anchored = false | |
1330 | p28.CanCollide = false | |
1331 | p28.BottomSurface = Enum.SurfaceType.Smooth | |
1332 | p28.TopSurface = Enum.SurfaceType.Smooth | |
1333 | b28 = Instance.new("SpecialMesh", p28) | |
1334 | b28.MeshType = Enum.MeshType.Brick | |
1335 | b28.Name = "Mesh" | |
1336 | b28.Scale = Vector3.new(0.99999994, 0.750000417, 1) | |
1337 | p29 = Instance.new("Part", Cha) | |
1338 | p29.BrickColor = BrickColor.new("Really black") | |
1339 | p29.FormFactor = Enum.FormFactor.Custom | |
1340 | p29.Size = Vector3.new(0.200000003, 0.50000006, 1.25) | |
1341 | p29.CFrame = CFrame.new(-0.0500000007, 10.1999998, 9.72500229, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1) | |
1342 | p29.Anchored = false | |
1343 | p29.CanCollide = false | |
1344 | p29.BottomSurface = Enum.SurfaceType.Smooth | |
1345 | p29.TopSurface = Enum.SurfaceType.Smooth | |
1346 | b29 = Instance.new("SpecialMesh", p29) | |
1347 | b29.MeshType = Enum.MeshType.Brick | |
1348 | b29.Name = "Mesh" | |
1349 | b29.Scale = Vector3.new(0.99999994, 1, 1) | |
1350 | p30 = Instance.new("Part", Cha) | |
1351 | p30.BrickColor = BrickColor.new("Really black") | |
1352 | p30.FormFactor = Enum.FormFactor.Custom | |
1353 | p30.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003) | |
1354 | p30.CFrame = CFrame.new(-0.562499523, 9.22882938, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1) | |
1355 | p30.Anchored = false | |
1356 | p30.CanCollide = false | |
1357 | p30.BottomSurface = Enum.SurfaceType.Smooth | |
1358 | p30.TopSurface = Enum.SurfaceType.Smooth | |
1359 | b30 = Instance.new("SpecialMesh", p30) | |
1360 | b30.MeshType = Enum.MeshType.Brick | |
1361 | b30.Name = "Mesh" | |
1362 | b30.Scale = Vector3.new(0.625, 1, 0.875) | |
1363 | p31 = Instance.new("Part", Cha) | |
1364 | p31.BrickColor = BrickColor.new("Really black") | |
1365 | p31.FormFactor = Enum.FormFactor.Custom | |
1366 | p31.Size = Vector3.new(0.200000003, 0.899999976, 0.5) | |
1367 | p31.CFrame = CFrame.new(-0.0500000007, 9.20888424, 12.4573278, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111) | |
1368 | p31.Anchored = false | |
1369 | p31.CanCollide = false | |
1370 | p31.BottomSurface = Enum.SurfaceType.Smooth | |
1371 | p31.TopSurface = Enum.SurfaceType.Smooth | |
1372 | b31 = Instance.new("SpecialMesh", p31) | |
1373 | b31.MeshType = Enum.MeshType.Brick | |
1374 | b31.Name = "Mesh" | |
1375 | b31.Scale = Vector3.new(0.99999994, 1, 1) | |
1376 | p32 = Instance.new("Part", Cha) | |
1377 | p32.BrickColor = BrickColor.new("Really black") | |
1378 | p32.FormFactor = Enum.FormFactor.Custom | |
1379 | p32.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006) | |
1380 | p32.CFrame = CFrame.new(-0.637500525, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1) | |
1381 | p32.Anchored = false | |
1382 | p32.CanCollide = false | |
1383 | p32.BottomSurface = Enum.SurfaceType.Smooth | |
1384 | p32.TopSurface = Enum.SurfaceType.Smooth | |
1385 | b32 = Instance.new("SpecialMesh", p32) | |
1386 | b32.MeshType = Enum.MeshType.Brick | |
1387 | b32.Name = "Mesh" | |
1388 | b32.Scale = Vector3.new(1, 0.500000119, 1) | |
1389 | p33 = Instance.new("Part", Cha) | |
1390 | p33.BrickColor = BrickColor.new("Black") | |
1391 | p33.FormFactor = Enum.FormFactor.Custom | |
1392 | p33.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003) | |
1393 | p33.CFrame = CFrame.new(-0.0500000007, 10.2249985, 7.10000086, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1394 | p33.Anchored = false | |
1395 | p33.CanCollide = false | |
1396 | p33.BottomSurface = Enum.SurfaceType.Smooth | |
1397 | p33.TopSurface = Enum.SurfaceType.Smooth | |
1398 | b33 = Instance.new("SpecialMesh", p33) | |
1399 | b33.MeshType = Enum.MeshType.Cylinder | |
1400 | b33.Name = "Mesh" | |
1401 | b33.Scale = Vector3.new(1, 0.875, 0.875) | |
1402 | p34 = Instance.new("Part", Cha) | |
1403 | p34.BrickColor = BrickColor.new("Really black") | |
1404 | p34.FormFactor = Enum.FormFactor.Custom | |
1405 | p34.Size = Vector3.new(0.200000003, 1, 0.200000003) | |
1406 | p34.CFrame = CFrame.new(0.174999997, 9.72679424, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1) | |
1407 | p34.Anchored = false | |
1408 | p34.CanCollide = false | |
1409 | p34.BottomSurface = Enum.SurfaceType.Smooth | |
1410 | p34.TopSurface = Enum.SurfaceType.Smooth | |
1411 | b34 = Instance.new("SpecialMesh", p34) | |
1412 | b34.MeshType = Enum.MeshType.Brick | |
1413 | b34.Name = "Mesh" | |
1414 | b34.Scale = Vector3.new(0.5, 1, 0.750000119) | |
1415 | p35 = Instance.new("Part", Cha) | |
1416 | p35.BrickColor = BrickColor.new("Really black") | |
1417 | p35.FormFactor = Enum.FormFactor.Custom | |
1418 | p35.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003) | |
1419 | p35.CFrame = CFrame.new(0.462500006, 9.22882938, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1) | |
1420 | p35.Anchored = false | |
1421 | p35.CanCollide = false | |
1422 | p35.BottomSurface = Enum.SurfaceType.Smooth | |
1423 | p35.TopSurface = Enum.SurfaceType.Smooth | |
1424 | b35 = Instance.new("SpecialMesh", p35) | |
1425 | b35.MeshType = Enum.MeshType.Brick | |
1426 | b35.Name = "Mesh" | |
1427 | b35.Scale = Vector3.new(0.625, 1, 0.875) | |
1428 | p36 = Instance.new("Part", Cha) | |
1429 | p36.BrickColor = BrickColor.new("Really black") | |
1430 | p36.FormFactor = Enum.FormFactor.Custom | |
1431 | p36.Size = Vector3.new(0.299999982, 0.200000003, 0.700000048) | |
1432 | p36.CFrame = CFrame.new(-0.0500000007, 8.7949791, 12.5659933, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111) | |
1433 | p36.Anchored = false | |
1434 | p36.CanCollide = false | |
1435 | p36.BottomSurface = Enum.SurfaceType.Smooth | |
1436 | p36.TopSurface = Enum.SurfaceType.Smooth | |
1437 | b36 = Instance.new("SpecialMesh", p36) | |
1438 | b36.MeshType = Enum.MeshType.Brick | |
1439 | b36.Name = "Mesh" | |
1440 | b36.Scale = Vector3.new(1, 0.749999881, 1) | |
1441 | p37 = Instance.new("Part", Cha) | |
1442 | p37.BrickColor = BrickColor.new("Really black") | |
1443 | p37.FormFactor = Enum.FormFactor.Custom | |
1444 | p37.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006) | |
1445 | p37.CFrame = CFrame.new(0.562499523, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1) | |
1446 | p37.Anchored = false | |
1447 | p37.CanCollide = false | |
1448 | p37.BottomSurface = Enum.SurfaceType.Smooth | |
1449 | p37.TopSurface = Enum.SurfaceType.Smooth | |
1450 | b37 = Instance.new("SpecialMesh", p37) | |
1451 | b37.MeshType = Enum.MeshType.Brick | |
1452 | b37.Name = "Mesh" | |
1453 | b37.Scale = Vector3.new(1, 0.500000119, 1) | |
1454 | p38 = Instance.new("Part", Cha) | |
1455 | p38.BrickColor = BrickColor.new("Really black") | |
1456 | p38.FormFactor = Enum.FormFactor.Custom | |
1457 | p38.Size = Vector3.new(1.35000002, 0.200000003, 0.200000003) | |
1458 | p38.CFrame = CFrame.new(-0.0500000231, 10.0749989, 7.85000134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1459 | p38.Anchored = false | |
1460 | p38.CanCollide = false | |
1461 | p38.BottomSurface = Enum.SurfaceType.Smooth | |
1462 | p38.TopSurface = Enum.SurfaceType.Smooth | |
1463 | b38 = Instance.new("SpecialMesh", p38) | |
1464 | b38.MeshType = Enum.MeshType.Cylinder | |
1465 | b38.Name = "Mesh" | |
1466 | b38.Scale = Vector3.new(1, 0.5, 0.5) | |
1467 | p39 = Instance.new("Part", Cha) | |
1468 | p39.BrickColor = BrickColor.new("Really black") | |
1469 | p39.FormFactor = Enum.FormFactor.Custom | |
1470 | p39.Size = Vector3.new(0.75, 0.200000003, 0.200000003) | |
1471 | p39.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.75000191, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1472 | p39.Anchored = false | |
1473 | p39.CanCollide = false | |
1474 | p39.BottomSurface = Enum.SurfaceType.Smooth | |
1475 | p39.TopSurface = Enum.SurfaceType.Smooth | |
1476 | b39 = Instance.new("SpecialMesh", p39) | |
1477 | b39.MeshType = Enum.MeshType.Cylinder | |
1478 | b39.Name = "Mesh" | |
1479 | b39.Scale = Vector3.new(1, 0.75, 0.75) | |
1480 | p40 = Instance.new("Part", Cha) | |
1481 | p40.BrickColor = BrickColor.new("Really black") | |
1482 | p40.FormFactor = Enum.FormFactor.Custom | |
1483 | p40.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1484 | p40.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1485 | p40.Anchored = false | |
1486 | p40.CanCollide = false | |
1487 | p40.BottomSurface = Enum.SurfaceType.Smooth | |
1488 | p40.TopSurface = Enum.SurfaceType.Smooth | |
1489 | b40 = Instance.new("SpecialMesh", p40) | |
1490 | b40.MeshType = Enum.MeshType.Cylinder | |
1491 | b40.Name = "Mesh" | |
1492 | b40.Scale = Vector3.new(0.5, 0.875, 0.875) | |
1493 | p41 = Instance.new("Part", Cha) | |
1494 | p41.BrickColor = BrickColor.new("Really black") | |
1495 | p41.FormFactor = Enum.FormFactor.Custom | |
1496 | p41.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003) | |
1497 | p41.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.70000172, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1498 | p41.Anchored = false | |
1499 | p41.CanCollide = false | |
1500 | p41.BottomSurface = Enum.SurfaceType.Smooth | |
1501 | p41.TopSurface = Enum.SurfaceType.Smooth | |
1502 | b41 = Instance.new("SpecialMesh", p41) | |
1503 | b41.MeshType = Enum.MeshType.Cylinder | |
1504 | b41.Name = "Mesh" | |
1505 | b41.Scale = Vector3.new(1, 0.875, 0.875) | |
1506 | p42 = Instance.new("Part", Cha) | |
1507 | p42.BrickColor = BrickColor.new("Really black") | |
1508 | p42.FormFactor = Enum.FormFactor.Custom | |
1509 | p42.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1510 | p42.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1511 | p42.Anchored = false | |
1512 | p42.CanCollide = false | |
1513 | p42.BottomSurface = Enum.SurfaceType.Smooth | |
1514 | p42.TopSurface = Enum.SurfaceType.Smooth | |
1515 | b42 = Instance.new("SpecialMesh", p42) | |
1516 | b42.MeshType = Enum.MeshType.Cylinder | |
1517 | b42.Name = "Mesh" | |
1518 | b42.Scale = Vector3.new(0.500000119, 1, 1) | |
1519 | p43 = Instance.new("Part", Cha) | |
1520 | p43.BrickColor = BrickColor.new("Really black") | |
1521 | p43.FormFactor = Enum.FormFactor.Custom | |
1522 | p43.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) | |
1523 | p43.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.22500134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008) | |
1524 | p43.Anchored = false | |
1525 | p43.CanCollide = false | |
1526 | p43.BottomSurface = Enum.SurfaceType.Smooth | |
1527 | p43.TopSurface = Enum.SurfaceType.Smooth | |
1528 | b43 = Instance.new("SpecialMesh", p43) | |
1529 | b43.MeshType = Enum.MeshType.Cylinder | |
1530 | b43.Name = "Mesh" | |
1531 | b43.Scale = Vector3.new(0.749999881, 0.75, 0.75) | |
1532 | w1 = Instance.new("Weld", p7) | |
1533 | w1.Name = "BTWeld" | |
1534 | w1.Part0 = p7 | |
1535 | w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1536 | w1.Part1 = p1 | |
1537 | w1.C1 = CFrame.new(-4.62499619, -0.574999809, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1538 | w2 = Instance.new("Weld", p7) | |
1539 | w2.Name = "BTWeld" | |
1540 | w2.Part0 = p7 | |
1541 | w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1542 | w2.Part1 = p2 | |
1543 | w2.C1 = CFrame.new(8.56816769e-008, -0.574999809, -0.424996376, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1544 | w3 = Instance.new("Weld", p7) | |
1545 | w3.Name = "BTWeld" | |
1546 | w3.Part0 = p7 | |
1547 | w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1548 | w3.Part1 = p3 | |
1549 | w3.C1 = CFrame.new(1.11758709e-007, -0.724999428, -1.02499771, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1550 | w4 = Instance.new("Weld", p7) | |
1551 | w4.Name = "BTWeld" | |
1552 | w4.Part0 = p7 | |
1553 | w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1554 | w4.Part1 = p4 | |
1555 | w4.C1 = CFrame.new(6.70552254e-008, -0.449999809, -0.824995995, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1556 | w5 = Instance.new("Weld", p7) | |
1557 | w5.Name = "BTWeld" | |
1558 | w5.Part0 = p7 | |
1559 | w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1560 | w5.Part1 = p5 | |
1561 | w5.C1 = CFrame.new(1.1920929e-007, -0.774998665, 0.874996185, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, -6.60023616e-015, -1) | |
1562 | w6 = Instance.new("Weld", p7) | |
1563 | w6.Name = "BTWeld" | |
1564 | w6.Part0 = p7 | |
1565 | w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1566 | w6.Part1 = p6 | |
1567 | w6.C1 = CFrame.new(-5.24999762, -0.475000381, -2.04890966e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1568 | w7 = Instance.new("Weld", p7) | |
1569 | w7.Name = "BTWeld" | |
1570 | w7.Part0 = p7 | |
1571 | w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1572 | w7.Part1 = p8 | |
1573 | w7.C1 = CFrame.new(4.84287739e-008, -0.324999809, -0.774995804, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1574 | w8 = Instance.new("Weld", p7) | |
1575 | w8.Name = "BTWeld" | |
1576 | w8.Part0 = p7 | |
1577 | w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1578 | w8.Part1 = p9 | |
1579 | w8.C1 = CFrame.new(-1.95000362, -0.349999428, 8.56816769e-008, 4.37113883e-008, -1.50995803e-007, -1, 0, 1, -1.50995803e-007, 1, 6.60023616e-015, 4.37113883e-008) | |
1580 | w9 = Instance.new("Weld", p7) | |
1581 | w9.Name = "BTWeld" | |
1582 | w9.Part0 = p7 | |
1583 | w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1584 | w9.Part1 = p10 | |
1585 | w9.C1 = CFrame.new(1.49011612e-008, -0.115321159, -0.289399147, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111) | |
1586 | w10 = Instance.new("Weld", p7) | |
1587 | w10.Name = "BTWeld" | |
1588 | w10.Part0 = p7 | |
1589 | w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1590 | w10.Part1 = p11 | |
1591 | w10.C1 = CFrame.new(-1.49011612e-008, 0.0846796036, 0.21060276, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111) | |
1592 | w11 = Instance.new("Weld", p7) | |
1593 | w11.Name = "BTWeld" | |
1594 | w11.Part0 = p7 | |
1595 | w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1596 | w11.Part1 = p12 | |
1597 | w11.C1 = CFrame.new(1.49011612e-008, -0.0903201103, 0.310600281, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111) | |
1598 | w12 = Instance.new("Weld", p7) | |
1599 | w12.Name = "BTWeld" | |
1600 | w12.Part0 = p7 | |
1601 | w12.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1602 | w12.Part1 = p13 | |
1603 | w12.C1 = CFrame.new(-0.744495392, -0.224943161, -3.35276127e-008, 4.37113883e-008, -0.139172822, 0.990268111, 0, 0.990268111, 0.139172822, -1, -6.08343731e-009, 4.32859935e-008) | |
1604 | w13 = Instance.new("Weld", p7) | |
1605 | w13.Name = "BTWeld" | |
1606 | w13.Part0 = p7 | |
1607 | w13.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1608 | w13.Part1 = p14 | |
1609 | w13.C1 = CFrame.new(1.27500534, -0.274999619, 5.58793545e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1610 | w14 = Instance.new("Weld", p7) | |
1611 | w14.Name = "BTWeld" | |
1612 | w14.Part0 = p7 | |
1613 | w14.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1614 | w14.Part1 = p15 | |
1615 | w14.C1 = CFrame.new(4.09781933e-008, -0.275000572, 1.7250042, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1616 | w15 = Instance.new("Weld", p7) | |
1617 | w15.Name = "BTWeld" | |
1618 | w15.Part0 = p7 | |
1619 | w15.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1620 | w15.Part1 = p16 | |
1621 | w15.C1 = CFrame.new(-1.94999599, -1.02499962, -8.19563866e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1622 | w16 = Instance.new("Weld", p7) | |
1623 | w16.Name = "BTWeld" | |
1624 | w16.Part0 = p7 | |
1625 | w16.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1626 | w16.Part1 = p17 | |
1627 | w16.C1 = CFrame.new(-3.7252903e-009, 0.0249996185, 1.95000362, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1628 | w17 = Instance.new("Weld", p7) | |
1629 | w17.Name = "BTWeld" | |
1630 | w17.Part0 = p7 | |
1631 | w17.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1632 | w17.Part1 = p18 | |
1633 | w17.C1 = CFrame.new(1.2293458e-007, -0.799999237, -1.29999733, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1634 | w18 = Instance.new("Weld", p7) | |
1635 | w18.Name = "BTWeld" | |
1636 | w18.Part0 = p7 | |
1637 | w18.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1638 | w18.Part1 = p19 | |
1639 | w18.C1 = CFrame.new(0, -0.925000191, -1.49999523, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1640 | w19 = Instance.new("Weld", p7) | |
1641 | w19.Name = "BTWeld" | |
1642 | w19.Part0 = p7 | |
1643 | w19.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1644 | w19.Part1 = p20 | |
1645 | w19.C1 = CFrame.new(-1.12499905, -1.1920929e-007, -1.94999599, 1.07284414e-007, 1, -3.17865059e-008, -1, 1.07284414e-007, 1.80060697e-015, 5.21080397e-015, 3.17865059e-008, 1) | |
1646 | w20 = Instance.new("Weld", p7) | |
1647 | w20.Name = "BTWeld" | |
1648 | w20.Part0 = p7 | |
1649 | w20.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1650 | w20.Part1 = p21 | |
1651 | w20.C1 = CFrame.new(2.16066837e-007, -1.02499962, -1.94999599, 1, -1.50995803e-007, -3.17865059e-008, 1.50995803e-007, 1, 1.80060697e-015, 3.17865059e-008, -6.60023616e-015, 1) | |
1652 | w21 = Instance.new("Weld", p7) | |
1653 | w21.Name = "BTWeld" | |
1654 | w21.Part0 = p7 | |
1655 | w21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1656 | w21.Part1 = p22 | |
1657 | w21.C1 = CFrame.new(-1.3038516e-007, -1.47499847, 1.02499962, 1, 0, 8.74227766e-008, -8.74227766e-008, 0, 1, 0, -1, 0) | |
1658 | w22 = Instance.new("Weld", p7) | |
1659 | w22.Name = "BTWeld" | |
1660 | w22.Part0 = p7 | |
1661 | w22.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1662 | w22.Part1 = p23 | |
1663 | w22.C1 = CFrame.new(-4.991889e-007, 2.72499847, 1.02499962, -1, 0, 0, 0, 0, -1, 0, -1, 0) | |
1664 | w23 = Instance.new("Weld", p7) | |
1665 | w23.Name = "BTWeld" | |
1666 | w23.Part0 = p7 | |
1667 | w23.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1668 | w23.Part1 = p24 | |
1669 | w23.C1 = CFrame.new(-2.54999638, -1.02499962, -1.08033419e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1670 | w24 = Instance.new("Weld", p7) | |
1671 | w24.Name = "BTWeld" | |
1672 | w24.Part0 = p7 | |
1673 | w24.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1674 | w24.Part1 = p25 | |
1675 | w24.C1 = CFrame.new(0, -0.774999619, -2.52499485, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1676 | w25 = Instance.new("Weld", p7) | |
1677 | w25.Name = "BTWeld" | |
1678 | w25.Part0 = p7 | |
1679 | w25.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1680 | w25.Part1 = p26 | |
1681 | w25.C1 = CFrame.new(-1.37835741e-007, 0.930481911, -1.67881012, 1, -1.40000864e-007, 5.65640406e-008, 1.50995803e-007, 0.927183807, -0.374606699, 0, 0.374606699, 0.927183807) | |
1682 | w26 = Instance.new("Weld", p7) | |
1683 | w26.Name = "BTWeld" | |
1684 | w26.Part0 = p7 | |
1685 | w26.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1686 | w26.Part1 = p27 | |
1687 | w26.C1 = CFrame.new(-0.183252811, 0.132596016, -3.34999466, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1) | |
1688 | w27 = Instance.new("Weld", p7) | |
1689 | w27.Name = "BTWeld" | |
1690 | w27.Part0 = p7 | |
1691 | w27.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1692 | w27.Part1 = p28 | |
1693 | w27.C1 = CFrame.new(2.60770321e-008, -0.175000191, -3.29999638, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1694 | w28 = Instance.new("Weld", p7) | |
1695 | w28.Name = "BTWeld" | |
1696 | w28.Part0 = p7 | |
1697 | w28.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1698 | w28.Part1 = p29 | |
1699 | w28.C1 = CFrame.new(6.70552254e-008, -0.449999809, -3.09999561, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1) | |
1700 | w29 = Instance.new("Weld", p7) | |
1701 | w29.Name = "BTWeld" | |
1702 | w29.Part0 = p7 | |
1703 | w29.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1704 | w29.Part1 = p30 | |
1705 | w29.C1 = CFrame.new(-0.183252335, 0.707596779, -3.34999561, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1) | |
1706 | w30 = Instance.new("Weld", p7) | |
1707 | w30.Name = "BTWeld" | |
1708 | w30.Part0 = p7 | |
1709 | w30.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1710 | w30.Part1 = p31 | |
1711 | w30.C1 = CFrame.new(-7.07805157e-008, 0.484679699, -0.439400673, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111) | |
1712 | w31 = Instance.new("Weld", p7) | |
1713 | w31.Name = "BTWeld" | |
1714 | w31.Part0 = p7 | |
1715 | w31.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1716 | w31.Part1 = p32 | |
1717 | w31.C1 = CFrame.new(-0.587500334, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1) | |
1718 | w32 = Instance.new("Weld", p7) | |
1719 | w32.Name = "BTWeld" | |
1720 | w32.Part0 = p7 | |
1721 | w32.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1722 | w32.Part1 = p33 | |
1723 | w32.C1 = CFrame.new(-5.72499752, -0.474999428, -2.4959445e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1724 | w33 = Instance.new("Weld", p7) | |
1725 | w33.Name = "BTWeld" | |
1726 | w33.Part0 = p7 | |
1727 | w33.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1728 | w33.Part1 = p34 | |
1729 | w33.C1 = CFrame.new(0.183252811, 0.132595062, -3.34999466, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1) | |
1730 | w34 = Instance.new("Weld", p7) | |
1731 | w34.Name = "BTWeld" | |
1732 | w34.Part0 = p7 | |
1733 | w34.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1734 | w34.Part1 = p35 | |
1735 | w34.C1 = CFrame.new(0.183252335, 0.707595825, -3.34999561, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1) | |
1736 | w35 = Instance.new("Weld", p7) | |
1737 | w35.Name = "BTWeld" | |
1738 | w35.Part0 = p7 | |
1739 | w35.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1740 | w35.Part1 = p36 | |
1741 | w35.C1 = CFrame.new(-1.37835741e-007, 0.90967989, -0.389397621, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111) | |
1742 | w36 = Instance.new("Weld", p7) | |
1743 | w36.Name = "BTWeld" | |
1744 | w36.Part0 = p7 | |
1745 | w36.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1746 | w36.Part1 = p37 | |
1747 | w36.C1 = CFrame.new(0.612499714, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1) | |
1748 | w37 = Instance.new("Weld", p7) | |
1749 | w37.Name = "BTWeld" | |
1750 | w37.Part0 = p7 | |
1751 | w37.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1752 | w37.Part1 = p38 | |
1753 | w37.C1 = CFrame.new(-4.97499704, -0.324999809, -1.93715096e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1754 | w38 = Instance.new("Weld", p7) | |
1755 | w38.Name = "BTWeld" | |
1756 | w38.Part0 = p7 | |
1757 | w38.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1758 | w38.Part1 = p39 | |
1759 | w38.C1 = CFrame.new(-4.07499599, -0.324999809, -1.75088644e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1760 | w39 = Instance.new("Weld", p7) | |
1761 | w39.Name = "BTWeld" | |
1762 | w39.Part0 = p7 | |
1763 | w39.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1764 | w39.Part1 = p40 | |
1765 | w39.C1 = CFrame.new(-4.2749958, -0.324999809, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1766 | w40 = Instance.new("Weld", p7) | |
1767 | w40.Name = "BTWeld" | |
1768 | w40.Part0 = p7 | |
1769 | w40.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1770 | w40.Part1 = p41 | |
1771 | w40.C1 = CFrame.new(-4.12499619, -0.475000381, -1.78813934e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1772 | w41 = Instance.new("Weld", p7) | |
1773 | w41.Name = "BTWeld" | |
1774 | w41.Part0 = p7 | |
1775 | w41.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1776 | w41.Part1 = p42 | |
1777 | w41.C1 = CFrame.new(-4.2749958, -0.475000381, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1778 | w42 = Instance.new("Weld", p7) | |
1779 | w42.Name = "BTWeld" | |
1780 | w42.Part0 = p7 | |
1781 | w42.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
1782 | w42.Part1 = p43 | |
1783 | w42.C1 = CFrame.new(-4.59999657, -0.475000381, -1.97440386e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008) | |
1784 | ||
1785 | ||
1786 | rlwww = Instance.new("Weld", Cha) | |
1787 | rlwww.Part0 = Cha["Right Arm"] | |
1788 | rlwww.C0 = CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-1.55,2.7,0) | |
1789 | rlwww.Part1 = p7 | |
1790 | ||
1791 | mouse.KeyDown:connect(function(key) | |
1792 | key:lower() | |
1793 | if key == "z" and laydown == false and prop == false then | |
1794 | laydown = true | |
1795 | prop = true | |
1796 | Cha.Humanoid.WalkSpeed = 10 | |
1797 | end | |
1798 | end) | |
1799 | ||
1800 | mouse.KeyDown:connect(function(key) | |
1801 | key:lower() | |
1802 | if key == "x" and laydown == true and prop == true then | |
1803 | laydown = false | |
1804 | prop = false | |
1805 | Cha.Humanoid.WalkSpeed = 16 | |
1806 | end | |
1807 | end) | |
1808 | ||
1809 | s = Instance.new("Sound") | |
1810 | s.SoundId = "http://www.roblox.com/asset?id=151112832" | |
1811 | s.Parent = Cha | |
1812 | s.Volume = 5 | |
1813 | ||
1814 | s2 = Instance.new("Sound") | |
1815 | s2.SoundId = "http://www.roblox.com/asset?id=200289883" | |
1816 | s2.Parent = Cha | |
1817 | s2.Volume = 5 | |
1818 | ||
1819 | ||
1820 | mouse.Button1Down:connect(function() | |
1821 | if (not vDebounce) and shoot == false then | |
1822 | shoot = true | |
1823 | ||
1824 | ||
1825 | Bullet1=Instance.new('Part',Workspace) | |
1826 | Bullet1.BrickColor=BrickColor.new("Medium stone grey") | |
1827 | Bullet1.CanCollide = True | |
1828 | Bullet1.TopSurface = "Smooth" | |
1829 | Bullet1.BottomSurface = "Smooth" | |
1830 | Bullet1.Transparency = 0.2 | |
1831 | Bullet1.Size = Vector3.new(.2,.2,3) | |
1832 | Bullet1.CFrame = p33.CFrame *CFrame.new(0, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1833 | game.Debris:AddItem(Bullet1, 10) | |
1834 | Bullet1Mesh = Instance.new("SpecialMesh",Bullet1) | |
1835 | Bullet1Mesh.MeshType = "Sphere" | |
1836 | Bullet1Mesh.Scale = Vector3.new(.5,1,.5) | |
1837 | ||
1838 | Bullet1shoot = Instance.new('BodyVelocity',Bullet1) | |
1839 | Bullet1shoot.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1840 | Bullet1shoot.velocity = Cha.Head.CFrame.lookVector*1000 | |
1841 | ||
1842 | Bullet1:BreakJoints() | |
1843 | ||
1844 | ||
1845 | ||
1846 | Bullet1.Touched:connect(function(hit) | |
1847 | Damagefunc(hit,1,80,math.random(1,3),"Normal",RootPart,.2,1) | |
1848 | end) | |
1849 | ||
1850 | s:Play() | |
1851 | ||
1852 | Blast=Instance.new('Part',Workspace) | |
1853 | Blast.BrickColor=BrickColor.new("Medium stone grey") | |
1854 | Blast.CanCollide = True | |
1855 | Blast.TopSurface = "Smooth" | |
1856 | Blast.BottomSurface = "Smooth" | |
1857 | Blast.Transparency = 0 | |
1858 | Blast.Anchored = false | |
1859 | Blast.Size = Vector3.new(3,3,3) | |
1860 | Blast.CFrame = p33.CFrame *CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(math.random(), math.random(), math.random()) | |
1861 | game.Debris:AddItem(Blast, 4) | |
1862 | BlastMesh = Instance.new("SpecialMesh",Blast) | |
1863 | BlastMesh.MeshType = "Brick" | |
1864 | BlastMesh.Scale = Vector3.new(.1,.1,.1) | |
1865 | ||
1866 | Ammo=Instance.new('Part',Workspace) | |
1867 | Ammo.BrickColor=BrickColor.new("Medium stone grey") | |
1868 | Ammo.CanCollide = true | |
1869 | Ammo.TopSurface = "Smooth" | |
1870 | Ammo.BottomSurface = "Smooth" | |
1871 | Ammo.Transparency = 0.3 | |
1872 | Ammo.Size = Vector3.new(.2,.2,.2) | |
1873 | Ammo.CFrame = p21.CFrame *CFrame.new(0, -1, 0) | |
1874 | game.Debris:AddItem(Ammo, 10) | |
1875 | AmmoMesh = Instance.new("SpecialMesh",Ammo) | |
1876 | AmmoMesh.MeshType = "Sphere" | |
1877 | AmmoMesh.Scale = Vector3.new(.1,.4,.1) | |
1878 | ||
1879 | for i = 1,10 do | |
1880 | BlastMesh.Scale = BlastMesh.Scale + Vector3.new(.1,.1,.1) | |
1881 | Blast.Transparency = Blast.Transparency + 0.1 | |
1882 | swait(0.1) | |
1883 | end | |
1884 | ||
1885 | s2:Play() | |
1886 | ||
1887 | ||
1888 | wait(1) | |
1889 | shoot = false | |
1890 | end | |
1891 | end) | |
1892 | ||
1893 | colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"} | |
1894 | mouse.KeyDown:connect(function(k) | |
1895 | if k == " " then | |
1896 | if hitfloor==nil then | |
1897 | Cha.Torso.Velocity = Vector3.new(0,100,0) | |
1898 | ringExplode(Torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[4],5) | |
1899 | end | |
1900 | end | |
1901 | end) | |
1902 | ||
1903 | mouse.KeyDown:connect(function(key) | |
1904 | key:lower() | |
1905 | if key == "e" and camo == false and prop == true then | |
1906 | camo = true | |
1907 | ||
1908 | Camoflauge=Instance.new('Part',Cha) | |
1909 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
1910 | Camoflauge.CanCollide = true | |
1911 | Camoflauge.TopSurface = "Smooth" | |
1912 | Camoflauge.BottomSurface = "Smooth" | |
1913 | Camoflauge.Material = "Grass" | |
1914 | Camoflauge.Transparency = 0 | |
1915 | Camoflauge.Size = Vector3.new(1,1,1) | |
1916 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
1917 | CamoflaugeMesh.MeshType = "Brick" | |
1918 | CamoflaugeMesh.Scale = Vector3.new(4,13,6) | |
1919 | CaWeld = Instance.new("Weld",Cha) | |
1920 | CaWeld.Part0 = Cha.Torso | |
1921 | CaWeld.Part1 = Camoflauge | |
1922 | CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(.35, 0, 0) | |
1923 | ||
1924 | end | |
1925 | end) | |
1926 | ||
1927 | mouse.KeyDown:connect(function(key) | |
1928 | key:lower() | |
1929 | if key == "e" and camo == false and prop == false then | |
1930 | camo = true | |
1931 | ||
1932 | ||
1933 | ac = math.random(1,6) | |
1934 | ||
1935 | if ac == 1 then | |
1936 | Camoflauge=Instance.new('Part',Cha) | |
1937 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
1938 | Camoflauge.CanCollide = true | |
1939 | Camoflauge.TopSurface = "Smooth" | |
1940 | Camoflauge.BottomSurface = "Smooth" | |
1941 | Camoflauge.Material = "Grass" | |
1942 | Camoflauge.Transparency = 0 | |
1943 | Camoflauge.Size = Vector3.new(1,1,1) | |
1944 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
1945 | CamoflaugeMesh.MeshType = "Brick" | |
1946 | CamoflaugeMesh.Scale = Vector3.new(8,8,10) | |
1947 | CaWeld = Instance.new("Weld",Cha) | |
1948 | CaWeld.Part0 = Cha.Torso | |
1949 | CaWeld.Part1 = Camoflauge | |
1950 | CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1951 | end | |
1952 | ||
1953 | ||
1954 | if ac == 2 then | |
1955 | Camoflauge=Instance.new('Part',Cha) | |
1956 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
1957 | Camoflauge.CanCollide = true | |
1958 | Camoflauge.TopSurface = "Smooth" | |
1959 | Camoflauge.BottomSurface = "Smooth" | |
1960 | Camoflauge.Transparency = 0 | |
1961 | Camoflauge.Size = Vector3.new(1,1,1) | |
1962 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
1963 | CamoflaugeMesh.MeshType = "FileMesh" | |
1964 | CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=19106014" | |
1965 | CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=142039906" | |
1966 | CamoflaugeMesh.Scale = Vector3.new(10,10,10) | |
1967 | CaWeld = Instance.new("Weld",Cha) | |
1968 | CaWeld.Part0 = Cha.Torso | |
1969 | CaWeld.Part1 = Camoflauge | |
1970 | CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1971 | end | |
1972 | ||
1973 | if ac == 3 then | |
1974 | Camoflauge=Instance.new('Part',Cha) | |
1975 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
1976 | Camoflauge.CanCollide = true | |
1977 | Camoflauge.TopSurface = "Smooth" | |
1978 | Camoflauge.BottomSurface = "Smooth" | |
1979 | Camoflauge.Transparency = 0 | |
1980 | Camoflauge.Size = Vector3.new(1,1,1) | |
1981 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
1982 | CamoflaugeMesh.MeshType = "FileMesh" | |
1983 | CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=92598630" | |
1984 | CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=92599263" | |
1985 | CamoflaugeMesh.Scale = Vector3.new(10,10,10) | |
1986 | CaWeld = Instance.new("Weld",Cha) | |
1987 | CaWeld.Part0 = Cha.Torso | |
1988 | CaWeld.Part1 = Camoflauge | |
1989 | CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1990 | end | |
1991 | ||
1992 | if ac == 4 then | |
1993 | Camoflauge=Instance.new('Part',Cha) | |
1994 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
1995 | Camoflauge.CanCollide = true | |
1996 | Camoflauge.TopSurface = "Smooth" | |
1997 | Camoflauge.BottomSurface = "Smooth" | |
1998 | Camoflauge.Transparency = 0 | |
1999 | Camoflauge.Size = Vector3.new(1,1,1) | |
2000 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
2001 | CamoflaugeMesh.MeshType = "FileMesh" | |
2002 | CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=10470609" | |
2003 | CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=29796694" | |
2004 | CamoflaugeMesh.Scale = Vector3.new(10,10,10) | |
2005 | CaWeld = Instance.new("Weld",Cha) | |
2006 | CaWeld.Part0 = Cha.Torso | |
2007 | CaWeld.Part1 = Camoflauge | |
2008 | CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2009 | end | |
2010 | ||
2011 | if ac == 5 then | |
2012 | Camoflauge=Instance.new('Part',Cha) | |
2013 | Camoflauge.BrickColor=game.Workspace.Base.BrickColor | |
2014 | Camoflauge.CanCollide = true | |
2015 | Camoflauge.TopSurface = "Smooth" | |
2016 | Camoflauge.BottomSurface = "Smooth" | |
2017 | Camoflauge.Transparency = 0 | |
2018 | Camoflauge.Size = Vector3.new(1,1,1) | |
2019 | CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge) | |
2020 | CamoflaugeMesh.MeshType = "FileMesh" | |
2021 | CamoflaugeMesh.MeshId = "http://www.roblox.com/asset?id=220616206" | |
2022 | CamoflaugeMesh.TextureId = "http://www.roblox.com/asset?id=220616251" | |
2023 | CamoflaugeMesh.Scale = Vector3.new(5,5,5) | |
2024 | CaWeld = Instance.new("Weld",Cha) | |
2025 | CaWeld.Part0 = Cha.Torso | |
2026 | CaWeld.Part1 = Camoflauge | |
2027 | CaWeld.C1 = CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2028 | end | |
2029 | ||
2030 | ||
2031 | if ac == 6 then | |
2032 | ||
2033 | ||
2034 | Camoflauge = Instance.new("Model") | |
2035 | p1 = Instance.new("Part", Camoflauge) | |
2036 | p1.BrickColor = BrickColor.new("White") | |
2037 | p1.FormFactor = Enum.FormFactor.Custom | |
2038 | p1.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001) | |
2039 | p1.CFrame = CFrame.new(-21.8000011, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2040 | p1.Anchored = false | |
2041 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
2042 | p1.TopSurface = Enum.SurfaceType.Smooth | |
2043 | p2 = Instance.new("Part", Camoflauge) | |
2044 | p2.BrickColor = BrickColor.new("Institutional white") | |
2045 | p2.FormFactor = Enum.FormFactor.Custom | |
2046 | p2.Size = Vector3.new(5.79999971, 0.399999946, 1.4000001) | |
2047 | p2.CFrame = CFrame.new(-24.5, 5.0999999, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2048 | p2.Anchored = false | |
2049 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
2050 | p2.TopSurface = Enum.SurfaceType.Smooth | |
2051 | p3 = Instance.new("Part", Camoflauge) | |
2052 | p3.BrickColor = BrickColor.new("Brown") | |
2053 | p3.FormFactor = Enum.FormFactor.Custom | |
2054 | p3.Size = Vector3.new(5.5999999, 0.299999952, 5.5999999) | |
2055 | p3.CFrame = CFrame.new(-24.5, 5.04999971, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2056 | p3.Anchored = false | |
2057 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
2058 | p3.TopSurface = Enum.SurfaceType.Smooth | |
2059 | p4 = Instance.new("Part", Camoflauge) | |
2060 | p4.BrickColor = BrickColor.new("Brown") | |
2061 | p4.FormFactor = Enum.FormFactor.Custom | |
2062 | p4.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714) | |
2063 | p4.CFrame = CFrame.new(-26.7000027, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2064 | p4.Anchored = false | |
2065 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
2066 | p4.TopSurface = Enum.SurfaceType.Smooth | |
2067 | p5 = Instance.new("Part", Camoflauge) | |
2068 | p5.BrickColor = BrickColor.new("Brown") | |
2069 | p5.FormFactor = Enum.FormFactor.Custom | |
2070 | p5.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714) | |
2071 | p5.CFrame = CFrame.new(-22.3000011, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2072 | p5.Anchored = false | |
2073 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
2074 | p5.TopSurface = Enum.SurfaceType.Smooth | |
2075 | p6 = Instance.new("Part", Camoflauge) | |
2076 | p6.BrickColor = BrickColor.new("White") | |
2077 | p6.FormFactor = Enum.FormFactor.Custom | |
2078 | p6.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001) | |
2079 | p6.CFrame = CFrame.new(-27.2000027, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2080 | p6.Anchored = false | |
2081 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
2082 | p6.TopSurface = Enum.SurfaceType.Smooth | |
2083 | p7 = Instance.new("Part", Camoflauge) | |
2084 | p7.BrickColor = BrickColor.new("Medium stone grey") | |
2085 | p7.Transparency = 1 | |
2086 | p7.Name = "Handle" | |
2087 | p7.FormFactor = Enum.FormFactor.Custom | |
2088 | p7.Size = Vector3.new(5, 5, 5) | |
2089 | p7.CFrame = CFrame.new(-24.5, 2.5, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2090 | p7.Anchored = false | |
2091 | p7.BottomSurface = Enum.SurfaceType.Smooth | |
2092 | p7.TopSurface = Enum.SurfaceType.Smooth | |
2093 | p8 = Instance.new("Part", Camoflauge) | |
2094 | p8.BrickColor = BrickColor.new("Brown") | |
2095 | p8.FormFactor = Enum.FormFactor.Custom | |
2096 | p8.Size = Vector3.new(5.5999999, 1.79999995, 0.299999714) | |
2097 | p8.CFrame = CFrame.new(-24.5, 4.0999999, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2098 | p8.Anchored = false | |
2099 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
2100 | p8.TopSurface = Enum.SurfaceType.Smooth | |
2101 | p9 = Instance.new("Part", Camoflauge) | |
2102 | p9.BrickColor = BrickColor.new("Brown") | |
2103 | p9.FormFactor = Enum.FormFactor.Custom | |
2104 | p9.Size = Vector3.new(0.299999714, 6.30000019, 5) | |
2105 | p9.CFrame = CFrame.new(-21.8500004, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2106 | p9.Anchored = false | |
2107 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
2108 | p9.TopSurface = Enum.SurfaceType.Smooth | |
2109 | p10 = Instance.new("Part", Camoflauge) | |
2110 | p10.BrickColor = BrickColor.new("Brown") | |
2111 | p10.FormFactor = Enum.FormFactor.Custom | |
2112 | p10.Size = Vector3.new(5.5999999, 3.20000005, 0.299999714) | |
2113 | p10.CFrame = CFrame.new(-24.5, 0.300000072, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2114 | p10.Anchored = false | |
2115 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
2116 | p10.TopSurface = Enum.SurfaceType.Smooth | |
2117 | p11 = Instance.new("Part", Camoflauge) | |
2118 | p11.BrickColor = BrickColor.new("Brown") | |
2119 | p11.FormFactor = Enum.FormFactor.Custom | |
2120 | p11.Size = Vector3.new(5.5999999, 6.30000019, 0.299999714) | |
2121 | p11.CFrame = CFrame.new(-24.5, 1.85000002, -6.8499999, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2122 | p11.Anchored = false | |
2123 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
2124 | p11.TopSurface = Enum.SurfaceType.Smooth | |
2125 | p12 = Instance.new("Part", Camoflauge) | |
2126 | p12.BrickColor = BrickColor.new("Brown") | |
2127 | p12.FormFactor = Enum.FormFactor.Custom | |
2128 | p12.Size = Vector3.new(0.299999714, 6.30000019, 5) | |
2129 | p12.CFrame = CFrame.new(-27.1500015, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2130 | p12.Anchored = false | |
2131 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
2132 | p12.TopSurface = Enum.SurfaceType.Smooth | |
2133 | w1 = Instance.new("Weld", p7) | |
2134 | w1.Name = "BTWeld" | |
2135 | w1.Part0 = p7 | |
2136 | w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2137 | w1.Part1 = p1 | |
2138 | w1.C1 = CFrame.new(-2.69999886, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2139 | w2 = Instance.new("Weld", p7) | |
2140 | w2.Name = "BTWeld" | |
2141 | w2.Part0 = p7 | |
2142 | w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2143 | w2.Part1 = p2 | |
2144 | w2.C1 = CFrame.new(0, -2.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2145 | w3 = Instance.new("Weld", p7) | |
2146 | w3.Name = "BTWeld" | |
2147 | w3.Part0 = p7 | |
2148 | w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2149 | w3.Part1 = p3 | |
2150 | w3.C1 = CFrame.new(0, -2.54999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2151 | w4 = Instance.new("Weld", p7) | |
2152 | w4.Name = "BTWeld" | |
2153 | w4.Part0 = p7 | |
2154 | w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2155 | w4.Part1 = p4 | |
2156 | w4.C1 = CFrame.new(2.20000267, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2157 | w5 = Instance.new("Weld", p7) | |
2158 | w5.Name = "BTWeld" | |
2159 | w5.Part0 = p7 | |
2160 | w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2161 | w5.Part1 = p5 | |
2162 | w5.C1 = CFrame.new(-2.19999886, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2163 | w6 = Instance.new("Weld", p7) | |
2164 | w6.Name = "BTWeld" | |
2165 | w6.Part0 = p7 | |
2166 | w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2167 | w6.Part1 = p6 | |
2168 | w6.C1 = CFrame.new(2.70000267, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2169 | w7 = Instance.new("Weld", p7) | |
2170 | w7.Name = "BTWeld" | |
2171 | w7.Part0 = p7 | |
2172 | w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2173 | w7.Part1 = p8 | |
2174 | w7.C1 = CFrame.new(0, -1.5999999, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2175 | w8 = Instance.new("Weld", p7) | |
2176 | w8.Name = "BTWeld" | |
2177 | w8.Part0 = p7 | |
2178 | w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2179 | w8.Part1 = p9 | |
2180 | w8.C1 = CFrame.new(-2.64999962, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2181 | w9 = Instance.new("Weld", p7) | |
2182 | w9.Name = "BTWeld" | |
2183 | w9.Part0 = p7 | |
2184 | w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2185 | w9.Part1 = p10 | |
2186 | w9.C1 = CFrame.new(0, 2.19999981, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2187 | w10 = Instance.new("Weld", p7) | |
2188 | w10.Name = "BTWeld" | |
2189 | w10.Part0 = p7 | |
2190 | w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2191 | w10.Part1 = p11 | |
2192 | w10.C1 = CFrame.new(0, 0.649999976, -2.6500001, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2193 | w11 = Instance.new("Weld", p7) | |
2194 | w11.Name = "BTWeld" | |
2195 | w11.Part0 = p7 | |
2196 | w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2197 | w11.Part1 = p12 | |
2198 | w11.C1 = CFrame.new(2.65000153, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2199 | ||
2200 | rlwwww = Instance.new("Weld", Cha) | |
2201 | rlwwww.Part0 = Cha.Torso | |
2202 | rlwwww.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0) | |
2203 | rlwwww.Part1 = p7 | |
2204 | ||
2205 | Camoflauge.Parent = Cha | |
2206 | Camoflauge:MakeJoints() | |
2207 | ||
2208 | for i, v in pairs(Camoflauge:GetChildren()) do | |
2209 | if v:IsA('Part') then | |
2210 | v.CanCollide = False | |
2211 | end | |
2212 | end | |
2213 | ||
2214 | ||
2215 | end | |
2216 | ||
2217 | ||
2218 | ||
2219 | end | |
2220 | end) | |
2221 | ||
2222 | mouse.KeyDown:connect(function(key) | |
2223 | key:lower() | |
2224 | if key == "q" and camo == true then | |
2225 | camo = false | |
2226 | ||
2227 | Camoflauge:Destroy() | |
2228 | ||
2229 | end | |
2230 | end) | |
2231 | ||
2232 | ||
2233 | mouse.KeyDown:connect(function(key) | |
2234 | key:lower() | |
2235 | if key == "c" then | |
2236 | ||
2237 | for i,v in pairs(game.Players:getPlayers()) do | |
2238 | if v.Name~=Cha.Name then | |
2239 | for j,k in pairs(v.Character:GetChildren()) do | |
2240 | if k:IsA("BasePart") and k.Transparency <= 1 then | |
2241 | D = Instance.new("FloorWire",Cha.Torso) | |
2242 | D.From = Cha.Torso | |
2243 | D.To = k | |
2244 | D.Parent = Workspace.Camera | |
2245 | D.Transparency = 0.4 | |
2246 | end | |
2247 | end | |
2248 | end | |
2249 | end | |
2250 | ||
2251 | end | |
2252 | end) | |
2253 | ||
2254 | ||
2255 | mouse.KeyDown:connect(function(key) | |
2256 | key:lower() | |
2257 | if key:byte() == 48 and laydown == false then | |
2258 | Humanoid.WalkSpeed=50 | |
2259 | end | |
2260 | end) | |
2261 | mouse.KeyUp:connect(function(key) | |
2262 | key:lower() | |
2263 | if key:byte() == 48 and laydown == false then | |
2264 | Humanoid.WalkSpeed=16 | |
2265 | end | |
2266 | end) | |
2267 | ||
2268 | mouse.KeyDown:connect(function(key) | |
2269 | key:lower() | |
2270 | if key:byte() == 48 and laydown == true then | |
2271 | Humanoid.WalkSpeed=20 | |
2272 | end | |
2273 | end) | |
2274 | mouse.KeyUp:connect(function(key) | |
2275 | key:lower() | |
2276 | if key:byte() == 48 and laydown == true then | |
2277 | Humanoid.WalkSpeed=10 | |
2278 | end | |
2279 | end) | |
2280 | ||
2281 | ||
2282 | local sine = 0 | |
2283 | local change = 1 | |
2284 | local val = 0 | |
2285 | ||
2286 | ||
2287 | coroutine.resume(coroutine.create(function() | |
2288 | while true do | |
2289 | swait() | |
2290 | sine = sine + change | |
2291 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2292 | local velderp=RootPart.Velocity.y | |
2293 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2294 | if equipped==true or equipped==false then | |
2295 | if attack==false then | |
2296 | idle=idle+1 | |
2297 | else | |
2298 | idle=0 | |
2299 | end | |
2300 | if idle>=500 then | |
2301 | if attack==false then | |
2302 | --Sheath() | |
2303 | end | |
2304 | end | |
2305 | if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == false then | |
2306 | Anim="Jump" | |
2307 | if attack==false then | |
2308 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2309 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2310 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(-10),math.rad(30)),.3) | |
2311 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-30)),.3) | |
2312 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2313 | end | |
2314 | elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == false then | |
2315 | Anim="Fall" | |
2316 | if attack==false then | |
2317 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2318 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2319 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3) | |
2320 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3) | |
2321 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2322 | end | |
2323 | elseif torvel<1 and hitfloor~=nil and laydown == false then | |
2324 | Anim="Idle" | |
2325 | if attack==false then | |
2326 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2327 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-20),math.rad(0)),.3) | |
2328 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-30)),.3) | |
2329 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.3) | |
2330 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2331 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2332 | end | |
2333 | elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == false then | |
2334 | Anim="Walk" | |
2335 | if attack==false then | |
2336 | change=3 | |
2337 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2338 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2339 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-10),math.rad(30)),.3) | |
2340 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(10),math.rad(-30)),.3) | |
2341 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2342 | end | |
2343 | elseif torvel>=22 and hitfloor~=nil and laydown == false then | |
2344 | Anim="Run" | |
2345 | if attack==false then | |
2346 | change=5 | |
2347 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2348 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2349 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-70),math.rad(30)),.3) | |
2350 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(70),math.rad(-30)),.3) | |
2351 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2352 | end | |
2353 | end | |
2354 | end | |
2355 | end | |
2356 | end)) | |
2357 | ||
2358 | coroutine.resume(coroutine.create(function() | |
2359 | while true do | |
2360 | swait() | |
2361 | sine = sine + change | |
2362 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2363 | local velderp=RootPart.Velocity.y | |
2364 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2365 | if equipped==true or equipped==false then | |
2366 | if attack==false then | |
2367 | idle=idle+1 | |
2368 | else | |
2369 | idle=0 | |
2370 | end | |
2371 | if idle>=500 then | |
2372 | if attack==false then | |
2373 | --Sheath() | |
2374 | end | |
2375 | end | |
2376 | if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == true then | |
2377 | Anim="Jump" | |
2378 | if attack==false then | |
2379 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3) | |
2380 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3) | |
2381 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3) | |
2382 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3) | |
2383 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2384 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2385 | end | |
2386 | elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == true then | |
2387 | Anim="Fall" | |
2388 | if attack==false then | |
2389 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3) | |
2390 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3) | |
2391 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3) | |
2392 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3) | |
2393 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2394 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2395 | end | |
2396 | elseif torvel<1 and hitfloor~=nil and laydown == true then | |
2397 | Anim="Idle" | |
2398 | if attack==false then | |
2399 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3) | |
2400 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3) | |
2401 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3) | |
2402 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3) | |
2403 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2404 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2405 | end | |
2406 | elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == true then | |
2407 | Anim="Walk" | |
2408 | if attack==false then | |
2409 | change=3 | |
2410 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3) | |
2411 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3) | |
2412 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3) | |
2413 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3) | |
2414 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2415 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2416 | end | |
2417 | elseif torvel>=22 and hitfloor~=nil and laydown == true then | |
2418 | Anim="Run" | |
2419 | if attack==false then | |
2420 | change=5 | |
2421 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3) | |
2422 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3) | |
2423 | RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3) | |
2424 | LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3) | |
2425 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2426 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2427 | end | |
2428 | end | |
2429 | end | |
2430 | end | |
2431 | end)) |