SHOW:
|
|
- or go back to the newest paste.
1 | --[[Pumpkin Titan (boss battle)]]-- | |
2 | --[[ | |
3 | Script made and owned by: WafflesAreVeryGood do not steal my scripts do not take credit for my scripts | |
4 | Move List | |
5 | r = Pumpkin throw C | |
6 | e = Pumpkin roll C | |
7 | t = lightning strikes C | |
8 | g = Rage C | |
9 | z = evil laugh C | |
10 | ||
11 | --]] | |
12 | local plr = game.Players.LocalPlayer | |
13 | local char = plr.Character | |
14 | local mouse = plr:GetMouse() | |
15 | local torso = char.Torso | |
16 | local animpose = "Idle" | |
17 | local attacking = false | |
18 | local cananim = true | |
19 | local rage = false | |
20 | local shield = nil | |
21 | local sprint = false | |
22 | local canrage = true | |
23 | local crits = false | |
24 | local legs = false | |
25 | local scale = 2 | |
26 | local powers = false | |
27 | local bc = char:WaitForChild("Body Colors") | |
28 | local multiplier = 1 | |
29 | local lac = char["Body Colors"].LeftArmColor | |
30 | local rac = char["Body Colors"].RightArmColor | |
31 | local rlc = char["Body Colors"].RightArmColor | |
32 | local llc = char["Body Colors"].LeftLegColor | |
33 | local hc = char["Body Colors"].HeadColor | |
34 | local tc = char["Body Colors"].TorsoColor | |
35 | local humanoid = char:FindFirstChildOfClass("Humanoid") | |
36 | - | humanoid.MaxHealth = Inf |
36 | + | humanoid.MaxHealth = 10000000000000000000 |
37 | wait() | |
38 | humanoid.Health = 136412 | |
39 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
40 | local mobs = Instance.new("Sound", char.Torso) | |
41 | mobs.SoundId = "rbxassetid://316661084" | |
42 | mobs.Looped = true | |
43 | mobs.Volume = 1 | |
44 | mobs:Play() | |
45 | wait(0.5) | |
46 | ||
47 | --[[local scale = 2 | |
48 | local joints = {torso["Right Shoulder"], torso["Left Shoulder"], torso["Right Hip"], torso["Left Hip"], torso.Neck, char.HumanoidRootPart.RootJoint} | |
49 | local j = {} | |
50 | for i,v in pairs(char:children()) do | |
51 | if v:IsA("Accoutrement") then | |
52 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * scale | |
53 | local w = v.AttachmentPoint | |
54 | if w then | |
55 | local c0 = {w:components()} | |
56 | for i = 1, 3 do | |
57 | c0[i] = c0[i]*scale | |
58 | end | |
59 | v.AttachmentPoint = CFrame.new(unpack(c0)) | |
60 | v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (scale - 1))) | |
61 | end | |
62 | end | |
63 | end | |
64 | for i,v in pairs(joints) do | |
65 | local insert = { | |
66 | Name = v.Name; | |
67 | Part0 = v.Part0; | |
68 | Part1 = v.Part1; | |
69 | C0 = v.C0; | |
70 | C1 = v.C1; | |
71 | Parent = v.Parent; | |
72 | } | |
73 | table.insert(j, insert) | |
74 | end | |
75 | local parts = {char["Right Arm"], char["Left Arm"], char["Right Leg"], char["Left Leg"], char.Torso, char.Head, char.HumanoidRootPart} | |
76 | for i,v in pairs(parts) do | |
77 | v.Anchored = true | |
78 | v.FormFactor = "Custom" | |
79 | v.Size = (v.Size*scale) | |
80 | v.Anchored = false | |
81 | end | |
82 | for i,joint in pairs(joints) do | |
83 | joint:Destroy() | |
84 | end | |
85 | for i,v in pairs(j) do | |
86 | print(j.Name) | |
87 | local c0 = {v.C0:components()} | |
88 | local c1 = {v.C1:components()} | |
89 | for i = 1, 3 do | |
90 | c0[i] = c0[i]*scale | |
91 | c1[i] = c1[i]*scale | |
92 | end | |
93 | v.C0 = CFrame.new(unpack(c0)) | |
94 | v.C1 = CFrame.new(unpack(c1)) | |
95 | local m = Instance.new("Motor6D") | |
96 | for q,e in pairs(v) do | |
97 | m[q] = e | |
98 | end | |
99 | end | |
100 | for i,v in pairs(char:children()) do | |
101 | if v:IsA("Accoutrement") then | |
102 | v.Parent = nil | |
103 | v.Parent = char | |
104 | end | |
105 | end | |
106 | char.Humanoid.WalkSpeed = 16*scale | |
107 | char.Humanoid.MaxHealth = 100*scale | |
108 | char.Humanoid.JumpPower = 50*scale]] | |
109 | ||
110 | RbxUtility = LoadLibrary("RbxUtility") | |
111 | Create = RbxUtility.Create | |
112 | local Players = game:GetService('Players') | |
113 | function SetProperties(Table) | |
114 | local Object = Table.Object | |
115 | local Properties = Table.Properties | |
116 | if not Object or not Properties then | |
117 | return | |
118 | end | |
119 | for i, v in pairs(Properties) do | |
120 | pcall(function() | |
121 | Object[i] = v | |
122 | end) | |
123 | end | |
124 | return Object | |
125 | end | |
126 | function ScaleCharacter(Character, Scale, Permissions)--i did not make this part | |
127 | local Permissions = (Permissions or {}) | |
128 | if not Character --[[or not Character.Parent]] then | |
129 | return | |
130 | end | |
131 | local Humanoid = Character:FindFirstChild("Humanoid") | |
132 | --[[if not Humanoid then | |
133 | return | |
134 | end]] | |
135 | if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then | |
136 | Humanoid.HipHeight = Humanoid.HipHeight * Scale | |
137 | end | |
138 | ||
139 | local Player = Players:GetPlayerFromCharacter(Character) | |
140 | if not Player and not Permissions.ResizeModels then | |
141 | return | |
142 | end | |
143 | ||
144 | local Parts = {} | |
145 | local Joints = {} | |
146 | local Meshes = {} | |
147 | ||
148 | local Hats = {} | |
149 | local Tools = {} | |
150 | ||
151 | local ToolsResized = {} | |
152 | local HatsResized = {} | |
153 | ||
154 | local Connections = {} | |
155 | ||
156 | local function ScaleObjects(BaseParent, BaseScale) | |
157 | local Parts = {} | |
158 | local Joints = {} | |
159 | local Meshes = {} | |
160 | local Hats = {} | |
161 | local Tools = {} | |
162 | ||
163 | local function GetScaleObjects(Parent) | |
164 | local Objects = Parent:GetChildren() | |
165 | if Parent == BaseParent then | |
166 | table.insert(Objects, BaseParent) | |
167 | end | |
168 | for i, v in pairs(Objects) do | |
169 | if v:IsA("JointInstance") then | |
170 | table.insert(Joints, { | |
171 | Joint = v:Clone(), | |
172 | Part0 = v.Part0, | |
173 | Part1 = v.Part1, | |
174 | Parent = v.Parent | |
175 | }) | |
176 | elseif v:IsA("BasePart") then | |
177 | table.insert(Parts, v) | |
178 | elseif v:IsA("Accoutrement") then | |
179 | table.insert(Hats, v) | |
180 | -- v.Parent = nil | |
181 | elseif v:IsA("Tool") then | |
182 | table.insert(Tools, v) | |
183 | -- v.Parent = nil --Causes execution scripts again, which is bad. | |
184 | elseif v:IsA("DataModelMesh") then | |
185 | table.insert(Meshes, v) | |
186 | end | |
187 | if v ~= BaseParent then | |
188 | GetScaleObjects(v) | |
189 | end | |
190 | end | |
191 | end | |
192 | ||
193 | GetScaleObjects(BaseParent) | |
194 | ||
195 | for i, v in pairs(Meshes) do | |
196 | if v:IsA("FileMesh") then | |
197 | if v:IsA("SpecialMesh") and v.MeshType == Enum.MeshType.Head then | |
198 | v.Scale = (Vector3.new(1, 1, 1) * 1.25) | |
199 | else | |
200 | v.Scale = (v.Scale * BaseScale) | |
201 | end | |
202 | end | |
203 | end | |
204 | ||
205 | for i, v in pairs(Parts) do | |
206 | pcall(function() | |
207 | v.FormFactor = Enum.FormFactor.Custom | |
208 | end) | |
209 | v.Size = (v.Size * BaseScale) | |
210 | end | |
211 | ||
212 | for i, v in pairs(Hats) do | |
213 | local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.AttachmentPoint:components() | |
214 | v.AttachmentPoint = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22) | |
215 | v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (BaseScale - 1))) | |
216 | --v.Parent = Character | |
217 | end | |
218 | ||
219 | for i, v in pairs(Tools) do | |
220 | local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.Grip:components() | |
221 | v.Grip = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22) | |
222 | v.Grip = (v.Grip + v.Grip.lookVector * -(BaseScale - 1)) | |
223 | if Humanoid then | |
224 | --Humanoid:EquipTool(v) | |
225 | end | |
226 | end | |
227 | ||
228 | for i, v in pairs(Joints) do | |
229 | local C0PX, C0PY, C0PZ, C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22 = v.Joint.C0:components() | |
230 | local C1PX, C1PY, C1PZ, C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22 = v.Joint.C1:components() | |
231 | local NewJoint = SetProperties({Object = v.Joint:Clone(), Properties = { | |
232 | Part0 = v.Part0, | |
233 | Part1 = v.Part1, | |
234 | C0 = CFrame.new((C0PX * BaseScale), (C0PY * BaseScale), (C0PZ * BaseScale), C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22), | |
235 | C1 = CFrame.new((C1PX * BaseScale), (C1PY * BaseScale), (C1PZ * BaseScale), C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22), | |
236 | Parent = v.Parent, | |
237 | }}) | |
238 | for ii, vv in pairs(v.Parent:GetChildren()) do | |
239 | if vv:IsA("JointInstance") and vv.Part0 == v.Part0 and vv.Part1 == v.Part1 and vv ~= NewJoint then | |
240 | vv:Destroy() | |
241 | end | |
242 | end | |
243 | end | |
244 | ||
245 | return { | |
246 | Tools = Tools, | |
247 | Hats = Hats | |
248 | } | |
249 | end | |
250 | ||
251 | local Objects = ScaleObjects(Character, Scale) | |
252 | ||
253 | for i, v in pairs(Objects.Tools) do | |
254 | table.insert(ToolsResized, {Object = v, Connections = {}}) | |
255 | end | |
256 | for i, v in pairs(Objects.Hats) do | |
257 | table.insert(HatsResized, {Object = v, Connections = {}}) | |
258 | end | |
259 | ||
260 | if Permissions.ScaleTools then | |
261 | Connections.ToolAdded = Character.ChildAdded:connect(function(Child) | |
262 | if Child:IsA("Tool") then | |
263 | local TableInstance = nil | |
264 | for i, v in pairs(ToolsResized) do | |
265 | if v and v.Object and v.Object == Child then | |
266 | TableInstance = v | |
267 | end | |
268 | end | |
269 | if not TableInstance then | |
270 | table.insert(ToolsResized, {Object = Child, Connections = {}}) | |
271 | ScaleObjects(Child, Scale) | |
272 | end | |
273 | end | |
274 | end) | |
275 | Connections.ToolRemoved = Character.ChildRemoved:connect(function(Child) | |
276 | if Child:IsA("Tool") then | |
277 | local TableInstance = nil | |
278 | for i, v in pairs(ToolsResized) do | |
279 | if v and v.Object and v.Object == Child then | |
280 | TableInstance = v | |
281 | end | |
282 | end | |
283 | if not TableInstance then | |
284 | return | |
285 | end | |
286 | for i, v in pairs(ToolsResized) do | |
287 | if v.Object == Child then | |
288 | for ii, vv in pairs(v.Connections) do | |
289 | if vv then | |
290 | vv:disconnect() | |
291 | end | |
292 | end | |
293 | table.remove(ToolsResized, i) | |
294 | end | |
295 | end | |
296 | ScaleObjects(Child, (1 / Scale)) | |
297 | end | |
298 | end) | |
299 | end | |
300 | ||
301 | if Permissions.ScaleHats then | |
302 | Connections.HatAdded = Character.ChildAdded:connect(function(Child) | |
303 | if Child:IsA("Accoutrement") then | |
304 | local TableInstance = nil | |
305 | for i, v in pairs(HatsResized) do | |
306 | if v and v.Object and v.Object == Child then | |
307 | TableInstance = v | |
308 | end | |
309 | end | |
310 | if not TableInstance then | |
311 | table.insert(HatsResized, {Object = Child, Connections = {}}) | |
312 | ScaleObjects(Child, Scale) | |
313 | end | |
314 | end | |
315 | end) | |
316 | Connections.HatRemoved = Character.ChildRemoved:connect(function(Child) | |
317 | if Child:IsA("Accoutrement") then | |
318 | local TableInstance = nil | |
319 | for i, v in pairs(HatsResized) do | |
320 | if v and v.Object and v.Object == Child then | |
321 | TableInstance = v | |
322 | end | |
323 | end | |
324 | if not TableInstance then | |
325 | return | |
326 | end | |
327 | for i, v in pairs(HatsResized) do | |
328 | if v.Object == Child then | |
329 | for ii, vv in pairs(v.Connections) do | |
330 | if vv then | |
331 | vv:disconnect() | |
332 | end | |
333 | end | |
334 | table.remove(HatsResized, i) | |
335 | end | |
336 | end | |
337 | ScaleObjects(Child, (1 / Scale)) | |
338 | end | |
339 | end) | |
340 | end | |
341 | ||
342 | local Head = Character:FindFirstChild("Head") | |
343 | local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso") | |
344 | ||
345 | local StateChanged = Create("BoolValue"){ | |
346 | Value = true, | |
347 | } | |
348 | Delay(0.1, function() | |
349 | StateChanged.Value = false | |
350 | end) | |
351 | ||
352 | if Head and Torso then | |
353 | if Humanoid then | |
354 | Humanoid.WalkSpeed = (16 * Scale) | |
355 | Humanoid.CameraOffset = Vector3.new(0, (Head.Position.Y - Torso.Position.Y - 0.75), 0) | |
356 | end | |
357 | if not Permissions.MaintainCFrame then | |
358 | Torso.CFrame = Torso.CFrame + Vector3.new(0, Torso.Size.Y, 0) | |
359 | end | |
360 | end | |
361 | ||
362 | local ScaleBack = Permissions.ScaleBack | |
363 | if ScaleBack and type(ScaleBack) == "table" and tonumber(ScaleBack.Delay) then | |
364 | Delay(ScaleBack.Delay, function() | |
365 | for i, v in pairs(Connections) do | |
366 | if v then | |
367 | v:disconnect() | |
368 | end | |
369 | end | |
370 | for i, v in pairs({ToolsResized, HatsResized}) do | |
371 | for ii, vv in pairs(v) do | |
372 | for iii, vvv in pairs(vv.Connections) do | |
373 | if vvv then | |
374 | vvv:disconnect() | |
375 | end | |
376 | end | |
377 | end | |
378 | end | |
379 | local PresetPermissions = { | |
380 | ScaleBack = false, | |
381 | ScaleHats = false, | |
382 | ScaleTools = false | |
383 | } | |
384 | if Character --[[and Character.Parent]] then | |
385 | for i, v in pairs(PresetPermissions) do | |
386 | Permissions[i] = v | |
387 | end | |
388 | ScaleCharacter(Character, (1 / Scale), Permissions) | |
389 | end | |
390 | StateChanged.Value = true | |
391 | end) | |
392 | end | |
393 | ||
394 | return { | |
395 | Connections = Connections, | |
396 | StateChanged = StateChanged | |
397 | } | |
398 | ||
399 | end | |
400 | ScaleCharacter(plr.Character, scale)--the rest is mine VVVV | |
401 | local rs = torso["Right Shoulder"] | |
402 | local ls = torso["Left Shoulder"] | |
403 | local rh = torso["Right Hip"] | |
404 | local lh = torso["Left Hip"] | |
405 | local rj = char.HumanoidRootPart.RootJoint | |
406 | local neck = torso.Neck | |
407 | char.Humanoid.Health = char.Humanoid.MaxHealth | |
408 | if char:FindFirstChild("Animate") then char.Animate:Destroy() end | |
409 | for i,track in pairs(humanoid:GetPlayingAnimationTracks()) do | |
410 | track:Stop() | |
411 | end | |
412 | local shirt = char:FindFirstChildOfClass("Shirt") | |
413 | if shirt then | |
414 | shirt.ShirtTemplate = "rbxassetid://102716091" | |
415 | end | |
416 | local pants = char:FindFirstChildOfClass("Pants") | |
417 | if pants then | |
418 | pants.PantsTemplate = "rbxassetid://102712920" | |
419 | end | |
420 | local bpz = {"Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head", "Torso"} | |
421 | for i,v in pairs(bpz) do | |
422 | char[v].BrickColor = BrickColor.new("Really black") | |
423 | end | |
424 | for i,v in pairs(char:children()) do | |
425 | if v:IsA("Accessory") then | |
426 | v:Destroy() | |
427 | end | |
428 | end | |
429 | -- thanks dog | |
430 | ||
431 | --Converted with ttyyuu12345's model to script plugin v4 | |
432 | function sandbox(var,func) | |
433 | local env = getfenv(func) | |
434 | local newenv = setmetatable({},{ | |
435 | __index = function(self,k) | |
436 | if k=="script" then | |
437 | return var | |
438 | else | |
439 | return env[k] | |
440 | end | |
441 | end, | |
442 | }) | |
443 | setfenv(func,newenv) | |
444 | return func | |
445 | end | |
446 | cors = {} | |
447 | mas = Instance.new("Model",game:GetService("Lighting")) | |
448 | Model0 = Instance.new("Model") | |
449 | Part1 = Instance.new("Part") | |
450 | SpecialMesh2 = Instance.new("SpecialMesh") | |
451 | ParticleEmitter3 = Instance.new("ParticleEmitter") | |
452 | Attachment4 = Instance.new("Attachment") | |
453 | Attachment5 = Instance.new("Attachment") | |
454 | Part6 = Instance.new("Part") | |
455 | SpecialMesh7 = Instance.new("SpecialMesh") | |
456 | Part8 = Instance.new("Part") | |
457 | SpecialMesh9 = Instance.new("SpecialMesh") | |
458 | Part10 = Instance.new("Part") | |
459 | SpecialMesh11 = Instance.new("SpecialMesh") | |
460 | Part12 = Instance.new("Part") | |
461 | SpecialMesh13 = Instance.new("SpecialMesh") | |
462 | Model0.Name = "Pumpkin" | |
463 | Model0.Parent = mas | |
464 | Part1.Name = "Handle" | |
465 | Part1.Parent = Model0 | |
466 | Part1.Anchored = true | |
467 | Part1.CanCollide = false | |
468 | Part1.FormFactor = Enum.FormFactor.Symmetric | |
469 | Part1.Size = Vector3.new(2, 2, 2) | |
470 | Part1.CFrame = CFrame.new(113.089798, 1.00000405, -4.53332996, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
471 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
472 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
473 | Part1.Position = Vector3.new(113.089798, 1.00000405, -4.53332996) | |
474 | SpecialMesh2.Parent = Part1 | |
475 | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=16973748" | |
476 | SpecialMesh2.Scale = Vector3.new(2, 2, 2) | |
477 | SpecialMesh2.TextureId = "rbxassetid://16973739" | |
478 | SpecialMesh2.VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012) | |
479 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
480 | SpecialMesh2.Scale = Vector3.new(2, 2, 2) | |
481 | ParticleEmitter3.Parent = Part1 | |
482 | ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5) | |
483 | ParticleEmitter3.Rotation = NumberRange.new(0, 360) | |
484 | ParticleEmitter3.Size = NumberSequence.new(0.43749988079071,0) | |
485 | ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0)) | |
486 | ParticleEmitter3.LightEmission = 0.5 | |
487 | ParticleEmitter3.Texture = "rbxassetid://3319251" | |
488 | ParticleEmitter3.Lifetime = NumberRange.new(1, 1) | |
489 | ParticleEmitter3.Rate = 200 | |
490 | ParticleEmitter3.RotSpeed = NumberRange.new(90, 90) | |
491 | ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0)) | |
492 | Attachment4.Name = "AT2" | |
493 | Attachment4.Parent = Part1 | |
494 | Attachment4.CFrame = CFrame.new(-1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
495 | Attachment4.Position = Vector3.new(-1.60000002, 0, 0) | |
496 | Attachment5.Name = "AT1" | |
497 | Attachment5.Parent = Part1 | |
498 | Attachment5.CFrame = CFrame.new(1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
499 | Attachment5.Position = Vector3.new(1.60000002, 0, 0) | |
500 | Part6.Parent = Model0 | |
501 | Part6.Material = Enum.Material.Neon | |
502 | Part6.BrickColor = BrickColor.new("CGA brown") | |
503 | Part6.Anchored = true | |
504 | Part6.Size = Vector3.new(2, 1, 1) | |
505 | Part6.CFrame = CFrame.new(113.089798, 1.50000405, -5.53333187, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
506 | Part6.Color = Color3.new(0.666667, 0.333333, 0) | |
507 | Part6.Position = Vector3.new(113.089798, 1.50000405, -5.53333187) | |
508 | Part6.Color = Color3.new(0.666667, 0.333333, 0) | |
509 | SpecialMesh7.Parent = Part6 | |
510 | SpecialMesh7.MeshType = Enum.MeshType.Sphere | |
511 | Part8.Parent = Model0 | |
512 | Part8.Material = Enum.Material.Neon | |
513 | Part8.BrickColor = BrickColor.new("CGA brown") | |
514 | Part8.Anchored = true | |
515 | Part8.Size = Vector3.new(2, 1.5, 1.10000002) | |
516 | Part8.CFrame = CFrame.new(113.089798, 0.750004053, -5.58331966, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
517 | Part8.Color = Color3.new(0.666667, 0.333333, 0) | |
518 | Part8.Position = Vector3.new(113.089798, 0.750004053, -5.58331966) | |
519 | Part8.Color = Color3.new(0.666667, 0.333333, 0) | |
520 | SpecialMesh9.Parent = Part8 | |
521 | SpecialMesh9.MeshType = Enum.MeshType.Sphere | |
522 | Part10.Parent = Model0 | |
523 | Part10.Material = Enum.Material.Neon | |
524 | Part10.BrickColor = BrickColor.new("CGA brown") | |
525 | Part10.Rotation = Vector3.new(0, -41, 0) | |
526 | Part10.Anchored = true | |
527 | Part10.Size = Vector3.new(1.5, 1.5, 1) | |
528 | Part10.CFrame = CFrame.new(113.811264, 0.750004053, -5.45703793, 0.754709542, 0, -0.656059086, 0, 1, 0, 0.656059086, 0, 0.754709542) | |
529 | Part10.Color = Color3.new(0.666667, 0.333333, 0) | |
530 | Part10.Position = Vector3.new(113.811264, 0.750004053, -5.45703793) | |
531 | Part10.Orientation = Vector3.new(0, -41, 0) | |
532 | Part10.Color = Color3.new(0.666667, 0.333333, 0) | |
533 | SpecialMesh11.Parent = Part10 | |
534 | SpecialMesh11.MeshType = Enum.MeshType.Sphere | |
535 | Part12.Parent = Model0 | |
536 | Part12.Material = Enum.Material.Neon | |
537 | Part12.BrickColor = BrickColor.new("CGA brown") | |
538 | Part12.Rotation = Vector3.new(0, 41, 0) | |
539 | Part12.Anchored = true | |
540 | Part12.Size = Vector3.new(1.5, 1.5, 1) | |
541 | Part12.CFrame = CFrame.new(112.411301, 0.750004053, -5.45703793, 0.754709601, 0, 0.656059027, 0, 1, 0, -0.656059027, 0, 0.754709601) | |
542 | Part12.Color = Color3.new(0.666667, 0.333333, 0) | |
543 | Part12.Position = Vector3.new(112.411301, 0.750004053, -5.45703793) | |
544 | Part12.Orientation = Vector3.new(0, 41, 0) | |
545 | Part12.Color = Color3.new(0.666667, 0.333333, 0) | |
546 | SpecialMesh13.Parent = Part12 | |
547 | SpecialMesh13.MeshType = Enum.MeshType.Sphere | |
548 | for i,v in pairs(mas:GetChildren()) do | |
549 | v.Parent = game:GetService("Players").LocalPlayer.Character | |
550 | pcall(function() v:MakeJoints() end) | |
551 | end | |
552 | mas:Destroy() | |
553 | for i,v in pairs(cors) do | |
554 | spawn(function() | |
555 | pcall(v) | |
556 | end) | |
557 | end | |
558 | ||
559 | local pumpkinhead = char.Pumpkin | |
560 | local handle = pumpkinhead.Handle | |
561 | local at1 = Instance.new("Attachment") | |
562 | at1.Position = Vector3.new(1.6,0,0) | |
563 | at1.Parent = handle | |
564 | local at2 = Instance.new("Attachment") | |
565 | at2.Position = Vector3.new(-1.6,0,0) | |
566 | at2.Parent = handle | |
567 | local t = Instance.new("Trail") | |
568 | t.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(0.78,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))}) | |
569 | t.FaceCamera = true | |
570 | t.LightEmission = 0.5 | |
571 | t.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
572 | t.Attachment0 = at1 | |
573 | t.Attachment1 = at2 | |
574 | t.Lifetime = 1 | |
575 | t.MinLength = 0.1 | |
576 | t.Parent = handle | |
577 | local obj = pumpkinhead | |
578 | local scr = "" | |
579 | local n = "\n" | |
580 | local num = 0 | |
581 | local parts = {} | |
582 | local last | |
583 | a = function(b) | |
584 | for i,v in pairs(b:children()) do | |
585 | if v.Name ~= ("Handle") and v:IsA("BasePart") then | |
586 | if not last then last = obj.Handle end | |
587 | local w = Instance.new("Weld") | |
588 | w.Part0 = v | |
589 | w.Part1 = last | |
590 | w.C0 = v.CFrame:inverse() | |
591 | w.C1 = last.CFrame:inverse() | |
592 | w.Parent = v | |
593 | v.Anchored = false | |
594 | last = v | |
595 | table.insert(parts, v) | |
596 | if v.Name ~= "Blade" then | |
597 | num = num + 1 | |
598 | v.Name = "Part"..num | |
599 | end | |
600 | end | |
601 | a(v) | |
602 | end | |
603 | end | |
604 | a(obj) | |
605 | handle.Anchored = false | |
606 | for i,v in pairs(parts) do v.Anchored = false end | |
607 | local hatw = Instance.new("Weld") | |
608 | hatw.Part0 = char.Head | |
609 | hatw.Part1 = handle | |
610 | hatw.Parent = char.Head | |
611 | char.Head.Transparency = 1 | |
612 | if char.Head:FindFirstChild("face") then char.Head.face.Transparency = 1 end | |
613 | ||
614 | function legsonly() | |
615 | spawn(function() | |
616 | for i = 0, 10 do | |
617 | wait(0.001) | |
618 | if attacking then break end | |
619 | end | |
620 | if not attacking then | |
621 | legs = false | |
622 | end | |
623 | end) | |
624 | end | |
625 | function swait(t) | |
626 | if t == nil or t == 0 then | |
627 | game:service('RunService').Stepped:wait(0) | |
628 | return true | |
629 | else | |
630 | for i = 0, t do | |
631 | game:service('RunService').Stepped:wait(0) | |
632 | end | |
633 | return true | |
634 | end | |
635 | end | |
636 | function hurt(hit, dmg) | |
637 | if hit.Parent then | |
638 | if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end | |
639 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
640 | if hum then | |
641 | if hum.Parent ~= char then | |
642 | if dmg == "Kill" then | |
643 | hit.Parent:BreakJoints() | |
644 | return true | |
645 | else | |
646 | if math.random(0, 100) == 50 and crits then | |
647 | hum.Health = hum.Health - dmg*multiplier*2.5 | |
648 | else | |
649 | hum.Health = hum.Health -dmg*multiplier | |
650 | end | |
651 | return true | |
652 | end | |
653 | end | |
654 | end | |
655 | end | |
656 | end | |
657 | function soundeffect(id, volume, speed, parent, forcewait) | |
658 | if forcewait then | |
659 | local s = parent:FindFirstChildOfClass("Sound") | |
660 | if not s then | |
661 | s = Instance.new("Sound") | |
662 | else | |
663 | if s.SoundId ~= id then | |
664 | s = Instance.new("Sound") | |
665 | end | |
666 | end | |
667 | s.SoundId = id | |
668 | s.Volume = volume | |
669 | s.PlaybackSpeed = speed | |
670 | s.Parent = parent | |
671 | s:Play() | |
672 | repeat wait() until not s.Playing | |
673 | s:Destroy() | |
674 | else | |
675 | spawn(function() | |
676 | local s = parent:FindFirstChildOfClass("Sound") | |
677 | if not s then | |
678 | s = Instance.new("Sound") | |
679 | else | |
680 | if s.SoundId ~= id then | |
681 | s = Instance.new("Sound") | |
682 | end | |
683 | end | |
684 | s.SoundId = id | |
685 | s.Volume = volume | |
686 | s.PlaybackSpeed = speed | |
687 | s.Parent = parent | |
688 | s:Play() | |
689 | repeat wait() until not s.Playing | |
690 | s:Destroy() | |
691 | end) | |
692 | end | |
693 | end | |
694 | function gethum(obj) | |
695 | if obj.Parent then | |
696 | if obj.Parent:FindFirstChild("Humanoid") then | |
697 | if obj.Parent.Name ~= plr.Name then | |
698 | return obj.Parent:FindFirstChildOfClass("Humanoid") | |
699 | end | |
700 | end | |
701 | end | |
702 | end | |
703 | function pushback(toucher, hit, knockback, stuns) | |
704 | local bv = Instance.new("BodyVelocity") | |
705 | bv.MaxForce = huge | |
706 | bv.Velocity = CFrame.new(toucher.Position, hit.Position).lookVector*knockback | |
707 | bv.Parent = hit | |
708 | if gethum(hit) then | |
709 | gethum(hit).PlatformStand = true | |
710 | end | |
711 | game.Debris:AddItem(bv, 0.1) | |
712 | end | |
713 | function smooth(obj) | |
714 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"} | |
715 | for i,v in pairs(sides) do | |
716 | obj[v.."Surface"] = "SmoothNoOutlines" | |
717 | end | |
718 | end | |
719 | function fade(obj, dest, grow) | |
720 | spawn(function() | |
721 | local oldcf = obj.CFrame | |
722 | for i = 0, 10 do | |
723 | if grow then | |
724 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
725 | obj.CFrame = oldcf | |
726 | end | |
727 | obj.Transparency = obj.Transparency +0.1 | |
728 | swait() | |
729 | end | |
730 | if dest then | |
731 | obj:Destroy() | |
732 | end | |
733 | end) | |
734 | end | |
735 | function replacejoint(name) | |
736 | local j = torso:FindFirstChild(name) | |
737 | if not j then j = char.HumanoidRootPart:FindFirstChild(name) end | |
738 | if j then | |
739 | if true then | |
740 | local new = Instance.new("Weld") | |
741 | new.Part0 = j.Part0 | |
742 | j.Part0 = nil | |
743 | new.Name = j.Name.." Replacement" | |
744 | new.Parent = j.Parent | |
745 | new.Part1 = j.Part1 | |
746 | new.C0 = j.C0 | |
747 | new.C1 = j.C1 | |
748 | return new | |
749 | end | |
750 | end | |
751 | end | |
752 | function lightning(start,finish,segments, color, thickness, sound) | |
753 | local full = (start.p-finish.p).magnitude | |
754 | local lastpart | |
755 | local lastscale | |
756 | local direction = CFrame.new(finish.p,start.p).lookVector | |
757 | local model | |
758 | model = Instance.new("Model") | |
759 | for i = 1, segments do | |
760 | local p = Instance.new("Part") | |
761 | p.CFrame = start | |
762 | if not lastscale then lastscale = 0.5 end | |
763 | if not lastpart then lastpart = p end | |
764 | local startp = lastpart.CFrame*CFrame.new(0,0,-lastscale/2) | |
765 | local p = Instance.new("Part", model) | |
766 | p.Name = "segment"..i | |
767 | p.BrickColor = color | |
768 | local endpos | |
769 | if i == segments then | |
770 | endpos = finish | |
771 | else | |
772 | if lastpart == char.Torso then | |
773 | endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments) | |
774 | else | |
775 | endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments) | |
776 | end | |
777 | --[[local p = Instance.new("Part", model) | |
778 | p.Anchored = true | |
779 | p.Size = Vector3.new(thickness,thickness,1) | |
780 | p.CanCollide = false | |
781 | p.CFrame = endpos]] | |
782 | end | |
783 | local mag = (startp.p-endpos.p).magnitude | |
784 | p.Anchored = true | |
785 | p.CanCollide = false | |
786 | local m = Instance.new("SpecialMesh", p) | |
787 | m.MeshType = "Brick" | |
788 | for i,v in pairs({"Right", "Left", "Top", "Bottom", "Front", "Back"}) do | |
789 | p[v.."Surface"] = "SmoothNoOutlines" | |
790 | end | |
791 | p.Size = Vector3.new(thickness,thickness,mag) | |
792 | p.CFrame = CFrame.new(startp.p, endpos.p) *CFrame.new(0,0,-mag/2) | |
793 | lastscale = mag | |
794 | lastpart = p | |
795 | end | |
796 | model.Parent = char | |
797 | spawn(function() | |
798 | local s | |
799 | if sound then | |
800 | s = Instance.new("Sound", lastpart) | |
801 | s.Volume = 5 | |
802 | s.SoundId = "rbxassetid://224339201" | |
803 | s.PlayOnRemove = true | |
804 | s:Play() | |
805 | end | |
806 | for i = 1, 10*2 do | |
807 | for i,v in pairs(model:children()) do | |
808 | v.Transparency = v.Transparency +0.1/2 | |
809 | end | |
810 | wait() | |
811 | end | |
812 | if sound then | |
813 | s:Destroy() | |
814 | end | |
815 | model:Destroy() | |
816 | end) | |
817 | return model | |
818 | end | |
819 | function removejoint(name) | |
820 | local j = torso:FindFirstChild(name.." Replacement") | |
821 | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end | |
822 | if j then | |
823 | local p0 = j.Part0 | |
824 | local c0 = j.C0 | |
825 | local c1 = j.C1 | |
826 | j:Destroy() | |
827 | local new = p0:FindFirstChild(name) | |
828 | local ac0 = new.C0 | |
829 | local ac1 = new.C1 | |
830 | new.Part0 = p0 | |
831 | new.C0 = c0 | |
832 | new.C1 = c1 | |
833 | spawn(function() | |
834 | for i = 0, 1, 0.1 do | |
835 | new.C0 = new.C0:Lerp(ac0, 0.7) | |
836 | new.C1 = new.C1:lerp(ac1, 0.7) | |
837 | wait() | |
838 | end | |
839 | end) | |
840 | end | |
841 | end | |
842 | function fixalljoints() | |
843 | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do | |
844 | removejoint(v) | |
845 | end | |
846 | end | |
847 | function getnewjoints() | |
848 | local rs = replacejoint("Right Shoulder") | |
849 | local ls = replacejoint("Left Shoulder") | |
850 | local rh = replacejoint("Right Hip") | |
851 | local lh = replacejoint("Left Hip") | |
852 | local neck = replacejoint("Neck") | |
853 | local rj = replacejoint("RootJoint") | |
854 | return rs,ls,rh,lh,neck,rj | |
855 | end | |
856 | function getreplacec0s() | |
857 | local rs = torso["Right Shoulder"] | |
858 | local ls = torso["Left Shoulder"] | |
859 | local rh = torso["Right Hip"] | |
860 | local lh = torso["Left Hip"] | |
861 | local rj = char.HumanoidRootPart.RootJoint | |
862 | local neck = torso.Neck | |
863 | return rs.C0,ls.C0,rh.C0,lh.C0,neck.C0,rj.C0 | |
864 | end | |
865 | local jumped = false | |
866 | local candj = true | |
867 | local docon = false | |
868 | local freefall = false | |
869 | local cone | |
870 | humanoid.StateChanged:connect(function(_,new) | |
871 | if new == Enum.HumanoidStateType.Freefall then freefall = true else freefall = false end | |
872 | end) | |
873 | cone = humanoid.Changed:connect(function(prop) | |
874 | swait(3) | |
875 | if not humanoid.Jump and docon and prop == "Jump" then | |
876 | candj = true | |
877 | jumped = false | |
878 | docon = false | |
879 | end | |
880 | end) | |
881 | mouse.KeyDown:connect(function(key) | |
882 | if key == "r" and not attacking then | |
883 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
884 | attacking = true | |
885 | local p = pumpkinhead:Clone() | |
886 | local phand = p.Handle | |
887 | phand.AT1.Position = Vector3.new(0.5,0,0) | |
888 | phand.AT2.Position = Vector3.new(-0.5,0,0) | |
889 | phand.Mesh.Scale = Vector3.new(0,0,0) | |
890 | local w = Instance.new("Weld") | |
891 | w.Part0 = char["Right Arm"] | |
892 | w.Part1 = phand | |
893 | w.C1 = CFrame.new(0,1,0) | |
894 | w.Parent = char["Right Arm"] | |
895 | p.Parent = char | |
896 | for i = 0, 2, 0.1 do | |
897 | phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2), 0.2) | |
898 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.305212736, 0.156434491, -0.9393484, -0.048340939, 0.987688541, 0.148778111, 0.951057434, 0, 0.309017241), 0.2) | |
899 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.00729153398, -0.104904592, 0.994455755, -0.104274213, -0.989144921, -0.103580341, 0.994524956, -0.102940485, -0.0181511845), 0.2) | |
900 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, -0.0270539615, 0.100966766, -0.994522035, -0.257401317, 0.960634768, 0.104528472, 0.96592617, 0.258819103, 0), 0.2) | |
901 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, 0.00911026634, -0.0866784006, 0.996195018, -0.10413079, 0.990738153, 0.0871557668, -0.994522691, -0.104528546, 0), 0.2) | |
902 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
903 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.970296144, -0.241921961, 0, 0, 0, 1, -0.241921961, 0.970296144, 0), 0.2) | |
904 | swait() | |
905 | end | |
906 | phand.Mesh.Scale = Vector3.new(2,2,2) | |
907 | swait(15) | |
908 | for i = 0, 2, 0.1 do | |
909 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0, -0.0172375813, 0.156434491, -0.987539232, 0.0027301528, 0.987688541, 0.156410769, 0.999848783, 0, -0.0174524169), 0.2) | |
910 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0, 0.0183038525, 0.103552699, 0.994455755, 0.340473503, 0.934539497, -0.103580341, -0.940082133, 0.340481132, -0.0181511845), 0.2) | |
911 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, 0.0357508697, 0.0982247144, -0.994522035, 0.34014678, 0.934545875, 0.104528472, 0.93969363, -0.342020512, 0), 0.2) | |
912 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, -0.0298090633, -0.0818997845, 0.996195018, 0.340719104, 0.936117887, 0.0871557668, -0.939694166, 0.342020661, 0), 0.2) | |
913 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
914 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546976, 0.12186949, 0, 0, 0, 1, 0.12186949, 0.992546976, 0), 0.2) | |
915 | if i == 0.5 then | |
916 | phand.Touched:connect(function(hit) | |
917 | if hurt(hit, 30) then | |
918 | pushback(phand, hit, 50) | |
919 | end | |
920 | end) | |
921 | w:Destroy() | |
922 | local bv = Instance.new("BodyVelocity") | |
923 | bv.MaxForce = huge | |
924 | bv.Velocity = CFrame.new(phand.Position, mouse.Hit.p).lookVector*300 | |
925 | bv.Parent = phand | |
926 | game.Debris:AddItem(bv, 0.1) | |
927 | game.Debris:AddItem(p, 7) | |
928 | end | |
929 | swait() | |
930 | end | |
931 | attacking = false | |
932 | fixalljoints() | |
933 | end | |
934 | if key == "e" and not attacking then | |
935 | attacking = true | |
936 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
937 | for i = 0, 1, 0.1 do | |
938 | rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, 0.809017539, 0.58778578, 0.777147532, -0.369906187, 0.509132028, 0.629321337, 0.456796199, -0.628725946), 0.2) | |
939 | swait() | |
940 | end | |
941 | local p = pumpkinhead:Clone() | |
942 | local phand = p.Handle | |
943 | if phand:FindFirstChildOfClass("Weld") then phand:FindFirstChildOfClass("Weld"):Destroy() end | |
944 | local roll = Instance.new("Part") | |
945 | roll.Size = phand.Size*1.1 | |
946 | roll.Transparency = 1 | |
947 | local m = Instance.new("SpecialMesh") | |
948 | m.MeshType = "Sphere" | |
949 | m.Parent = roll | |
950 | roll.Parent = phand | |
951 | local wr = Instance.new("Weld") | |
952 | wr.Part0 = roll | |
953 | wr.Part1 = phand | |
954 | wr.Parent = roll | |
955 | phand.CanCollide = false | |
956 | phand.CFrame = char["Right Arm"].CFrame | |
957 | phand.AT1.Position = Vector3.new(0.5,0,0) | |
958 | phand.AT2.Position = Vector3.new(-0.5,0,0) | |
959 | phand.Mesh.Scale = Vector3.new(0,0,0) | |
960 | local w = Instance.new("Weld") | |
961 | w.Part0 = char["Right Arm"] | |
962 | w.Part1 = phand | |
963 | w.C1 = CFrame.new(0,-1,0) | |
964 | w.Parent = char["Right Arm"] | |
965 | p.Parent = char | |
966 | local owc0 = w.C0 | |
967 | local owc1 = w.C1 | |
968 | for i = 1, 3 do | |
969 | w.C0 = owc0:Lerp(CFrame.new(0,0,0),i/3) | |
970 | w.C1 = owc1:Lerp(CFrame.new(0,1,0),i/3) | |
971 | swait() | |
972 | end | |
973 | for i = 0, 1.5, 0.1 do | |
974 | phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2),0.2) | |
975 | ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2) | |
976 | rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.234881252, -0.345627934, 0.908500791, -0.649224281, 0.751387894, 0.118007705, -0.723423064, -0.562102258, -0.40087676), 0.2) | |
977 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.956305385, 0.292371839, 0, 0, 0, 1, 0.292371839, 0.956305385, 0), 0.2) | |
978 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.933580935, -0.358368039, 0, 0, 0, 1, -0.358368039, 0.933580935, 0), 0.2) | |
979 | swait() | |
980 | end | |
981 | phand.Mesh.Scale = Vector3.new(2,2,2) | |
982 | swait(10) | |
983 | for i = 0, 1.5, 0.1 do | |
984 | ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2) | |
985 | rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.345579475, -0.00998185948, 0.938337684, 0.718884468, 0.639891982, 0.271563947, -0.603144944, 0.76840359, -0.213957176), 0.2) | |
986 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.996195555, 0.0871557295, 0, 0, 0, 1, 0.0871557295, 0.996195555, 0), 0.2) | |
987 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999391556, 0.0348995775, 0, 0, 0, 1, 0.0348995775, 0.999391556, 0), 0.2) | |
988 | swait() | |
989 | end | |
990 | w:Destroy() | |
991 | game.Debris:AddItem(p, 5) | |
992 | local at = false | |
993 | phand.Touched:connect(function(hit) | |
994 | if hurt(hit, 10) then | |
995 | pushback(phand, hit, 120, true) | |
996 | if not at then | |
997 | at = true | |
998 | for i = 1, 30 do | |
999 | local ocf = phand.CFrame | |
1000 | phand.Size = phand.Size:Lerp(Vector3.new(10,10,10),0.4) | |
1001 | phand.CFrame = ocf | |
1002 | phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(10,10,10), 0.2) | |
1003 | for i,v in pairs(p:children()) do | |
1004 | if v:IsA("BasePart") then | |
1005 | v.Transparency = i/30 | |
1006 | end | |
1007 | end | |
1008 | swait() | |
1009 | end | |
1010 | p:Destroy() | |
1011 | else | |
1012 | hurt(hit, 40) | |
1013 | end | |
1014 | end | |
1015 | end) | |
1016 | local bv = Instance.new("BodyForce") | |
1017 | local v = Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z) | |
1018 | bv.Force = CFrame.new(phand.Position, Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)).lookVector*5000 | |
1019 | bv.Parent = phand | |
1020 | fixalljoints() | |
1021 | attacking = false | |
1022 | end | |
1023 | if key:byte() == 32 then | |
1024 | local d = false | |
1025 | if jumped and candj or candj and freefall then | |
1026 | docon = true | |
1027 | jumped = true | |
1028 | d = true | |
1029 | candj = false | |
1030 | torso.Velocity = Vector3.new(torso.Velocity.X,120,torso.Velocity.Z) | |
1031 | local p = Instance.new("Part") | |
1032 | p.Anchored = true | |
1033 | p.CanCollide = false | |
1034 | p.Size = Vector3.new(1.16,0.1,1.16) | |
1035 | p.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) *CFrame.Angles(math.rad(90),0,0) | |
1036 | p.BrickColor = BrickColor.new("Deep orange") | |
1037 | local m = Instance.new("SpecialMesh") | |
1038 | m.MeshId = "rbxassetid://3270017" | |
1039 | m.Scale = Vector3.new(1,1,0.1) | |
1040 | m.Parent = p | |
1041 | p.Parent = workspace | |
1042 | for i = 1, 15 do | |
1043 | p.Size = Vector3.new(1.16*i,1.16*i,0.1) | |
1044 | p.Mesh.Scale = Vector3.new(i*1,i*1,0.1) | |
1045 | p.Transparency = i/15 | |
1046 | swait() | |
1047 | end | |
1048 | end | |
1049 | if not jumped and not d then | |
1050 | docon = true | |
1051 | jumped = true | |
1052 | end | |
1053 | end | |
1054 | if key == "t" and not attacking then | |
1055 | attacking = true | |
1056 | local hit = mouse.Hit | |
1057 | local parts = {} | |
1058 | local done = false | |
1059 | local stop = false | |
1060 | for i = 1, 3 do | |
1061 | local p = Instance.new("Part") | |
1062 | local d1 | |
1063 | local d2 | |
1064 | table.insert(parts, p) | |
1065 | spawn(function() | |
1066 | wait() | |
1067 | repeat wait() | |
1068 | if attacking and not done then | |
1069 | p.CFrame = p.CFrame:Lerp(p.CFrame *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.5) | |
1070 | end | |
1071 | if done then | |
1072 | p.Transparency = p.Transparency + 0.1 | |
1073 | end | |
1074 | until stop | |
1075 | p:Destroy() | |
1076 | end) | |
1077 | p.Anchored = true | |
1078 | p.CanCollide = false | |
1079 | p.Size = Vector3.new(6,0.2,6) | |
1080 | p.CFrame = CFrame.new(hit.p) *CFrame.new(math.random(-10,10),0,math.random(-10,10)) *CFrame.Angles(math.rad(90),0,0) | |
1081 | p.Transparency = 0 | |
1082 | local m = Instance.new("SpecialMesh") | |
1083 | m.MeshId = "http://www.roblox.com/asset/?id=16973748" | |
1084 | m.TextureId = "rbxassetid://16973739" | |
1085 | m.Scale = Vector3.new(2,2,0.05) | |
1086 | m.VertexColor = Vector3.new(0.3,0.3,0.3) | |
1087 | m.Parent = p | |
1088 | p.Parent = workspace | |
1089 | wait(0.1) | |
1090 | end | |
1091 | for i,v in pairs(parts) do | |
1092 | wait(0.05) | |
1093 | local tbl = {"Deep orange", "CGA brown", "Really black", "Dark stone grey"} | |
1094 | local l = lightning(v.CFrame *CFrame.new(0,0,-100), v.CFrame, 5, BrickColor.new(tbl[math.random(#tbl)]), 3, true) | |
1095 | for q,e in pairs(l:children()) do | |
1096 | e.Touched:connect(function(hit) | |
1097 | hurt(hit, 50) | |
1098 | end) | |
1099 | end | |
1100 | end | |
1101 | done = true | |
1102 | attacking = false | |
1103 | wait(0.5) | |
1104 | stop = true | |
1105 | end | |
1106 | if key == "g" and not attacking then | |
1107 | attacking = true | |
1108 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
1109 | local ows = humanoid.WalkSpeed | |
1110 | humanoid.WalkSpeed = 0 | |
1111 | for i = 0, 2, 0.1 do | |
1112 | ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0.2199976, -0.868436694, -0.444322497, -0.687909424, 0.184835598, -0.70186913, 0.691653669, 0.460062593, -0.556741416), 0.2) | |
1113 | rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0.177245006, 0.792773426, 0.583178401, 0.763805687, 0.262872756, -0.589492202, -0.620634317, 0.549919426, -0.55893147), 0.2) | |
1114 | lh.C0 = lh.C0:Lerp(CFrame.new(-2, -0.117741741, -1.03300738, 0, 0, -1, 0.13917312, 0.99026835, 0, 0.99026835, -0.13917312, 0), 0.2) | |
1115 | rh.C0 = rh.C0:Lerp(CFrame.new(2, -0.0999996886, -1.10000014, 0, 0, 1, -0.173648223, 0.984808087, 0, -0.984808087, -0.173648223, 0), 0.2) | |
1116 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, 0.224951103, 0.97437036, 0, 0.97437036, -0.224951103), 0.2) | |
1117 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1118 | swait() | |
1119 | end | |
1120 | local p = Instance.new("Part") | |
1121 | p.Name = "woah!" | |
1122 | p.BrickColor = BrickColor.new("CGA brown") | |
1123 | p.CanCollide = false | |
1124 | p.Size = Vector3.new(20,20,20) | |
1125 | p.Anchored = true | |
1126 | p.Material = "Neon" | |
1127 | local m = Instance.new("SpecialMesh") | |
1128 | m.MeshType = "Sphere" | |
1129 | m.Parent = p | |
1130 | p.CFrame = char.Torso.CFrame | |
1131 | p.Parent = workspace | |
1132 | for i = 1, 20 do | |
1133 | local ocf = p.CFrame | |
1134 | p.Size = p.Size:Lerp(Vector3.new(0.1,0.1,0.1), 0.2) | |
1135 | p.Transparency = i/20 | |
1136 | p.CFrame = ocf | |
1137 | swait() | |
1138 | end | |
1139 | spawn(function() | |
1140 | for i = 0, 1.5, 0.1 do | |
1141 | ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.258819133, -0.96592629, 0.104528472, 0.960634828, 0.257401317, 0.994522035, -0.100966774, -0.0270539615), 0.3) | |
1142 | rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, -0.325568229, 0.94551903, -0.0697564781, 0.943215668, 0.324775219, -0.997564137, -0.0659560561, -0.0227104928), 0.3) | |
1143 | lh.C0 = lh.C0:Lerp(CFrame.new(-2, -2, 0, 0.0151344407, 0.172987476, -0.984807968, 0.0858316794, 0.981060624, 0.173648208, 0.996195018, -0.0871557668, 0), 0.3) | |
1144 | rh.C0 = rh.C0:Lerp(CFrame.new(2, -2, 0, 0.0151344426, -0.172987491, 0.984808207, -0.0858317018, 0.981060803, 0.173648253, -0.99619478, -0.0871557444, 0), 0.3) | |
1145 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, -0.13917312, 0.99026823, 0, 0.99026823, 0.13917312), 0.3) | |
1146 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.3) | |
1147 | swait() | |
1148 | end | |
1149 | end) | |
1150 | p:Destroy() | |
1151 | local p = Instance.new("Part") | |
1152 | p.Name = "BOOOOOOOOOMMM WOOSH BANG POW OOF" | |
1153 | p.BrickColor = BrickColor.new("Really black") | |
1154 | p.Size = Vector3.new(300,0.1,0.1) | |
1155 | p.Anchored = false | |
1156 | p.Material = "Neon" | |
1157 | p.CFrame = char.Torso.CFrame *CFrame.Angles(0,0,math.rad(90)) | |
1158 | p.CanCollide = false | |
1159 | local m = Instance.new("SpecialMesh") | |
1160 | m.MeshType = "Cylinder" | |
1161 | m.Parent = p | |
1162 | local bp = Instance.new("BodyPosition") | |
1163 | bp.MaxForce = huge | |
1164 | bp.Position = p.Position | |
1165 | bp.Parent = p | |
1166 | p.Parent = workspace | |
1167 | p.Touched:connect(function(hit) | |
1168 | if hurt(hit, 100) then | |
1169 | pushback(char.Torso, hit, 130) | |
1170 | end | |
1171 | end) | |
1172 | for i = 1, 100 do | |
1173 | local ocf = p.CFrame | |
1174 | p.Size = p.Size:Lerp(Vector3.new(300,40,40), 0.1) | |
1175 | p.CFrame = ocf | |
1176 | p.Transparency = i/100 | |
1177 | swait() | |
1178 | end | |
1179 | p:Destroy() | |
1180 | humanoid.WalkSpeed = ows | |
1181 | fixalljoints() | |
1182 | attacking = false | |
1183 | end | |
1184 | if key == "m" and not attacking and animpose ~= "Falling" then | |
1185 | attacking = true | |
1186 | local rs,ls,rh,lh,neck,rj = getnewjoints() | |
1187 | char:FindFirstChildOfClass("Humanoid").JumpPower = 500 | |
1188 | char:FindFirstChildOfClass("Humanoid").Jump = true | |
1189 | wait() | |
1190 | char:FindFirstChildOfClass("Humanoid").JumpPower = 50 | |
1191 | repeat wait() until char.HumanoidRootPart.Velocity.Y < 0 | |
1192 | local num = 0.5 | |
1193 | local num2 = 0.5 | |
1194 | repeat wait() | |
1195 | num = num + 0.5 | |
1196 | if num2 < 10 then | |
1197 | num2 = num2+0.5 | |
1198 | end | |
1199 | if num%3 == 0 then soundeffect("rbxassetid://541909814", 2, 1, char.Torso) end | |
1200 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0321390443, -0.899457872, -0.435827494, -0.903263509, 0.212814748, -0.37259686, 0.427884579, 0.381691694, -0.819286048), 0.2) | |
1201 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.166612521, 0.861375272, 0.47987023, 0.814885736, 0.153724328, -0.558868229, -0.555161953, 0.484153807, -0.67630893), 0.2) | |
1202 | lh.C0 = lh.C0:Lerp(CFrame.new(-0.988398254*scale, -0.309396505*scale, -0.610682189*scale, 0.00854844693, 0.0146014411, -0.999856889, 0.498114854, 0.866946518, 0.0169191808, 0.867069304, -0.498188108, 0.00013788142), 0.2) | |
1203 | rh.C0 = rh.C0:Lerp(CFrame.new(0.988217235*scale, -0.304208815*scale, -0.86811024*scale, 0.00891196821, -0.0143678738, 0.999857128, -0.528013527, 0.849068403, 0.0169073474, -0.849189758, -0.528088629, -1.95365774e-005), 0.2) | |
1204 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.788011312, 0.615662038, 0, 0.61566186, -0.788011372), 0.2) | |
1205 | rj.C0 = rj.C0 *CFrame.Angles(math.rad((5*num2)),0,0) | |
1206 | until char.HumanoidRootPart.Velocity.Y > -1 | |
1207 | soundeffect("rbxassetid://165969964", 3, 1, char.Torso) | |
1208 | for i = 0, 1.3, 0.1 do | |
1209 | if i == 0.6 then | |
1210 | local ring = Instance.new("Part") | |
1211 | ring.Size = Vector3.new(1.16, 1.16, 0.16) | |
1212 | local bc = BrickColor.Random() | |
1213 | if rage then | |
1214 | bc = BrickColor.new("Really black") | |
1215 | end | |
1216 | ring.BrickColor = bc | |
1217 | ring.Anchored = true | |
1218 | ring.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) | |
1219 | ring.CanCollide=false | |
1220 | ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0) | |
1221 | local m = Instance.new("SpecialMesh", ring) | |
1222 | m.MeshId = "rbxassetid://3270017" | |
1223 | ring.Parent = workspace | |
1224 | local thing = Instance.new("Part") | |
1225 | thing.Size = Vector3.new(1.866, 1.421, 2.155) | |
1226 | thing.BrickColor = bc | |
1227 | thing.Anchored = true | |
1228 | thing.CanCollide = false | |
1229 | thing.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5*2,0) | |
1230 | local m2 = Instance.new("SpecialMesh", thing) | |
1231 | m2.MeshId = "rbxassetid://20329976" | |
1232 | m2.Scale = Vector3.new(1,0.5,1) | |
1233 | thing.Parent = workspace | |
1234 | local oldcf2 = thing.CFrame | |
1235 | local multiplier2 = Vector3.new(1.866, 1.421, 2.155)*3 | |
1236 | local oldcf = ring.CFrame | |
1237 | local multiplier = Vector3.new(1.16, 1.16, 0.16)*3 | |
1238 | thing.Touched:connect(function(hit) | |
1239 | if hurt(hit, math.random(30,35)) then | |
1240 | local bv = Instance.new("BodyVelocity") | |
1241 | bv.MaxForce = huge | |
1242 | bv.Velocity = CFrame.new(thing.Position, hit.Position).lookVector*100 | |
1243 | bv.Parent = hit | |
1244 | game.Debris:AddItem(bv, 0.1) | |
1245 | end | |
1246 | end) | |
1247 | ring.Touched:connect(function(hit) | |
1248 | if hurt(hit, math.random(10,15)) then | |
1249 | hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
1250 | local bv = Instance.new("BodyVelocity") | |
1251 | bv.MaxForce = huge | |
1252 | bv.Velocity = CFrame.new(ring.Position, hit.Position).lookVector*100 | |
1253 | bv.Parent = hit | |
1254 | game.Debris:AddItem(bv, 0.1) | |
1255 | end | |
1256 | end) | |
1257 | spawn(function() | |
1258 | for i = 0, 20 do | |
1259 | ring.Size = multiplier*i | |
1260 | m.Scale = m.Scale +Vector3.new(3,3,3) | |
1261 | ring.CFrame = oldcf | |
1262 | ring.Transparency = ring.Transparency +0.05 | |
1263 | thing.Size = multiplier*i | |
1264 | m2.Scale = m2.Scale +Vector3.new(3,3,3) | |
1265 | thing.CFrame = oldcf2 | |
1266 | thing.Transparency = thing.Transparency +0.05 | |
1267 | swait() | |
1268 | end | |
1269 | thing:Destroy() | |
1270 | ring:Destroy() | |
1271 | end) | |
1272 | end | |
1273 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.13917312, -0.99026823, 0, 0.99026823, 0.13917312, 1, 0, 0), 0.7) | |
1274 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.190809026, 0.981627405, 0, 0.981627405, 0.190809026, -1, 0, 0), 0.7) | |
1275 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.297612011*scale, -0.327801049*scale, 0, 0, -1, 0.374606699, 0.927184403, 0, 0.927184403, -0.374606699, 0), 0.7) | |
1276 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -0.399999917*scale, -0.5*scale, 0, 0, 1, 0.121869355, 0.99254632, 0, -0.99254632, 0.121869355, 0), 0.7) | |
1277 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
1278 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, -0.800000072*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
1279 | wait() | |
1280 | end | |
1281 | attacking = false | |
1282 | fixalljoints() | |
1283 | ||
1284 | end | |
1285 | if key == "q" and not attacking then | |
1286 | attacking = true | |
1287 | local rs = replacejoint("Right Shoulder") | |
1288 | local ls = replacejoint("Left Shoulder") | |
1289 | local rj = replacejoint("RootJoint") | |
1290 | local neck = replacejoint("Neck") | |
1291 | local arm = Instance.new("Part") | |
1292 | arm.Name = "cool effects brooo" | |
1293 | arm.BrickColor = BrickColor.new("Deep orange") | |
1294 | arm.Material = "Neon" | |
1295 | arm.Transparency = 1 | |
1296 | smooth(arm) | |
1297 | arm.Size = char["Right Arm"].Size+Vector3.new(0.05,0.05,0.05) | |
1298 | arm.CanCollide = false | |
1299 | arm.Anchored = false | |
1300 | arm.Parent = char | |
1301 | local w = Instance.new("Weld") | |
1302 | w.Name = "weld 4 kool peepz" | |
1303 | w.Part0 = arm | |
1304 | w.Part1 = char["Right Arm"] | |
1305 | w.Parent = arm | |
1306 | for i = 0, 2, 0.1 do | |
1307 | if arm.Transparency > 0.5 then | |
1308 | arm.Transparency = arm.Transparency - 0.1 | |
1309 | end | |
1310 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.258819103, -0.96592617, 0, 0.96592617, 0.258819103, 1, 0, 0), 0.2) | |
1311 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.325568289, 0.945519149, 0.974371135, 0.212695867, 0.0732370615, -0.224951506, 0.921286225, 0.317224324), 0.2) | |
1312 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.913546145, 0.406736821, 0, 0, 0, 1, 0.406736821, 0.913546145, 0), 0.2) | |
1313 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.920505762, -0.390731364, 0, 0, 0, 1, -0.390731364, 0.920505762, 0), 0.2) | |
1314 | swait() | |
1315 | end | |
1316 | local rjcf = rj.C0 | |
1317 | local lscf = ls.C0 | |
1318 | local neckcf = neck.C0 | |
1319 | local rscf = rs.C0 | |
1320 | swait(25) | |
1321 | soundeffect("rbxassetid://449025737", 2, 1, char.Torso) | |
1322 | for i = 0, 1, 0.1 do | |
1323 | local ring = Instance.new("Part") | |
1324 | ring.Name = "cool rihg thtat's thadsada" | |
1325 | ring.BrickColor = BrickColor.new("Deep orange") | |
1326 | ring.Size = Vector3.new(1,1,1) | |
1327 | ring.CanCollide = false | |
1328 | ring.Anchored = true | |
1329 | ring.CFrame = char["Right Arm"].CFrame *CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)) | |
1330 | local m = Instance.new("SpecialMesh") | |
1331 | m.MeshId = "rbxassetid://3270017" | |
1332 | m.Parent = ring | |
1333 | ring.Parent = workspace | |
1334 | spawn(function() | |
1335 | local sz = m.Scale | |
1336 | for i = 1, 20 do | |
1337 | ring.Transparency = i/20 | |
1338 | m.Scale = sz:Lerp(Vector3.new(3,3,3), i/20) | |
1339 | swait() | |
1340 | end | |
1341 | ring:Destroy() | |
1342 | end) | |
1343 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0871557519, -0.996195078, 0, 0.996195078, 0.0871557519, 1, 0, 0), i/1) | |
1344 | rs.C0 = rs.C0:Lerp(CFrame.new(0.993019104*scale, 0.410033107*scale, -0.389689326*scale, 0.00568197947, 0.016501667, 0.999848545, 0.99451226, -0.104560688, -0.00392594887, 0.104480237, 0.994383693, -0.0170050543), i/1) | |
1345 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.984808803, -0.173648447, 0, 0, 0, 1, -0.173648447, 0.984808803, 0), i/1) | |
1346 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.981628299, 0.190809309, 0, 0, 0, 1, 0.190809309, 0.981628299, 0), i/1) | |
1347 | swait() | |
1348 | end | |
1349 | local p = Instance.new("Part") | |
1350 | p.Anchored = true | |
1351 | p.CanCollide = false | |
1352 | p.BrickColor = BrickColor.new("Deep orange") | |
1353 | p.Material = "Neon" | |
1354 | p.Size = Vector3.new(1,1,1) | |
1355 | smooth(p) | |
1356 | p.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1,0) | |
1357 | p.Name = "spherical radicul" | |
1358 | local m = Instance.new("SpecialMesh") | |
1359 | m.MeshType = "Sphere" | |
1360 | m.Parent = p | |
1361 | p.Touched:connect(function(hit) | |
1362 | if hurt(hit, 50) then | |
1363 | local dir = CFrame.new(p.CFrame.p,hit.CFrame.p).lookVector | |
1364 | local bv = Instance.new("BodyVelocity") | |
1365 | bv.MaxForce = huge | |
1366 | bv.Velocity = dir*200 | |
1367 | bv.Parent = hit | |
1368 | game.Debris:AddItem(bv, 0.1) | |
1369 | end | |
1370 | end) | |
1371 | p.Parent = workspace | |
1372 | local ring = p:Clone() | |
1373 | ring:ClearAllChildren() | |
1374 | local m = Instance.new("SpecialMesh") | |
1375 | m.MeshId = "rbxassetid://3270017" | |
1376 | m.Scale = Vector3.new(1.2,1.2,1.2) | |
1377 | m.Parent = ring | |
1378 | ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0) | |
1379 | ring.Parent = workspace | |
1380 | local size = m.Scale | |
1381 | local size2 = p.Size | |
1382 | for i = 1, 30 do | |
1383 | local cf = p.CFrame | |
1384 | m.Scale = size:Lerp(Vector3.new(30.2,30.2,30.2), i/30) | |
1385 | p.Size = size2:Lerp(Vector3.new(30,30,30), i/30) | |
1386 | p.Transparency = i/30 | |
1387 | ring.Transparency = i/30 | |
1388 | p.CFrame = cf | |
1389 | swait() | |
1390 | end | |
1391 | p:Destroy() | |
1392 | ring:Destroy() | |
1393 | fixalljoints() | |
1394 | swait(3) | |
1395 | attacking = false | |
1396 | fade(arm, true) | |
1397 | end | |
1398 | if key == "z" and attacking == false then | |
1399 | local og = mobs.Volume | |
1400 | mobs.Volume = 0.1 | |
1401 | soundeffect("rbxassetid://333446256", 2, 1, char["HumanoidRootPart"], true) | |
1402 | mobs.Volume = og | |
1403 | end | |
1404 | end) | |
1405 | local lp | |
1406 | spawn(function() | |
1407 | local num = 0 | |
1408 | while swait() do | |
1409 | local v = char.HumanoidRootPart.Velocity | |
1410 | if v.Y > 15 then | |
1411 | animpose = "Jump" | |
1412 | end | |
1413 | if v.Y < -15 then | |
1414 | animpose = "Falling" | |
1415 | end | |
1416 | if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then | |
1417 | animpose = "Walking" | |
1418 | end | |
1419 | if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then | |
1420 | animpose = "Idle" | |
1421 | end | |
1422 | end | |
1423 | end) | |
1424 | local num = 0 | |
1425 | while swait() do | |
1426 | num = num + 0.1 | |
1427 | local sin = math.sin(num) | |
1428 | if animpose == "Walking" and cananim then | |
1429 | for i = 0, 1.5, 0.1 do | |
1430 | if animpose == "Walking" and cananim then | |
1431 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2) | |
1432 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2) | |
1433 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2) | |
1434 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2) | |
1435 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1436 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2) | |
1437 | swait() | |
1438 | else | |
1439 | break | |
1440 | end | |
1441 | end | |
1442 | for i = 0, 1.5, 0.1 do | |
1443 | if animpose == "Walking" and cananim then | |
1444 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2) | |
1445 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2) | |
1446 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2) | |
1447 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2) | |
1448 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1449 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2) | |
1450 | swait() | |
1451 | else | |
1452 | break | |
1453 | end | |
1454 | end | |
1455 | end | |
1456 | if animpose == "Idle" and cananim then | |
1457 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) | |
1458 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) | |
1459 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2) | |
1460 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2) | |
1461 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2) | |
1462 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2) | |
1463 | swait() | |
1464 | end | |
1465 | if animpose == "Jump" and cananim then | |
1466 | for i = 0, 0.8, 0.1 do | |
1467 | if animpose == "Jump" and cananim then | |
1468 | ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) | |
1469 | rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2) | |
1470 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.499999911*scale, -0.5*scale, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2) | |
1471 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2) | |
1472 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1473 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1474 | swait() | |
1475 | else | |
1476 | break | |
1477 | end | |
1478 | end | |
1479 | end | |
1480 | if animpose == "Falling" and cananim then | |
1481 | ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056*scale, 0.599254608*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) | |
1482 | rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673*scale, 0.599026859*scale, 0*scale, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2) | |
1483 | lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.963904023*scale, 0.0336604826*scale, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2) | |
1484 | rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2) | |
1485 | neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2) | |
1486 | rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
1487 | end | |
1488 | ||
1489 | end |