SHOW:
|
|
- or go back to the newest paste.
1 | - | - |
1 | + | |
2 | TRAIL.Size = VT(0.5,DIST,0.5) | |
3 | else | |
4 | TRAIL.Size = VT(0.25,DIST,0.25) | |
5 | end | |
6 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
7 | coroutine.resume(coroutine.create(function() | |
8 | for i = 1, 5 do | |
9 | Swait() | |
10 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
11 | end | |
12 | TRAIL:remove() | |
13 | end)) | |
14 | end | |
15 | ||
16 | Debris = game:GetService("Debris") | |
17 | ||
18 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
19 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
20 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
21 | end | |
22 | ||
23 | function turnto(position) | |
24 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
25 | end | |
26 | ||
27 | --//=================================\\ | |
28 | --|| WEAPON CREATION | |
29 | --\\=================================// | |
30 | ||
31 | ||
32 | ||
33 | local Particle = IT("ParticleEmitter",nil) | |
34 | Particle.Enabled = false | |
35 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
36 | Particle.LightEmission = 0.5 | |
37 | Particle.Rate = 150 | |
38 | Particle.ZOffset = 0.2 | |
39 | Particle.Rotation = NumberRange.new(-180, 180) | |
40 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
41 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
42 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(1.5,0,1)) | |
43 | ||
44 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
45 | function ParticleEmitter(Table) | |
46 | local PRTCL = Particle:Clone() | |
47 | local Speed = Table.Speed or 5 | |
48 | local Drag = Table.Drag or 0 | |
49 | local Size1 = Table.Size1 or 1 | |
50 | local Size2 = Table.Size2 or 5 | |
51 | local Lifetime1 = Table.Lifetime1 or 1 | |
52 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
53 | local Parent = Table.Parent or Torso | |
54 | local Emit = Table.Emit or 100 | |
55 | local Offset = Table.Offset or 360 | |
56 | local Acel = Table.Acel or VT(0,0,0) | |
57 | local Enabled = Table.Enabled or false | |
58 | PRTCL.Parent = Parent | |
59 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
60 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
61 | PRTCL.Speed = NumberRange.new(Speed) | |
62 | PRTCL.VelocitySpread = Offset | |
63 | PRTCL.Drag = Drag | |
64 | PRTCL.Acceleration = Acel | |
65 | if Enabled == false then | |
66 | PRTCL:Emit(Emit) | |
67 | Debris:AddItem(PRTCL,Lifetime2) | |
68 | else | |
69 | PRTCL.Enabled = true | |
70 | end | |
71 | return PRTCL | |
72 | end | |
73 | ||
74 | ||
75 | ||
76 | local Handle = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
77 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
78 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
79 | MakeForm(Part,"Wedge") | |
80 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
81 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
82 | MakeForm(Part,"Wedge") | |
83 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
84 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
85 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
86 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
87 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
88 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
89 | MakeForm(Part,"Cyl") | |
90 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
91 | for i = 1, 8 do | |
92 | local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
93 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
94 | end | |
95 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
96 | MakeForm(Part,"Cyl") | |
97 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
98 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
99 | MakeForm(Part,"Ball") | |
100 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
101 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
102 | MakeForm(Part,"Wedge") | |
103 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
104 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
105 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
106 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
107 | MakeForm(Part,"Cyl") | |
108 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
109 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
110 | MakeForm(Part,"Cyl") | |
111 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
112 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
113 | MakeForm(Part,"Cyl") | |
114 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
115 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
116 | MakeForm(Part,"Wedge") | |
117 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
118 | local LASTPART = Handle | |
119 | for i = 1, 10 do | |
120 | if LASTPART == Handle then | |
121 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
122 | LASTPART = Part | |
123 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
124 | else | |
125 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
126 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
127 | LASTPART = Part | |
128 | end | |
129 | end | |
130 | ||
131 | local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
132 | MakeForm(Barrel,"Cyl") | |
133 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
134 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
135 | MakeForm(Part,"Cyl") | |
136 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
137 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
138 | MakeForm(Part,"Wedge") | |
139 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
140 | local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
141 | MakeForm(Hole2,"Cyl") | |
142 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0)) | |
143 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
144 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
145 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
146 | local Part = CreatePart(3, Weapon2, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
147 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
148 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
149 | coroutine.resume(coroutine.create(function() | |
150 | while wait() do | |
151 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
152 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
153 | end | |
154 | end)) | |
155 | ---------- | |
156 | ||
157 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
158 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
159 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
160 | MakeForm(Part,"Wedge") | |
161 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
162 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
163 | MakeForm(Part,"Wedge") | |
164 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
165 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
166 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
167 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
168 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
169 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
170 | MakeForm(Part,"Cyl") | |
171 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
172 | for i = 1, 8 do | |
173 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
174 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
175 | end | |
176 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
177 | MakeForm(Part,"Cyl") | |
178 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
179 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
180 | MakeForm(Part,"Ball") | |
181 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
182 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
183 | MakeForm(Part,"Wedge") | |
184 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
185 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
186 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
187 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
188 | MakeForm(Part,"Cyl") | |
189 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
190 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
191 | MakeForm(Part,"Cyl") | |
192 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
193 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
194 | MakeForm(Part,"Cyl") | |
195 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
196 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
197 | MakeForm(Part,"Wedge") | |
198 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
199 | local LASTPART = Handle | |
200 | for i = 1, 10 do | |
201 | if LASTPART == Handle then | |
202 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
203 | LASTPART = Part | |
204 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
205 | else | |
206 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
207 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
208 | LASTPART = Part | |
209 | end | |
210 | end | |
211 | ||
212 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
213 | MakeForm(Barrel,"Cyl") | |
214 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
215 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
216 | MakeForm(Part,"Cyl") | |
217 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
218 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
219 | MakeForm(Part,"Wedge") | |
220 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
221 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
222 | MakeForm(Hole,"Cyl") | |
223 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
224 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
225 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
226 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
227 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
228 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
229 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
230 | coroutine.resume(coroutine.create(function() | |
231 | while wait() do | |
232 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
233 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
234 | end | |
235 | end)) | |
236 | ||
237 | ||
238 | ---epic | |
239 | local Handle = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
240 | local Right42ArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(5,0, 0.5) * ANGLES(RAD(180), RAD(0), RAD(-15 - 13 * SIN(SINE / 12))), CF(0, 0.21, 0)) | |
241 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
242 | MakeForm(Part,"Wedge") | |
243 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
244 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
245 | MakeForm(Part,"Wedge") | |
246 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
247 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
248 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
249 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
250 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
251 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
252 | MakeForm(Part,"Cyl") | |
253 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
254 | for i = 1, 8 do | |
255 | local Piece = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
256 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
257 | end | |
258 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
259 | MakeForm(Part,"Cyl") | |
260 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
261 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
262 | MakeForm(Part,"Ball") | |
263 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
264 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
265 | MakeForm(Part,"Wedge") | |
266 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
267 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
268 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
269 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
270 | MakeForm(Part,"Cyl") | |
271 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
272 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
273 | MakeForm(Part,"Cyl") | |
274 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
275 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
276 | MakeForm(Part,"Cyl") | |
277 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
278 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
279 | MakeForm(Part,"Wedge") | |
280 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
281 | local LASTPART = Handle | |
282 | for i = 1, 10 do | |
283 | if LASTPART == Handle then | |
284 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
285 | LASTPART = Part | |
286 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
287 | else | |
288 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
289 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
290 | LASTPART = Part | |
291 | end | |
292 | end | |
293 | ||
294 | local Barrel = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
295 | MakeForm(Barrel,"Cyl") | |
296 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
297 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
298 | MakeForm(Part,"Cyl") | |
299 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
300 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
301 | MakeForm(Part,"Wedge") | |
302 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
303 | local Hole4 = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
304 | MakeForm(Hole4,"Cyl") | |
305 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole4, CF(0, 0.98, 0), CF(0, 0, 0)) | |
306 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
307 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
308 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
309 | local Part = CreatePart(3, Weapon4, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
310 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
311 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
312 | coroutine.resume(coroutine.create(function() | |
313 | while wait() do | |
314 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
315 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
316 | end | |
317 | end)) | |
318 | ----epic | |
319 | ||
320 | local Handle = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
321 | local Left12ArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-5,0, 0.5) * ANGLES(RAD(180), RAD(0), RAD(15 - 13 * SIN(SINE / 12))), CF(0, 0.21, 0)) | |
322 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
323 | MakeForm(Part,"Wedge") | |
324 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
325 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
326 | MakeForm(Part,"Wedge") | |
327 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
328 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
329 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
330 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
331 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
332 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
333 | MakeForm(Part,"Cyl") | |
334 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
335 | for i = 1, 8 do | |
336 | local Piece = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
337 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
338 | end | |
339 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
340 | MakeForm(Part,"Cyl") | |
341 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
342 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
343 | MakeForm(Part,"Ball") | |
344 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
345 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
346 | MakeForm(Part,"Wedge") | |
347 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
348 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
349 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
350 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
351 | MakeForm(Part,"Cyl") | |
352 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
353 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
354 | MakeForm(Part,"Cyl") | |
355 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
356 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
357 | MakeForm(Part,"Cyl") | |
358 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
359 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
360 | MakeForm(Part,"Wedge") | |
361 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
362 | local LASTPART = Handle | |
363 | for i = 1, 10 do | |
364 | if LASTPART == Handle then | |
365 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
366 | LASTPART = Part | |
367 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
368 | else | |
369 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
370 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
371 | LASTPART = Part | |
372 | end | |
373 | end | |
374 | ||
375 | local Barrel = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
376 | MakeForm(Barrel,"Cyl") | |
377 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
378 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
379 | MakeForm(Part,"Cyl") | |
380 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
381 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
382 | MakeForm(Part,"Wedge") | |
383 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
384 | local Hole3 = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
385 | MakeForm(Hole3,"Cyl") | |
386 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole3, CF(0, 0.98, 0), CF(0, 0, 0)) | |
387 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
388 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
389 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
390 | local Part = CreatePart(3, Weapon5, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
391 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
392 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
393 | coroutine.resume(coroutine.create(function() | |
394 | while wait() do | |
395 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
396 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
397 | end | |
398 | end)) | |
399 | ||
400 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole6, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
401 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole5, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
402 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole4, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
403 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole3, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
404 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
405 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 1, Enabled = true, Acel = VT(0,5,0)}) | |
406 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
407 | ||
408 | for _, c in pairs(Weapon:GetDescendants()) do | |
409 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
410 | c.Material = "Wood" | |
411 | c.Color = C3(0,0,0) | |
412 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
413 | c.Color = C3(1,0,0) | |
414 | c.Material = "Neon" | |
415 | end | |
416 | end | |
417 | ||
418 | for _, c in pairs(Weapon2:GetDescendants()) do | |
419 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
420 | c.Material = "Wood" | |
421 | c.Color = C3(0,0,0) | |
422 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
423 | c.Color = C3(1,0,0) | |
424 | c.Material = "Neon" | |
425 | end | |
426 | end | |
427 | ||
428 | Weapon7.Parent = nil | |
429 | Weapon6.Parent = nil | |
430 | Weapon5.Parent = nil | |
431 | Weapon4.Parent = nil | |
432 | Weapon2.Parent = nil | |
433 | Weapon.Parent = nil | |
434 | for _, c in pairs(Weapon:GetChildren()) do | |
435 | if c.ClassName == "Part" then | |
436 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
437 | end | |
438 | end | |
439 | ||
440 | for _, c in pairs(Weapon2:GetChildren()) do | |
441 | if c.ClassName == "Part" then | |
442 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
443 | end | |
444 | end | |
445 | ||
446 | for _, c in pairs(Weapon4:GetChildren()) do | |
447 | if c.ClassName == "Part" then | |
448 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
449 | end | |
450 | end | |
451 | ||
452 | local SKILLTEXTCOLOR = C3(1.5,0,1) | |
453 | local SKILLFONT = "Cartoon" | |
454 | local SKILLTEXTSIZE = 7 | |
455 | ||
456 | Humanoid.Died:connect(function() | |
457 | ATTACK = true | |
458 | end) | |
459 | ||
460 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
461 | --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
462 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
463 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
464 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
465 | ]] | |
466 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Edit By NameClan", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
467 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
468 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
469 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
470 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
471 | ]] | |
472 | function printbye(Name) | |
473 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
474 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
475 | end | |
476 | ||
477 | workspace.ChildAdded:connect(function(instance) | |
478 | for BANISH = 1, #TOBANISH do | |
479 | if TOBANISH[BANISH] ~= nil then | |
480 | if instance.Name == TOBANISH[BANISH] then | |
481 | coroutine.resume(coroutine.create(function() | |
482 | printbye(instance.Name) | |
483 | instance:ClearAllChildren() | |
484 | Debris:AddItem(instance,0.0005) | |
485 | end)) | |
486 | end | |
487 | end | |
488 | end | |
489 | end) | |
490 | ||
491 | --//=================================\\ | |
492 | --|| DAMAGING | |
493 | --\\=================================// | |
494 | ||
495 | function Banish(Foe) | |
496 | if Foe then | |
497 | coroutine.resume(coroutine.create(function() | |
498 | --if game.Players:FindFirstChild(Foe.Name) then | |
499 | table.insert(TOBANISH,Foe.Name) | |
500 | printbye(Foe.Name) | |
501 | --end | |
502 | Foe.Archivable = true | |
503 | local CLONE = Foe:Clone() | |
504 | Foe:Destroy() | |
505 | CLONE.Parent = Effects | |
506 | CLONE:BreakJoints() | |
507 | local MATERIALS = {"Wood","Neon"} | |
508 | for _, c in pairs(CLONE:GetDescendants()) do | |
509 | if c:IsA("BasePart") then | |
510 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
511 | CreateSound(340722848, c, 10, 1, false) | |
512 | end | |
513 | c.Anchored = true | |
514 | c.Transparency = c.Transparency + 0.2 | |
515 | c.Material = MATERIALS[MRANDOM(1,2)] | |
516 | c.Color = C3(1,0,0) | |
517 | if c.ClassName == "MeshPart" then | |
518 | c.TextureID = "" | |
519 | end | |
520 | if c:FindFirstChildOfClass("SpecialMesh") then | |
521 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
522 | end | |
523 | if c:FindFirstChildOfClass("Decal") then | |
524 | c:FindFirstChildOfClass("Decal"):remove() | |
525 | end | |
526 | c.Name = "Banished" | |
527 | c.CanCollide = false | |
528 | else | |
529 | c:remove() | |
530 | end | |
531 | end | |
532 | local A = false | |
533 | for i = 1, 35 do | |
534 | if A == false then | |
535 | A = true | |
536 | elseif A == true then | |
537 | A = false | |
538 | end | |
539 | for _, c in pairs(CLONE:GetDescendants()) do | |
540 | if c:IsA("BasePart") then | |
541 | c.Anchored = true | |
542 | c.Material = MATERIALS[MRANDOM(1,2)] | |
543 | c.Transparency = c.Transparency + 0.8/35 | |
544 | if A == false then | |
545 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
546 | elseif A == true then | |
547 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
548 | end | |
549 | end | |
550 | end | |
551 | Swait() | |
552 | end | |
553 | CLONE:remove() | |
554 | end)) | |
555 | end | |
556 | end | |
557 | ||
558 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
559 | local CHILDREN = workspace:GetDescendants() | |
560 | for index, CHILD in pairs(CHILDREN) do | |
561 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
562 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
563 | if HUM then | |
564 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
565 | if TORSO then | |
566 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
567 | if ISBANISH == true then | |
568 | Banish(CHILD) | |
569 | else | |
570 | if ISBANISH == "Gravity" then | |
571 | HUM.PlatformStand = true | |
572 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
573 | local grav = Instance.new("BodyPosition",TORSO) | |
574 | grav.D = 15 | |
575 | grav.P = 20000 | |
576 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
577 | grav.position = TORSO.Position | |
578 | grav.Name = "V3BanishForce"..Player.Name | |
579 | else | |
580 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
581 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
582 | end | |
583 | else | |
584 | HUM.PlatformStand = false | |
585 | end | |
586 | end | |
587 | elseif ISBANISH == "Gravity" then | |
588 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
589 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
590 | HUM.PlatformStand = false | |
591 | end | |
592 | end | |
593 | end | |
594 | end | |
595 | end | |
596 | end | |
597 | end | |
598 | ||
599 | --//=================================\\ | |
600 | --|| ATTACK FUNCTIONS AND STUFF | |
601 | --\\=================================// | |
602 | ||
603 | function Intro() | |
604 | ATTACK = true | |
605 | Rooted = true | |
606 | for i=0, 13, 0.1 / Animation_Speed do | |
607 | Swait() | |
608 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
609 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
610 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
611 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
612 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
613 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
614 | end | |
615 | for i=0, 15, 0.1 / Animation_Speed do | |
616 | Swait() | |
617 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
618 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
619 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
620 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
621 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
622 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
623 | end | |
624 | CamShake(4,4) | |
625 | CreateSound(363808674, Torso, 6, 1, false) | |
626 | for i=0, 1, 0.1 / Animation_Speed do | |
627 | Swait() | |
628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(45), RAD(0)), 1 / Animation_Speed) | |
630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
631 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
632 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
634 | end | |
635 | for i=0, 1, 0.1 / Animation_Speed do | |
636 | Swait() | |
637 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
638 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1 / Animation_Speed) | |
639 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
640 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
641 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
642 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
643 | end | |
644 | MagicSphere(VT(0,0,0),3,Head.CFrame,"Really black",VT(2,2,2)) | |
645 | Weapon7.Parent = Character | |
646 | Weapon6.Parent = Character | |
647 | Weapon5.Parent = Character | |
648 | Weapon.Parent = Character | |
649 | Weapon2.Parent = Character | |
650 | Weapon3.Parent = Character | |
651 | Weapon4.Parent = Character | |
652 | for _, c in pairs(Character:GetChildren()) do | |
653 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
654 | c.Material = "Fabric" | |
655 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
656 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
657 | end | |
658 | if c ~= Head then | |
659 | c.Color = C3(0,0,0) | |
660 | else | |
661 | c.Color = C3(1,1,1) | |
662 | end | |
663 | if c == Head then | |
664 | if c:FindFirstChild("face") then | |
665 | c.face:remove() | |
666 | end | |
667 | end | |
668 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
669 | c:remove() | |
670 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
671 | c:remove() | |
672 | end | |
673 | end | |
674 | MagicSphere(VT(0,0,0),3,Head.CFrame,"Really black",VT(2,2,2)) | |
675 | Humanoid.DisplayDistanceType = "None" | |
676 | local naeeym2 = IT("BillboardGui",Character) | |
677 | naeeym2.AlwaysOnTop = true | |
678 | naeeym2.Size = UDim2.new(5,35,2,15) | |
679 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
680 | naeeym2.MaxDistance = 75 | |
681 | naeeym2.Adornee = Character.Head | |
682 | naeeym2.Name = "Name" | |
683 | local tecks2 = IT("TextLabel",naeeym2) | |
684 | tecks2.BackgroundTransparency = 1 | |
685 | tecks2.TextScaled = true | |
686 | tecks2.BorderSizePixel = 0 | |
687 | tecks2.Text = "Maniac Banish" | |
688 | tecks2.Font = "Fantasy" | |
689 | tecks2.TextSize = 30 | |
690 | tecks2.TextStrokeTransparency = 0 | |
691 | tecks2.TextColor3 = C3(1,1,1) | |
692 | tecks2.TextStrokeColor3 = Color3.fromRGB(81, 62, 62) | |
693 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
694 | tecks2.Parent = naeeym2 | |
695 | local top = Instance.new("Shirt") | |
696 | top.ShirtTemplate = "rbxassetid://1182218263" | |
697 | top.Parent = Character | |
698 | top.Name = "Cloth" | |
699 | local bottom = Instance.new("Pants") | |
700 | bottom.PantsTemplate = "rbxassetid://1829011479" | |
701 | bottom.Parent = Character | |
702 | bottom.Name = "Cloth" | |
703 | for i = 1, 16 do | |
704 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
705 | FACE.Color = C3(0,0,0) | |
706 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
707 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) | |
708 | end | |
709 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Really black", "Wistband part", VT(1.015,1.15,1.015),false) | |
710 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, RightLeg, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
711 | ||
712 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Really red", "Wistband part", VT(1.015,1.15,1.015),false) | |
713 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, LeftLeg, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
714 | ||
715 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Lily white", "Wistband part", VT(1.015,1.15,1.015),false) | |
716 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
717 | local part = CreatePart(3, Weapon3, "Neon", 0, 0, "Royal purple", "Wistband part", VT(1.015,1.15,1.015),false) | |
718 | local Caac = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0, -0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
719 | ||
720 | ||
721 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
722 | MakeForm(EYE,"Ball") | |
723 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0)) | |
724 | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false) | |
725 | MakeForm(EYE2,"Ball") | |
726 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) | |
727 | local HAT1 = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(2,0.2,2),false) | |
728 | MakeForm(HAT1,"Cyl") | |
729 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
730 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(2.01,0.15,2.01),false) | |
731 | BELT.Color = Color3.new(0,0,0) | |
732 | MakeForm(BELT,"Cyl") | |
733 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
734 | local HAT2 = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.3,2.2,1.3),false) | |
735 | MakeForm(HAT2,"Cyl") | |
736 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
737 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.2,1.31),false) | |
738 | BELT.Color = Color3.new(0,0,0) | |
739 | MakeForm(BELT,"Cyl") | |
740 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
741 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lily white", "Gem", VT(0.25,0.25,0.1),false) | |
742 | MakeForm(GEM,"Ball") | |
743 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
744 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Gem", VT(0.25,0.25,0.1),false) | |
745 | MakeForm(GEM,"Ball") | |
746 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
747 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false) | |
748 | MakeForm(GEM,"Ball") | |
749 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
750 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false) | |
751 | MakeForm(GEM,"Ball") | |
752 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
753 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
754 | BELT.Color = Color3.new(0,0,0) | |
755 | MakeForm(BELT,"Cyl") | |
756 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
757 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
758 | BELT.Color = Color3.new(0,0,0) | |
759 | MakeForm(BELT,"Cyl") | |
760 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
761 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
762 | BELT.Color = Color3.new(0,0,0) | |
763 | MakeForm(BELT,"Cyl") | |
764 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
765 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.31,0.1,1.31),false) | |
766 | BELT.Color = Color3.new(0,0,0) | |
767 | MakeForm(BELT,"Cyl") | |
768 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
769 | local BELT = CreatePart(3, Character, "Wood", 0, 0, "Black", "Hat", VT(1.3,0.5,1.3),false) | |
770 | ||
771 | MakeForm(BELT,"Ball") | |
772 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
773 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
774 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
775 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
776 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
777 | MakeForm(PRT,"Cyl") | |
778 | local PRT = CreatePart(3, Weapon3, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
779 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
780 | MakeForm(PRT,"Cyl") | |
781 | PRT.Color = Color3.fromRGB(0, 0, 0) | |
782 | local RING = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
783 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
784 | MakeForm(RING,"Cyl") | |
785 | RING.Color = Color3.fromRGB(81, 69, 69) | |
786 | for i = 1, 12 do | |
787 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
788 | PRT.Color = C3(1,0,0) | |
789 | local MSH = IT("BlockMesh",PRT) | |
790 | MSH.Scale = VT(0.6,1,1) | |
791 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
792 | end | |
793 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
794 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
795 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
796 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
797 | MakeForm(PRT,"Cyl") | |
798 | local PRT = CreatePart(3, Weapon3, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
799 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
800 | MakeForm(PRT,"Cyl") | |
801 | PRT.Color = C3(159/255, 111/255, 183/255) | |
802 | local RING = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
803 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
804 | MakeForm(RING,"Cyl") | |
805 | RING.Color = C3(0,0,0) | |
806 | for i = 1, 12 do | |
807 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
808 | PRT.Color = C3(1,0,0) | |
809 | local MSH = IT("BlockMesh",PRT) | |
810 | MSH.Scale = VT(0.6,1,1) | |
811 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
812 | end | |
813 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
814 | PRT.Color = C3(1,0,0) | |
815 | local MSH = IT("BlockMesh",PRT) | |
816 | MSH.Scale = VT(0.4,1,1) | |
817 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
818 | local PRT = CreatePart(3, Weapon3, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
819 | PRT.Color = C3(0,0,0) | |
820 | local MSH = IT("BlockMesh",PRT) | |
821 | MSH.Scale = VT(0.4,1,1) | |
822 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
823 | for _, c in pairs(Weapon3:GetChildren()) do | |
824 | if c.ClassName == "Part" then | |
825 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
826 | end | |
827 | end | |
828 | for i = 1, 100 do | |
829 | Swait() | |
830 | for _, c in pairs(Character:GetChildren()) do | |
831 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
832 | c.Transparency = 0 | |
833 | end | |
834 | end | |
835 | for _, c in pairs(Weapon:GetChildren()) do | |
836 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
837 | c.Transparency = 0 | |
838 | end | |
839 | end | |
840 | for _, c in pairs(Weapon2:GetChildren()) do | |
841 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
842 | c.Transparency = 0 | |
843 | end | |
844 | end | |
845 | for _, c in pairs(Weapon:GetDescendants()) do | |
846 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
847 | c.Material = "Wood" | |
848 | c.Color = C3(0,0,0) | |
849 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
850 | c.Color = C3(1,0,0) | |
851 | c.Material = "Neon" | |
852 | end | |
853 | end | |
854 | ||
855 | for _, c in pairs(Weapon4:GetDescendants()) do | |
856 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
857 | c.Material = "Wood" | |
858 | c.Color = C3(0,0,0) | |
859 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
860 | c.Color = C3(1,0,0) | |
861 | c.Material = "Neon" | |
862 | end | |
863 | end | |
864 | ||
865 | for _, c in pairs(Weapon5:GetDescendants()) do | |
866 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
867 | c.Material = "Wood" | |
868 | c.Color = C3(0,0,0) | |
869 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
870 | c.Color = C3(1.5,0,1) | |
871 | c.Material = "Neon" | |
872 | end | |
873 | end | |
874 | ||
875 | for _, c in pairs(Weapon6:GetDescendants()) do | |
876 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
877 | c.Material = "Wood" | |
878 | c.Color = C3(0,0,0) | |
879 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
880 | c.Color = C3(0,0,0) | |
881 | c.Material = "Neon" | |
882 | end | |
883 | end | |
884 | ||
885 | for _, c in pairs(Weapon7:GetDescendants()) do | |
886 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
887 | c.Material = "Wood" | |
888 | c.Color = C3(0,0,0) | |
889 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
890 | c.Color = C3(1,1,1) | |
891 | c.Material = "Neon" | |
892 | end | |
893 | end | |
894 | ||
895 | for _, c in pairs(Weapon2:GetDescendants()) do | |
896 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
897 | c.Material = "Wood" | |
898 | c.Color = C3(0,0,0) | |
899 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
900 | c.Color = C3(1,0,0) | |
901 | c.Material = "Neon" | |
902 | end | |
903 | end | |
904 | end | |
905 | TRANSFORMED = true | |
906 | ATTACK = false | |
907 | Rooted = false | |
908 | end | |
909 | ||
910 | ||
911 | function Shot() | |
912 | ATTACK = true | |
913 | Rooted = false | |
914 | for i=0, 2, 0.1 / Animation_Speed do | |
915 | Swait() | |
916 | turnto(Mouse.Hit.p) | |
917 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole2.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0,0,0), SoundID = "163619849", SoundPitch = 1, SoundVolume = 0}) | |
918 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0,0,0), SoundID = "163619849", SoundPitch = 2, SoundVolume = 0}) | |
919 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole2.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1.5,0,1), SoundID = "163619849", SoundPitch = 1, SoundVolume = 1}) | |
920 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0.2,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = Hole.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1.5,0,1), SoundID = "163619849", SoundPitch = 2, SoundVolume = 1}) | |
921 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
922 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
923 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-45), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
924 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
925 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
926 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
927 | end | |
928 | for i=0, 1, 0.1 / Animation_Speed do | |
929 | Swait() | |
930 | turnto(Mouse.Hit.p) | |
931 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
932 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
933 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
934 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
935 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
936 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
937 | end | |
938 | repeat | |
939 | for i=0, 0.1, 0.1 / Animation_Speed do | |
940 | Swait() | |
941 | turnto(Mouse.Hit.p) | |
942 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
943 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
944 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
945 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
946 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
947 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
948 | end | |
949 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
950 | SpawnTrail(Hole.Position,POS) | |
951 | if HIT ~= nil then | |
952 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
953 | Banish(HIT.Parent) | |
954 | end | |
955 | end | |
956 | MagicSphere(VT(0,0,0),5,Hole.CFrame,"Really red",VT(1,1,1)) | |
957 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
958 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
959 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
960 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
961 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
962 | SpawnTrail(Hole2.Position,POS) | |
963 | if HIT ~= nil then | |
964 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
965 | Banish(HIT.Parent) | |
966 | end | |
967 | end | |
968 | local HIT,POS = CastProperRay(Hole3.Position, Mouse.Hit.p, 1000, Character) | |
969 | SpawnTrail(Hole3.Position,POS) | |
970 | if HIT ~= nil then | |
971 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
972 | Banish(HIT.Parent) | |
973 | end | |
974 | end | |
975 | local HIT,POS = CastProperRay(Hole4.Position, Mouse.Hit.p, 1000, Character) | |
976 | SpawnTrail(Hole4.Position,POS) | |
977 | if HIT ~= nil then | |
978 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
979 | Banish(HIT.Parent) | |
980 | end | |
981 | end | |
982 | MagicSphere(VT(0,0,0),5,Hole3.CFrame,"Really red",VT(1,1,1)) | |
983 | MagicSphere(VT(0,0,0),5,Hole2.CFrame,"Really red",VT(1,1,1)) | |
984 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
985 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
986 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole3.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
987 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole3.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
988 | ||
989 | MagicSphere(VT(0,0,0),5,Hole4.CFrame,"Really red",VT(1,1,1)) | |
990 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = Hole4.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
991 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
992 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole4.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
993 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole4.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
994 | ||
995 | ----e | |
996 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
997 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
998 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
999 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1000 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1001 | Swait() | |
1002 | CamShake(2,2) | |
1003 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-21), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1004 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1005 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.7) * ANGLES(RAD(75), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1006 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0.7) * ANGLES(RAD(75), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1007 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-21), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1008 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-21), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1009 | end | |
1010 | until KEYHOLD == false | |
1011 | ATTACK = false | |
1012 | Rooted = false | |
1013 | end | |
1014 | function Taunt() | |
1015 | ATTACK = true | |
1016 | Rooted = false | |
1017 | for i=0, 2, 0.1 / Animation_Speed do | |
1018 | Swait() | |
1019 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1020 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1021 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1022 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1023 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1024 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1025 | end | |
1026 | CreateSound(2618961109, Head, 5, 1, false) | |
1027 | for i=0, 3, 0.1 / Animation_Speed do | |
1028 | Swait() | |
1029 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(45 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed) | |
1030 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(21), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1031 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, - 0.1 * COS(SINE / 3)) * ANGLES(RAD(21), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1032 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1033 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(45), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1034 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(45), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1035 | end | |
1036 | ATTACK = false | |
1037 | Rooted = false | |
1038 | end | |
1039 | ||
1040 | function AttackTemplate() | |
1041 | ATTACK = true | |
1042 | Rooted = false | |
1043 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22}) | |
1044 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(Head.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1045 | WACKYEFFECT({Time = 100+(35), EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1046 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(2,0,2), Size2 = VT(32,2.5,32), Transparency = 0.75, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-4,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22}) | |
1047 | WACKYEFFECT({Time = 100+(35), EffectType = "Wave", Size = VT(85,0,85), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.8, CFrame = CF(Head.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1048 | WACKYEFFECT({Time = 100+(35), EffectType = "Sphere", Size = VT(45,45,45), Size2 = VT(0,0,0), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1049 | for i=0, 5, 0.1 / Animation_Speed do | |
1050 | Swait() | |
1051 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1052 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1053 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1054 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1055 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-12), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1056 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-12), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1057 | end | |
1058 | CamShake(5,7) | |
1059 | MagicSphere(VT(0,0,0),5,Hole.CFrame,"Really red",VT(1,1,1)) | |
1060 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1061 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1062 | MagicSphere(VT(0,0,0),5,Hole4.CFrame,"Really red",VT(1,1,1)) | |
1063 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = Hole4.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1064 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole4.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1065 | ||
1066 | MagicSphere(VT(0,0,0),5,Hole3.CFrame,"Really red",VT(1,1,1)) | |
1067 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1068 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole3.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1069 | ||
1070 | MagicSphere(VT(0,0,0),5,Hole2.CFrame,"Really red",VT(1,1,1)) | |
1071 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1.5,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1072 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 168143115, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1073 | ||
1074 | local POS = RootPart.Position | |
1075 | ApplyAoE(POS, 60, true) | |
1076 | CreateSound(833855896, Torso, 10, 1, false) | |
1077 | CreateSound(2103404398, Torso, 10, 1, false) | |
1078 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1079 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22}) | |
1080 | WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1081 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22}) | |
1082 | WACKYEFFECT({Time = 175, EffectType = "Sphere", Size = Head.Size, Size2 = VT(250,250,250)+(VT(0,0,0)*180), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Head.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = 1-(10), SoundVolume = 5, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0}) | |
1083 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(15,0,15), Size2 = VT(120,5,120)+(VT(0,0,0)*70), Transparency = 0.6, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Pink".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22}) | |
1084 | ATTACK = false | |
1085 | Rooted = false | |
1086 | end | |
1087 | ||
1088 | --//=================================\\ | |
1089 | --|| ASSIGN THINGS TO KEYS | |
1090 | --\\=================================// | |
1091 | ||
1092 | function MouseDown(Mouse) | |
1093 | if ATTACK == false then | |
1094 | end | |
1095 | end | |
1096 | ||
1097 | function MouseUp(Mouse) | |
1098 | HOLD = false | |
1099 | end | |
1100 | ||
1101 | function KeyDown(Key) | |
1102 | KEYHOLD = true | |
1103 | if Key == "z" and ATTACK == false then | |
1104 | Shot() | |
1105 | end | |
1106 | ||
1107 | if Key == "b" and ATTACK == false then | |
1108 | AttackTemplate() | |
1109 | end | |
1110 | ||
1111 | if Key == "t" and ATTACK == false then | |
1112 | Taunt() | |
1113 | end | |
1114 | ||
1115 | if Key == "v" and ATTACK == false then | |
1116 | end | |
1117 | ||
1118 | if Key == "x" and ATTACK == false then | |
1119 | end | |
1120 | end | |
1121 | ||
1122 | function KeyUp(Key) | |
1123 | KEYHOLD = false | |
1124 | end | |
1125 | ||
1126 | Mouse.Button1Down:connect(function(NEWKEY) | |
1127 | MouseDown(NEWKEY) | |
1128 | end) | |
1129 | Mouse.Button1Up:connect(function(NEWKEY) | |
1130 | MouseUp(NEWKEY) | |
1131 | end) | |
1132 | Mouse.KeyDown:connect(function(NEWKEY) | |
1133 | KeyDown(NEWKEY) | |
1134 | end) | |
1135 | Mouse.KeyUp:connect(function(NEWKEY) | |
1136 | KeyUp(NEWKEY) | |
1137 | end) | |
1138 | ||
1139 | --//=================================\\ | |
1140 | --\\=================================// | |
1141 | ||
1142 | ||
1143 | function unanchor() | |
1144 | if UNANCHOR == true then | |
1145 | g = Character:GetChildren() | |
1146 | for i = 1, #g do | |
1147 | if g[i].ClassName == "Part" then | |
1148 | g[i].Anchored = false | |
1149 | end | |
1150 | end | |
1151 | end | |
1152 | end | |
1153 | ||
1154 | ||
1155 | --//=================================\\ | |
1156 | --|| WRAP THE WHOLE SCRIPT UP | |
1157 | --\\=================================// | |
1158 | ||
1159 | Humanoid.Changed:connect(function(Jump) | |
1160 | if Jump == "Jump" and (Disable_Jump == true) then | |
1161 | Humanoid.Jump = false | |
1162 | end | |
1163 | end) | |
1164 | ||
1165 | local CONNECT = nil | |
1166 | ||
1167 | while true do | |
1168 | Swait() | |
1169 | ANIMATE.Parent = nil | |
1170 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1171 | Humanoid = IT("Humanoid",Character) | |
1172 | end | |
1173 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1174 | v:Stop(); | |
1175 | end | |
1176 | SINE = SINE + CHANGE | |
1177 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1178 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1179 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1180 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1181 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1182 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1183 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1184 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1185 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1186 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1187 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1188 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1189 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1190 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1191 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1192 | end | |
1193 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1194 | ANIM = "Jump" | |
1195 | if ATTACK == false then | |
1196 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1197 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1198 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1199 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1200 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1201 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1202 | end | |
1203 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1204 | ANIM = "Fall" | |
1205 | if ATTACK == false then | |
1206 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1207 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1208 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1209 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1210 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1211 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1212 | end | |
1213 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1214 | ANIM = "Idle" | |
1215 | if ATTACK == false then | |
1216 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1217 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 - 0.1 * COS(SINE / 3) + ((1) - 1)) * ANGLES(RAD(30 - 2.5 * SIN(SINE / 12)), RAD(7 * COS(SINE / 24)), RAD(0)), 0.5 / Animation_Speed) | |
1218 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1219 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1220 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1221 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1222 | if MRANDOM(1,100) == 1 then | |
1223 | VALUE1 = true | |
1224 | for i = 1, 75 do | |
1225 | Swait() | |
1226 | sick.Pitch = 0.8 | |
1227 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(25), RAD(MRANDOM(-25,25))), 1 / Animation_Speed) | |
1228 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 4)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1229 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1230 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.4 - 0.1 * COS(SINE / 4), 0.25 - 0.025 * COS(SINE / 5)) * ANGLES(RAD(-30), RAD(0), RAD(30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1231 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1232 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 4), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1233 | end | |
1234 | sick.Pitch = 1 | |
1235 | VALUE1 = false | |
1236 | end | |
1237 | end | |
1238 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1239 | ANIM = "Walk" | |
1240 | WALK = WALK + 1 / Animation_Speed | |
1241 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / SIZE)) then | |
1242 | WALK = 0 | |
1243 | if WALKINGANIM == true then | |
1244 | WALKINGANIM = false | |
1245 | elseif WALKINGANIM == false then | |
1246 | WALKINGANIM = true | |
1247 | end | |
1248 | end | |
1249 | if ATTACK == false then | |
1250 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(45), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
1253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(-45), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1254 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1255 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1256 | end | |
1257 | end | |
1258 | unanchor() | |
1259 | Humanoid.MaxHealth = "inf" | |
1260 | Humanoid.Health = "inf" | |
1261 | if Rooted == false then | |
1262 | Disable_Jump = false | |
1263 | Humanoid.WalkSpeed = Speed | |
1264 | elseif Rooted == true then | |
1265 | Disable_Jump = true | |
1266 | Humanoid.WalkSpeed = 0 | |
1267 | end | |
1268 | if INTRO == false and INSTANT == false then | |
1269 | INTRO = true | |
1270 | coroutine.resume(coroutine.create(function() | |
1271 | sick:Play() | |
1272 | Intro() | |
1273 | end)) | |
1274 | end | |
1275 | if INSTANT == true then | |
1276 | if TRANSFORMED == false then | |
1277 | sick.TimePosition = 119 | |
1278 | sick:Play() | |
1279 | Gun.Parent = Character | |
1280 | end | |
1281 | TRANSFORMED = true | |
1282 | end | |
1283 | sick.Parent = Torso | |
1284 | sick:resume() | |
1285 | sick.Looped = true | |
1286 | sick.Volume = 2 | |
1287 | sick.Pitch = 1 | |
1288 | sick.SoundId = "rbxassetid://1600388782" | |
1289 | sick.Name = "Dead" | |
1290 | end | |
1291 | ||
1292 | --//=================================\\ | |
1293 | --\\=================================// | |
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | --//====================================================\\-- | |
1300 | --|| END OF SCRIPT | |
1301 | --\\====================================================//-- |