SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| EDIT by 1x1x1x1x1x1x1x0x0x2 | |
3 | --\\====================================================//-- | |
4 | ||
5 | Player = game.Players.LocalPlayer | |
6 | - | Character = Player.Character |
6 | + | Character = Player.Character |
7 | - | local txt = Instance.new("BillboardGui", Character) |
7 | + | local txt = Instance.new("BillboardGui", Character) |
8 | - | txt.Adornee = Character.Head |
8 | + | txt.Adornee = Character.Head |
9 | - | txt.Name = "_status" |
9 | + | txt.Name = "_status" |
10 | - | txt.Size = UDim2.new(2, 0, 1.2, 0) |
10 | + | txt.Size = UDim2.new(2, 0, 1.2, 0) |
11 | - | txt.StudsOffset = Vector3.new(-9, 8, 0) |
11 | + | txt.StudsOffset = Vector3.new(-9, 8, 0) |
12 | - | local text = Instance.new("TextLabel", txt) |
12 | + | local text = Instance.new("TextLabel", txt) |
13 | - | text.Size = UDim2.new(10, 0, 7, 0) |
13 | + | text.Size = UDim2.new(10, 0, 7, 0) |
14 | - | text.FontSize = "Size24" |
14 | + | text.FontSize = "Size24" |
15 | - | text.TextScaled = true |
15 | + | text.TextScaled = true |
16 | - | text.TextTransparency = 0 |
16 | + | text.TextTransparency = 0 |
17 | - | text.BackgroundTransparency = 1 |
17 | + | text.BackgroundTransparency = 1 |
18 | - | text.TextTransparency = 0 |
18 | + | text.TextTransparency = 0 |
19 | - | text.TextStrokeTransparency = 0 |
19 | + | text.TextStrokeTransparency = 0 |
20 | - | text.Font = "Antique" |
20 | + | text.Font = "Antique" |
21 | - | text.TextStrokeColor3 = Color3.new(math.random(),math.random(),math.random()) |
21 | + | text.TextStrokeColor3 = Color3.new(20,50,80) |
22 | - | text.Text = "Noob evil" |
22 | + | text.Text = "Penien23 God of Glove" |
23 | print("Edited by 1x1x1x1x1x1x1x0x0x2") | |
24 | ||
25 | --//====================================================\\-- | |
26 | --|| CREATED BY SHACKLUSTER | |
27 | --\\====================================================//-- | |
28 | ||
29 | ||
30 | ||
31 | wait(0.2) | |
32 | ||
33 | ||
34 | ||
35 | Player = game:GetService("Players").LocalPlayer | |
36 | PlayerGui = Player.PlayerGui | |
37 | Cam = workspace.CurrentCamera | |
38 | Backpack = Player.Backpack | |
39 | Character = Player.Character | |
40 | Humanoid = Character.Humanoid | |
41 | Mouse = Player:GetMouse() | |
42 | RootPart = Character["HumanoidRootPart"] | |
43 | Torso = Character["Torso"] | |
44 | Head = Character["Head"] | |
45 | RightArm = Character["Right Arm"] | |
46 | LeftArm = Character["Left Arm"] | |
47 | RightLeg = Character["Right Leg"] | |
48 | LeftLeg = Character["Left Leg"] | |
49 | RootJoint = RootPart["RootJoint"] | |
50 | Neck = Torso["Neck"] | |
51 | RightShoulder = Torso["Right Shoulder"] | |
52 | LeftShoulder = Torso["Left Shoulder"] | |
53 | RightHip = Torso["Right Hip"] | |
54 | LeftHip = Torso["Left Hip"] | |
55 | local sick = Instance.new("Sound",Character) | |
56 | sick.SoundId = "http://www.roblox.com/asset/?id=276873987" | |
57 | sick.Looped = true | |
58 | sick.Pitch = 1 | |
59 | sick.Volume = 5 | |
60 | sick:Play() | |
61 | ||
62 | IT = Instance.new | |
63 | CF = CFrame.new | |
64 | VT = Vector3.new | |
65 | RAD = math.rad | |
66 | C3 = Color3.new | |
67 | UD2 = UDim2.new | |
68 | BRICKC = BrickColor.new | |
69 | ANGLES = CFrame.Angles | |
70 | EULER = CFrame.fromEulerAnglesXYZ | |
71 | COS = math.cos | |
72 | ACOS = math.acos | |
73 | SIN = math.sin | |
74 | ASIN = math.asin | |
75 | ABS = math.abs | |
76 | MRANDOM = math.random | |
77 | FLOOR = math.floor | |
78 | ||
79 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
80 | local NEWMESH = IT(MESH) | |
81 | if MESH == "SpecialMesh" then | |
82 | NEWMESH.MeshType = MESHTYPE | |
83 | if MESHID ~= "nil" and MESHID ~= "" then | |
84 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
85 | end | |
86 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
87 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
88 | end | |
89 | end | |
90 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
91 | NEWMESH.Scale = SCALE | |
92 | NEWMESH.Parent = PARENT | |
93 | return NEWMESH | |
94 | - | local NEWMESH = IT(MESH) |
94 | + | |
95 | - | if MESH == "SpecialMesh" then |
95 | + | |
96 | - | NEWMESH.MeshType = MESHTYPE |
96 | + | |
97 | - | if MESHID ~= "nil" and MESHID ~= "" then |
97 | + | local NEWPART = IT("Part") |
98 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
98 | + | NEWPART.formFactor = FORMFACTOR |
99 | NEWPART.Reflectance = REFLECTANCE | |
100 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
100 | + | NEWPART.Transparency = TRANSPARENCY |
101 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
101 | + | NEWPART.CanCollide = false |
102 | NEWPART.Locked = true | |
103 | NEWPART.Anchored = true | |
104 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
104 | + | if ANCHOR == false then |
105 | - | NEWMESH.Scale = SCALE |
105 | + | NEWPART.Anchored = false |
106 | - | NEWMESH.Parent = PARENT |
106 | + | |
107 | - | return NEWMESH |
107 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
108 | NEWPART.Name = NAME | |
109 | NEWPART.Size = SIZE | |
110 | NEWPART.Position = Torso.Position | |
111 | - | local NEWPART = IT("Part") |
111 | + | NEWPART.Material = MATERIAL |
112 | - | NEWPART.formFactor = FORMFACTOR |
112 | + | NEWPART:BreakJoints() |
113 | - | NEWPART.Reflectance = REFLECTANCE |
113 | + | NEWPART.Parent = PARENT |
114 | - | NEWPART.Transparency = TRANSPARENCY |
114 | + | return NEWPART |
115 | - | NEWPART.CanCollide = false |
115 | + | |
116 | - | NEWPART.Locked = true |
116 | + | |
117 | - | NEWPART.Anchored = true |
117 | + | |
118 | - | if ANCHOR == false then |
118 | + | --|| CUSTOMIZATION |
119 | - | NEWPART.Anchored = false |
119 | + | |
120 | ||
121 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
121 | + | |
122 | - | NEWPART.Name = NAME |
122 | + | Animation_Speed = 1 |
123 | - | NEWPART.Size = SIZE |
123 | + | |
124 | - | NEWPART.Position = Torso.Position |
124 | + | |
125 | - | NEWPART.Material = MATERIAL |
125 | + | local Speed = 120 |
126 | - | NEWPART:BreakJoints() |
126 | + | |
127 | - | NEWPART.Parent = PARENT |
127 | + | |
128 | - | return NEWPART |
128 | + | |
129 | --|| END OF CUSTOMIZATION | |
130 | --\\=================================// | |
131 | ||
132 | - | --|| CUSTOMIZATION |
132 | + | local function weldBetween(a, b) |
133 | local weldd = Instance.new("ManualWeld") | |
134 | weldd.Part0 = a | |
135 | weldd.Part1 = b | |
136 | - | Animation_Speed = 3 |
136 | + | weldd.C0 = CFrame.new() |
137 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
138 | weldd.Parent = a | |
139 | - | local Speed = 35 |
139 | + | return weldd |
140 | end | |
141 | ||
142 | --//=================================\\ | |
143 | - | --|| END OF CUSTOMIZATION |
143 | + | --|| USEFUL VALUES |
144 | --\\=================================// | |
145 | ||
146 | - | local function weldBetween(a, b) |
146 | + | |
147 | - | local weldd = Instance.new("ManualWeld") |
147 | + | |
148 | - | weldd.Part0 = a |
148 | + | |
149 | - | weldd.Part1 = b |
149 | + | |
150 | - | weldd.C0 = CFrame.new() |
150 | + | |
151 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
151 | + | |
152 | - | weldd.Parent = a |
152 | + | |
153 | - | return weldd |
153 | + | |
154 | local ATTACK = false | |
155 | local EQUIPPED = false | |
156 | local HOLD = false | |
157 | - | --|| USEFUL VALUES |
157 | + | |
158 | local Rooted = false | |
159 | local SINE = 0 | |
160 | local KEYHOLD = false | |
161 | - | Animation_Speed = 3 |
161 | + | local CHANGE = 1 / Animation_Speed |
162 | local WALKINGANIM = false | |
163 | local WALK = 0 | |
164 | - | local Speed = 200 |
164 | + | |
165 | local VALUE2 = false | |
166 | local ROBLOXIDLEANIMATION = IT("Animation") | |
167 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
168 | - | --|| END OF CUSTOMIZATION |
168 | + | |
169 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
170 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
171 | - | local function weldBetween(a, b) |
171 | + | |
172 | - | local weldd = Instance.new("ManualWeld") |
172 | + | |
173 | - | weldd.Part0 = a |
173 | + | |
174 | - | weldd.Part1 = b |
174 | + | |
175 | - | weldd.C0 = CFrame.new() |
175 | + | |
176 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
176 | + | |
177 | - | weldd.Parent = a |
177 | + | |
178 | - | return weldd |
178 | + | |
179 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
180 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
181 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
182 | - | --|| USEFUL VALUES |
182 | + | |
183 | local UNANCHOR = true | |
184 | ||
185 | local SKILLTEXTCOLOR = C3(0,255/255,0) | |
186 | ||
187 | --//=================================\\ | |
188 | --\\=================================// | |
189 | ||
190 | ||
191 | --//=================================\\ | |
192 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
193 | --\\=================================// | |
194 | ||
195 | ArtificialHB = Instance.new("BindableEvent", script) | |
196 | ArtificialHB.Name = "ArtificialHB" | |
197 | ||
198 | script:WaitForChild("ArtificialHB") | |
199 | ||
200 | - | local CHANGE = 2 / Animation_Speed |
200 | + | |
201 | tf = 0 | |
202 | allowframeloss = false | |
203 | tossremainder = false | |
204 | lastframe = tick() | |
205 | script.ArtificialHB:Fire() | |
206 | ||
207 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
208 | tf = tf + s | |
209 | if tf >= frame then | |
210 | if allowframeloss then | |
211 | script.ArtificialHB:Fire() | |
212 | lastframe = tick() | |
213 | else | |
214 | for i = 1, math.floor(tf / frame) do | |
215 | script.ArtificialHB:Fire() | |
216 | end | |
217 | lastframe = tick() | |
218 | end | |
219 | if tossremainder then | |
220 | tf = 0 | |
221 | else | |
222 | tf = tf - frame * math.floor(tf / frame) | |
223 | end | |
224 | - | local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255) |
224 | + | |
225 | end) | |
226 | ||
227 | --//=================================\\ | |
228 | --\\=================================// | |
229 | ||
230 | ||
231 | ||
232 | ||
233 | ||
234 | --//=================================\\ | |
235 | --|| SOME FUNCTIONS | |
236 | --\\=================================// | |
237 | ||
238 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
239 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
240 | end | |
241 | ||
242 | function PositiveAngle(NUMBER) | |
243 | if NUMBER >= 0 then | |
244 | NUMBER = 0 | |
245 | end | |
246 | return NUMBER | |
247 | - | tf = tf + s |
247 | + | |
248 | - | if tf >= frame then |
248 | + | |
249 | - | if allowframeloss then |
249 | + | |
250 | - | script.ArtificialHB:Fire() |
250 | + | if NUMBER <= 0 then |
251 | - | lastframe = tick() |
251 | + | NUMBER = 0 |
252 | - | else |
252 | + | |
253 | - | for i = 1, math.floor(tf / frame) do |
253 | + | return NUMBER |
254 | - | script.ArtificialHB:Fire() |
254 | + | |
255 | - | end |
255 | + | |
256 | - | lastframe = tick() |
256 | + | |
257 | if NUMBER == 0 or NUMBER == nil then | |
258 | - | if tossremainder then |
258 | + | ArtificialHB.Event:wait() |
259 | - | tf = 0 |
259 | + | |
260 | - | else |
260 | + | for i = 1, NUMBER do |
261 | - | tf = tf - frame * math.floor(tf / frame) |
261 | + | ArtificialHB.Event:wait() |
262 | end | |
263 | end | |
264 | end | |
265 | ||
266 | function QuaternionFromCFrame(cf) | |
267 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
268 | local trace = m00 + m11 + m22 | |
269 | if trace > 0 then | |
270 | local s = math.sqrt(1 + trace) | |
271 | local recip = 0.5 / s | |
272 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
273 | else | |
274 | - | --|| SOME FUNCTIONS |
274 | + | local i = 0 |
275 | if m11 > m00 then | |
276 | i = 1 | |
277 | end | |
278 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
278 | + | if m22 > (i == 0 and m00 or m11) then |
279 | i = 2 | |
280 | end | |
281 | if i == 0 then | |
282 | - | if NUMBER >= 0 then |
282 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
283 | - | NUMBER = 0 |
283 | + | local recip = 0.5 / s |
284 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
285 | - | return NUMBER |
285 | + | elseif i == 1 then |
286 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
287 | local recip = 0.5 / s | |
288 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
289 | - | if NUMBER <= 0 then |
289 | + | elseif i == 2 then |
290 | - | NUMBER = 0 |
290 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
291 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
292 | - | return NUMBER |
292 | + | |
293 | end | |
294 | end | |
295 | ||
296 | - | if NUMBER == 0 or NUMBER == nil then |
296 | + | |
297 | - | ArtificialHB.Event:wait() |
297 | + | local xs, ys, zs = x + x, y + y, z + z |
298 | - | else |
298 | + | local wx, wy, wz = w * xs, w * ys, w * zs |
299 | - | for i = 1, NUMBER do |
299 | + | local xx = x * xs |
300 | - | ArtificialHB.Event:wait() |
300 | + | local xy = x * ys |
301 | local xz = x * zs | |
302 | local yy = y * ys | |
303 | local yz = y * zs | |
304 | local zz = z * zs | |
305 | 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)) | |
306 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
306 | + | |
307 | - | local trace = m00 + m11 + m22 |
307 | + | |
308 | - | if trace > 0 then |
308 | + | |
309 | - | local s = math.sqrt(1 + trace) |
309 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
310 | - | local recip = 0.5 / s |
310 | + | local startInterp, finishInterp; |
311 | - | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
311 | + | if cosTheta >= 0.0001 then |
312 | - | else |
312 | + | if (1 - cosTheta) > 0.0001 then |
313 | - | local i = 0 |
313 | + | local theta = ACOS(cosTheta) |
314 | - | if m11 > m00 then |
314 | + | local invSinTheta = 1 / SIN(theta) |
315 | - | i = 1 |
315 | + | startInterp = SIN((1 - t) * theta) * invSinTheta |
316 | finishInterp = SIN(t * theta) * invSinTheta | |
317 | - | if m22 > (i == 0 and m00 or m11) then |
317 | + | |
318 | - | i = 2 |
318 | + | startInterp = 1 - t |
319 | finishInterp = t | |
320 | - | if i == 0 then |
320 | + | |
321 | - | local s = math.sqrt(m00 - m11 - m22 + 1) |
321 | + | |
322 | - | local recip = 0.5 / s |
322 | + | if (1 + cosTheta) > 0.0001 then |
323 | - | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
323 | + | local theta = ACOS(-cosTheta) |
324 | - | elseif i == 1 then |
324 | + | local invSinTheta = 1 / SIN(theta) |
325 | - | local s = math.sqrt(m11 - m22 - m00 + 1) |
325 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
326 | - | local recip = 0.5 / s |
326 | + | finishInterp = SIN(t * theta) * invSinTheta |
327 | - | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
327 | + | |
328 | - | elseif i == 2 then |
328 | + | startInterp = t - 1 |
329 | - | local s = math.sqrt(m22 - m00 - m11 + 1) |
329 | + | finishInterp = t |
330 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
330 | + | |
331 | end | |
332 | 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 | |
333 | end | |
334 | ||
335 | function Clerp(a, b, t) | |
336 | - | local xs, ys, zs = x + x, y + y, z + z |
336 | + | local qa = {QuaternionFromCFrame(a)} |
337 | - | local wx, wy, wz = w * xs, w * ys, w * zs |
337 | + | local qb = {QuaternionFromCFrame(b)} |
338 | - | local xx = x * xs |
338 | + | local ax, ay, az = a.x, a.y, a.z |
339 | - | local xy = x * ys |
339 | + | local bx, by, bz = b.x, b.y, b.z |
340 | - | local xz = x * zs |
340 | + | local _t = 1 - t |
341 | - | local yy = y * ys |
341 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
342 | - | local yz = y * zs |
342 | + | |
343 | - | local zz = z * zs |
343 | + | |
344 | - | 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)) |
344 | + | |
345 | local frame = IT("Frame") | |
346 | frame.BackgroundTransparency = TRANSPARENCY | |
347 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
348 | - | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
348 | + | frame.Position = POSITION |
349 | - | local startInterp, finishInterp; |
349 | + | frame.Size = SIZE |
350 | - | if cosTheta >= 0.0001 then |
350 | + | frame.BackgroundColor3 = COLOR |
351 | - | if (1 - cosTheta) > 0.0001 then |
351 | + | frame.BorderColor3 = BORDERCOLOR |
352 | - | local theta = ACOS(cosTheta) |
352 | + | frame.Name = NAME |
353 | - | local invSinTheta = 1 / SIN(theta) |
353 | + | frame.Parent = PARENT |
354 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
354 | + | return frame |
355 | - | finishInterp = SIN(t * theta) * invSinTheta |
355 | + | |
356 | - | else |
356 | + | |
357 | - | startInterp = 1 - t |
357 | + | |
358 | - | finishInterp = t |
358 | + | local label = IT("TextLabel") |
359 | label.BackgroundTransparency = 1 | |
360 | - | else |
360 | + | label.Size = UD2(1, 0, 1, 0) |
361 | - | if (1 + cosTheta) > 0.0001 then |
361 | + | label.Position = UD2(0, 0, 0, 0) |
362 | - | local theta = ACOS(-cosTheta) |
362 | + | label.TextColor3 = TEXTCOLOR |
363 | - | local invSinTheta = 1 / SIN(theta) |
363 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
364 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
364 | + | label.TextTransparency = TRANSPARENCY |
365 | - | finishInterp = SIN(t * theta) * invSinTheta |
365 | + | label.FontSize = TEXTFONTSIZE |
366 | - | else |
366 | + | label.Font = TEXTFONT |
367 | - | startInterp = t - 1 |
367 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
368 | - | finishInterp = t |
368 | + | label.TextScaled = false |
369 | label.Text = TEXT | |
370 | label.Name = NAME | |
371 | - | 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 |
371 | + | label.Parent = PARENT |
372 | return label | |
373 | end | |
374 | ||
375 | - | local qa = {QuaternionFromCFrame(a)} |
375 | + | |
376 | - | local qb = {QuaternionFromCFrame(b)} |
376 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
377 | - | local ax, ay, az = a.x, a.y, a.z |
377 | + | |
378 | - | local bx, by, bz = b.x, b.y, b.z |
378 | + | |
379 | - | local _t = 1 - t |
379 | + | |
380 | - | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
380 | + | |
381 | local NEWWELD = IT(TYPE) | |
382 | NEWWELD.Part0 = PART0 | |
383 | NEWWELD.Part1 = PART1 | |
384 | - | local frame = IT("Frame") |
384 | + | NEWWELD.C0 = C0 |
385 | - | frame.BackgroundTransparency = TRANSPARENCY |
385 | + | NEWWELD.C1 = C1 |
386 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
386 | + | NEWWELD.Parent = PARENT |
387 | - | frame.Position = POSITION |
387 | + | return NEWWELD |
388 | - | frame.Size = SIZE |
388 | + | |
389 | - | frame.BackgroundColor3 = COLOR |
389 | + | |
390 | - | frame.BorderColor3 = BORDERCOLOR |
390 | + | |
391 | - | frame.Name = NAME |
391 | + | local NEWSOUND = nil |
392 | - | frame.Parent = PARENT |
392 | + | coroutine.resume(coroutine.create(function() |
393 | - | return frame |
393 | + | NEWSOUND = IT("Sound", PARENT) |
394 | NEWSOUND.Volume = VOLUME | |
395 | NEWSOUND.Pitch = PITCH | |
396 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
397 | - | local label = IT("TextLabel") |
397 | + | Swait() |
398 | - | label.BackgroundTransparency = 1 |
398 | + | NEWSOUND:play() |
399 | - | label.Size = UD2(1, 0, 1, 0) |
399 | + | game:GetService("Debris"):AddItem(NEWSOUND, 10) |
400 | - | label.Position = UD2(0, 0, 0, 0) |
400 | + | end)) |
401 | - | label.TextColor3 = TEXTCOLOR |
401 | + | return NEWSOUND |
402 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
402 | + | |
403 | - | label.TextTransparency = TRANSPARENCY |
403 | + | |
404 | - | label.FontSize = TEXTFONTSIZE |
404 | + | |
405 | - | label.Font = TEXTFONT |
405 | + | local right = top:Cross(back) |
406 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
406 | + | 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) |
407 | - | label.TextScaled = false |
407 | + | |
408 | - | label.Text = TEXT |
408 | + | |
409 | - | label.Name = NAME |
409 | + | |
410 | - | label.Parent = PARENT |
410 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Dark red"), "Effect", VT(0,0,0)) |
411 | - | return label |
411 | + | local mesh = IT("SpecialMesh",wave) |
412 | mesh.MeshType = "FileMesh" | |
413 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
414 | mesh.Scale = SIZE | |
415 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
415 | + | mesh.Offset = VT(0,0,-SIZE.X/8) |
416 | wave.CFrame = CFRAME | |
417 | coroutine.resume(coroutine.create(function(PART) | |
418 | for i = 1, WAIT do | |
419 | Swait() | |
420 | - | local NEWWELD = IT(TYPE) |
420 | + | mesh.Scale = mesh.Scale + GROW |
421 | - | NEWWELD.Part0 = PART0 |
421 | + | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
422 | - | NEWWELD.Part1 = PART1 |
422 | + | if DOESROT == true then |
423 | - | NEWWELD.C0 = C0 |
423 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
424 | - | NEWWELD.C1 = C1 |
424 | + | |
425 | - | NEWWELD.Parent = PARENT |
425 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
426 | - | return NEWWELD |
426 | + | if wave.Transparency > 0.99 then |
427 | wave:remove() | |
428 | end | |
429 | end | |
430 | - | local NEWSOUND = nil |
430 | + | end)) |
431 | - | coroutine.resume(coroutine.create(function() |
431 | + | |
432 | - | NEWSOUND = IT("Sound", PARENT) |
432 | + | |
433 | - | NEWSOUND.Volume = VOLUME |
433 | + | |
434 | - | NEWSOUND.Pitch = PITCH |
434 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Black"), "Effect", VT(0,0,0)) |
435 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
435 | + | local mesh = IT("SpecialMesh",wave) |
436 | - | Swait() |
436 | + | mesh.MeshType = "FileMesh" |
437 | - | NEWSOUND:play() |
437 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" |
438 | - | game:GetService("Debris"):AddItem(NEWSOUND, 10) |
438 | + | mesh.Scale = SIZE |
439 | - | end)) |
439 | + | --mesh.Offset = VT(0,0,-SIZE.X/8) |
440 | - | return NEWSOUND |
440 | + | wave.CFrame = CFRAME |
441 | coroutine.resume(coroutine.create(function(PART) | |
442 | for i = 1, WAIT do | |
443 | Swait() | |
444 | - | local right = top:Cross(back) |
444 | + | mesh.Scale = mesh.Scale + GROW |
445 | - | 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) |
445 | + | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
446 | if DOESROT == true then | |
447 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
448 | end | |
449 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
449 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
450 | - | local mesh = IT("SpecialMesh",wave) |
450 | + | if wave.Transparency > 0.99 then |
451 | - | mesh.MeshType = "FileMesh" |
451 | + | wave:remove() |
452 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" |
452 | + | |
453 | - | mesh.Scale = SIZE |
453 | + | |
454 | - | mesh.Offset = VT(0,0,-SIZE.X/8) |
454 | + | end)) |
455 | - | wave.CFrame = CFRAME |
455 | + | |
456 | - | coroutine.resume(coroutine.create(function(PART) |
456 | + | |
457 | - | for i = 1, WAIT do |
457 | + | |
458 | - | Swait() |
458 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Dark red"), "Effect", VT(0,0,0)) |
459 | - | mesh.Scale = mesh.Scale + GROW |
459 | + | local mesh = IT("SpecialMesh",wave) |
460 | - | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
460 | + | mesh.MeshType = "FileMesh" |
461 | - | if DOESROT == true then |
461 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" |
462 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
462 | + | mesh.Scale = SIZE |
463 | - | end |
463 | + | wave.CFrame = CFRAME |
464 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
464 | + | coroutine.resume(coroutine.create(function(PART) |
465 | - | if wave.Transparency > 0.99 then |
465 | + | for i = 1, WAIT do |
466 | - | wave:remove() |
466 | + | Swait() |
467 | - | end |
467 | + | mesh.Scale = mesh.Scale + GROW |
468 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
469 | - | end)) |
469 | + | if DOESROT == true then |
470 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
471 | end | |
472 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
473 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
473 | + | if wave.Transparency > 0.99 then |
474 | - | local mesh = IT("SpecialMesh",wave) |
474 | + | wave:remove() |
475 | - | mesh.MeshType = "FileMesh" |
475 | + | |
476 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" |
476 | + | |
477 | - | mesh.Scale = SIZE |
477 | + | end)) |
478 | - | --mesh.Offset = VT(0,0,-SIZE.X/8) |
478 | + | |
479 | - | wave.CFrame = CFRAME |
479 | + | |
480 | - | coroutine.resume(coroutine.create(function(PART) |
480 | + | |
481 | - | for i = 1, WAIT do |
481 | + | |
482 | - | Swait() |
482 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Black"), "Effect", VT(1,1,1), true) |
483 | - | mesh.Scale = mesh.Scale + GROW |
483 | + | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) |
484 | - | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
484 | + | wave.CFrame = CFRAME |
485 | - | if DOESROT == true then |
485 | + | coroutine.resume(coroutine.create(function(PART) |
486 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
486 | + | for i = 1, WAIT do |
487 | - | end |
487 | + | Swait() |
488 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
488 | + | mesh.Scale = mesh.Scale * GROW |
489 | - | if wave.Transparency > 0.99 then |
489 | + | wave.Transparency = wave.Transparency + (0.5/WAIT) |
490 | - | wave:remove() |
490 | + | if wave.Transparency > 0.99 then |
491 | - | end |
491 | + | wave:remove() |
492 | end | |
493 | - | end)) |
493 | + | |
494 | end)) | |
495 | end | |
496 | ||
497 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) |
497 | + | |
498 | - | local mesh = IT("SpecialMesh",wave) |
498 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Black"), "Effect", VT(1,1,1), true) |
499 | - | mesh.MeshType = "FileMesh" |
499 | + | local mesh = IT("SpecialMesh",wave) |
500 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" |
500 | + | mesh.MeshType = "Sphere" |
501 | - | mesh.Scale = SIZE |
501 | + | mesh.Scale = SIZE |
502 | - | wave.CFrame = CFRAME |
502 | + | mesh.Offset = VT(0,0,0) |
503 | - | coroutine.resume(coroutine.create(function(PART) |
503 | + | wave.CFrame = CFRAME |
504 | - | for i = 1, WAIT do |
504 | + | coroutine.resume(coroutine.create(function(PART) |
505 | - | Swait() |
505 | + | for i = 1, WAIT do |
506 | - | mesh.Scale = mesh.Scale + GROW |
506 | + | Swait() |
507 | - | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) |
507 | + | mesh.Scale = mesh.Scale + GROW |
508 | - | if DOESROT == true then |
508 | + | wave.Transparency = wave.Transparency + (1/WAIT) |
509 | - | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) |
509 | + | if wave.Transparency > 0.99 then |
510 | - | end |
510 | + | wave:remove() |
511 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
511 | + | |
512 | - | if wave.Transparency > 0.99 then |
512 | + | |
513 | - | wave:remove() |
513 | + | end)) |
514 | - | end |
514 | + | |
515 | ||
516 | - | end)) |
516 | + | |
517 | if TYPE == "Cyl" then | |
518 | local MSH = IT("CylinderMesh",PART) | |
519 | elseif TYPE == "Ball" then | |
520 | local MSH = IT("SpecialMesh",PART) | |
521 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
521 | + | MSH.MeshType = "Sphere" |
522 | - | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) |
522 | + | elseif TYPE == "Wedge" then |
523 | - | wave.CFrame = CFRAME |
523 | + | local MSH = IT("SpecialMesh",PART) |
524 | - | coroutine.resume(coroutine.create(function(PART) |
524 | + | MSH.MeshType = "Wedge" |
525 | - | for i = 1, WAIT do |
525 | + | |
526 | - | Swait() |
526 | + | |
527 | - | mesh.Scale = mesh.Scale * GROW |
527 | + | |
528 | - | wave.Transparency = wave.Transparency + (0.5/WAIT) |
528 | + | |
529 | - | if wave.Transparency > 0.99 then |
529 | + | if FLOOR ~= nil then |
530 | - | wave:remove() |
530 | + | coroutine.resume(coroutine.create(function() |
531 | - | end |
531 | + | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) |
532 | PART.CFrame = CF(POSITION) | |
533 | - | end)) |
533 | + | for i = 1, 45 do |
534 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
535 | RingPiece.Material = FLOOR.Material | |
536 | RingPiece.Color = FLOOR.Color | |
537 | - | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) |
537 | + | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) |
538 | - | local mesh = IT("SpecialMesh",wave) |
538 | + | Debris:AddItem(RingPiece,SWAIT/100) |
539 | - | mesh.MeshType = "Sphere" |
539 | + | |
540 | - | mesh.Scale = SIZE |
540 | + | PART:remove() |
541 | - | mesh.Offset = VT(0,0,0) |
541 | + | end)) |
542 | - | wave.CFrame = CFRAME |
542 | + | |
543 | - | coroutine.resume(coroutine.create(function(PART) |
543 | + | |
544 | - | for i = 1, WAIT do |
544 | + | |
545 | - | Swait() |
545 | + | |
546 | - | mesh.Scale = mesh.Scale + GROW |
546 | + | for i, v in pairs(Table) do |
547 | - | wave.Transparency = wave.Transparency + (1/WAIT) |
547 | + | if string.find(string.lower(String), string.lower(v)) then |
548 | - | if wave.Transparency > 0.99 then |
548 | + | return true |
549 | - | wave:remove() |
549 | + | |
550 | - | end |
550 | + | |
551 | return false | |
552 | - | end)) |
552 | + | |
553 | ||
554 | function CheckIntangible(Hit) | |
555 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
556 | - | if TYPE == "Cyl" then |
556 | + | if Hit and Hit.Parent then |
557 | - | local MSH = IT("CylinderMesh",PART) |
557 | + | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then |
558 | - | elseif TYPE == "Ball" then |
558 | + | return true |
559 | - | local MSH = IT("SpecialMesh",PART) |
559 | + | |
560 | - | MSH.MeshType = "Sphere" |
560 | + | |
561 | - | elseif TYPE == "Wedge" then |
561 | + | return false |
562 | - | local MSH = IT("SpecialMesh",PART) |
562 | + | |
563 | - | MSH.MeshType = "Wedge" |
563 | + | |
564 | Debris = game:GetService("Debris") | |
565 | ||
566 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
567 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
568 | - | if FLOOR ~= nil then |
568 | + | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) |
569 | - | coroutine.resume(coroutine.create(function() |
569 | + | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) |
570 | - | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) |
570 | + | if RayHit and CheckIntangible(RayHit) then |
571 | - | PART.CFrame = CF(POSITION) |
571 | + | if DelayIfHit then |
572 | - | for i = 1, 45 do |
572 | + | wait() |
573 | - | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) |
573 | + | |
574 | - | RingPiece.Material = FLOOR.Material |
574 | + | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) |
575 | - | RingPiece.Color = FLOOR.Color |
575 | + | |
576 | - | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) |
576 | + | return RayHit, RayPos, RayNormal |
577 | - | Debris:AddItem(RingPiece,SWAIT/100) |
577 | + | |
578 | - | end |
578 | + | |
579 | - | PART:remove() |
579 | + | |
580 | - | end)) |
580 | + | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
581 | end | |
582 | ||
583 | --//=================================\\ | |
584 | --|| WEAPON CREATION | |
585 | - | for i, v in pairs(Table) do |
585 | + | |
586 | - | if string.find(string.lower(String), string.lower(v)) then |
586 | + | |
587 | - | return true |
587 | + | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) |
588 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
589 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) | |
590 | - | return false |
590 | + | |
591 | ||
592 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
593 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
594 | - | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} |
594 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
595 | - | if Hit and Hit.Parent then |
595 | + | |
596 | - | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then |
596 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
597 | - | return true |
597 | + | |
598 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
599 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
600 | - | return false |
600 | + | |
601 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
602 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
603 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
604 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
605 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yellern", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
606 | - | local Direction = CFrame.new(StartPos, Vec).lookVector |
606 | + | |
607 | - | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) |
607 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
608 | - | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) |
608 | + | |
609 | - | if RayHit and CheckIntangible(RayHit) then |
609 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
610 | - | if DelayIfHit then |
610 | + | |
611 | - | wait() |
611 | + | |
612 | ||
613 | - | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) |
613 | + | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) |
614 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LeftArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
615 | - | return RayHit, RayPos, RayNormal |
615 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) |
616 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
617 | ||
618 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
619 | - | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
619 | + | |
620 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
621 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
622 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
623 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
624 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
625 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
626 | - | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) |
626 | + | |
627 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
628 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) |
628 | + | |
629 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
630 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
631 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
631 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
632 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
633 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
633 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
634 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
635 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
635 | + | local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
636 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
637 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) |
637 | + | |
638 | for _, c in pairs(Weapon:GetChildren()) do | |
639 | if c.ClassName == "Part" then | |
640 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) |
640 | + | |
641 | end | |
642 | - | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) |
642 | + | |
643 | ||
644 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
644 | + | |
645 | ||
646 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
646 | + | |
647 | ATTACK = true | |
648 | - | local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) |
648 | + | |
649 | ||
650 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
651 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
652 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
653 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
654 | ||
655 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Noob Agreement", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
656 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Noob Grab", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
657 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Noob Speed", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
658 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Noob Ultimate Punch", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
659 | ||
660 | --//=================================\\ | |
661 | --|| DAMAGE FUNCTIONS | |
662 | --\\=================================// | |
663 | ||
664 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
665 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
666 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
667 | local BODYGYRO = IT("BodyGyro", STATPART) | |
668 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
669 | BODYPOSITION.P = 2000 | |
670 | BODYPOSITION.D = 100 | |
671 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
672 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
673 | game:GetService("Debris"):AddItem(STATPART ,5) | |
674 | - | --|| DAMAGE FUNCTIONS |
674 | + | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) |
675 | BILLBOARDGUI.Adornee = STATPART | |
676 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
677 | - | function StatLabel(CFRAME, TEXT, COLOR) |
677 | + | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) |
678 | - | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "", "Effect", VT()) |
678 | + | BILLBOARDGUI.AlwaysOnTop = false |
679 | - | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) |
679 | + | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) |
680 | - | local BODYGYRO = IT("BodyGyro", STATPART) |
680 | + | TEXTLABEL.BackgroundTransparency = 1 |
681 | - | game:GetService("Debris"):AddItem(STATPART ,5) |
681 | + | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) |
682 | - | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) |
682 | + | TEXTLABEL.Text = TEXT |
683 | - | BILLBOARDGUI.Adornee = STATPART |
683 | + | TEXTLABEL.Font = "SciFi" |
684 | - | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) |
684 | + | TEXTLABEL.FontSize="Size42" |
685 | - | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) |
685 | + | TEXTLABEL.TextColor3 = COLOR |
686 | - | BILLBOARDGUI.AlwaysOnTop = false |
686 | + | TEXTLABEL.TextStrokeTransparency = 1 |
687 | - | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) |
687 | + | TEXTLABEL.TextScaled = true |
688 | - | TEXTLABEL.BackgroundTransparency = 1 |
688 | + | TEXTLABEL.TextWrapped = true |
689 | - | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) |
689 | + | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) |
690 | - | TEXTLABEL.Text = TEXT |
690 | + | if LABELTYPE == "Normal" then |
691 | - | TEXTLABEL.Font = SKILLFONT |
691 | + | for i = 1, 30 do |
692 | - | TEXTLABEL.FontSize="Size42" |
692 | + | Swait() |
693 | - | TEXTLABEL.TextColor3 = COLOR |
693 | + | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) |
694 | - | TEXTLABEL.TextStrokeTransparency = 0 |
694 | + | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) |
695 | - | TEXTLABEL.TextScaled = true |
695 | + | |
696 | - | TEXTLABEL.TextWrapped = true |
696 | + | elseif LABELTYPE == "Debuff" then |
697 | - | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) |
697 | + | for i = 1, 30 do |
698 | - | for i = 1, 50 do |
698 | + | Swait() |
699 | - | Swait() |
699 | + | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) |
700 | - | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) |
700 | + | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) |
701 | - | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) |
701 | + | |
702 | - | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency |
702 | + | elseif LABELTYPE == "Shock" then |
703 | local ORIGIN = STATPART.Position | |
704 | - | THEPART.Parent = nil |
704 | + | for i = 1, 30 do |
705 | - | end),STATPART, TEXTLABEL) |
705 | + | Swait() |
706 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
707 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
708 | end | |
709 | - | --|| DAMAGING |
709 | + | |
710 | THEPART.Parent = nil | |
711 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
712 | end | |
713 | - | for i,v in ipairs(workspace:GetChildren()) do |
713 | + | |
714 | - | local body = v:GetChildren() |
714 | + | |
715 | - | for part = 1, #body do |
715 | + | --|| DAMAGING |
716 | - | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then |
716 | + | |
717 | - | if(body[part].Position - position).Magnitude < range then |
717 | + | |
718 | - | if v.ClassName == "Model" then |
718 | + | |
719 | - | --v:BreakJoints() |
719 | + | for i,v in ipairs(workspace:GetChildren()) do |
720 | - | end |
720 | + | local body = v:GetChildren() |
721 | - | local POS = position |
721 | + | for part = 1, #body do |
722 | - | coroutine.resume(coroutine.create(function() |
722 | + | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then |
723 | - | body[part].Anchored = true |
723 | + | if(body[part].Position - position).Magnitude < range then |
724 | - | body[part].Parent = Effects |
724 | + | if v.ClassName == "Model" then |
725 | - | body[part].CanCollide = true |
725 | + | --v:BreakJoints() |
726 | - | local SIZE = body[part].Size |
726 | + | end |
727 | - | body[part].Material = "Neon" |
727 | + | local POS = position |
728 | - | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) |
728 | + | coroutine.resume(coroutine.create(function() |
729 | - | for i = 1, 75 do |
729 | + | body[part].Anchored = true |
730 | - | Swait() |
730 | + | body[part].Parent = Effects |
731 | - | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
731 | + | body[part].CanCollide = true |
732 | - | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
732 | + | local SIZE = body[part].Size |
733 | - | end |
733 | + | body[part].Material = "Neon" |
734 | - | coroutine.resume(coroutine.create(function() |
734 | + | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) |
735 | - | while true do |
735 | + | for i = 1, 75 do |
736 | - | Swait() |
736 | + | Swait() |
737 | - | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
737 | + | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
738 | - | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
738 | + | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
739 | - | end |
739 | + | end |
740 | - | end)) |
740 | + | coroutine.resume(coroutine.create(function() |
741 | - | body[part].Anchored = false |
741 | + | while true do |
742 | - | body[part].Velocity = direction.lookVector*maxstrength |
742 | + | Swait() |
743 | - | end)) |
743 | + | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
744 | - | end |
744 | + | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
745 | - | end |
745 | + | end |
746 | end)) | |
747 | - | if v.ClassName == "Part" then |
747 | + | body[part].Anchored = false |
748 | - | if v.Anchored == false and (v.Position - position).Magnitude < range then |
748 | + | body[part].Velocity = direction.lookVector*maxstrength |
749 | - | local POS = position |
749 | + | end)) |
750 | - | coroutine.resume(coroutine.create(function() |
750 | + | end |
751 | - | v.Anchored = true |
751 | + | |
752 | - | v.Parent = Effects |
752 | + | |
753 | - | local SIZE = v.Size |
753 | + | if v.ClassName == "Part" then |
754 | - | v.Material = "Neon" |
754 | + | if v.Anchored == false and (v.Position - position).Magnitude < range then |
755 | - | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) |
755 | + | local POS = position |
756 | - | for i = 1, 75 do |
756 | + | coroutine.resume(coroutine.create(function() |
757 | - | Swait() |
757 | + | v.Anchored = true |
758 | - | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
758 | + | v.Parent = Effects |
759 | - | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
759 | + | local SIZE = v.Size |
760 | - | end |
760 | + | v.Material = "Neon" |
761 | - | coroutine.resume(coroutine.create(function() |
761 | + | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) |
762 | - | while true do |
762 | + | for i = 1, 75 do |
763 | - | Swait() |
763 | + | Swait() |
764 | - | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
764 | + | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
765 | - | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
765 | + | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
766 | - | end |
766 | + | end |
767 | - | end)) |
767 | + | coroutine.resume(coroutine.create(function() |
768 | - | v.Anchored = false |
768 | + | while true do |
769 | - | v.Velocity = direction.lookVector*maxstrength |
769 | + | Swait() |
770 | - | end)) |
770 | + | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) |
771 | - | end |
771 | + | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) |
772 | end | |
773 | end)) | |
774 | v.Anchored = false | |
775 | v.Velocity = direction.lookVector*maxstrength | |
776 | end)) | |
777 | - | --|| ATTACK FUNCTIONS AND STUFF |
777 | + | |
778 | end | |
779 | end | |
780 | end | |
781 | ||
782 | - | Rooted = false |
782 | + | |
783 | - | for i=0, 1, 0.1 / Animation_Speed do |
783 | + | --|| ATTACK FUNCTIONS AND STUFF |
784 | - | Swait() |
784 | + | |
785 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
785 | + | |
786 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
786 | + | |
787 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
787 | + | ATTACK = true |
788 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
788 | + | Rooted = false |
789 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
789 | + | for i=0, 0, 0.1 / Animation_Speed do |
790 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
790 | + | Swait() |
791 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
792 | - | ATTACK = false |
792 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
793 | - | Rooted = false |
793 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
794 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
795 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
796 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
797 | end | |
798 | - | Rooted = false |
798 | + | ATTACK = false |
799 | - | local SPEED = Speed |
799 | + | Rooted = false |
800 | - | Speed = 99999 |
800 | + | |
801 | - | CreateSound("169445572", RightArm, 10, 1.1) |
801 | + | |
802 | - | for i=0, 4, 0.1 / Animation_Speed do |
802 | + | |
803 | - | Swait() |
803 | + | ATTACK = true |
804 | - | turnto(Mouse.Hit.p) |
804 | + | Rooted = false |
805 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) |
805 | + | local SPEED = Speed |
806 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) |
806 | + | Speed = 8 |
807 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
807 | + | CreateSound("169445572", RightArm, 10, 1.1) |
808 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
808 | + | for i=0, 0, 0.1 / Animation_Speed do |
809 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
809 | + | Swait() |
810 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
810 | + | turnto(Mouse.Hit.p) |
811 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-1/15,-1/15,-1/15)) | |
812 | - | for i=0, 0.15, 0.1 / Animation_Speed do |
812 | + | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15)) |
813 | - | Swait() |
813 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) |
814 | - | turnto(Mouse.Hit.p) |
814 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) |
815 | - | ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
815 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
816 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
817 | - | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false) |
817 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
818 | - | PART.CFrame = RootPart.CFrame * CF(0,0,-25) |
818 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
819 | - | PART.Shape = "Ball" |
819 | + | |
820 | - | local bv = Instance.new("BodyVelocity") |
820 | + | for i=0, 0, 0.1 / Animation_Speed do |
821 | - | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
821 | + | Swait() |
822 | - | bv.velocity = RootPart.CFrame.lookVector*600 |
822 | + | turnto(Mouse.Hit.p) |
823 | - | bv.Parent = PART |
823 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) |
824 | - | bv.Name = "PROJECTILEVELOCITY" |
824 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) |
825 | - | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2.5,0.2,2.5)) |
825 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
826 | - | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3)) |
826 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
827 | - | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2)) |
827 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
828 | - | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(2.2,0.6,2.2)) |
828 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
829 | - | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) |
829 | + | |
830 | - | coroutine.resume(coroutine.create(function() |
830 | + | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Black", "Punch", VT(50,50,50),false) |
831 | - | for i = 1, 10 do |
831 | + | PART.CFrame = RootPart.CFrame * CF(0,0,-25) |
832 | - | Swait() |
832 | + | PART.Shape = "Ball" |
833 | - | PART.Transparency = PART.Transparency + 0.2/10 |
833 | + | local bv = Instance.new("BodyVelocity") |
834 | - | PART.Size = PART.Size + VT(5,5,5) |
834 | + | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
835 | - | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) |
835 | + | bv.velocity = RootPart.CFrame.lookVector*600 |
836 | bv.Parent = PART | |
837 | - | PART:Destroy() |
837 | + | bv.Name = "PROJECTILEVELOCITY" |
838 | - | end)) |
838 | + | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2.5,0.2,2.5)) |
839 | - | for i=0, 1, 0.1 / Animation_Speed do |
839 | + | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(3,0.2,3)) |
840 | - | Swait() |
840 | + | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(2,0.6,2)) |
841 | - | RANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) |
841 | + | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Black",VT(2.2,0.6,2.2)) |
842 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
843 | - | Speed = SPEED |
843 | + | coroutine.resume(coroutine.create(function() |
844 | - | ATTACK = false |
844 | + | for i = 1, 10 do |
845 | - | Rooted = false |
845 | + | Swait() |
846 | PART.Transparency = PART.Transparency + 0.2/10 | |
847 | PART.Size = PART.Size + VT(5,5,5) | |
848 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
849 | end | |
850 | - | Rooted = false |
850 | + | PART:Destroy() |
851 | - | local HASGRABBED = false |
851 | + | end)) |
852 | - | local WELD = nil |
852 | + | for i=0, 0, 0.1 / Animation_Speed do |
853 | - | local TORS = nil |
853 | + | Swait() |
854 | - | local hitting = FIST.Touched:connect(function(hit) |
854 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) |
855 | - | if hit.Parent:FindFirstChild("Humanoid") then |
855 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) |
856 | - | if hit.Parent.Humanoid.Health ~= 0 then |
856 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
857 | - | UNANCHOR = false |
857 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) |
858 | - | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") |
858 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) |
859 | - | TORS.Anchored = true |
859 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) |
860 | - | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) |
860 | + | |
861 | - | WELD = weldBetween(RightArm,TORS) |
861 | + | Speed = SPEED |
862 | - | HASGRABBED = true |
862 | + | ATTACK = false |
863 | - | Rooted = true |
863 | + | Rooted = false |
864 | - | end |
864 | + | |
865 | ||
866 | function GoldenGrasp() | |
867 | - | for i=0, 1, 0.1 / Animation_Speed do |
867 | + | ATTACK = true |
868 | - | Swait() |
868 | + | Rooted = false |
869 | - | if HASGRABBED == true then |
869 | + | local HASGRABBED = false |
870 | - | break |
870 | + | local WELD = nil |
871 | local TORS = nil | |
872 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) |
872 | + | local hitting = FIST.Touched:connect(function(hit) |
873 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) |
873 | + | if hit.Parent:FindFirstChild("Humanoid") then |
874 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
874 | + | if hit.Parent.Humanoid.Health ~= 0 then |
875 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
875 | + | UNANCHOR = false |
876 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) |
876 | + | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") |
877 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) |
877 | + | TORS.Anchored = true |
878 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
879 | - | hitting:disconnect() |
879 | + | WELD = weldBetween(RightArm,TORS) |
880 | - | if HASGRABBED == true then |
880 | + | HASGRABBED = true |
881 | - | TORS.Anchored = false |
881 | + | Rooted = true |
882 | end | |
883 | - | for i=0, 2, 0.1 / Animation_Speed do |
883 | + | |
884 | - | Swait() |
884 | + | end) |
885 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
885 | + | for i=0, 1, 0.1 / Animation_Speed do |
886 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
886 | + | Swait() |
887 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
887 | + | if HASGRABBED == true then |
888 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
888 | + | break |
889 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
889 | + | |
890 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
890 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) |
891 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
892 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5)) |
892 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
893 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6)) |
893 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
894 | - | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) |
894 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) |
895 | - | SOUNDPART.CFrame = RootPart.CFrame |
895 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) |
896 | - | Debris:AddItem(SOUNDPART,5) |
896 | + | |
897 | - | CreateSound("1295446488", SOUNDPART, 2, 1) |
897 | + | hitting:disconnect() |
898 | - | for i = 1, 15 do |
898 | + | if HASGRABBED == true then |
899 | - | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) |
899 | + | TORS.Anchored = false |
900 | RootPart.Anchored = true | |
901 | - | for i=0, 2, 0.1 / Animation_Speed do |
901 | + | for i=0, 1, 0.5 / Animation_Speed do |
902 | - | Swait() |
902 | + | Swait() |
903 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
903 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
904 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
904 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
905 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
905 | + | |
906 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
906 | + | |
907 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
907 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
908 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) |
908 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
909 | end | |
910 | - | for i=0, 0.25, 0.1 / Animation_Speed do |
910 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really red",VT(0.5,0.3,0.5)) |
911 | - | Swait() |
911 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.6,0.3,0.6)) |
912 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) |
912 | + | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Sound", VT(0,0,0)) |
913 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) |
913 | + | SOUNDPART.CFrame = RootPart.CFrame |
914 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
914 | + | Debris:AddItem(SOUNDPART,5) |
915 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) |
915 | + | CreateSound("1295446488", SOUNDPART, 2, 1) |
916 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
916 | + | for i = 1, 7 do |
917 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
917 | + | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Really red", 1 + MRANDOM(1,30)/15) |
918 | end | |
919 | - | if HITFLOOR ~= nil then |
919 | + | for i=0, 1, 0 / Animation_Speed do |
920 | - | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) |
920 | + | Swait() |
921 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
922 | - | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) |
922 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
923 | - | WELD:remove() |
923 | + | |
924 | - | for i = 1, 25 do |
924 | + | |
925 | - | Swait() |
925 | + | |
926 | - | killnearest(RootPart.Position,45,100,Torso.CFrame) |
926 | + | |
927 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3)) |
927 | + | |
928 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(1,0.4,1)) |
928 | + | for i=0, 1, 0 / Animation_Speed do |
929 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Gold",VT(2.3,0.3,2.3)) |
929 | + | Swait() |
930 | - | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) |
930 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) |
931 | - | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Gold", 1 + MRANDOM(1,30)/15) |
931 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) |
932 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
933 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
934 | - | UNANCHOR = true |
934 | + | |
935 | - | ATTACK = false |
935 | + | |
936 | - | Rooted = false |
936 | + | |
937 | if HITFLOOR ~= nil then | |
938 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
939 | end | |
940 | - | local ORIGIN = RootPart.Position |
940 | + | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) |
941 | - | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) |
941 | + | WELD:remove() |
942 | - | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) |
942 | + | for i = 1, 12 do |
943 | - | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) |
943 | + | Swait() |
944 | - | SOUNDPART.CFrame = RootPart.CFrame |
944 | + | killnearest(RootPart.Position,45,100,Torso.CFrame) |
945 | - | Debris:AddItem(SOUNDPART,5) |
945 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Black",VT(0.3,3,0.3)) |
946 | - | CreateSound("1295446488", SOUNDPART, 2, 1) |
946 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(1,0.4,1)) |
947 | - | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) |
947 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Black",VT(2.3,0.3,2.3)) |
948 | - | Swait() |
948 | + | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really red", 1 + MRANDOM(1,30)/5) |
949 | - | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) |
949 | + | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Black", 1 + MRANDOM(1,30)/15) |
950 | - | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) |
950 | + | |
951 | - | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) |
951 | + | |
952 | - | SOUNDPART.CFrame = RootPart.CFrame |
952 | + | UNANCHOR = true |
953 | - | Debris:AddItem(SOUNDPART,5) |
953 | + | ATTACK = false |
954 | - | CreateSound("1295446488", SOUNDPART, 2, 1) |
954 | + | Rooted = false |
955 | - | if MRANDOM(1,8) == 1 then |
955 | + | |
956 | - | ATTACK = true |
956 | + | |
957 | - | Rooted = true |
957 | + | |
958 | - | local FRUITSTABLE = { |
958 | + | local ORIGIN = RootPart.Position |
959 | - | {MeshId = "16190555", TextureId = "16190577", Color = "Really red"}, |
959 | + | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3,0.4)) |
960 | - | {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"}, |
960 | + | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3.1,0.6)) |
961 | - | {MeshId = "24394186", TextureId = "24394178", Color = "Brown"} |
961 | + | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0)) |
962 | - | } |
962 | + | SOUNDPART.CFrame = RootPart.CFrame |
963 | - | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] |
963 | + | Debris:AddItem(SOUNDPART,5) |
964 | - | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) |
964 | + | CreateSound("1295446488", SOUNDPART, 2, 1) |
965 | - | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) |
965 | + | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) |
966 | - | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) |
966 | + | |
967 | - | weldBetween(RightArm,FRUITMODEL) |
967 | + | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3,0.4)) |
968 | - | for i=0, 4, 0.1 / Animation_Speed do |
968 | + | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Black",VT(0.2,3.1,0.6)) |
969 | - | Swait() |
969 | + | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Sound", VT(0,0,0)) |
970 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
970 | + | SOUNDPART.CFrame = RootPart.CFrame |
971 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
971 | + | Debris:AddItem(SOUNDPART,5) |
972 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
972 | + | CreateSound("1295446488", SOUNDPART, 2, 1) |
973 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
973 | + | if MRANDOM(1,8) == 1 then |
974 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
974 | + | ATTACK = true |
975 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
975 | + | Rooted = true |
976 | local FRUITSTABLE = { | |
977 | - | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) |
977 | + | {MeshId = "16190555", TextureId = "16190577", Color = "Really red"}, |
978 | - | FRUITMODEL:remove() |
978 | + | {MeshId = "119574562", TextureId = "64374853", Color = "Black"}, |
979 | - | for i = 1, 15 do |
979 | + | {MeshId = "24394186", TextureId = "24394178", Color = "Really black"} |
980 | - | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) |
980 | + | } |
981 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
982 | - | for i=0, 0.5, 0.1 / Animation_Speed do |
982 | + | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) |
983 | - | Swait() |
983 | + | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) |
984 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
984 | + | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) |
985 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
985 | + | weldBetween(RightArm,FRUITMODEL) |
986 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
986 | + | for i=0, 0, 0.1 / Animation_Speed do |
987 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
987 | + | Swait() |
988 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
988 | + | |
989 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
989 | + | |
990 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
991 | - | ATTACK = false |
991 | + | |
992 | - | Rooted = false |
992 | + | |
993 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
994 | end | |
995 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) | |
996 | FRUITMODEL:remove() | |
997 | for i = 1, 15 do | |
998 | - | Rooted = true |
998 | + | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) |
999 | - | CreateSound("169445572", RightArm, 10, 0.8) |
999 | + | |
1000 | - | for i=0, 8, 0.1 / Animation_Speed do |
1000 | + | for i=0, 0, 0.1 / Animation_Speed do |
1001 | - | Swait() |
1001 | + | Swait() |
1002 | - | turnto(Mouse.Hit.p) |
1002 | + | |
1003 | - | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.2,0,0.2)) |
1003 | + | |
1004 | - | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1.1) |
1004 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1005 | - | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,1),0) |
1005 | + | |
1006 | - | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Gold",VT(0.001,0.001,2),0) |
1006 | + | |
1007 | - | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15)) |
1007 | + | |
1008 | - | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) |
1008 | + | |
1009 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) |
1009 | + | ATTACK = false |
1010 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) |
1010 | + | Rooted = false |
1011 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
1011 | + | |
1012 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1012 | + | |
1013 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1013 | + | |
1014 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1014 | + | |
1015 | ATTACK = true | |
1016 | - | for i=0, 0.15, 0.1 / Animation_Speed do |
1016 | + | Rooted = true |
1017 | - | Swait() |
1017 | + | CreateSound("169445572", RightArm, 10, 0.8) |
1018 | - | turnto(Mouse.Hit.p) |
1018 | + | for i=0, 0, 0.1 / Animation_Speed do |
1019 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) |
1019 | + | Swait() |
1020 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) |
1020 | + | turnto(Mouse.Hit.p) |
1021 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1021 | + | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really red",VT(0.2,0,0.2)) |
1022 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1022 | + | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Black", 1.1) |
1023 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1023 | + | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Black",VT(0.001,0.001,1),0) |
1024 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1024 | + | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Black",VT(0.001,0.001,2),0) |
1025 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-1/15,-1/15,-1/15)) | |
1026 | - | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Gold",VT(-0.04,-0.04,-0.04)) |
1026 | + | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Black",VT(-2/15,-2/15,-2/15)) |
1027 | - | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) |
1027 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) |
1028 | - | coroutine.resume(coroutine.create(function() |
1028 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) |
1029 | - | Swait(100) |
1029 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
1030 | - | for i = 1, 5 do |
1030 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1031 | - | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Gold",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) |
1031 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1032 | - | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4.5*i,0.2,4.5*i)) |
1032 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1033 | - | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5*i,0.2,5*i)) |
1033 | + | |
1034 | - | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4*i,0.6,4*i)) |
1034 | + | for i=0, 0, 0.1 / Animation_Speed do |
1035 | - | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5.2*i,0.6,5.2*i)) |
1035 | + | Swait() |
1036 | turnto(Mouse.Hit.p) | |
1037 | - | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) |
1037 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) |
1038 | - | for i = 1, 5 do |
1038 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) |
1039 | - | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) |
1039 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1040 | - | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) |
1040 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1041 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1042 | - | coroutine.resume(coroutine.create(function() |
1042 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1043 | - | for i = 1, 50 do |
1043 | + | |
1044 | - | Swait() |
1044 | + | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Black",VT(-0.04,-0.04,-0.04)) |
1045 | - | for i = 1, 1 do |
1045 | + | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Black",VT(-0.035,-0.035,-0.035)) |
1046 | - | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) |
1046 | + | coroutine.resume(coroutine.create(function() |
1047 | - | end |
1047 | + | Swait(100) |
1048 | - | for i = 1, 2 do |
1048 | + | for i = 1, 5 do |
1049 | - | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1 + MRANDOM(1,30)/3) |
1049 | + | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Black",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) |
1050 | - | end |
1050 | + | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(4.5*i,0.2,4.5*i)) |
1051 | - | end |
1051 | + | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(5*i,0.2,5*i)) |
1052 | - | end)) |
1052 | + | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really red",VT(4*i,0.6,4*i)) |
1053 | - | end)) |
1053 | + | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really red",VT(5.2*i,0.6,5.2*i)) |
1054 | - | for i=0, 4, 0.1 / Animation_Speed do |
1054 | + | |
1055 | - | Swait() |
1055 | + | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) |
1056 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) |
1056 | + | for i = 1, 5 do |
1057 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) |
1057 | + | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) |
1058 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
1058 | + | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) |
1059 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) |
1059 | + | |
1060 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) |
1060 | + | coroutine.resume(coroutine.create(function() |
1061 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) |
1061 | + | for i = 1, 10 do |
1062 | Swait() | |
1063 | - | ATTACK = false |
1063 | + | for i = 1, 1 do |
1064 | - | Rooted = false |
1064 | + | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really red", 1 + MRANDOM(1,30)/5) |
1065 | end | |
1066 | for i = 1, 4 do | |
1067 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Black", 1 + MRANDOM(1,30)/3) | |
1068 | end | |
1069 | end | |
1070 | end)) | |
1071 | end)) | |
1072 | for i=0, 0, 0.01 / Animation_Speed do | |
1073 | Swait() | |
1074 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
1075 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
1076 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1077 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1078 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1079 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1080 | end | |
1081 | ATTACK = false | |
1082 | Rooted = false | |
1083 | end | |
1084 | ||
1085 | --//=================================\\ | |
1086 | --|| ASSIGN THINGS TO KEYS | |
1087 | --\\=================================// | |
1088 | ||
1089 | function MouseDown(Mouse) | |
1090 | if ATTACK == false then | |
1091 | end | |
1092 | end | |
1093 | ||
1094 | function MouseUp(Mouse) | |
1095 | HOLD = false | |
1096 | end | |
1097 | ||
1098 | function KeyDown(Key) | |
1099 | KEYHOLD = true | |
1100 | if Key == "z" and ATTACK == false then | |
1101 | GoldenPunch() | |
1102 | end | |
1103 | ||
1104 | if Key == "b" and ATTACK == false then | |
1105 | GoldenGrasp() | |
1106 | end | |
1107 | ||
1108 | if Key == "c" and ATTACK == false then | |
1109 | Mach20() | |
1110 | end | |
1111 | ||
1112 | if Key == "x" and ATTACK == false then | |
1113 | ImplosionCollision() | |
1114 | end | |
1115 | ||
1116 | if Key == "p" and ATTACK == false then | |
1117 | if Speed == 16 then | |
1118 | Speed = 150 | |
1119 | elseif Speed == 150 then | |
1120 | Speed = 16 | |
1121 | end | |
1122 | end | |
1123 | end | |
1124 | ||
1125 | function KeyUp(Key) | |
1126 | KEYHOLD = false | |
1127 | end | |
1128 | ||
1129 | Mouse.Button1Down:connect(function(NEWKEY) | |
1130 | MouseDown(NEWKEY) | |
1131 | end) | |
1132 | Mouse.Button1Up:connect(function(NEWKEY) | |
1133 | MouseUp(NEWKEY) | |
1134 | end) | |
1135 | Mouse.KeyDown:connect(function(NEWKEY) | |
1136 | KeyDown(NEWKEY) | |
1137 | end) | |
1138 | Mouse.KeyUp:connect(function(NEWKEY) | |
1139 | KeyUp(NEWKEY) | |
1140 | end) | |
1141 | ||
1142 | --//=================================\\ | |
1143 | --\\=================================// | |
1144 | ||
1145 | ||
1146 | function unanchor() | |
1147 | if UNANCHOR == true then | |
1148 | g = Character:GetChildren() | |
1149 | for i = 1, #g do | |
1150 | if g[i].ClassName == "Part" then | |
1151 | g[i].Anchored = false | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | ||
1157 | ||
1158 | --//=================================\\ | |
1159 | --|| WRAP THE WHOLE SCRIPT UP | |
1160 | --\\=================================// | |
1161 | ||
1162 | Humanoid.Changed:connect(function(Jump) | |
1163 | if Jump == "Jump" and (Disable_Jump == true) then | |
1164 | Humanoid.Jump = false | |
1165 | end | |
1166 | end) | |
1167 | ||
1168 | while true do | |
1169 | Swait() | |
1170 | ANIMATE.Parent = nil | |
1171 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1172 | IDLEANIMATION:Play() | |
1173 | SINE = SINE + CHANGE | |
1174 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1175 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1176 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1177 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1178 | local WALKSPEEDVALUE = 0 | |
1179 | if Speed < 35 then | |
1180 | WALKSPEEDVALUE = 6 | |
1181 | else | |
1182 | WALKSPEEDVALUE = 3 | |
1183 | end | |
1184 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
1185 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
1186 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1187 | if Speed < 35 then | |
1188 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1189 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1190 | else | |
1191 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1192 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1193 | end | |
1194 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
1195 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1196 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1197 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1198 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1199 | end | |
1200 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1201 | ANIM = "Jump" | |
1202 | if ATTACK == false then | |
1203 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1204 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1205 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1206 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1207 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1208 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1209 | end | |
1210 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1211 | ANIM = "Fall" | |
1212 | if ATTACK == false then | |
1213 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1214 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1215 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1216 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1217 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1218 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1219 | end | |
1220 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1221 | ANIM = "Idle" | |
1222 | if ATTACK == false then | |
1223 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1224 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1225 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1226 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1227 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1228 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1229 | end | |
1230 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
1231 | ANIM = "Walk" | |
1232 | WALK = WALK + 1 / Animation_Speed | |
1233 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1234 | WALK = 0 | |
1235 | if WALKINGANIM == true then | |
1236 | WALKINGANIM = false | |
1237 | elseif WALKINGANIM == false then | |
1238 | WALKINGANIM = true | |
1239 | end | |
1240 | end | |
1241 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1242 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1243 | if ATTACK == false then | |
1244 | if Speed < 35 then | |
1245 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1246 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1247 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1248 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1249 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1250 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1251 | else | |
1252 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1253 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1254 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1255 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1256 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1257 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1258 | end | |
1259 | end | |
1260 | end | |
1261 | unanchor() | |
1262 | Humanoid.MaxHealth = "inf" | |
1263 | Humanoid.Health = "inf" | |
1264 | if Rooted == false then | |
1265 | Disable_Jump = false | |
1266 | Humanoid.WalkSpeed = Speed | |
1267 | elseif Rooted == true then | |
1268 | Disable_Jump = true | |
1269 | Humanoid.WalkSpeed = 0 | |
1270 | end | |
1271 | local MATHS = {"0","1"} | |
1272 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
1273 | Humanoid.PlatformStand = false | |
1274 | end | |
1275 | ||
1276 | --//=================================\\ | |
1277 | --\\=================================// | |
1278 | ||
1279 | ||
1280 | ||
1281 | ||
1282 | ||
1283 | --//====================================================\\-- | |
1284 | --|| END OF SCRIPT | |
1285 | --\\====================================================//-- |