SHOW:
|
|
- or go back to the newest paste.
1 | Player = game.Players.LocalPlayer | |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | Character = Player.Character |
3 | local txt = Instance.new("BillboardGui", Character) | |
4 | txt.Adornee = Character.Head | |
5 | txt.Name = "_status" | |
6 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
7 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
8 | local text = Instance.new("TextLabel", txt) | |
9 | text.Size = UDim2.new(10, 0, 7, 0) | |
10 | text.FontSize = "Size24" | |
11 | text.TextScaled = true | |
12 | text.TextTransparency = 0 | |
13 | text.BackgroundTransparency = 1 | |
14 | text.TextTransparency = 0 | |
15 | text.TextStrokeTransparency = 0 | |
16 | text.Font = "Antique" | |
17 | text.TextStrokeColor3 = Color3.new(0,330,170) | |
18 | text.Text = "The Final" | |
19 | script.Name = "Banisher Gun V3 / 1" | |
20 | --//====================================================\\-- | |
21 | --|| CREATED BY SHACKLUSTER | |
22 | --\\====================================================//-- | |
23 | ||
24 | wait(0.2) | |
25 | ||
26 | Player = game:GetService("Players").LocalPlayer | |
27 | PlayerGui = Player.PlayerGui | |
28 | - | sick.SoundId = "rbxassetid://848439234" |
28 | + | |
29 | Backpack = Player.Backpack | |
30 | Character = Player.Character | |
31 | Humanoid = Character.Humanoid | |
32 | Mouse = Player:GetMouse() | |
33 | RootPart = Character["HumanoidRootPart"] | |
34 | Torso = Character["Torso"] | |
35 | Head = Character["Head"] | |
36 | RightArm = Character["Right Arm"] | |
37 | LeftArm = Character["Left Arm"] | |
38 | RightLeg = Character["Right Leg"] | |
39 | LeftLeg = Character["Left Leg"] | |
40 | RootJoint = RootPart["RootJoint"] | |
41 | Neck = Torso["Neck"] | |
42 | RightShoulder = Torso["Right Shoulder"] | |
43 | LeftShoulder = Torso["Left Shoulder"] | |
44 | RightHip = Torso["Right Hip"] | |
45 | LeftHip = Torso["Left Hip"] | |
46 | local sick = Instance.new("Sound",Torso) | |
47 | sick.SoundId = "rbxassetid://" | |
48 | sick.Looped = true | |
49 | sick.Pitch = 1 | |
50 | sick.Volume = 3 | |
51 | sick:Play() | |
52 | - | --|| USEFUL VALUES |
52 | + | |
53 | IT = Instance.new | |
54 | CF = CFrame.new | |
55 | - | Animation_Speed = 3 |
55 | + | |
56 | RAD = math.rad | |
57 | C3 = Color3.new | |
58 | UD2 = UDim2.new | |
59 | BRICKC = BrickColor.new | |
60 | ANGLES = CFrame.Angles | |
61 | EULER = CFrame.fromEulerAnglesXYZ | |
62 | COS = math.cos | |
63 | ACOS = math.acos | |
64 | SIN = math.sin | |
65 | ASIN = math.asin | |
66 | ABS = math.abs | |
67 | MRANDOM = math.random | |
68 | FLOOR = math.floor | |
69 | ||
70 | --//=================================\\ | |
71 | --|| USEFUL VALUES | |
72 | --\\=================================// | |
73 | ||
74 | Animation_Speed = 0.8 | |
75 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
76 | local Speed = 35 | |
77 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
78 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
79 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
80 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
81 | local DAMAGEMULTIPLIER = 1 | |
82 | local ANIM = "Idle" | |
83 | local ATTACK = false | |
84 | local EQUIPPED = false | |
85 | local HOLD = false | |
86 | local COMBO = 1 | |
87 | local Rooted = false | |
88 | local SINE = 0 | |
89 | local KEYHOLD = false | |
90 | local CHANGE = 2 / Animation_Speed | |
91 | local WALKINGANIM = false | |
92 | local VALUE1 = false | |
93 | local VALUE2 = false | |
94 | local ROBLOXIDLEANIMATION = IT("Animation") | |
95 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
96 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
97 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
98 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
99 | WEAPONGUI.Name = "Weapon GUI" | |
100 | local Effects = IT("Folder", Character) | |
101 | Effects.Name = "Effects" | |
102 | local ANIMATOR = Humanoid.Animator | |
103 | local ANIMATE = Character.Animate | |
104 | local UNANCHOR = true | |
105 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
106 | local SONGS = {534861083,530959353,1534958855,0} | |
107 | local CHOICE = MRANDOM(1,4) | |
108 | ||
109 | --//=================================\\ | |
110 | --\\=================================// | |
111 | - | tf = tf + s |
111 | + | |
112 | - | if tf >= frame then |
112 | + | |
113 | - | if allowframeloss then |
113 | + | |
114 | - | script.ArtificialHB:Fire() |
114 | + | |
115 | - | lastframe = tick() |
115 | + | |
116 | - | else |
116 | + | |
117 | - | for i = 1, math.floor(tf / frame) do |
117 | + | |
118 | - | script.ArtificialHB:Fire() |
118 | + | |
119 | - | end |
119 | + | |
120 | - | lastframe = tick() |
120 | + | |
121 | - | end |
121 | + | |
122 | - | if tossremainder then |
122 | + | |
123 | - | tf = 0 |
123 | + | |
124 | - | else |
124 | + | |
125 | - | tf = tf - frame * math.floor(tf / frame) |
125 | + | |
126 | - | end |
126 | + | |
127 | - | end |
127 | + | |
128 | ||
129 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
130 | tf = tf + s | |
131 | if tf >= frame then | |
132 | if allowframeloss then | |
133 | script.ArtificialHB:Fire() | |
134 | - | --|| SOME FUNCTIONS |
134 | + | lastframe = tick() |
135 | else | |
136 | for i = 1, math.floor(tf / frame) do | |
137 | script.ArtificialHB:Fire() | |
138 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
138 | + | end |
139 | lastframe = tick() | |
140 | end | |
141 | if tossremainder then | |
142 | - | if NUMBER >= 0 then |
142 | + | tf = 0 |
143 | - | NUMBER = 0 |
143 | + | else |
144 | - | end |
144 | + | tf = tf - frame * math.floor(tf / frame) |
145 | - | return NUMBER |
145 | + | end |
146 | end | |
147 | end) | |
148 | ||
149 | - | if NUMBER <= 0 then |
149 | + | |
150 | - | NUMBER = 0 |
150 | + | |
151 | - | end |
151 | + | |
152 | - | return NUMBER |
152 | + | |
153 | --|| SOME FUNCTIONS | |
154 | --\\=================================// | |
155 | ||
156 | - | if NUMBER == 0 or NUMBER == nil then |
156 | + | |
157 | - | ArtificialHB.Event:wait() |
157 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
158 | - | else |
158 | + | |
159 | - | for i = 1, NUMBER do |
159 | + | |
160 | - | ArtificialHB.Event:wait() |
160 | + | |
161 | - | end |
161 | + | if NUMBER >= 0 then |
162 | - | end |
162 | + | NUMBER = 0 |
163 | end | |
164 | return NUMBER | |
165 | end | |
166 | - | local NEWMESH = IT(MESH) |
166 | + | |
167 | - | if MESH == "SpecialMesh" then |
167 | + | |
168 | - | NEWMESH.MeshType = MESHTYPE |
168 | + | if NUMBER <= 0 then |
169 | - | if MESHID ~= "nil" and MESHID ~= "" then |
169 | + | NUMBER = 0 |
170 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
170 | + | end |
171 | - | end |
171 | + | return NUMBER |
172 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
172 | + | |
173 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
173 | + | |
174 | - | end |
174 | + | |
175 | - | end |
175 | + | if NUMBER == 0 or NUMBER == nil then |
176 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
176 | + | ArtificialHB.Event:wait() |
177 | - | NEWMESH.Scale = SCALE |
177 | + | else |
178 | - | NEWMESH.Parent = PARENT |
178 | + | for i = 1, NUMBER do |
179 | - | return NEWMESH |
179 | + | ArtificialHB.Event:wait() |
180 | end | |
181 | end | |
182 | end | |
183 | - | local NEWPART = IT("Part") |
183 | + | |
184 | - | NEWPART.formFactor = FORMFACTOR |
184 | + | |
185 | - | NEWPART.Reflectance = REFLECTANCE |
185 | + | local NEWMESH = IT(MESH) |
186 | - | NEWPART.Transparency = TRANSPARENCY |
186 | + | if MESH == "SpecialMesh" then |
187 | - | NEWPART.CanCollide = false |
187 | + | NEWMESH.MeshType = MESHTYPE |
188 | - | NEWPART.Locked = true |
188 | + | if MESHID ~= "nil" and MESHID ~= "" then |
189 | - | NEWPART.Anchored = true |
189 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
190 | - | if ANCHOR == false then |
190 | + | end |
191 | - | NEWPART.Anchored = false |
191 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
192 | - | end |
192 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
193 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
193 | + | end |
194 | - | NEWPART.Name = NAME |
194 | + | end |
195 | - | NEWPART.Size = SIZE |
195 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
196 | - | NEWPART.Position = Torso.Position |
196 | + | NEWMESH.Scale = SCALE |
197 | - | NEWPART.Material = MATERIAL |
197 | + | NEWMESH.Parent = PARENT |
198 | - | NEWPART:BreakJoints() |
198 | + | return NEWMESH |
199 | - | NEWPART.Parent = PARENT |
199 | + | |
200 | - | return NEWPART |
200 | + | |
201 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
202 | local NEWPART = IT("Part") | |
203 | - | local function weldBetween(a, b) |
203 | + | NEWPART.formFactor = FORMFACTOR |
204 | - | local weldd = IT("Weld") |
204 | + | NEWPART.Reflectance = REFLECTANCE |
205 | - | weldd.Part0 = a |
205 | + | NEWPART.Transparency = TRANSPARENCY |
206 | - | weldd.Part1 = b |
206 | + | NEWPART.CanCollide = false |
207 | - | weldd.C0 = CF() |
207 | + | NEWPART.Locked = true |
208 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
208 | + | NEWPART.Anchored = true |
209 | - | weldd.Parent = a |
209 | + | if ANCHOR == false then |
210 | - | return weldd |
210 | + | NEWPART.Anchored = false |
211 | - | end |
211 | + | end |
212 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
213 | NEWPART.Name = NAME | |
214 | NEWPART.Size = SIZE | |
215 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
215 | + | NEWPART.Position = Torso.Position |
216 | - | local trace = m00 + m11 + m22 |
216 | + | NEWPART.Material = MATERIAL |
217 | - | if trace > 0 then |
217 | + | NEWPART:BreakJoints() |
218 | - | local s = math.sqrt(1 + trace) |
218 | + | NEWPART.Parent = PARENT |
219 | - | local recip = 0.5 / s |
219 | + | return NEWPART |
220 | - | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
220 | + | |
221 | - | else |
221 | + | |
222 | - | local i = 0 |
222 | + | local function weldBetween(a, b) |
223 | - | if m11 > m00 then |
223 | + | local weldd = IT("Weld") |
224 | - | i = 1 |
224 | + | weldd.Part0 = a |
225 | - | end |
225 | + | weldd.Part1 = b |
226 | - | if m22 > (i == 0 and m00 or m11) then |
226 | + | weldd.C0 = CF() |
227 | - | i = 2 |
227 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
228 | - | end |
228 | + | weldd.Parent = a |
229 | - | if i == 0 then |
229 | + | return weldd |
230 | - | local s = math.sqrt(m00 - m11 - m22 + 1) |
230 | + | end |
231 | - | local recip = 0.5 / s |
231 | + | |
232 | - | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
232 | + | |
233 | - | elseif i == 1 then |
233 | + | |
234 | - | local s = math.sqrt(m11 - m22 - m00 + 1) |
234 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
235 | - | local recip = 0.5 / s |
235 | + | local trace = m00 + m11 + m22 |
236 | - | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
236 | + | if trace > 0 then |
237 | - | elseif i == 2 then |
237 | + | local s = math.sqrt(1 + trace) |
238 | - | local s = math.sqrt(m22 - m00 - m11 + 1) |
238 | + | local recip = 0.5 / s |
239 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
239 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
240 | - | end |
240 | + | else |
241 | - | end |
241 | + | local i = 0 |
242 | if m11 > m00 then | |
243 | i = 1 | |
244 | end | |
245 | - | local xs, ys, zs = x + x, y + y, z + z |
245 | + | if m22 > (i == 0 and m00 or m11) then |
246 | - | local wx, wy, wz = w * xs, w * ys, w * zs |
246 | + | i = 2 |
247 | - | local xx = x * xs |
247 | + | end |
248 | - | local xy = x * ys |
248 | + | if i == 0 then |
249 | - | local xz = x * zs |
249 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
250 | - | local yy = y * ys |
250 | + | local recip = 0.5 / s |
251 | - | local yz = y * zs |
251 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
252 | - | local zz = z * zs |
252 | + | elseif i == 1 then |
253 | - | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
253 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
254 | local recip = 0.5 / s | |
255 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
256 | elseif i == 2 then | |
257 | - | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
257 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
258 | - | local startInterp, finishInterp; |
258 | + | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
259 | - | if cosTheta >= 0.0001 then |
259 | + | end |
260 | - | if (1 - cosTheta) > 0.0001 then |
260 | + | end |
261 | - | local theta = ACOS(cosTheta) |
261 | + | |
262 | - | local invSinTheta = 1 / SIN(theta) |
262 | + | |
263 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
263 | + | |
264 | - | finishInterp = SIN(t * theta) * invSinTheta |
264 | + | local xs, ys, zs = x + x, y + y, z + z |
265 | - | else |
265 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
266 | - | startInterp = 1 - t |
266 | + | local xx = x * xs |
267 | - | finishInterp = t |
267 | + | local xy = x * ys |
268 | - | end |
268 | + | local xz = x * zs |
269 | - | else |
269 | + | local yy = y * ys |
270 | - | if (1 + cosTheta) > 0.0001 then |
270 | + | local yz = y * zs |
271 | - | local theta = ACOS(-cosTheta) |
271 | + | local zz = z * zs |
272 | - | local invSinTheta = 1 / SIN(theta) |
272 | + | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
273 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
273 | + | |
274 | - | finishInterp = SIN(t * theta) * invSinTheta |
274 | + | |
275 | - | else |
275 | + | |
276 | - | startInterp = t - 1 |
276 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
277 | - | finishInterp = t |
277 | + | local startInterp, finishInterp; |
278 | - | end |
278 | + | if cosTheta >= 0.0001 then |
279 | - | end |
279 | + | if (1 - cosTheta) > 0.0001 then |
280 | - | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp |
280 | + | local theta = ACOS(cosTheta) |
281 | local invSinTheta = 1 / SIN(theta) | |
282 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
283 | finishInterp = SIN(t * theta) * invSinTheta | |
284 | - | local qa = {QuaternionFromCFrame(a)} |
284 | + | else |
285 | - | local qb = {QuaternionFromCFrame(b)} |
285 | + | startInterp = 1 - t |
286 | - | local ax, ay, az = a.x, a.y, a.z |
286 | + | finishInterp = t |
287 | - | local bx, by, bz = b.x, b.y, b.z |
287 | + | end |
288 | - | local _t = 1 - t |
288 | + | else |
289 | - | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
289 | + | if (1 + cosTheta) > 0.0001 then |
290 | local theta = ACOS(-cosTheta) | |
291 | local invSinTheta = 1 / SIN(theta) | |
292 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
293 | - | local frame = IT("Frame") |
293 | + | finishInterp = SIN(t * theta) * invSinTheta |
294 | - | frame.BackgroundTransparency = TRANSPARENCY |
294 | + | else |
295 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
295 | + | startInterp = t - 1 |
296 | - | frame.Position = POSITION |
296 | + | finishInterp = t |
297 | - | frame.Size = SIZE |
297 | + | end |
298 | - | frame.BackgroundColor3 = COLOR |
298 | + | end |
299 | - | frame.BorderColor3 = BORDERCOLOR |
299 | + | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp |
300 | - | frame.Name = NAME |
300 | + | |
301 | - | frame.Parent = PARENT |
301 | + | |
302 | - | return frame |
302 | + | |
303 | local qa = {QuaternionFromCFrame(a)} | |
304 | local qb = {QuaternionFromCFrame(b)} | |
305 | local ax, ay, az = a.x, a.y, a.z | |
306 | - | local label = IT("TextLabel") |
306 | + | local bx, by, bz = b.x, b.y, b.z |
307 | - | label.BackgroundTransparency = 1 |
307 | + | local _t = 1 - t |
308 | - | label.Size = UD2(1, 0, 1, 0) |
308 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
309 | - | label.Position = UD2(0, 0, 0, 0) |
309 | + | |
310 | - | label.TextColor3 = TEXTCOLOR |
310 | + | |
311 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
311 | + | |
312 | - | label.TextTransparency = TRANSPARENCY |
312 | + | local frame = IT("Frame") |
313 | - | label.FontSize = TEXTFONTSIZE |
313 | + | frame.BackgroundTransparency = TRANSPARENCY |
314 | - | label.Font = TEXTFONT |
314 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
315 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
315 | + | frame.Position = POSITION |
316 | - | label.TextScaled = false |
316 | + | frame.Size = SIZE |
317 | - | label.Text = TEXT |
317 | + | frame.BackgroundColor3 = COLOR |
318 | - | label.Name = NAME |
318 | + | frame.BorderColor3 = BORDERCOLOR |
319 | - | label.Parent = PARENT |
319 | + | frame.Name = NAME |
320 | - | return label |
320 | + | frame.Parent = PARENT |
321 | return frame | |
322 | end | |
323 | ||
324 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
324 | + | |
325 | local label = IT("TextLabel") | |
326 | label.BackgroundTransparency = 1 | |
327 | label.Size = UD2(1, 0, 1, 0) | |
328 | - | local NEWWELD = IT(TYPE) |
328 | + | label.Position = UD2(0, 0, 0, 0) |
329 | - | NEWWELD.Part0 = PART0 |
329 | + | label.TextColor3 = TEXTCOLOR |
330 | - | NEWWELD.Part1 = PART1 |
330 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
331 | - | NEWWELD.C0 = C0 |
331 | + | label.TextTransparency = TRANSPARENCY |
332 | - | NEWWELD.C1 = C1 |
332 | + | label.FontSize = TEXTFONTSIZE |
333 | - | NEWWELD.Parent = PARENT |
333 | + | label.Font = TEXTFONT |
334 | - | return NEWWELD |
334 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
335 | label.TextScaled = false | |
336 | label.Text = TEXT | |
337 | label.Name = NAME | |
338 | label.Parent = PARENT | |
339 | - | local NEWSOUND = nil |
339 | + | return label |
340 | - | coroutine.resume(coroutine.create(function() |
340 | + | |
341 | - | NEWSOUND = S:Clone() |
341 | + | |
342 | - | NEWSOUND.Parent = PARENT |
342 | + | |
343 | - | NEWSOUND.Volume = VOLUME |
343 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
344 | - | NEWSOUND.Pitch = PITCH |
344 | + | |
345 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
345 | + | |
346 | - | NEWSOUND:play() |
346 | + | |
347 | - | if DOESLOOP == true then |
347 | + | local NEWWELD = IT(TYPE) |
348 | - | NEWSOUND.Looped = true |
348 | + | NEWWELD.Part0 = PART0 |
349 | - | else |
349 | + | NEWWELD.Part1 = PART1 |
350 | - | repeat wait(1) until NEWSOUND.Playing == false |
350 | + | NEWWELD.C0 = C0 |
351 | - | NEWSOUND:remove() |
351 | + | NEWWELD.C1 = C1 |
352 | - | end |
352 | + | NEWWELD.Parent = PARENT |
353 | - | end)) |
353 | + | return NEWWELD |
354 | - | return NEWSOUND |
354 | + | |
355 | ||
356 | local S = IT("Sound") | |
357 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
358 | - | local right = top:Cross(back) |
358 | + | local NEWSOUND = nil |
359 | - | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
359 | + | coroutine.resume(coroutine.create(function() |
360 | NEWSOUND = S:Clone() | |
361 | NEWSOUND.Parent = PARENT | |
362 | NEWSOUND.Volume = VOLUME | |
363 | NEWSOUND.Pitch = PITCH | |
364 | - | local TYPE = (Table.EffectType or "Sphere") |
364 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
365 | - | local SIZE = (Table.Size or VT(1,1,1)) |
365 | + | NEWSOUND:play() |
366 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
366 | + | if DOESLOOP == true then |
367 | - | local TRANSPARENCY = (Table.Transparency or 0) |
367 | + | NEWSOUND.Looped = true |
368 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
368 | + | else |
369 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
369 | + | repeat wait(1) until NEWSOUND.Playing == false |
370 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
370 | + | NEWSOUND:remove() |
371 | - | local ROTATION1 = (Table.RotationX or 0) |
371 | + | end |
372 | - | local ROTATION2 = (Table.RotationY or 0) |
372 | + | end)) |
373 | - | local ROTATION3 = (Table.RotationZ or 0) |
373 | + | return NEWSOUND |
374 | - | local MATERIAL = (Table.Material or "Neon") |
374 | + | |
375 | - | local COLOR = (Table.Color or C3(1,1,1)) |
375 | + | |
376 | - | local TIME = (Table.Time or 45) |
376 | + | |
377 | - | local SOUNDID = (Table.SoundID or nil) |
377 | + | local right = top:Cross(back) |
378 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
378 | + | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
379 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
379 | + | |
380 | - | coroutine.resume(coroutine.create(function() |
380 | + | |
381 | - | local PLAYSSOUND = false |
381 | + | |
382 | - | local SOUND = nil |
382 | + | |
383 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
383 | + | local TYPE = (Table.EffectType or "Sphere") |
384 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
384 | + | local SIZE = (Table.Size or VT(1,1,1)) |
385 | - | PLAYSSOUND = true |
385 | + | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
386 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
386 | + | local TRANSPARENCY = (Table.Transparency or 0) |
387 | - | end |
387 | + | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
388 | - | EFFECT.Color = COLOR |
388 | + | local CFRAME = (Table.CFrame or Torso.CFrame) |
389 | - | local MSH = nil |
389 | + | local MOVEDIRECTION = (Table.MoveToPos or nil) |
390 | - | if TYPE == "Sphere" then |
390 | + | local ROTATION1 = (Table.RotationX or 0) |
391 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
391 | + | local ROTATION2 = (Table.RotationY or 0) |
392 | - | elseif TYPE == "Block" then |
392 | + | local ROTATION3 = (Table.RotationZ or 0) |
393 | - | MSH = IT("BlockMesh",EFFECT) |
393 | + | local MATERIAL = (Table.Material or "Neon") |
394 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
394 | + | local COLOR = (Table.Color or C3(1,1,1)) |
395 | - | elseif TYPE == "Wave" then |
395 | + | local TIME = (Table.Time or 45) |
396 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
396 | + | local SOUNDID = (Table.SoundID or nil) |
397 | - | elseif TYPE == "Ring" then |
397 | + | local SOUNDPITCH = (Table.SoundPitch or nil) |
398 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
398 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
399 | - | elseif TYPE == "Slash" then |
399 | + | coroutine.resume(coroutine.create(function() |
400 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
400 | + | local PLAYSSOUND = false |
401 | - | elseif TYPE == "Round Slash" then |
401 | + | local SOUND = nil |
402 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
402 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
403 | - | elseif TYPE == "Swirl" then |
403 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
404 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
404 | + | PLAYSSOUND = true |
405 | - | elseif TYPE == "Skull" then |
405 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
406 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
406 | + | end |
407 | - | elseif TYPE == "Crystal" then |
407 | + | EFFECT.Color = COLOR |
408 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
408 | + | local MSH = nil |
409 | - | end |
409 | + | if TYPE == "Sphere" then |
410 | - | if MSH ~= nil then |
410 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
411 | - | local MOVESPEED = nil |
411 | + | elseif TYPE == "Block" then |
412 | - | if MOVEDIRECTION ~= nil then |
412 | + | MSH = IT("BlockMesh",EFFECT) |
413 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
413 | + | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
414 | - | end |
414 | + | elseif TYPE == "Wave" then |
415 | - | local GROWTH = SIZE - ENDSIZE |
415 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
416 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
416 | + | elseif TYPE == "Ring" then |
417 | - | if TYPE == "Block" then |
417 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
418 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
418 | + | elseif TYPE == "Slash" then |
419 | - | else |
419 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
420 | - | EFFECT.CFrame = CFRAME |
420 | + | elseif TYPE == "Round Slash" then |
421 | - | end |
421 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
422 | - | for LOOP = 1, TIME+1 do |
422 | + | elseif TYPE == "Swirl" then |
423 | - | Swait() |
423 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
424 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
424 | + | elseif TYPE == "Skull" then |
425 | - | if TYPE == "Wave" then |
425 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
426 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
426 | + | elseif TYPE == "Crystal" then |
427 | - | end |
427 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
428 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
428 | + | end |
429 | - | if TYPE == "Block" then |
429 | + | if MSH ~= nil then |
430 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
430 | + | local MOVESPEED = nil |
431 | - | else |
431 | + | if MOVEDIRECTION ~= nil then |
432 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
432 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
433 | - | end |
433 | + | end |
434 | - | if MOVEDIRECTION ~= nil then |
434 | + | local GROWTH = SIZE - ENDSIZE |
435 | - | local ORI = EFFECT.Orientation |
435 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
436 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
436 | + | if TYPE == "Block" then |
437 | - | EFFECT.Orientation = ORI |
437 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
438 | - | end |
438 | + | else |
439 | - | end |
439 | + | EFFECT.CFrame = CFRAME |
440 | - | if PLAYSSOUND == false then |
440 | + | end |
441 | - | EFFECT:remove() |
441 | + | for LOOP = 1, TIME+1 do |
442 | - | else |
442 | + | Swait() |
443 | - | SOUND.Stopped:Connect(function() |
443 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
444 | - | EFFECT:remove() |
444 | + | if TYPE == "Wave" then |
445 | - | end) |
445 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
446 | - | end |
446 | + | end |
447 | - | else |
447 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
448 | - | if PLAYSSOUND == false then |
448 | + | if TYPE == "Block" then |
449 | - | EFFECT:remove() |
449 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
450 | - | else |
450 | + | else |
451 | - | repeat Swait() until SOUND.Playing == false |
451 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
452 | - | EFFECT:remove() |
452 | + | end |
453 | - | end |
453 | + | if MOVEDIRECTION ~= nil then |
454 | - | end |
454 | + | local ORI = EFFECT.Orientation |
455 | - | end)) |
455 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
456 | EFFECT.Orientation = ORI | |
457 | end | |
458 | end | |
459 | - | if TYPE == "Cyl" then |
459 | + | if PLAYSSOUND == false then |
460 | - | local MSH = IT("CylinderMesh",PART) |
460 | + | EFFECT:remove() |
461 | - | elseif TYPE == "Ball" then |
461 | + | else |
462 | - | local MSH = IT("SpecialMesh",PART) |
462 | + | SOUND.Stopped:Connect(function() |
463 | - | MSH.MeshType = "Sphere" |
463 | + | EFFECT:remove() |
464 | - | elseif TYPE == "Wedge" then |
464 | + | end) |
465 | - | local MSH = IT("SpecialMesh",PART) |
465 | + | end |
466 | - | MSH.MeshType = "Wedge" |
466 | + | else |
467 | - | end |
467 | + | if PLAYSSOUND == false then |
468 | EFFECT:remove() | |
469 | else | |
470 | repeat Swait() until SOUND.Playing == false | |
471 | EFFECT:remove() | |
472 | end | |
473 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
473 | + | end |
474 | - | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
474 | + | end)) |
475 | end | |
476 | ||
477 | function MakeForm(PART,TYPE) | |
478 | - | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
478 | + | if TYPE == "Cyl" then |
479 | local MSH = IT("CylinderMesh",PART) | |
480 | elseif TYPE == "Ball" then | |
481 | local MSH = IT("SpecialMesh",PART) | |
482 | - | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) |
482 | + | MSH.MeshType = "Sphere" |
483 | - | MakeForm(TRAIL,"Cyl") |
483 | + | elseif TYPE == "Wedge" then |
484 | - | local DIST = (FROM - TO).Magnitude |
484 | + | local MSH = IT("SpecialMesh",PART) |
485 | - | if BIG == true then |
485 | + | MSH.MeshType = "Wedge" |
486 | - | TRAIL.Size = VT(0.5,DIST,0.5) |
486 | + | end |
487 | - | else |
487 | + | |
488 | - | TRAIL.Size = VT(0.25,DIST,0.25) |
488 | + | |
489 | - | end |
489 | + | |
490 | - | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) |
490 | + | |
491 | - | coroutine.resume(coroutine.create(function() |
491 | + | |
492 | - | for i = 1, 5 do |
492 | + | local DIRECTION = CF(StartPos,EndPos).lookVector |
493 | - | Swait() |
493 | + | return Raycast(StartPos, DIRECTION, Distance, Ignore) |
494 | - | TRAIL.Transparency = TRAIL.Transparency + 0.1 |
494 | + | |
495 | - | end |
495 | + | |
496 | - | TRAIL:remove() |
496 | + | |
497 | - | end)) |
497 | + | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
498 | end | |
499 | ||
500 | function SpawnTrail(FROM,TO,BIG) | |
501 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "white", "Trail", VT(0,0,0)) | |
502 | MakeForm(TRAIL,"Cyl") | |
503 | local DIST = (FROM - TO).Magnitude | |
504 | if BIG == true then | |
505 | TRAIL.Size = VT(10,DIST,10) | |
506 | else | |
507 | TRAIL.Size = VT(10,DIST,10) | |
508 | end | |
509 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
510 | coroutine.resume(coroutine.create(function() | |
511 | for i = 1, 5 do | |
512 | Swait() | |
513 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
514 | end | |
515 | TRAIL:remove() | |
516 | end)) | |
517 | end | |
518 | ||
519 | local asd = Instance.new("ParticleEmitter") | |
520 | - | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) |
520 | + | |
521 | - | PART.CFrame = victim.CFrame |
521 | + | |
522 | - | local HITPLAYERSOUNDS = {"356551938","264486467"} |
522 | + | |
523 | - | Debris:AddItem(PART,5) |
523 | + | |
524 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
524 | + | |
525 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
525 | + | |
526 | - | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
526 | + | |
527 | - | local prtcl = asd:Clone() |
527 | + | |
528 | - | prtcl.Parent = PART |
528 | + | |
529 | - | prtcl:Emit(amount*10) |
529 | + | |
530 | asd.EmissionDirection = "Back" | |
531 | asd.Lifetime = NumberRange.new(1, 2) | |
532 | asd.Rotation = NumberRange.new(-100, 100) | |
533 | asd.RotSpeed = NumberRange.new(-100, 100) | |
534 | asd.Speed = NumberRange.new(10) | |
535 | asd.Enabled = false | |
536 | asd.VelocitySpread = 999 | |
537 | ||
538 | function getbloody(victim,amount) | |
539 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
540 | PART.CFrame = victim.CFrame | |
541 | local HITPLAYERSOUNDS = {"973028066","973028066"} | |
542 | Debris:AddItem(PART,5) | |
543 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
544 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
545 | - | local PRTCL = Particle:Clone() |
545 | + | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) |
546 | - | local Speed = Table.Speed or 5 |
546 | + | local prtcl = asd:Clone() |
547 | - | local Drag = Table.Drag or 0 |
547 | + | prtcl.Parent = PART |
548 | - | local Size1 = Table.Size1 or 1 |
548 | + | prtcl:Emit(amount*10) |
549 | - | local Size2 = Table.Size2 or 5 |
549 | + | |
550 | - | local Lifetime1 = Table.Lifetime1 or 1 |
550 | + | |
551 | - | local Lifetime2 = Table.Lifetime2 or 1.5 |
551 | + | |
552 | - | local Parent = Table.Parent or Torso |
552 | + | |
553 | - | local Emit = Table.Emit or 100 |
553 | + | |
554 | - | local Offset = Table.Offset or 360 |
554 | + | |
555 | - | local Acel = Table.Acel or VT(0,0,0) |
555 | + | |
556 | - | local Enabled = Table.Enabled or false |
556 | + | |
557 | - | PRTCL.Parent = Parent |
557 | + | |
558 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
558 | + | |
559 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
559 | + | |
560 | - | PRTCL.Speed = NumberRange.new(Speed) |
560 | + | |
561 | - | PRTCL.VelocitySpread = Offset |
561 | + | |
562 | - | PRTCL.Drag = Drag |
562 | + | |
563 | - | PRTCL.Acceleration = Acel |
563 | + | |
564 | - | if Enabled == false then |
564 | + | local PRTCL = Particle:Clone() |
565 | - | PRTCL:Emit(Emit) |
565 | + | local Speed = Table.Speed or 5 |
566 | - | Debris:AddItem(PRTCL,Lifetime2) |
566 | + | local Drag = Table.Drag or 0 |
567 | - | else |
567 | + | local Size1 = Table.Size1 or 1 |
568 | - | PRTCL.Enabled = true |
568 | + | local Size2 = Table.Size2 or 5 |
569 | - | end |
569 | + | local Lifetime1 = Table.Lifetime1 or 1 |
570 | - | return PRTCL |
570 | + | local Lifetime2 = Table.Lifetime2 or 1.5 |
571 | local Parent = Table.Parent or Torso | |
572 | local Emit = Table.Emit or 100 | |
573 | local Offset = Table.Offset or 360 | |
574 | - | --|| WEAPON CREATION |
574 | + | local Acel = Table.Acel or VT(0,0,0) |
575 | local Enabled = Table.Enabled or false | |
576 | PRTCL.Parent = Parent | |
577 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
578 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
579 | PRTCL.Speed = NumberRange.new(Speed) | |
580 | PRTCL.VelocitySpread = Offset | |
581 | PRTCL.Drag = Drag | |
582 | PRTCL.Acceleration = Acel | |
583 | if Enabled == false then | |
584 | PRTCL:Emit(Emit) | |
585 | Debris:AddItem(PRTCL,Lifetime2) | |
586 | else | |
587 | PRTCL.Enabled = true | |
588 | - | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
588 | + | end |
589 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
589 | + | return PRTCL |
590 | end | |
591 | ||
592 | --//=================================\\ | |
593 | --|| WEAPON CREATION | |
594 | --\\=================================// | |
595 | ||
596 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false) | |
597 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
598 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false) | |
599 | MakeForm(Part,"Wedge") | |
600 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
601 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false) | |
602 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
603 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
604 | MakeForm(Part,"Cyl") | |
605 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
606 | for i = 1, 8 do | |
607 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
608 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
609 | end | |
610 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
611 | MakeForm(Part,"Wedge") | |
612 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
613 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false) | |
614 | MakeForm(Part,"Cyl") | |
615 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
616 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
617 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
618 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false) | |
619 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
620 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false) | |
621 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
622 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
623 | - | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) |
623 | + | |
624 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) |
624 | + | |
625 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false) | |
626 | MakeForm(Part,"Wedge") | |
627 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
628 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
629 | MakeForm(RightHole,"Cyl") | |
630 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
631 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false) | |
632 | local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
633 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false) | |
634 | MakeForm(Part,"Wedge") | |
635 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
636 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false) | |
637 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
638 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
639 | MakeForm(Part,"Cyl") | |
640 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
641 | for i = 1, 8 do | |
642 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
643 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
644 | end | |
645 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
646 | MakeForm(Part,"Wedge") | |
647 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) |
647 | + | |
648 | - | MakeForm(Eye,"Ball") |
648 | + | |
649 | MakeForm(Part,"Cyl") | |
650 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) |
650 | + | |
651 | - | MakeForm(Eye,"Ball") |
651 | + | |
652 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
653 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) |
653 | + | |
654 | - | MakeForm(Eye,"Ball") |
654 | + | |
655 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false) | |
656 | - | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) |
656 | + | |
657 | - | MakeForm(Eye,"Ball") |
657 | + | |
658 | MakeForm(LeftBarrel,"Cyl") | |
659 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
660 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false) | |
661 | MakeForm(Part,"Wedge") | |
662 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
663 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
664 | MakeForm(LeftHole,"Cyl") | |
665 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
666 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.15,0.15,0.15)/2,false) | |
667 | MakeForm(Eye,"No") | |
668 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
669 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.15,0.15,0.15)/2,false) | |
670 | MakeForm(Eye,"No") | |
671 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
672 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.15,0.15,0.15)/2,false) | |
673 | MakeForm(Eye,"No") | |
674 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
675 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.15,0.15,0.15)/2,false) | |
676 | MakeForm(Eye,"No") | |
677 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
678 | local A = IT("Attachment",Torso) | |
679 | A.Position = VT(1,1.3,0) | |
680 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
681 | local B = IT("Attachment",Torso) | |
682 | B.Position = VT(-1.3,-0.6,0) | |
683 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
684 | local ChainLink = IT("Beam",Torso) | |
685 | ChainLink.Texture = "rbxassetid://73042633" | |
686 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
687 | ChainLink.TextureSpeed = 1 | |
688 | ChainLink.FaceCamera = true | |
689 | ChainLink.Width0 = 1 | |
690 | ChainLink.Width1 = 1 | |
691 | ChainLink.TextureLength = 3 | |
692 | ChainLink.Attachment0 = A | |
693 | ChainLink.Attachment1 = B | |
694 | ChainLink.CurveSize0 = 1.6 | |
695 | ChainLink.CurveSize1 = 1.6 | |
696 | ChainLink.FaceCamera = true | |
697 | ChainLink.Transparency = NumberSequence.new(0) | |
698 | local ChainLink = IT("Beam",Torso) | |
699 | ChainLink.Texture = "rbxassetid://73042633" | |
700 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
701 | ChainLink.TextureSpeed = 1 | |
702 | ChainLink.FaceCamera = true | |
703 | ChainLink.Width0 = 1 | |
704 | ChainLink.Width1 = 1 | |
705 | ChainLink.TextureLength = 3 | |
706 | ChainLink.Attachment0 = B | |
707 | ChainLink.Attachment1 = A | |
708 | ChainLink.CurveSize0 = 1.6 | |
709 | ChainLink.CurveSize1 = 1.6 | |
710 | ChainLink.FaceCamera = true | |
711 | ChainLink.Transparency = NumberSequence.new(0) | |
712 | local A = IT("Attachment",Torso) | |
713 | A.Position = VT(1.3,-0.85,0) | |
714 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
715 | local B = IT("Attachment",Torso) | |
716 | B.Position = VT(-1,2,0) | |
717 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
718 | local ChainLink = IT("Beam",Torso) | |
719 | ChainLink.Texture = "rbxassetid://73042633" | |
720 | ChainLink.Color = ColorSequence.new(C3(0,330,170)) | |
721 | ChainLink.TextureSpeed = 1 | |
722 | ChainLink.FaceCamera = true | |
723 | ChainLink.Width0 = 1 | |
724 | ChainLink.Width1 = 1 | |
725 | ChainLink.TextureLength = 3 | |
726 | ChainLink.Attachment0 = A | |
727 | ChainLink.Attachment1 = B | |
728 | ChainLink.CurveSize0 = 1.3 | |
729 | ChainLink.CurveSize1 = 1.3 | |
730 | ChainLink.FaceCamera = true | |
731 | ChainLink.Transparency = NumberSequence.new(0) | |
732 | local ChainLink = IT("Beam",Torso) | |
733 | ChainLink.Texture = "rbxassetid://73042633" | |
734 | ChainLink.Color = ColorSequence.new(C3(0,330,170)) | |
735 | ChainLink.TextureSpeed = 1 | |
736 | - | Trail.Color = ColorSequence.new(BRICKC"Really red".Color) |
736 | + | |
737 | ChainLink.Width0 = 1 | |
738 | - | Trail.Enabled = false |
738 | + | |
739 | ChainLink.TextureLength = 3 | |
740 | ChainLink.Attachment0 = B | |
741 | ChainLink.Attachment1 = A | |
742 | ChainLink.CurveSize0 = 1.3 | |
743 | ChainLink.CurveSize1 = 1.3 | |
744 | ChainLink.FaceCamera = true | |
745 | ChainLink.Transparency = NumberSequence.new(0) | |
746 | ||
747 | local A = IT("Attachment",RightBarrel) | |
748 | A.Position = VT(0,-2.5,0) | |
749 | local B = IT("Attachment",RightBarrel) | |
750 | B.Position = VT(0,2.5,0) | |
751 | - | if c and c.Parent then |
751 | + | |
752 | - | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then |
752 | + | |
753 | - | local ACCESSORY = c.Parent |
753 | + | |
754 | - | c.Parent = Character |
754 | + | |
755 | - | if c then |
755 | + | Trail.Color = ColorSequence.new(BRICKC"Really blue".Color) |
756 | - | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then |
756 | + | |
757 | - | weldBetween(Head,c) |
757 | + | Trail.Enabled = Ture |
758 | - | else |
758 | + | |
759 | - | weldBetween(Torso,c) |
759 | + | |
760 | - | end |
760 | + | |
761 | - | end |
761 | + | |
762 | - | ACCESSORY:remove() |
762 | + | |
763 | - | elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
763 | + | |
764 | - | c.Material = "Neon" |
764 | + | |
765 | - | c.Color = C3(0,0,0) |
765 | + | |
766 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
766 | + | |
767 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
767 | + | |
768 | - | end |
768 | + | |
769 | - | if c == Head then |
769 | + | |
770 | - | if c:FindFirstChild("face") then |
770 | + | if c and c.Parent then |
771 | - | c.face:remove() |
771 | + | if c.Name == "Handle" and c.Parent.ClassName == "No" then |
772 | - | end |
772 | + | local ACCESSORY = c.Parent |
773 | - | end |
773 | + | c.Parent = Character |
774 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
774 | + | if c then |
775 | - | c.Color = C3(1,0,0) |
775 | + | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then |
776 | - | c.Material = "Neon" |
776 | + | weldBetween(Head,c) |
777 | - | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then |
777 | + | else |
778 | - | c:remove() |
778 | + | weldBetween(Torso,c) |
779 | - | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then |
779 | + | end |
780 | - | c:remove() |
780 | + | end |
781 | - | end |
781 | + | ACCESSORY:remove() |
782 | - | end |
782 | + | elseif c.Parent.ClassName ~= "No" and c.ClassName == "No" and c.Name ~= "No" and c.Parent ~= No and c.Parent.Parent ~= No then |
783 | c.Material = "Neon" | |
784 | c.Color = C3(0,0,0) | |
785 | if c:FindFirstChildOfClass("SpecialMesh") then | |
786 | - | if c:IsA("BasePart") and c.Name ~= "Handle" then |
786 | + | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
787 | - | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
787 | + | end |
788 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
788 | + | if c == Head then |
789 | - | end |
789 | + | if c:FindFirstChild("face") then |
790 | - | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) |
790 | + | c.face:remove() |
791 | - | elseif c:IsA("JointInstance") then |
791 | + | end |
792 | - | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) |
792 | + | end |
793 | - | end |
793 | + | elseif c.ClassName == "No" and c.Name == "No" then |
794 | c.Color = C3(0,0,0) | |
795 | c.Material = "Neon" | |
796 | - | Character.Parent = workspace |
796 | + | elseif c.ClassName == "No" or c.Name == "No" then |
797 | - | for e = 1, #BODY do |
797 | + | c:remove() |
798 | - | if BODY[e] ~= nil then |
798 | + | elseif (c.ClassName == "No" or c.ClassName == "No") and c.Name ~= "Noo" then |
799 | - | local STUFF = BODY[e] |
799 | + | c:remove() |
800 | - | local PART = STUFF[1] |
800 | + | end |
801 | - | local PARENT = STUFF[2] |
801 | + | end |
802 | - | local MATERIAL = STUFF[3] |
802 | + | |
803 | - | local COLOR = STUFF[4] |
803 | + | |
804 | - | local TRANSPARENCY = STUFF[5] |
804 | + | |
805 | - | --local SIZE = STUFF[6] |
805 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
806 | - | local NAME = STUFF[7] |
806 | + | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
807 | - | if PART.ClassName == "Part" and PART ~= RootPart then |
807 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
808 | - | PART.Material = MATERIAL |
808 | + | end |
809 | - | PART.Transparency = TRANSPARENCY |
809 | + | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) |
810 | - | PART.Name = NAME |
810 | + | elseif c:IsA("JointInstance") then |
811 | - | end |
811 | + | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) |
812 | - | if PART.Parent ~= PARENT then |
812 | + | end |
813 | - | Humanoid:remove() |
813 | + | |
814 | - | PART.Parent = PARENT |
814 | + | |
815 | - | Humanoid = IT("Humanoid",Character) |
815 | + | Character.Parent = workspace |
816 | - | end |
816 | + | for e = 1, #BODY do |
817 | - | end |
817 | + | if BODY[e] ~= nil then |
818 | - | end |
818 | + | local STUFF = BODY[e] |
819 | local PART = STUFF[1] | |
820 | local PARENT = STUFF[2] | |
821 | local MATERIAL = STUFF[3] | |
822 | local COLOR = STUFF[4] | |
823 | local TRANSPARENCY = STUFF[5] | |
824 | --local SIZE = STUFF[6] | |
825 | local NAME = STUFF[7] | |
826 | - | refit() |
826 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
827 | PART.Material = MATERIAL | |
828 | PART.Transparency = TRANSPARENCY | |
829 | PART.Name = NAME | |
830 | end | |
831 | if PART.Parent ~= PARENT then | |
832 | Humanoid:remove() | |
833 | PART.Parent = PARENT | |
834 | Humanoid = IT("Humanoid",Character) | |
835 | end | |
836 | end | |
837 | end | |
838 | end | |
839 | ||
840 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "White", "Hood", VT(1,1,1),false) | |
841 | PRT.Color = C3(0,0,0) | |
842 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
843 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
844 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "White", "Scarf", VT(1,1,1),false) | |
845 | PRT.Color = C3(0,0,0) | |
846 | - | --|| DAMAGE FUNCTIONS |
846 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) |
847 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
848 | for i = 1, 16 do | |
849 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
850 | - | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) |
850 | + | FACE.Color = C3(0,0,0) |
851 | - | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) |
851 | + | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
852 | - | local BODYGYRO = IT("BodyGyro", STATPART) |
852 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) |
853 | - | game:GetService("Debris"):AddItem(STATPART ,5) |
853 | + | |
854 | - | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) |
854 | + | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eyeball", VT(0.15,0.15,0.15),false) |
855 | - | BILLBOARDGUI.Adornee = STATPART |
855 | + | MakeForm(EYE2,"Ball") |
856 | - | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) |
856 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) |
857 | - | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) |
857 | + | |
858 | - | BILLBOARDGUI.AlwaysOnTop = false |
858 | + | local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Gold", "Hair", VT(1,1,1),false) |
859 | - | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) |
859 | + | local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
860 | - | TEXTLABEL.BackgroundTransparency = 1 |
860 | + | CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0)) |
861 | - | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) |
861 | + | local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Gold", "Hair", VT(1,1,1),false) |
862 | - | TEXTLABEL.Text = TEXT |
862 | + | local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
863 | - | TEXTLABEL.Font = SKILLFONT |
863 | + | CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1)) |
864 | - | TEXTLABEL.FontSize="Size42" |
864 | + | |
865 | - | TEXTLABEL.TextColor3 = COLOR |
865 | + | |
866 | - | TEXTLABEL.TextStrokeTransparency = 0 |
866 | + | |
867 | - | TEXTLABEL.TextScaled = true |
867 | + | |
868 | - | TEXTLABEL.TextWrapped = true |
868 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
869 | - | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) |
869 | + | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
870 | - | for i = 1, 50 do |
870 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
871 | - | Swait() |
871 | + | end |
872 | - | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) |
872 | + | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) |
873 | - | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) |
873 | + | elseif c:IsA("JointInstance") then |
874 | - | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency |
874 | + | table.insert(BODY,{c,c.Parent,nil,nil,nil}) |
875 | - | end |
875 | + | end |
876 | - | THEPART.Parent = nil |
876 | + | |
877 | - | end),STATPART, TEXTLABEL) |
877 | + | |
878 | for e = 1, #BODY do | |
879 | if BODY[e] ~= nil then | |
880 | local STUFF = BODY[e] | |
881 | - | --|| DAMAGING |
881 | + | local PART = STUFF[1] |
882 | local PARENT = STUFF[2] | |
883 | local MATERIAL = STUFF[3] | |
884 | local COLOR = STUFF[4] | |
885 | - | local NewCharacter = IT("Model",Effects) |
885 | + | local TRANSPARENCY = STUFF[5] |
886 | - | NewCharacter.Name = "Ow im ded ;-;" |
886 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
887 | - | for _, c in pairs(Char:GetDescendants()) do |
887 | + | PART.Material = MATERIAL |
888 | - | if c:IsA("BasePart") and c.Transparency == 0 then |
888 | + | PART.Color = COLOR |
889 | - | if c.Parent == Char then |
889 | + | PART.Transparency = TRANSPARENCY |
890 | - | getbloody(c,5) |
890 | + | end |
891 | - | end |
891 | + | PART.AncestryChanged:Connect(function() |
892 | - | c:BreakJoints() |
892 | + | PART.Parent = PARENT |
893 | - | c.Material = "Glass" |
893 | + | end) |
894 | - | c.Color = C3(0.5,0,0) |
894 | + | end |
895 | - | c.CanCollide = true |
895 | + | |
896 | - | c.Transparency = 0.3 |
896 | + | |
897 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
897 | + | |
898 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
898 | + | Character.Parent = workspace |
899 | - | end |
899 | + | for e = 1, #BODY do |
900 | - | if c.Name == "Head" then |
900 | + | if BODY[e] ~= nil then |
901 | - | c:ClearAllChildren() |
901 | + | local STUFF = BODY[e] |
902 | - | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) |
902 | + | local PART = STUFF[1] |
903 | - | end |
903 | + | local PARENT = STUFF[2] |
904 | - | if c.ClassName == "MeshPart" then |
904 | + | local MATERIAL = STUFF[3] |
905 | - | c.TextureID = "" |
905 | + | local COLOR = STUFF[4] |
906 | - | end |
906 | + | local TRANSPARENCY = STUFF[5] |
907 | - | if c:FindFirstChildOfClass("BodyPosition") then |
907 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
908 | - | c:FindFirstChildOfClass("BodyPosition"):remove() |
908 | + | PART.Material = MATERIAL |
909 | - | end |
909 | + | PART.Color = COLOR |
910 | - | if c:FindFirstChildOfClass("ParticleEmitter") then |
910 | + | PART.Transparency = TRANSPARENCY |
911 | - | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
911 | + | end |
912 | - | end |
912 | + | if PART.Parent ~= PARENT then |
913 | - | c.Parent = NewCharacter |
913 | + | Humanoid:remove() |
914 | - | c.Name = "DeadPart" |
914 | + | PART.Parent = PARENT |
915 | - | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 |
915 | + | Humanoid = IT("Humanoid",Character) |
916 | - | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) |
916 | + | end |
917 | - | end |
917 | + | end |
918 | - | end |
918 | + | end |
919 | - | Char:remove() |
919 | + | |
920 | - | Debris:AddItem(NewCharacter,5) |
920 | + | |
921 | ||
922 | local SKILLTEXTCOLOR = C3(1,0,0) | |
923 | local SKILLFONT = "Fantasy" | |
924 | - | local CHILDREN = workspace:GetDescendants() |
924 | + | |
925 | - | for index, CHILD in pairs(CHILDREN) do |
925 | + | |
926 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
926 | + | |
927 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
927 | + | refit() |
928 | - | if HUM then |
928 | + | |
929 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
929 | + | |
930 | - | if TORSO then |
930 | + | |
931 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
931 | + | |
932 | - | if BRUTAL == true then |
932 | + | |
933 | - | Kill(CHILD) |
933 | + | |
934 | - | else |
934 | + | |
935 | - | CHILD:BreakJoints() |
935 | + | |
936 | - | end |
936 | + | |
937 | - | end |
937 | + | |
938 | - | end |
938 | + | |
939 | - | end |
939 | + | |
940 | - | end |
940 | + | |
941 | - | end |
941 | + | |
942 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Morning Star", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5") | |
943 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Deathbound", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
944 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Execute", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
945 | - | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) |
945 | + | |
946 | - | coroutine.resume(coroutine.create(function() |
946 | + | |
947 | - | if AIMHIT ~= nil then |
947 | + | --|| DAMAGE FUNCTIONS |
948 | - | if AIMHIT.Parent ~= Character then |
948 | + | |
949 | - | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
949 | + | |
950 | - | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then |
950 | + | |
951 | - | if BRUTAL == true then |
951 | + | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) |
952 | - | Kill(AIMHIT.Parent) |
952 | + | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) |
953 | - | else |
953 | + | local BODYGYRO = IT("BodyGyro", STATPART) |
954 | - | getbloody(AIMHIT,15) |
954 | + | game:GetService("Debris"):AddItem(STATPART ,5) |
955 | - | AIMHIT.Parent:BreakJoints() |
955 | + | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) |
956 | - | if AIMHIT.Name == "Head" then |
956 | + | BILLBOARDGUI.Adornee = STATPART |
957 | - | AIMHIT.Name = "HEADSHOT" |
957 | + | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) |
958 | - | AIMHIT:remove() |
958 | + | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) |
959 | - | end |
959 | + | BILLBOARDGUI.AlwaysOnTop = false |
960 | - | end |
960 | + | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) |
961 | - | else |
961 | + | TEXTLABEL.BackgroundTransparency = 1 |
962 | - | if BRUTAL == true then |
962 | + | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) |
963 | - | Kill(AIMHIT.Parent.Parent) |
963 | + | TEXTLABEL.Text = TEXT |
964 | - | else |
964 | + | TEXTLABEL.Font = SKILLFONT |
965 | - | AIMHIT.Parent.Parent:BreakJoints() |
965 | + | TEXTLABEL.FontSize="Size42" |
966 | - | end |
966 | + | TEXTLABEL.TextColor3 = COLOR |
967 | - | end |
967 | + | TEXTLABEL.TextStrokeTransparency = 0 |
968 | - | end |
968 | + | TEXTLABEL.TextScaled = true |
969 | - | end |
969 | + | TEXTLABEL.TextWrapped = true |
970 | - | end |
970 | + | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) |
971 | - | end)) |
971 | + | for i = 1, 50 do |
972 | - | SpawnTrail(FROM,AIMPOS) |
972 | + | Swait() |
973 | - | return AIMHIT,AIMPOS,NORMAL |
973 | + | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) |
974 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
975 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
976 | end | |
977 | - | --|| ATTACK FUNCTIONS AND STUFF |
977 | + | THEPART.Parent = nil |
978 | end),STATPART, TEXTLABEL) | |
979 | end | |
980 | ||
981 | - | ATTACK = true |
981 | + | |
982 | - | Rooted = false |
982 | + | --|| DAMAGING |
983 | - | repeat |
983 | + | |
984 | - | local GYRO = IT("BodyGyro",RootPart) |
984 | + | |
985 | - | GYRO.D = 175 |
985 | + | |
986 | - | GYRO.P = 20000 |
986 | + | local NewCharacter = IT("Model",Effects) |
987 | - | GYRO.MaxTorque = VT(0,40000,0) |
987 | + | NewCharacter.Name = "Ow im ded ;-;" |
988 | - | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
988 | + | for _, c in pairs(Char:GetDescendants()) do |
989 | - | if COMBO == 1 then |
989 | + | if c:IsA("BasePart") and c.Transparency == 0 then |
990 | - | COMBO = 2 |
990 | + | if c.Parent == Char then |
991 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
991 | + | getbloody(c,5) |
992 | - | Swait() |
992 | + | end |
993 | - | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
993 | + | c:BreakJoints() |
994 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
994 | + | c.Material = "Glass" |
995 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
995 | + | c.Color = C3(0.5,0,0) |
996 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
996 | + | c.CanCollide = true |
997 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
997 | + | c.Transparency = 0.3 |
998 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
998 | + | if c:FindFirstChildOfClass("SpecialMesh") then |
999 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
999 | + | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1000 | - | end |
1000 | + | end |
1001 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1001 | + | if c.Name == "Head" then |
1002 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1002 | + | c:ClearAllChildren() |
1003 | - | CreateSound(145080998, LeftHole, 7, 1, false) |
1003 | + | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) |
1004 | - | BulletDetection(LeftHole.Position,Mouse.Hit.p,false) |
1004 | + | end |
1005 | - | for i=0, 0.2, 0.1 / Animation_Speed do |
1005 | + | if c.ClassName == "MeshPart" then |
1006 | - | Swait() |
1006 | + | c.TextureID = "" |
1007 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1007 | + | end |
1008 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1008 | + | if c:FindFirstChildOfClass("BodyPosition") then |
1009 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1009 | + | c:FindFirstChildOfClass("BodyPosition"):remove() |
1010 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1010 | + | end |
1011 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1011 | + | if c:FindFirstChildOfClass("ParticleEmitter") then |
1012 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1012 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
1013 | - | end |
1013 | + | end |
1014 | - | elseif COMBO == 2 then |
1014 | + | c.Parent = NewCharacter |
1015 | - | COMBO = 1 |
1015 | + | c.Name = "DeadPart" |
1016 | - | for i=0, 0.6, 0.1 / Animation_Speed do |
1016 | + | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 |
1017 | - | Swait() |
1017 | + | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) |
1018 | - | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1018 | + | end |
1019 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1019 | + | end |
1020 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1020 | + | Char:remove() |
1021 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1021 | + | Debris:AddItem(NewCharacter,5) |
1022 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1022 | + | |
1023 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1023 | + | |
1024 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1024 | + | |
1025 | - | end |
1025 | + | local CHILDREN = workspace:GetDescendants() |
1026 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1026 | + | for index, CHILD in pairs(CHILDREN) do |
1027 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1027 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1028 | - | CreateSound(145080998, RightHole, 7, 1, false) |
1028 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1029 | - | BulletDetection(RightHole.Position,Mouse.Hit.p,false) |
1029 | + | if HUM then |
1030 | - | for i=0, 0.2, 0.1 / Animation_Speed do |
1030 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1031 | - | Swait() |
1031 | + | if TORSO then |
1032 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1032 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
1033 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1033 | + | if BRUTAL == true then |
1034 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1034 | + | Kill(CHILD) |
1035 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1035 | + | else |
1036 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1036 | + | CHILD:BreakJoints() |
1037 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1037 | + | end |
1038 | - | end |
1038 | + | end |
1039 | - | end |
1039 | + | end |
1040 | - | GYRO:remove() |
1040 | + | end |
1041 | - | until KEYHOLD == false |
1041 | + | end |
1042 | - | ATTACK = false |
1042 | + | end |
1043 | - | Rooted = false |
1043 | + | |
1044 | ||
1045 | function BulletDetection(FROM,TO,BRUTAL) | |
1046 | - | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1046 | + | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) |
1047 | - | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") |
1047 | + | coroutine.resume(coroutine.create(function() |
1048 | - | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") |
1048 | + | if AIMHIT ~= nil then |
1049 | - | if TORSO and HUM.Health > 0 then |
1049 | + | if AIMHIT.Parent ~= Character then |
1050 | - | ATTACK = true |
1050 | + | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
1051 | - | Rooted = false |
1051 | + | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then |
1052 | - | local GYRO = IT("BodyGyro",RootPart) |
1052 | + | if BRUTAL == true then |
1053 | - | GYRO.D = 275 |
1053 | + | Kill(AIMHIT.Parent) |
1054 | - | GYRO.P = 20000 |
1054 | + | else |
1055 | - | GYRO.MaxTorque = VT(0,40000,0) |
1055 | + | getbloody(AIMHIT,15) |
1056 | - | for i=0, 0.8, 0.1 / Animation_Speed do |
1056 | + | AIMHIT.Parent:BreakJoints() |
1057 | - | Swait() |
1057 | + | if AIMHIT.Name == "Head" then |
1058 | - | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1058 | + | AIMHIT.Name = "HEADSHOT" |
1059 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1059 | + | AIMHIT:remove() |
1060 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1060 | + | end |
1061 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1061 | + | end |
1062 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1062 | + | else |
1063 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1063 | + | if BRUTAL == true then |
1064 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1064 | + | Kill(AIMHIT.Parent.Parent) |
1065 | - | end |
1065 | + | else |
1066 | - | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) |
1066 | + | AIMHIT.Parent.Parent:BreakJoints() |
1067 | - | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) |
1067 | + | end |
1068 | - | local grav = Instance.new("BodyPosition",TORSO) |
1068 | + | end |
1069 | - | grav.D = 1500 |
1069 | + | end |
1070 | - | grav.P = 20000 |
1070 | + | end |
1071 | - | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1071 | + | end |
1072 | - | grav.position = TORSO.Position+VT(0,15,0) |
1072 | + | end)) |
1073 | - | Debris:AddItem(grav,10) |
1073 | + | SpawnTrail(FROM,AIMPOS) |
1074 | - | Debris:AddItem(MAGIC,10) |
1074 | + | return AIMHIT,AIMPOS,NORMAL |
1075 | - | CreateSound(429459101, Torso, 7, 1, false) |
1075 | + | |
1076 | - | CreateSound(429459101, TORSO, 7, 1, false) |
1076 | + | |
1077 | - | for i=0, 1, 0.1 / Animation_Speed do |
1077 | + | |
1078 | - | Swait() |
1078 | + | --|| ATTACK FUNCTIONS AND STUFF |
1079 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1079 | + | |
1080 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1080 | + | |
1081 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1081 | + | |
1082 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1082 | + | ATTACK = true |
1083 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1083 | + | Rooted = false |
1084 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1084 | + | repeat |
1085 | - | end |
1085 | + | local GYRO = IT("BodyGyro",RootPart) |
1086 | - | GYRO:remove() |
1086 | + | GYRO.D = 175 |
1087 | - | ATTACK = false |
1087 | + | GYRO.P = 20000 |
1088 | - | Rooted = false |
1088 | + | GYRO.MaxTorque = VT(0,40000,0) |
1089 | - | end |
1089 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1090 | - | end |
1090 | + | if COMBO == 1 then |
1091 | COMBO = 2 | |
1092 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1093 | - | ATTACK = true |
1093 | + | Swait() |
1094 | - | Rooted = false |
1094 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1095 | - | local TARGET = nil |
1095 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1096 | - | local TORS = nil |
1096 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1097 | - | local GYRO = IT("BodyGyro",RootPart) |
1097 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1098 | - | GYRO.D = 175 |
1098 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1099 | - | GYRO.P = 20000 |
1099 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1100 | - | GYRO.MaxTorque = VT(0,40000,0) |
1100 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1101 | - | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1101 | + | end |
1102 | - | local RANGE = 5 |
1102 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,330,170), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1103 | - | CreateSound(541909867, Torso, 7, 1, false) |
1103 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,330,170), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1104 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1104 | + | CreateSound(345052019, LeftHole, 7, 1, false) |
1105 | - | for i=0, 1, 0.1 / Animation_Speed do |
1105 | + | BulletDetection(LeftHole.Position,Mouse.Hit.p,false) |
1106 | - | Swait() |
1106 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
1107 | - | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) |
1107 | + | Swait() |
1108 | - | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1108 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1109 | - | local CHILDREN = workspace:GetDescendants() |
1109 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1110 | - | for index, CHILD in pairs(CHILDREN) do |
1110 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1111 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1111 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1112 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1112 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1113 | - | if HUM then |
1113 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1114 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1114 | + | end |
1115 | - | if TORSO then |
1115 | + | elseif COMBO == 2 then |
1116 | - | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then |
1116 | + | COMBO = 1 |
1117 | - | RANGE = (TORSO.Position - LeftHole.Position).Magnitude |
1117 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
1118 | - | TARGET = HUM |
1118 | + | Swait() |
1119 | - | TORS = TORSO |
1119 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1120 | - | end |
1120 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1121 | - | end |
1121 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1122 | - | end |
1122 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1123 | - | end |
1123 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1124 | - | end |
1124 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1125 | - | if TARGET then |
1125 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1126 | - | break |
1126 | + | end |
1127 | - | end |
1127 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,330,170), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1128 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) |
1128 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,330,170), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1129 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed) |
1129 | + | CreateSound(345052019, RightHole, 7, 1, false) |
1130 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1130 | + | BulletDetection(RightHole.Position,Mouse.Hit.p,false) |
1131 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1131 | + | for i=0, 0.2, 0.1 / Animation_Speed do |
1132 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1132 | + | Swait() |
1133 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1133 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1134 | - | end |
1134 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1135 | - | GYRO:remove() |
1135 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1136 | - | if TORS and TARGET then |
1136 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1137 | - | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1137 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1138 | - | Rooted = true |
1138 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1139 | - | local BODYPOSITION = IT("BodyPosition", TORS) |
1139 | + | end |
1140 | - | BODYPOSITION.P = 2000 |
1140 | + | end |
1141 | - | BODYPOSITION.D = 100 |
1141 | + | GYRO:remove() |
1142 | - | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) |
1142 | + | until KEYHOLD == false |
1143 | - | for i=0, 1, 0.1 / Animation_Speed do |
1143 | + | ATTACK = false |
1144 | - | Swait() |
1144 | + | Rooted = false |
1145 | - | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1145 | + | |
1146 | - | BODYPOSITION.Position = TORS.Position |
1146 | + | |
1147 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1147 | + | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1148 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1148 | + | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") |
1149 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1149 | + | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") |
1150 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1150 | + | if TORSO and HUM.Health > 0 then |
1151 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1151 | + | ATTACK = true |
1152 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1152 | + | Rooted = false |
1153 | - | end |
1153 | + | local GYRO = IT("BodyGyro",RootPart) |
1154 | - | for i=0, 0.4, 0.1 / Animation_Speed do |
1154 | + | GYRO.D = 275 |
1155 | - | Swait() |
1155 | + | GYRO.P = 20000 |
1156 | - | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1156 | + | GYRO.MaxTorque = VT(0,40000,0) |
1157 | - | BODYPOSITION.Position = TORS.Position |
1157 | + | for i=0, 0.8, 0.1 / Animation_Speed do |
1158 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1158 | + | Swait() |
1159 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1159 | + | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1160 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1160 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1161 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1161 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1162 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1162 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1163 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1163 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1164 | - | end |
1164 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1165 | - | local LOOP = 0 |
1165 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1166 | - | local LOOP2 = 0 |
1166 | + | end |
1167 | - | for i=0, 5, 0.1 / Animation_Speed do |
1167 | + | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) |
1168 | - | Swait() |
1168 | + | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) |
1169 | - | LOOP = LOOP + 1 |
1169 | + | local grav = Instance.new("BodyPosition",TORSO) |
1170 | - | TORS.Anchored = true |
1170 | + | grav.D = 1500 |
1171 | - | LOOP2 = LOOP2 + 1 |
1171 | + | grav.P = 20000 |
1172 | - | if LOOP2 >= 5 then |
1172 | + | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1173 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1173 | + | grav.position = TORSO.Position+VT(0,15,0) |
1174 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1174 | + | Debris:AddItem(grav,10) |
1175 | - | CreateSound(145080998, RightHole, 7, 1, false) |
1175 | + | Debris:AddItem(MAGIC,10) |
1176 | - | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) |
1176 | + | CreateSound(429459101, Torso, 7, 1, false) |
1177 | - | LOOP2 = 0 |
1177 | + | CreateSound(429459101, TORSO, 7, 1, false) |
1178 | - | getbloody(TORS,1) |
1178 | + | for i=0, 1, 0.1 / Animation_Speed do |
1179 | - | end |
1179 | + | Swait() |
1180 | - | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1180 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1181 | - | BODYPOSITION.Position = TORS.Position |
1181 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1182 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1182 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1183 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1183 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1184 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1184 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1185 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1185 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1186 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1186 | + | end |
1187 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1187 | + | GYRO:remove() |
1188 | - | end |
1188 | + | ATTACK = false |
1189 | - | BODYPOSITION:remove() |
1189 | + | Rooted = false |
1190 | - | if TORS then |
1190 | + | end |
1191 | - | TORS.Anchored = false |
1191 | + | end |
1192 | - | Kill(TORS.Parent) |
1192 | + | |
1193 | - | end |
1193 | + | |
1194 | - | end |
1194 | + | ATTACK = true |
1195 | - | ATTACK = false |
1195 | + | Rooted = false |
1196 | - | Rooted = false |
1196 | + | local TARGET = nil |
1197 | local TORS = nil | |
1198 | local GYRO = IT("BodyGyro",RootPart) | |
1199 | - | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1199 | + | GYRO.D = 175 |
1200 | - | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") |
1200 | + | GYRO.P = 20000 |
1201 | - | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") |
1201 | + | GYRO.MaxTorque = VT(0,40000,0) |
1202 | - | if TORSO and HUM.Health > 0 then |
1202 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1203 | - | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) |
1203 | + | local RANGE = 5 |
1204 | - | ATTACK = true |
1204 | + | CreateSound(541909867, Torso, 7, 1, false) |
1205 | - | Rooted = true |
1205 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,330), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1206 | - | local GYRO = IT("BodyGyro",RootPart) |
1206 | + | for i=0, 1, 0.1 / Animation_Speed do |
1207 | - | GYRO.D = 175 |
1207 | + | Swait() |
1208 | - | GYRO.P = 20000 |
1208 | + | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) |
1209 | - | GYRO.MaxTorque = VT(0,40000,0) |
1209 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1210 | - | if COMBO == 1 then |
1210 | + | local CHILDREN = workspace:GetDescendants() |
1211 | - | COMBO = 2 |
1211 | + | for index, CHILD in pairs(CHILDREN) do |
1212 | - | for i=0, 1, 0.1 / Animation_Speed do |
1212 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1213 | - | Swait() |
1213 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1214 | - | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1214 | + | if HUM then |
1215 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1215 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1216 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1216 | + | if TORSO then |
1217 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1217 | + | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then |
1218 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1218 | + | RANGE = (TORSO.Position - LeftHole.Position).Magnitude |
1219 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1219 | + | TARGET = HUM |
1220 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1220 | + | TORS = TORSO |
1221 | - | end |
1221 | + | end |
1222 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1222 | + | end |
1223 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1223 | + | end |
1224 | - | CreateSound(145080998, LeftHole, 7, 1, false) |
1224 | + | end |
1225 | - | BulletDetection(LeftHole.Position,TORSO.Position,false) |
1225 | + | end |
1226 | - | for i=0, 0.4, 0.1 / Animation_Speed do |
1226 | + | if TARGET then |
1227 | - | Swait() |
1227 | + | break |
1228 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1228 | + | end |
1229 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1229 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) |
1230 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1230 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed) |
1231 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1231 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1232 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1232 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1233 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1233 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1234 | - | end |
1234 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1235 | - | elseif COMBO == 2 then |
1235 | + | end |
1236 | - | COMBO = 1 |
1236 | + | GYRO:remove() |
1237 | - | for i=0, 1, 0.1 / Animation_Speed do |
1237 | + | if TORS and TARGET then |
1238 | - | Swait() |
1238 | + | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1239 | - | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1239 | + | Rooted = true |
1240 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1240 | + | local BODYPOSITION = IT("BodyPosition", TORS) |
1241 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1241 | + | BODYPOSITION.P = 2000 |
1242 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1242 | + | BODYPOSITION.D = 100 |
1243 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1243 | + | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) |
1244 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1244 | + | for i=0, 1, 0.1 / Animation_Speed do |
1245 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1245 | + | Swait() |
1246 | - | end |
1246 | + | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1247 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1247 | + | BODYPOSITION.Position = TORS.Position |
1248 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1248 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1249 | - | CreateSound(145080998, RightHole, 7, 1, false) |
1249 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1250 | - | BulletDetection(RightHole.Position,TORSO.Position,false) |
1250 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1251 | - | for i=0, 0.4, 0.1 / Animation_Speed do |
1251 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1252 | - | Swait() |
1252 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1253 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1253 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1254 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1254 | + | end |
1255 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1255 | + | for i=0, 0.4, 0.1 / Animation_Speed do |
1256 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1256 | + | Swait() |
1257 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1257 | + | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1258 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1258 | + | BODYPOSITION.Position = TORS.Position |
1259 | - | end |
1259 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1260 | - | end |
1260 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1261 | - | GYRO:remove() |
1261 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1262 | - | ATTACK = false |
1262 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1263 | - | Rooted = false |
1263 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1264 | - | end |
1264 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1265 | - | end |
1265 | + | end |
1266 | local LOOP = 0 | |
1267 | local LOOP2 = 0 | |
1268 | - | ATTACK = true |
1268 | + | for i=0, 5, 0.1 / Animation_Speed do |
1269 | - | Rooted = true |
1269 | + | Swait() |
1270 | - | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) |
1270 | + | LOOP = LOOP + 1 |
1271 | - | for i=0, 1, 0.1 / Animation_Speed do |
1271 | + | TORS.Anchored = true |
1272 | - | Swait() |
1272 | + | LOOP2 = LOOP2 + 1 |
1273 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1273 | + | if LOOP2 >= 5 then |
1274 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1274 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,330,170), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1275 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1275 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1276 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1276 | + | CreateSound(345052019, RightHole, 7, 1, false) |
1277 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1277 | + | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) |
1278 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1278 | + | LOOP2 = 0 |
1279 | - | end |
1279 | + | getbloody(TORS,1) |
1280 | - | coroutine.resume(coroutine.create(function() |
1280 | + | end |
1281 | - | local POS = Mouse.Hit.p |
1281 | + | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
1282 | - | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0)) |
1282 | + | BODYPOSITION.Position = TORS.Position |
1283 | - | MakeForm(RAY,"Cyl") |
1283 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1284 | - | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0)) |
1284 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1285 | - | MakeForm(SPHERE,"Ball") |
1285 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1286 | - | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) |
1286 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1287 | - | MakeForm(SHIELD,"Ball") |
1287 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1288 | - | SHIELD.CFrame = CF(POS) |
1288 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1289 | - | RAY.CFrame = CF(POS) |
1289 | + | end |
1290 | - | SPHERE.CFrame = CF(POS) |
1290 | + | BODYPOSITION:remove() |
1291 | - | CreateSound(440145570, SPHERE, 10, 0.8, false) |
1291 | + | if TORS then |
1292 | - | CreateSound(415700134, SPHERE, 10, 0.8, false) |
1292 | + | TORS.Anchored = false |
1293 | - | for i = 1, 200 do |
1293 | + | Kill(TORS.Parent) |
1294 | - | Swait() |
1294 | + | end |
1295 | - | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1295 | + | end |
1296 | - | RAY.Size = RAY.Size + VT(0.05,0,0.05) |
1296 | + | ATTACK = false |
1297 | - | SPHERE.Size = SPHERE.Size + VT(2,2,2) |
1297 | + | Rooted = false |
1298 | - | SHIELD.Size = SPHERE.Size + VT(3,3,3) |
1298 | + | |
1299 | - | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) |
1299 | + | |
1300 | - | end |
1300 | + | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1301 | - | for i = 1, 45 do |
1301 | + | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") |
1302 | - | Swait() |
1302 | + | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") |
1303 | - | RAY.Transparency = RAY.Transparency + 1/45 |
1303 | + | if TORSO and HUM.Health > 0 then |
1304 | - | SPHERE.Transparency = RAY.Transparency |
1304 | + | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) |
1305 | - | SHIELD.Transparency = SPHERE.Transparency + 1/45 |
1305 | + | ATTACK = true |
1306 | - | end |
1306 | + | Rooted = true |
1307 | - | RAY:remove() |
1307 | + | local GYRO = IT("BodyGyro",RootPart) |
1308 | - | SHIELD:remove() |
1308 | + | GYRO.D = 175 |
1309 | - | SPHERE:remove() |
1309 | + | GYRO.P = 20000 |
1310 | - | end)) |
1310 | + | GYRO.MaxTorque = VT(0,40000,0) |
1311 | - | for i=0, 1, 0.1 / Animation_Speed do |
1311 | + | if COMBO == 1 then |
1312 | - | Swait() |
1312 | + | COMBO = 2 |
1313 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1313 | + | for i=0, 1, 0.1 / Animation_Speed do |
1314 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1314 | + | Swait() |
1315 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1315 | + | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1316 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1316 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1317 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1317 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1318 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1318 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1319 | - | end |
1319 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1320 | - | ATTACK = false |
1320 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1321 | - | Rooted = false |
1321 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1322 | end | |
1323 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1324 | - | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1324 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1325 | - | ATTACK = true |
1325 | + | CreateSound(145080998, LeftHole, 7, 1, false) |
1326 | - | Rooted = true |
1326 | + | BulletDetection(LeftHole.Position,TORSO.Position,false) |
1327 | - | for i=0, 1, 0.1 / Animation_Speed do |
1327 | + | for i=0, 0.4, 0.1 / Animation_Speed do |
1328 | - | Swait() |
1328 | + | Swait() |
1329 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1329 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1330 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1330 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1331 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1331 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1332 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1332 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1333 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1333 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1334 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1334 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1335 | - | end |
1335 | + | end |
1336 | - | local DONE = false |
1336 | + | elseif COMBO == 2 then |
1337 | - | local GATE = nil |
1337 | + | COMBO = 1 |
1338 | - | local GATESPIN = true |
1338 | + | for i=0, 1, 0.1 / Animation_Speed do |
1339 | - | coroutine.resume(coroutine.create(function() |
1339 | + | Swait() |
1340 | - | repeat |
1340 | + | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1341 | - | Swait() |
1341 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1342 | - | if GATE ~= nil then |
1342 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1343 | - | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) |
1343 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1344 | - | end |
1344 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1345 | - | until GATESPIN == false |
1345 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1346 | - | end)) |
1346 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1347 | - | coroutine.resume(coroutine.create(function() |
1347 | + | end |
1348 | - | repeat |
1348 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1349 | - | Swait() |
1349 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1350 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1350 | + | CreateSound(145080998, RightHole, 7, 1, false) |
1351 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1351 | + | BulletDetection(RightHole.Position,TORSO.Position,false) |
1352 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1352 | + | for i=0, 0.4, 0.1 / Animation_Speed do |
1353 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1353 | + | Swait() |
1354 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1354 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1355 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1355 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1356 | - | until DONE == true |
1356 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1357 | - | Swait(50) |
1357 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1358 | - | for i = 1, 35 do |
1358 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1359 | - | Swait(4) |
1359 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1360 | - | local FIRED = false |
1360 | + | end |
1361 | - | local CHILDREN = workspace:GetDescendants() |
1361 | + | end |
1362 | - | for index, CHILD in pairs(CHILDREN) do |
1362 | + | GYRO:remove() |
1363 | - | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1363 | + | ATTACK = false |
1364 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1364 | + | Rooted = false |
1365 | - | if HUM then |
1365 | + | end |
1366 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1366 | + | end |
1367 | - | if TORSO then |
1367 | + | |
1368 | - | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then |
1368 | + | |
1369 | - | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) |
1369 | + | ATTACK = true |
1370 | - | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) |
1370 | + | Rooted = true |
1371 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) |
1371 | + | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) |
1372 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1372 | + | for i=0, 1, 0.1 / Animation_Speed do |
1373 | - | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) |
1373 | + | Swait() |
1374 | - | Kill(CHILD) |
1374 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1375 | - | FIRED = true |
1375 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1376 | - | break |
1376 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1377 | - | end |
1377 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1378 | - | end |
1378 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1379 | - | end |
1379 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1380 | - | end |
1380 | + | end |
1381 | - | end |
1381 | + | coroutine.resume(coroutine.create(function() |
1382 | - | if FIRED == false then |
1382 | + | local POS = Mouse.Hit.p |
1383 | - | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) |
1383 | + | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,2000,0)) |
1384 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) |
1384 | + | MakeForm(RAY,"Cyl") |
1385 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1385 | + | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0)) |
1386 | - | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) |
1386 | + | MakeForm(SPHERE,"Ball") |
1387 | - | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) |
1387 | + | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really yellow", "Strike", VT(0,0,0)) |
1388 | - | if HITBOD ~= nil then |
1388 | + | MakeForm(SHIELD,"Ball") |
1389 | - | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then |
1389 | + | SHIELD.CFrame = CF(POS) |
1390 | - | Kill(HITBOD.Parent) |
1390 | + | RAY.CFrame = CF(POS) |
1391 | - | end |
1391 | + | SPHERE.CFrame = CF(POS) |
1392 | - | end |
1392 | + | CreateSound(440145570, SPHERE, 10, 0.8, false) |
1393 | - | end |
1393 | + | CreateSound(415700134, SPHERE, 10, 0.8, false) |
1394 | - | end |
1394 | + | for i = 1, 200 do |
1395 | - | for i = 1, 45 do |
1395 | + | Swait() |
1396 | - | Swait() |
1396 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,330), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1397 | - | GATE.Size = GATE.Size - VT(3,0,3) |
1397 | + | RAY.Size = RAY.Size + VT(0.05,0,0.05) |
1398 | - | end |
1398 | + | SPHERE.Size = SPHERE.Size + VT(2,2,2) |
1399 | - | GATESPIN = false |
1399 | + | SHIELD.Size = SPHERE.Size + VT(3,3,3) |
1400 | - | GATE:remove() |
1400 | + | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) |
1401 | - | end)) |
1401 | + | end |
1402 | - | Swait(15) |
1402 | + | for i = 1, 45 do |
1403 | - | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) |
1403 | + | Swait() |
1404 | - | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) |
1404 | + | RAY.Transparency = RAY.Transparency + 1/45 |
1405 | - | local DECAL = IT("Decal",GATE) |
1405 | + | SPHERE.Transparency = RAY.Transparency |
1406 | - | DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096" |
1406 | + | SHIELD.Transparency = SPHERE.Transparency + 1/45 |
1407 | - | DECAL.Face = "Top" |
1407 | + | end |
1408 | - | GATE.CFrame = CF(HITPOS) |
1408 | + | RAY:remove() |
1409 | - | CreateSound(160772554, GATE, 7, 1.3, false) |
1409 | + | SHIELD:remove() |
1410 | - | for i = 1, 45 do |
1410 | + | SPHERE:remove() |
1411 | - | Swait() |
1411 | + | end)) |
1412 | - | GATE.Size = GATE.Size + VT(3,0,3) |
1412 | + | for i=0, 1, 0.1 / Animation_Speed do |
1413 | - | end |
1413 | + | Swait() |
1414 | - | CreateSound(145080998, RightHole, 7, 1, false) |
1414 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) |
1415 | - | CreateSound(145080998, LeftHole, 7, 1, false) |
1415 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1416 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1416 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1417 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1417 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1418 | - | ATTACK = false |
1418 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1419 | - | Rooted = false |
1419 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1420 | - | DONE = true |
1420 | + | end |
1421 | ATTACK = false | |
1422 | Rooted = false | |
1423 | - | ATTACK = true |
1423 | + | |
1424 | - | Rooted = false |
1424 | + | |
1425 | - | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) |
1425 | + | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1426 | - | Part.Color = C3(0,0,0) |
1426 | + | ATTACK = true |
1427 | - | MakeForm(Part,"Wedge") |
1427 | + | Rooted = true |
1428 | - | Part.CanCollide = true |
1428 | + | for i=0, 1, 0.1 / Animation_Speed do |
1429 | - | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0)) |
1429 | + | Swait() |
1430 | - | for i=0, 1, 0.1 / Animation_Speed do |
1430 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1431 | - | Swait() |
1431 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1432 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1432 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1433 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1433 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1434 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1434 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1435 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1435 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1436 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1436 | + | end |
1437 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1437 | + | local DONE = false |
1438 | - | end |
1438 | + | local GATE = nil |
1439 | - | Trail.Enabled = true |
1439 | + | local GATESPIN = true |
1440 | - | CreateSound(541909867, RightBarrel, 7, 1, false) |
1440 | + | coroutine.resume(coroutine.create(function() |
1441 | - | local TOCH = Part.Touched:Connect(function(hit) |
1441 | + | repeat |
1442 | - | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then |
1442 | + | Swait() |
1443 | - | Kill(hit.Parent) |
1443 | + | if GATE ~= nil then |
1444 | - | end |
1444 | + | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) |
1445 | - | end) |
1445 | + | end |
1446 | - | for i=0, 0.35, 0.1 / Animation_Speed do |
1446 | + | until GATESPIN == false |
1447 | - | Swait() |
1447 | + | end)) |
1448 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1448 | + | coroutine.resume(coroutine.create(function() |
1449 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) |
1449 | + | repeat |
1450 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1450 | + | Swait() |
1451 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1451 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) |
1452 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1452 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1453 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1453 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1454 | - | end |
1454 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1455 | - | TOCH:disconnect() |
1455 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1456 | - | Trail.Enabled = false |
1456 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1457 | - | for i=0, 0.35, 0.1 / Animation_Speed do |
1457 | + | until DONE == true |
1458 | - | Swait() |
1458 | + | Swait(50) |
1459 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) |
1459 | + | for i = 1, 35 do |
1460 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed) |
1460 | + | Swait(4) |
1461 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1461 | + | local FIRED = false |
1462 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1462 | + | local CHILDREN = workspace:GetDescendants() |
1463 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1463 | + | for index, CHILD in pairs(CHILDREN) do |
1464 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1464 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
1465 | - | end |
1465 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
1466 | - | Part:remove() |
1466 | + | if HUM then |
1467 | - | ATTACK = false |
1467 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
1468 | - | Rooted = false |
1468 | + | if TORSO then |
1469 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1470 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1471 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1472 | - | --|| ASSIGN THINGS TO KEYS |
1472 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 345052019, SoundPitch = 1.5, SoundVolume = 6}) |
1473 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1474 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1475 | Kill(CHILD) | |
1476 | - | if ATTACK == false then |
1476 | + | FIRED = true |
1477 | - | Execute() |
1477 | + | break |
1478 | - | end |
1478 | + | end |
1479 | end | |
1480 | end | |
1481 | end | |
1482 | end | |
1483 | if FIRED == false then | |
1484 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1485 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 345052019, SoundPitch = 1.5, SoundVolume = 6}) | |
1486 | - | KEYHOLD = true |
1486 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1487 | - | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1487 | + | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) |
1488 | - | if Key == "z" and ATTACK == false then |
1488 | + | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) |
1489 | - | Unload() |
1489 | + | if HITBOD ~= nil then |
1490 | - | |
1490 | + | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then |
1491 | - | elseif Key == "b" and ATTACK == false then |
1491 | + | Kill(HITBOD.Parent) |
1492 | - | Psyo() |
1492 | + | end |
1493 | - | |
1493 | + | end |
1494 | - | elseif Key == "c" and ATTACK == false then |
1494 | + | end |
1495 | - | Cleave() |
1495 | + | end |
1496 | - | |
1496 | + | for i = 1, 45 do |
1497 | - | elseif Key == "v" and ATTACK == false then |
1497 | + | Swait() |
1498 | - | Lock_n_Load() |
1498 | + | GATE.Size = GATE.Size - VT(3,0,3) |
1499 | - | |
1499 | + | end |
1500 | - | elseif Key == "g" and ATTACK == false then |
1500 | + | GATESPIN = false |
1501 | - | Deathbound() |
1501 | + | GATE:remove() |
1502 | - | |
1502 | + | end)) |
1503 | - | elseif Key == "x" and ATTACK == false then |
1503 | + | Swait(15) |
1504 | - | Morning_Star() |
1504 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) |
1505 | - | |
1505 | + | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) |
1506 | - | elseif Key == "t" then |
1506 | + | local DECAL = IT("Decal",GATE) |
1507 | - | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1507 | + | DECAL.Texture = "http://www.roblox.com/asset/?id=0" |
1508 | - | elseif Key == "1" and ATTACK == false then |
1508 | + | DECAL.Face = "Top" |
1509 | - | if CHOICE ~= 1 then |
1509 | + | GATE.CFrame = CF(HITPOS) |
1510 | - | CHOICE = 1 |
1510 | + | CreateSound(345052019, GATE, 7, 1.3, false) |
1511 | - | sick:Play() |
1511 | + | for i = 1, 45 do |
1512 | - | end |
1512 | + | Swait() |
1513 | - | elseif Key == "2" and ATTACK == false then |
1513 | + | GATE.Size = GATE.Size + VT(3,0,3) |
1514 | - | if CHOICE ~= 2 then |
1514 | + | end |
1515 | - | CHOICE = 2 |
1515 | + | CreateSound(145080998, RightHole, 7, 1, false) |
1516 | - | sick:Play() |
1516 | + | CreateSound(145080998, LeftHole, 7, 1, false) |
1517 | - | end |
1517 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1518 | - | elseif Key == "3" and ATTACK == false then |
1518 | + | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1519 | - | if CHOICE ~= 3 then |
1519 | + | ATTACK = false |
1520 | - | CHOICE = 3 |
1520 | + | Rooted = false |
1521 | - | sick:Play() |
1521 | + | DONE = true |
1522 | - | end |
1522 | + | |
1523 | - | elseif Key == "4" and ATTACK == false then |
1523 | + | |
1524 | - | if CHOICE ~= 4 then |
1524 | + | ATTACK = true |
1525 | - | CHOICE = 4 |
1525 | + | Rooted = false |
1526 | - | sick:Play() |
1526 | + | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) |
1527 | - | end |
1527 | + | Part.Color = C3(0,0,0) |
1528 | - | end |
1528 | + | MakeForm(Part,"Wedge") |
1529 | - | end |
1529 | + | Part.CanCollide = true |
1530 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0)) | |
1531 | for i=0, 1, 0.1 / Animation_Speed do | |
1532 | Swait() | |
1533 | - | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1533 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) |
1534 | - | KEYHOLD = false |
1534 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) |
1535 | - | end |
1535 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1536 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1537 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1538 | - | Mouse.Button1Down:connect(function(NEWKEY) |
1538 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1539 | - | MouseDown(NEWKEY) |
1539 | + | end |
1540 | - | end) |
1540 | + | Trail.Enabled = true |
1541 | - | Mouse.Button1Up:connect(function(NEWKEY) |
1541 | + | CreateSound(357417055, RightBarrel, 7, 1, false) |
1542 | - | MouseUp(NEWKEY) |
1542 | + | local TOCH = Part.Touched:Connect(function(hit) |
1543 | - | end) |
1543 | + | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then |
1544 | - | Mouse.KeyDown:connect(function(NEWKEY) |
1544 | + | Kill(hit.Parent) |
1545 | - | KeyDown(NEWKEY) |
1545 | + | end |
1546 | - | end) |
1546 | + | end) |
1547 | - | Mouse.KeyUp:connect(function(NEWKEY) |
1547 | + | for i=0, 0.35, 0.1 / Animation_Speed do |
1548 | - | KeyUp(NEWKEY) |
1548 | + | Swait() |
1549 | - | end) |
1549 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) |
1550 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1551 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1552 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1553 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1554 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1555 | end | |
1556 | - | if UNANCHOR == true then |
1556 | + | TOCH:disconnect() |
1557 | - | g = Character:GetChildren() |
1557 | + | Trail.Enabled = Ture |
1558 | - | for i = 1, #g do |
1558 | + | for i=0, 0.35, 0.1 / Animation_Speed do |
1559 | - | if g[i].ClassName == "Part" then |
1559 | + | Swait() |
1560 | - | g[i].Anchored = false |
1560 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) |
1561 | - | end |
1561 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed) |
1562 | - | end |
1562 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1563 | - | end |
1563 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1564 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1565 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1566 | end | |
1567 | Part:remove() | |
1568 | - | --|| WRAP THE WHOLE SCRIPT UP |
1568 | + | ATTACK = false |
1569 | Rooted = false | |
1570 | end | |
1571 | ||
1572 | - | if Jump == "Jump" and (Disable_Jump == true) then |
1572 | + | |
1573 | - | Humanoid.Jump = false |
1573 | + | --|| ASSIGN THINGS TO KEYS |
1574 | - | end |
1574 | + | |
1575 | ||
1576 | function MouseDown(Mouse) | |
1577 | if ATTACK == false then | |
1578 | - | Swait() |
1578 | + | Execute() |
1579 | - | Humanoid.HipHeight = 1.5 |
1579 | + | end |
1580 | - | script.Parent = WEAPONGUI |
1580 | + | |
1581 | - | ANIMATE.Parent = nil |
1581 | + | |
1582 | - | if Humanoid then |
1582 | + | |
1583 | - | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) |
1583 | + | |
1584 | - | IDLEANIMATION:Play() |
1584 | + | |
1585 | - | end |
1585 | + | |
1586 | - | SINE = SINE + CHANGE |
1586 | + | |
1587 | - | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
1587 | + | KEYHOLD = true |
1588 | - | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
1588 | + | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1589 | - | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1589 | + | if Key == "z" and ATTACK == false then |
1590 | - | if ATTACK == false then |
1590 | + | Unload() |
1591 | - | if TORSOVELOCITY < 1 then |
1591 | + | |
1592 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) |
1592 | + | elseif Key == "b" and ATTACK == false then |
1593 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1593 | + | Psyo() |
1594 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1594 | + | |
1595 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1595 | + | elseif Key == "c" and ATTACK == false then |
1596 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1596 | + | Cleave() |
1597 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1597 | + | |
1598 | - | elseif TORSOVELOCITY > 1 then |
1598 | + | elseif Key == "v" and ATTACK == false then |
1599 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) |
1599 | + | Lock_n_Load() |
1600 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) |
1600 | + | |
1601 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1601 | + | elseif Key == "g" and ATTACK == false then |
1602 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1602 | + | Deathbound() |
1603 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1603 | + | |
1604 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1604 | + | elseif Key == "x" and ATTACK == false then |
1605 | - | end |
1605 | + | Morning_Star() |
1606 | - | end |
1606 | + | |
1607 | - | RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) |
1607 | + | elseif Key == "t" then |
1608 | - | LeftArmGraps.C0 = Clerp(LeftArmGraps.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) |
1608 | + | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) |
1609 | - | unanchor() |
1609 | + | elseif Key == "1" and ATTACK == false then |
1610 | - | Humanoid.MaxHealth = "inf" |
1610 | + | if CHOICE ~= 1 then |
1611 | - | Humanoid.Health = "inf" |
1611 | + | CHOICE = 1 |
1612 | - | if Rooted == false then |
1612 | + | sick:Play() |
1613 | - | Disable_Jump = false |
1613 | + | end |
1614 | - | Humanoid.WalkSpeed = Speed |
1614 | + | elseif Key == "2" and ATTACK == false then |
1615 | - | elseif Rooted == true then |
1615 | + | if CHOICE ~= 2 then |
1616 | - | Disable_Jump = true |
1616 | + | CHOICE = 2 |
1617 | - | Humanoid.WalkSpeed = 0 |
1617 | + | sick:Play() |
1618 | - | end |
1618 | + | end |
1619 | - | for _, c in pairs(Character:GetDescendants()) do |
1619 | + | elseif Key == "3" and ATTACK == false then |
1620 | - | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then |
1620 | + | if CHOICE ~= 3 then |
1621 | - | c.Material = "Neon" |
1621 | + | CHOICE = 3 |
1622 | - | c.Color = C3(0,0,0) |
1622 | + | sick:Play() |
1623 | - | if c:FindFirstChildOfClass("SpecialMesh") then |
1623 | + | end |
1624 | - | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" |
1624 | + | elseif Key == "4" and ATTACK == false then |
1625 | - | end |
1625 | + | if CHOICE ~= 4 then |
1626 | - | if c == Head then |
1626 | + | CHOICE = 4 |
1627 | - | if c:FindFirstChild("face") then |
1627 | + | sick:Play() |
1628 | - | c.face:remove() |
1628 | + | end |
1629 | - | end |
1629 | + | end |
1630 | - | end |
1630 | + | end |
1631 | - | elseif c.ClassName == "Part" and c.Name == "Eye" then |
1631 | + | |
1632 | - | c.Color = C3(1,0,0) |
1632 | + | |
1633 | - | c.Material = "Neon" |
1633 | + | |
1634 | - | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then |
1634 | + | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1635 | - | c:remove() |
1635 | + | KEYHOLD = false |
1636 | - | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then |
1636 | + | end |
1637 | - | c:remove() |
1637 | + | |
1638 | - | end |
1638 | + | |
1639 | - | end |
1639 | + | Mouse.Button1Down:connect(function(NEWKEY) |
1640 | - | refit() |
1640 | + | MouseDown(NEWKEY) |
1641 | - | Humanoid.Name = "Deadeyes" |
1641 | + | end) |
1642 | - | sick.Parent = Torso |
1642 | + | Mouse.Button1Up:connect(function(NEWKEY) |
1643 | - | sick:resume() |
1643 | + | MouseUp(NEWKEY) |
1644 | - | sick.Volume = 5 |
1644 | + | end) |
1645 | - | sick.Pitch = 1 |
1645 | + | Mouse.KeyDown:connect(function(NEWKEY) |
1646 | - | sick.SoundId = "rbxassetid://"..SONGS[CHOICE] |
1646 | + | KeyDown(NEWKEY) |
1647 | - | if Head:FindFirstChildOfClass("Sound") then |
1647 | + | end) |
1648 | - | Head:FindFirstChildOfClass("Sound"):remove() |
1648 | + | Mouse.KeyUp:connect(function(NEWKEY) |
1649 | - | end |
1649 | + | KeyUp(NEWKEY) |
1650 | end) | |
1651 | ||
1652 | --//=================================\\ | |
1653 | --\\=================================// | |
1654 | ||
1655 | ||
1656 | function unanchor() | |
1657 | if UNANCHOR == true then | |
1658 | g = Character:GetChildren() | |
1659 | for i = 1, #g do | |
1660 | - | --|| END OF SCRIPT |
1660 | + | if g[i].ClassName == "Part" then |
1661 | g[i].Anchored = false | |
1662 | end | |
1663 | end | |
1664 | end | |
1665 | end | |
1666 | ||
1667 | ||
1668 | --//=================================\\ | |
1669 | --|| WRAP THE WHOLE SCRIPT UP | |
1670 | --\\=================================// | |
1671 | ||
1672 | Humanoid.Changed:connect(function(Jump) | |
1673 | if Jump == "Jump" and (Disable_Jump == true) then | |
1674 | Humanoid.Jump = false | |
1675 | end | |
1676 | end) | |
1677 | ||
1678 | while true do | |
1679 | Swait() | |
1680 | Humanoid.HipHeight = 1.5 | |
1681 | script.Parent = WEAPONGUI | |
1682 | ANIMATE.Parent = nil | |
1683 | if Humanoid then | |
1684 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1685 | IDLEANIMATION:Play() | |
1686 | end | |
1687 | SINE = SINE + CHANGE | |
1688 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1689 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1690 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1691 | if ATTACK == false then | |
1692 | if TORSOVELOCITY < 1 then | |
1693 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1694 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1695 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1696 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1697 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1698 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1699 | elseif TORSOVELOCITY > 1 then | |
1700 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1701 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1702 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1703 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1704 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1705 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1706 | end | |
1707 | end | |
1708 | RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
1709 | LeftArmGraps.C0 = Clerp(LeftArmGraps.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
1710 | unanchor() | |
1711 | Humanoid.MaxHealth = "inf" | |
1712 | Humanoid.Health = "inf" | |
1713 | if Rooted == false then | |
1714 | Disable_Jump = false | |
1715 | Humanoid.WalkSpeed = Speed | |
1716 | elseif Rooted == true then | |
1717 | Disable_Jump = true | |
1718 | Humanoid.WalkSpeed = 0 | |
1719 | end | |
1720 | for _, c in pairs(Character:GetDescendants()) do | |
1721 | if c.ClassName == "No" and c.Name ~= "No" and c.Parent ~= No and c.Parent.Parent ~= No then | |
1722 | c.Material = "Neon" | |
1723 | c.Color = C3(0,0,0) | |
1724 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1725 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1726 | end | |
1727 | if c == Head then | |
1728 | if c:FindFirstChild("face") then | |
1729 | c.face:remove() | |
1730 | end | |
1731 | end | |
1732 | elseif c.ClassName == "No" and c.Name == "No" then | |
1733 | c.Color = C3(0,0,0) | |
1734 | c.Material = "Neon" | |
1735 | elseif c.ClassName == "No" or c.Name == "No" then | |
1736 | c:remove() | |
1737 | elseif (c.ClassName == "No" or c.ClassName == "No") and c.Name ~= "No" then | |
1738 | c:remove() | |
1739 | end | |
1740 | end | |
1741 | refit() | |
1742 | Humanoid.Name = "Megalovania" | |
1743 | sick.Parent = Torso | |
1744 | sick:resume() | |
1745 | sick.Volume = 5 | |
1746 | sick.Pitch = 1 | |
1747 | sick.SoundId = "rbxassetid://347614106" | |
1748 | if Head:FindFirstChildOfClass("Sound") then | |
1749 | Head:FindFirstChildOfClass("Sound"):remove() | |
1750 | end | |
1751 | end | |
1752 | ||
1753 | --//=================================\\ | |
1754 | --\\=================================// | |
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | --//====================================================\\-- | |
1761 | --|| END OF SCRIPT | |
1762 | --\\====================================================//-- |