SHOW:
|
|
- or go back to the newest paste.
1 | - | --//====================================================\\-- |
1 | + | ----------------------- |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | --[[ Name : Burning]]-- |
3 | - | --\\====================================================//-- |
3 | + | ------------------------------------------------------- |
4 | --A script By makhail07 | |
5 | - | wait(0.2) |
5 | + | |
6 | --Discord Creterisk#2958 | |
7 | - | Player = game:GetService("Players").LocalPlayer |
7 | + | |
8 | - | PlayerGui = Player.PlayerGui |
8 | + | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION |
9 | - | Cam = workspace.CurrentCamera |
9 | + | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT |
10 | - | Backpack = Player.Backpack |
10 | + | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT |
11 | - | Character = Player.Character |
11 | + | --YOU FUCKING SKIDS, |
12 | - | Humanoid = Character.Humanoid |
12 | + | --For Those who log/decompile this, If you sell or trade this, |
13 | - | Mouse = Player:GetMouse() |
13 | + | --and I find out who you are, i will take massive action. |
14 | - | RootPart = Character["HumanoidRootPart"] |
14 | + | ------------------------------------------------------- |
15 | - | Torso = Character["Torso"] |
15 | + | Player_Size = 1 |
16 | - | Head = Character["Head"] |
16 | + | |
17 | - | RightArm = Character["Right Arm"] |
17 | + | local FavIDs = { |
18 | - | LeftArm = Character["Left Arm"] |
18 | + | 340106355, --Nefl Crystals |
19 | - | RightLeg = Character["Right Leg"] |
19 | + | 927529620, --Dimension |
20 | - | LeftLeg = Character["Left Leg"] |
20 | + | 876981900, --Fantasy |
21 | - | RootJoint = RootPart["RootJoint"] |
21 | + | 398987889, --Ordinary Days |
22 | - | Neck = Torso["Neck"] |
22 | + | 1117396305, --Oh wait, it's you. |
23 | - | RightShoulder = Torso["Right Shoulder"] |
23 | + | 885996042, --Action Winter Journey |
24 | - | LeftShoulder = Torso["Left Shoulder"] |
24 | + | 919231299, --Sprawling Idiot Effigy |
25 | - | RightHip = Torso["Right Hip"] |
25 | + | 743466274, --Good Day Sunshine |
26 | - | LeftHip = Torso["Left Hip"] |
26 | + | 727411183, --Knife Fight |
27 | - | Player:ClearCharacterAppearance() |
27 | + | 1402748531, --The Earth Is Counting On You! |
28 | 595230126 --Robot Language | |
29 | } | |
30 | ||
31 | - | VT = Vector3.new |
31 | + | |
32 | - | RAD = math.rad |
32 | + | |
33 | - | C3 = Color3.new |
33 | + | --The reality of my life isn't real but a Universe -makhail07 |
34 | - | UD2 = UDim2.new |
34 | + | wait() |
35 | - | BRICKC = BrickColor.new |
35 | + | local plr = game:service'Players'.LocalPlayer |
36 | - | ANGLES = CFrame.Angles |
36 | + | print('Local User is '..plr.Name) |
37 | - | EULER = CFrame.fromEulerAnglesXYZ |
37 | + | local char = plr.Character |
38 | - | COS = math.cos |
38 | + | local hum = char.Humanoid |
39 | - | ACOS = math.acos |
39 | + | local ra = char["Right Arm"] |
40 | - | SIN = math.sin |
40 | + | local la= char["Left Arm"] |
41 | - | ASIN = math.asin |
41 | + | local rl= char["Right Leg"] |
42 | - | ABS = math.abs |
42 | + | local ll = char["Left Leg"] |
43 | - | MRANDOM = math.random |
43 | + | local hed = char.Head |
44 | - | FLOOR = math.floor |
44 | + | local root = char.HumanoidRootPart |
45 | local rootj = root.RootJoint | |
46 | - | --//=================================\\ |
46 | + | local tors = char.Torso |
47 | - | --|| USEFUL VALUES |
47 | + | local mouse = plr:GetMouse() |
48 | - | --\\=================================// |
48 | + | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
49 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
50 | - | Animation_Speed = 3 |
50 | + | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) |
51 | - | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
51 | + | local maincolor = BrickColor.new("Crimson") |
52 | - | local Speed = 10 |
52 | + | ------------------------------------------------------- |
53 | - | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
53 | + | --Start Invincibility-- |
54 | - | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
54 | + | ------------------------------------------------------- |
55 | - | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
55 | + | ff = Instance.new("ForceField",char) |
56 | - | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
56 | + | ff.Visible = false |
57 | - | local DAMAGEMULTIPLIER = 1 |
57 | + | hum.Name = "Base" |
58 | - | local ANIM = "Idle" |
58 | + | hum.MaxHealth = 1.0E298 |
59 | - | local ATTACK = false |
59 | + | hum.Health = 1.0E298 |
60 | - | local EQUIPPED = false |
60 | + | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() |
61 | - | local HOLD = false |
61 | + | if hum.Health > 0.1 and hum.Health < 1.0E298 then |
62 | - | local COMBO = 1 |
62 | + | hum.MaxHealth = 1.0E298 |
63 | - | local Rooted = false |
63 | + | hum.Health = 1.0E298 |
64 | - | local SINE = 0 |
64 | + | end |
65 | - | local KEYHOLD = false |
65 | + | |
66 | - | local CHANGE = 2 / Animation_Speed |
66 | + | ------------------------------------------------------- |
67 | - | local WALKINGANIM = false |
67 | + | --End Whitelist and Invincibility-- |
68 | - | local VALUE1 = false |
68 | + | ------------------------------------------------------- |
69 | - | local VALUE2 = false |
69 | + | |
70 | - | local ROBLOXIDLEANIMATION = IT("Animation") |
70 | + | ------------------------------------------------------- |
71 | - | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
71 | + | --Start Good Stuff-- |
72 | - | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
72 | + | ------------------------------------------------------- |
73 | - | local ATANIM = IT("Animation") |
73 | + | |
74 | - | ATANIM.Name = "Attack Animation" |
74 | + | angles = CFrame.Angles |
75 | - | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" |
75 | + | attack = false |
76 | - | --ROBLOXIDLEANIMATION.Parent = Humanoid |
76 | + | Euler = CFrame.fromEulerAnglesXYZ |
77 | - | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
77 | + | Rad = math.rad |
78 | - | WEAPONGUI.Name = "Weapon GUI" |
78 | + | |
79 | - | local Weapon = IT("Model") |
79 | + | BrickC = BrickColor.new |
80 | - | Weapon.Name = "Adds" |
80 | + | Cos = math.cos |
81 | - | local Effects = IT("Folder", Weapon) |
81 | + | Acos = math.acos |
82 | - | Effects.Name = "Effects" |
82 | + | Sin = math.sin |
83 | - | local ANIMATOR = Humanoid.Animator |
83 | + | Asin = math.asin |
84 | - | local ANIMATE = Character.Animate |
84 | + | Abs = math.abs |
85 | - | local UNANCHOR = true |
85 | + | Mrandom = math.random |
86 | - | local PLAYANIMS = true |
86 | + | Floor = math.floor |
87 | - | script.Parent = WEAPONGUI |
87 | + | ------------------------------------------------------- |
88 | - | Character.Archivable = true |
88 | + | --End Good Stuff-- |
89 | - | local CLONE = Character:Clone() |
89 | + | ------------------------------------------------------- |
90 | - | CLONE.Parent = nil |
90 | + | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
91 | - | Character.Archivable = false |
91 | + | RSH, LSH = nil, nil |
92 | - | local sick = Instance.new("Sound",Torso) |
92 | + | RW = Instance.new("Weld") |
93 | - | sick.SoundId = "rbxassetid://1551788627" |
93 | + | LW = Instance.new("Weld") |
94 | - | sick.Looped = true |
94 | + | RH = tors["Right Hip"] |
95 | - | sick.Pitch = 1 |
95 | + | LH = tors["Left Hip"] |
96 | - | sick.Volume = 3 |
96 | + | RSH = tors["Right Shoulder"] |
97 | - | sick:Play() |
97 | + | LSH = tors["Left Shoulder"] |
98 | - | local SIT = IT("BoolValue",Torso) |
98 | + | RSH.Parent = nil |
99 | - | SIT.Name = "IsThePharaohSitting?" |
99 | + | LSH.Parent = nil |
100 | RW.Name = "RW" | |
101 | - | --//=================================\\ |
101 | + | RW.Part0 = tors |
102 | - | --\\=================================// |
102 | + | RW.C0 = CF(1.5, 0.5, 0) |
103 | RW.C1 = CF(0, 0.5, 0) | |
104 | RW.Part1 = ra | |
105 | - | --//=================================\\ |
105 | + | RW.Parent = tors |
106 | - | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
106 | + | LW.Name = "LW" |
107 | - | --\\=================================// |
107 | + | LW.Part0 = tors |
108 | LW.C0 = CF(-1.5, 0.5, 0) | |
109 | LW.C1 = CF(0, 0.5, 0) | |
110 | - | ArtificialHB.Name = "ArtificialHB" |
110 | + | LW.Part1 = la |
111 | LW.Parent = tors | |
112 | - | script:WaitForChild("ArtificialHB") |
112 | + | Effects = {} |
113 | ||
114 | - | frame = Frame_Speed |
114 | + | ------------------------------------------------------- |
115 | --Start HeartBeat-- | |
116 | ------------------------------------------------------- | |
117 | ArtificialHB = Instance.new("BindableEvent", script) | |
118 | ArtificialHB.Name = "Heartbeat" | |
119 | - | script.ArtificialHB:Fire() |
119 | + | script:WaitForChild("Heartbeat") |
120 | ||
121 | frame = 1 / 60 | |
122 | tf = 0 | |
123 | allowframeloss = false | |
124 | tossremainder = false | |
125 | - | script.ArtificialHB:Fire() |
125 | + | |
126 | ||
127 | lastframe = tick() | |
128 | script.Heartbeat:Fire() | |
129 | - | script.ArtificialHB:Fire() |
129 | + | |
130 | ||
131 | - | lastframe = tick() |
131 | + | |
132 | tf = tf + s | |
133 | if tf >= frame then | |
134 | if allowframeloss then | |
135 | script.Heartbeat:Fire() | |
136 | lastframe = tick() | |
137 | else | |
138 | for i = 1, math.floor(tf / frame) do | |
139 | script.Heartbeat:Fire() | |
140 | end | |
141 | - | --//=================================\\ |
141 | + | |
142 | - | --\\=================================// |
142 | + | |
143 | if tossremainder then | |
144 | - | --//=================================\\ |
144 | + | |
145 | - | --|| SOME FUNCTIONS |
145 | + | |
146 | - | --\\=================================// |
146 | + | |
147 | end | |
148 | - | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
148 | + | |
149 | - | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
149 | + | |
150 | ------------------------------------------------------- | |
151 | --End HeartBeat-- | |
152 | - | function PositiveAngle(NUMBER) |
152 | + | ------------------------------------------------------- |
153 | - | if NUMBER >= 0 then |
153 | + | |
154 | - | NUMBER = 0 |
154 | + | ------------------------------------------------------- |
155 | --Start Important Functions-- | |
156 | - | return NUMBER |
156 | + | ------------------------------------------------------- |
157 | function swait(num) | |
158 | if num == 0 or num == nil then | |
159 | - | function NegativeAngle(NUMBER) |
159 | + | game:service("RunService").Stepped:wait(0) |
160 | - | if NUMBER <= 0 then |
160 | + | |
161 | - | NUMBER = 0 |
161 | + | for i = 0, num do |
162 | game:service("RunService").Stepped:wait(0) | |
163 | - | return NUMBER |
163 | + | |
164 | end | |
165 | end | |
166 | - | function Swait(NUMBER) |
166 | + | function thread(f) |
167 | - | if NUMBER == 0 or NUMBER == nil then |
167 | + | coroutine.resume(coroutine.create(f)) |
168 | - | ArtificialHB.Event:wait() |
168 | + | |
169 | function clerp(a, b, t) | |
170 | - | for i = 1, NUMBER do |
170 | + | local qa = { |
171 | - | ArtificialHB.Event:wait() |
171 | + | QuaternionFromCFrame(a) |
172 | } | |
173 | local qb = { | |
174 | QuaternionFromCFrame(b) | |
175 | } | |
176 | - | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
176 | + | |
177 | - | local NEWMESH = IT(MESH) |
177 | + | |
178 | - | if MESH == "SpecialMesh" then |
178 | + | |
179 | - | NEWMESH.MeshType = MESHTYPE |
179 | + | |
180 | - | if MESHID ~= "nil" and MESHID ~= "" then |
180 | + | |
181 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID |
181 | + | |
182 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
183 | - | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
183 | + | |
184 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID |
184 | + | if trace > 0 then |
185 | local s = math.sqrt(1 + trace) | |
186 | local recip = 0.5 / s | |
187 | - | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
187 | + | |
188 | - | NEWMESH.Scale = SCALE |
188 | + | |
189 | - | NEWMESH.Parent = PARENT |
189 | + | |
190 | - | return NEWMESH |
190 | + | if m00 < m11 then |
191 | i = 1 | |
192 | end | |
193 | - | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
193 | + | |
194 | - | local NEWPART = IT("Part") |
194 | + | |
195 | - | NEWPART.formFactor = FORMFACTOR |
195 | + | |
196 | - | NEWPART.Reflectance = REFLECTANCE |
196 | + | |
197 | - | NEWPART.Transparency = TRANSPARENCY |
197 | + | |
198 | - | NEWPART.CanCollide = false |
198 | + | |
199 | - | NEWPART.Locked = true |
199 | + | |
200 | - | NEWPART.Anchored = true |
200 | + | |
201 | - | if ANCHOR == false then |
201 | + | |
202 | - | NEWPART.Anchored = false |
202 | + | |
203 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
204 | - | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
204 | + | |
205 | - | NEWPART.Name = NAME |
205 | + | |
206 | - | NEWPART.Size = SIZE |
206 | + | |
207 | - | NEWPART.Position = Torso.Position |
207 | + | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
208 | - | NEWPART.Material = MATERIAL |
208 | + | |
209 | - | NEWPART:BreakJoints() |
209 | + | |
210 | - | NEWPART.Parent = PARENT |
210 | + | |
211 | - | return NEWPART |
211 | + | |
212 | local xs, ys, zs = x + x, y + y, z + z | |
213 | local wx, wy, wz = w * xs, w * ys, w * zs | |
214 | - | local function weldBetween(a, b) |
214 | + | |
215 | - | local weldd = Instance.new("ManualWeld") |
215 | + | |
216 | - | weldd.Part0 = a |
216 | + | |
217 | - | weldd.Part1 = b |
217 | + | |
218 | - | weldd.C0 = CFrame.new() |
218 | + | |
219 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
219 | + | |
220 | - | weldd.Parent = a |
220 | + | return CF(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) |
221 | - | return weldd |
221 | + | |
222 | function QuaternionSlerp(a, b, t) | |
223 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
224 | local startInterp, finishInterp | |
225 | if cosTheta >= 1.0E-4 then | |
226 | if 1 - cosTheta > 1.0E-4 then | |
227 | local theta = math.acos(cosTheta) | |
228 | - | if trace > 0 then |
228 | + | local invSinTheta = 1 / Sin(theta) |
229 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
230 | finishInterp = Sin(t * theta) * invSinTheta | |
231 | else | |
232 | startInterp = 1 - t | |
233 | finishInterp = t | |
234 | - | if m11 > m00 then |
234 | + | |
235 | elseif 1 + cosTheta > 1.0E-4 then | |
236 | local theta = math.acos(-cosTheta) | |
237 | local invSinTheta = 1 / Sin(theta) | |
238 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
239 | finishInterp = Sin(t * theta) * invSinTheta | |
240 | else | |
241 | startInterp = t - 1 | |
242 | finishInterp = t | |
243 | end | |
244 | 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 | |
245 | end | |
246 | function rayCast(Position, Direction, Range, Ignore) | |
247 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
248 | end | |
249 | local RbxUtility = LoadLibrary("RbxUtility") | |
250 | - | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
250 | + | local Create = RbxUtility.Create |
251 | ||
252 | ------------------------------------------------------- | |
253 | --Start Damage Function-- | |
254 | ------------------------------------------------------- | |
255 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
256 | if hit.Parent == nil then | |
257 | return | |
258 | end | |
259 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
260 | for _, v in pairs(hit.Parent:children()) do | |
261 | if v:IsA("Humanoid") then | |
262 | h = v | |
263 | end | |
264 | - | 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)) |
264 | + | |
265 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
266 | ||
267 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
268 | end | |
269 | - | local startInterp, finishInterp; |
269 | + | |
270 | - | if cosTheta >= 0.0001 then |
270 | + | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then |
271 | - | if (1 - cosTheta) > 0.0001 then |
271 | + | if hit.Parent:findFirstChild("DebounceHit") ~= nil then |
272 | - | local theta = ACOS(cosTheta) |
272 | + | if hit.Parent.DebounceHit.Value == true then |
273 | - | local invSinTheta = 1 / SIN(theta) |
273 | + | return |
274 | - | startInterp = SIN((1 - t) * theta) * invSinTheta |
274 | + | |
275 | - | finishInterp = SIN(t * theta) * invSinTheta |
275 | + | |
276 | if insta == true then | |
277 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
278 | end | |
279 | local c = Create("ObjectValue"){ | |
280 | Name = "creator", | |
281 | - | if (1 + cosTheta) > 0.0001 then |
281 | + | Value = game:service("Players").LocalPlayer, |
282 | - | local theta = ACOS(-cosTheta) |
282 | + | Parent = h, |
283 | - | local invSinTheta = 1 / SIN(theta) |
283 | + | } |
284 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
284 | + | game:GetService("Debris"):AddItem(c, .5) |
285 | - | finishInterp = SIN(t * theta) * invSinTheta |
285 | + | if HitSound ~= nil and HitPitch ~= nil then |
286 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
287 | - | startInterp = t - 1 |
287 | + | |
288 | local Damage = Mrandom(minim, maxim) | |
289 | local blocked = false | |
290 | local block = hit.Parent:findFirstChild("Block") | |
291 | if block ~= nil then | |
292 | if block.className == "IntValue" then | |
293 | if block.Value > 0 then | |
294 | - | function Clerp(a, b, t) |
294 | + | blocked = true |
295 | - | local qa = {QuaternionFromCFrame(a)} |
295 | + | block.Value = block.Value - 1 |
296 | - | local qb = {QuaternionFromCFrame(b)} |
296 | + | print(block.Value) |
297 | end | |
298 | end | |
299 | end | |
300 | if blocked == false then | |
301 | h.Health = h.Health - Damage | |
302 | ShowDamage((Part.CFrame * CF(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
303 | - | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
303 | + | |
304 | - | local frame = IT("Frame") |
304 | + | h.Health = h.Health - (Damage / 2) |
305 | - | frame.BackgroundTransparency = TRANSPARENCY |
305 | + | ShowDamage((Part.CFrame * CF(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) |
306 | - | frame.BorderSizePixel = BORDERSIZEPIXEL |
306 | + | |
307 | - | frame.Position = POSITION |
307 | + | if Type == "Knockdown" then |
308 | - | frame.Size = SIZE |
308 | + | local hum = hit.Parent.Humanoid |
309 | - | frame.BackgroundColor3 = COLOR |
309 | + | hum.PlatformStand = true |
310 | - | frame.BorderColor3 = BORDERCOLOR |
310 | + | coroutine.resume(coroutine.create(function(HHumanoid) |
311 | - | frame.Name = NAME |
311 | + | swait(1) |
312 | - | frame.Parent = PARENT |
312 | + | HHumanoid.PlatformStand = false |
313 | - | return frame |
313 | + | end), hum) |
314 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
315 | local bodvol = Create("BodyVelocity"){ | |
316 | - | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
316 | + | velocity = angle * knockback, |
317 | - | local label = IT("TextLabel") |
317 | + | P = 5000, |
318 | - | label.BackgroundTransparency = 1 |
318 | + | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
319 | - | label.Size = UD2(1, 0, 1, 0) |
319 | + | Parent = hit, |
320 | - | label.Position = UD2(0, 0, 0, 0) |
320 | + | } |
321 | - | label.TextColor3 = TEXTCOLOR |
321 | + | local rl = Create("BodyAngularVelocity"){ |
322 | - | label.TextStrokeTransparency = STROKETRANSPARENCY |
322 | + | P = 3000, |
323 | - | label.TextTransparency = TRANSPARENCY |
323 | + | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, |
324 | - | label.FontSize = TEXTFONTSIZE |
324 | + | angularvelocity = Vector3.new(Mrandom(-10, 10), Mrandom(-10, 10), Mrandom(-10, 10)), |
325 | - | label.Font = TEXTFONT |
325 | + | Parent = hit, |
326 | - | label.BorderSizePixel = BORDERSIZEPIXEL |
326 | + | } |
327 | - | label.TextScaled = false |
327 | + | game:GetService("Debris"):AddItem(bodvol, .5) |
328 | - | label.Text = TEXT |
328 | + | game:GetService("Debris"):AddItem(rl, .5) |
329 | - | label.Name = NAME |
329 | + | elseif Type == "Normal" then |
330 | - | label.Parent = PARENT |
330 | + | local vp = Create("BodyVelocity"){ |
331 | - | return label |
331 | + | P = 500, |
332 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
333 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
334 | - | function NoOutlines(PART) |
334 | + | } |
335 | - | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
335 | + | if knockback > 0 then |
336 | vp.Parent = hit.Parent.Torso | |
337 | end | |
338 | - | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
338 | + | game:GetService("Debris"):AddItem(vp, .5) |
339 | - | local NEWWELD = IT(TYPE) |
339 | + | elseif Type == "Up" then |
340 | - | NEWWELD.Part0 = PART0 |
340 | + | local bodyVelocity = Create("BodyVelocity"){ |
341 | - | NEWWELD.Part1 = PART1 |
341 | + | velocity = Vector3.new(0, 20, 0), |
342 | - | NEWWELD.C0 = C0 |
342 | + | P = 5000, |
343 | - | NEWWELD.C1 = C1 |
343 | + | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
344 | - | NEWWELD.Parent = PARENT |
344 | + | Parent = hit, |
345 | - | return NEWWELD |
345 | + | } |
346 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
347 | elseif Type == "DarkUp" then | |
348 | - | local S = IT("Sound") |
348 | + | |
349 | - | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
349 | + | for i = 0, 1, 0.1 do |
350 | - | local NEWSOUND = nil |
350 | + | swait() |
351 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
352 | - | NEWSOUND = S:Clone() |
352 | + | |
353 | - | NEWSOUND.Parent = PARENT |
353 | + | |
354 | - | NEWSOUND.Volume = VOLUME |
354 | + | local bodyVelocity = Create("BodyVelocity"){ |
355 | - | NEWSOUND.Pitch = PITCH |
355 | + | velocity = Vector3.new(0, 20, 0), |
356 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
356 | + | P = 5000, |
357 | - | NEWSOUND:play() |
357 | + | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
358 | - | if DOESLOOP == true then |
358 | + | Parent = hit, |
359 | - | NEWSOUND.Looped = true |
359 | + | } |
360 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
361 | - | repeat wait(1) until NEWSOUND.Playing == false |
361 | + | elseif Type == "Snare" then |
362 | - | NEWSOUND:remove() |
362 | + | local bp = Create("BodyPosition"){ |
363 | P = 2000, | |
364 | D = 100, | |
365 | - | return NEWSOUND |
365 | + | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
366 | position = hit.Parent.Torso.Position, | |
367 | Parent = hit.Parent.Torso, | |
368 | - | function CFrameFromTopBack(at, top, back) |
368 | + | } |
369 | - | local right = top:Cross(back) |
369 | + | game:GetService("Debris"):AddItem(bp, 1) |
370 | - | 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) |
370 | + | elseif Type == "Freeze" then |
371 | local BodPos = Create("BodyPosition"){ | |
372 | P = 50000, | |
373 | - | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
373 | + | D = 1000, |
374 | - | function WACKYEFFECT(Table) |
374 | + | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
375 | - | local TYPE = (Table.EffectType or "Sphere") |
375 | + | position = hit.Parent.Torso.Position, |
376 | - | local SIZE = (Table.Size or VT(1,1,1)) |
376 | + | Parent = hit.Parent.Torso, |
377 | - | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
377 | + | } |
378 | - | local TRANSPARENCY = (Table.Transparency or 0) |
378 | + | local BodGy = Create("BodyGyro") { |
379 | - | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
379 | + | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , |
380 | - | local CFRAME = (Table.CFrame or Torso.CFrame) |
380 | + | P = 20e+003, |
381 | - | local MOVEDIRECTION = (Table.MoveToPos or nil) |
381 | + | Parent = hit.Parent.Torso, |
382 | - | local ROTATION1 = (Table.RotationX or 0) |
382 | + | cframe = hit.Parent.Torso.CFrame, |
383 | - | local ROTATION2 = (Table.RotationY or 0) |
383 | + | } |
384 | - | local ROTATION3 = (Table.RotationZ or 0) |
384 | + | hit.Parent.Torso.Anchored = true |
385 | - | local MATERIAL = (Table.Material or "Neon") |
385 | + | coroutine.resume(coroutine.create(function(Part) |
386 | - | local COLOR = (Table.Color or C3(1,1,1)) |
386 | + | swait(1.5) |
387 | - | local TIME = (Table.Time or 45) |
387 | + | Part.Anchored = false |
388 | - | local SOUNDID = (Table.SoundID or nil) |
388 | + | end), hit.Parent.Torso) |
389 | - | local SOUNDPITCH = (Table.SoundPitch or nil) |
389 | + | game:GetService("Debris"):AddItem(BodPos, 3) |
390 | - | local SOUNDVOLUME = (Table.SoundVolume or nil) |
390 | + | game:GetService("Debris"):AddItem(BodGy, 3) |
391 | end | |
392 | - | local PLAYSSOUND = false |
392 | + | local debounce = Create("BoolValue"){ |
393 | - | local SOUND = nil |
393 | + | Name = "DebounceHit", |
394 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
394 | + | Parent = hit.Parent, |
395 | - | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
395 | + | Value = true, |
396 | - | PLAYSSOUND = true |
396 | + | } |
397 | - | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
397 | + | game:GetService("Debris"):AddItem(debounce, Delay) |
398 | c = Create("ObjectValue"){ | |
399 | - | EFFECT.Color = COLOR |
399 | + | Name = "creator", |
400 | - | local MSH = nil |
400 | + | Value = Player, |
401 | - | if TYPE == "Sphere" then |
401 | + | Parent = h, |
402 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
402 | + | } |
403 | - | elseif TYPE == "Block" then |
403 | + | game:GetService("Debris"):AddItem(c, .5) |
404 | - | MSH = IT("BlockMesh",EFFECT) |
404 | + | |
405 | - | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
405 | + | |
406 | - | elseif TYPE == "Wave" then |
406 | + | ------------------------------------------------------- |
407 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) |
407 | + | --End Damage Function-- |
408 | - | elseif TYPE == "Ring" then |
408 | + | ------------------------------------------------------- |
409 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
409 | + | |
410 | - | elseif TYPE == "Slash" then |
410 | + | ------------------------------------------------------- |
411 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
411 | + | --Start Damage Function Customization-- |
412 | - | elseif TYPE == "Round Slash" then |
412 | + | ------------------------------------------------------- |
413 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
413 | + | function ShowDamage(Pos, Text, Time, Color) |
414 | - | elseif TYPE == "Swirl" then |
414 | + | local Rate = (1 / 30) |
415 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
415 | + | local Pos = (Pos or Vector3.new(0, 0, 0)) |
416 | - | elseif TYPE == "Skull" then |
416 | + | local Text = (Text or "") |
417 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
417 | + | local Time = (Time or 2) |
418 | - | elseif TYPE == "Crystal" then |
418 | + | local Color = (Color or Color3.new(1, 0, 1)) |
419 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
419 | + | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
420 | EffectPart.Anchored = true | |
421 | - | if MSH ~= nil then |
421 | + | local BillboardGui = Create("BillboardGui"){ |
422 | - | local MOVESPEED = nil |
422 | + | Size = UDim2.new(3, 0, 3, 0), |
423 | - | if MOVEDIRECTION ~= nil then |
423 | + | Adornee = EffectPart, |
424 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
424 | + | Parent = EffectPart, |
425 | } | |
426 | - | local GROWTH = SIZE - ENDSIZE |
426 | + | local TextLabel = Create("TextLabel"){ |
427 | - | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
427 | + | BackgroundTransparency = 1, |
428 | - | if TYPE == "Block" then |
428 | + | Size = UDim2.new(1, 0, 1, 0), |
429 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
429 | + | Text = Text, |
430 | - | else |
430 | + | Font = "Bodoni", |
431 | - | EFFECT.CFrame = CFRAME |
431 | + | TextColor3 = Color, |
432 | TextScaled = true, | |
433 | - | for LOOP = 1, TIME+1 do |
433 | + | TextStrokeColor3 = Color3.fromRGB(0,0,0), |
434 | - | Swait() |
434 | + | Parent = BillboardGui, |
435 | - | MSH.Scale = MSH.Scale - GROWTH/TIME |
435 | + | } |
436 | - | if TYPE == "Wave" then |
436 | + | game.Debris:AddItem(EffectPart, (Time)) |
437 | - | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
437 | + | EffectPart.Parent = game:GetService("Workspace") |
438 | delay(0, function() | |
439 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
439 | + | local Frames = (Time / Rate) |
440 | - | if TYPE == "Block" then |
440 | + | for Frame = 1, Frames do |
441 | - | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
441 | + | wait(Rate) |
442 | - | else |
442 | + | local Percent = (Frame / Frames) |
443 | - | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
443 | + | EffectPart.CFrame = CF(Pos) + Vector3.new(0, Percent, 0) |
444 | TextLabel.TextTransparency = Percent | |
445 | - | if MOVEDIRECTION ~= nil then |
445 | + | |
446 | - | local ORI = EFFECT.Orientation |
446 | + | if EffectPart and EffectPart.Parent then |
447 | - | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
447 | + | EffectPart:Destroy() |
448 | - | EFFECT.Orientation = ORI |
448 | + | |
449 | end) | |
450 | end | |
451 | - | EFFECT.Transparency = 1 |
451 | + | ------------------------------------------------------- |
452 | - | if PLAYSSOUND == false then |
452 | + | --End Damage Function Customization-- |
453 | - | EFFECT:remove() |
453 | + | ------------------------------------------------------- |
454 | - | else |
454 | + | |
455 | - | repeat Swait() until SOUND.Playing == false |
455 | + | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) |
456 | - | EFFECT:remove() |
456 | + | for _, c in pairs(workspace:children()) do |
457 | local hum = c:findFirstChild("Humanoid") | |
458 | if hum ~= nil then | |
459 | - | if PLAYSSOUND == false then |
459 | + | local head = c:findFirstChild("Head") |
460 | - | EFFECT:remove() |
460 | + | if head ~= nil then |
461 | - | else |
461 | + | local targ = head.Position - Part.Position |
462 | - | repeat Swait() until SOUND.Playing == false |
462 | + | local mag = targ.magnitude |
463 | - | EFFECT:remove() |
463 | + | if magni >= mag and c.Name ~= plr.Name then |
464 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
465 | end | |
466 | end | |
467 | end | |
468 | end | |
469 | - | function MakeForm(PART,TYPE) |
469 | + | |
470 | - | if TYPE == "Cyl" then |
470 | + | |
471 | - | local MSH = IT("CylinderMesh",PART) |
471 | + | |
472 | - | elseif TYPE == "Ball" then |
472 | + | CFuncs = { |
473 | - | local MSH = IT("SpecialMesh",PART) |
473 | + | Part = { |
474 | - | MSH.MeshType = "Sphere" |
474 | + | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
475 | - | elseif TYPE == "Wedge" then |
475 | + | local Part = Create("Part")({ |
476 | - | local MSH = IT("SpecialMesh",PART) |
476 | + | Parent = Parent, |
477 | - | MSH.MeshType = "Wedge" |
477 | + | Reflectance = Reflectance, |
478 | Transparency = Transparency, | |
479 | CanCollide = false, | |
480 | Locked = true, | |
481 | - | Debris = game:GetService("Debris") |
481 | + | BrickColor = BrickColor.new(tostring(BColor)), |
482 | Name = Name, | |
483 | - | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
483 | + | Size = Size, |
484 | - | local DIRECTION = CF(StartPos,EndPos).lookVector |
484 | + | Material = Material |
485 | - | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore) |
485 | + | }) |
486 | RemoveOutlines(Part) | |
487 | return Part | |
488 | - | local FIRECOLOR = C3(1,85/255,0) |
488 | + | |
489 | }, | |
490 | - | local Particle = IT("ParticleEmitter",nil) |
490 | + | Mesh = { |
491 | - | Particle.Enabled = false |
491 | + | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
492 | - | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.6),NumberSequenceKeypoint.new(1,1)}) |
492 | + | local Msh = Create(Mesh)({ |
493 | - | Particle.LightEmission = 0.5 |
493 | + | Parent = Part, |
494 | - | Particle.Rate = 500 |
494 | + | Offset = OffSet, |
495 | - | Particle.Rotation = NumberRange.new(-180, 180) |
495 | + | Scale = Scale |
496 | - | Particle.RotSpeed = NumberRange.new(-180, 180) |
496 | + | }) |
497 | - | Particle.Texture = "http://www.roblox.com/asset/?id=1460745664" |
497 | + | if Mesh == "SpecialMesh" then |
498 | - | Particle.Color = ColorSequence.new(FIRECOLOR) |
498 | + | Msh.MeshType = MeshType |
499 | Msh.MeshId = MeshId | |
500 | - | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) |
500 | + | |
501 | - | function ParticleEmitter(Table) |
501 | + | return Msh |
502 | - | local PRTCL = Particle:Clone() |
502 | + | |
503 | - | local Speed = Table.Speed or 5 |
503 | + | }, |
504 | - | local Drag = Table.Drag or 0 |
504 | + | Mesh = { |
505 | - | local Size1 = Table.Size1 or 1 |
505 | + | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
506 | - | local Size2 = Table.Size2 or 5 |
506 | + | local Msh = Create(Mesh)({ |
507 | - | local Lifetime1 = Table.Lifetime1 or 1 |
507 | + | Parent = Part, |
508 | - | local Lifetime2 = Table.Lifetime2 or 1.5 |
508 | + | Offset = OffSet, |
509 | - | local Parent = Table.Parent or Torso |
509 | + | Scale = Scale |
510 | - | local Emit = Table.Emit or 100 |
510 | + | }) |
511 | - | local Offset = Table.Offset or 360 |
511 | + | if Mesh == "SpecialMesh" then |
512 | - | local Accel = Table.Accel or VT(0,0,0) |
512 | + | Msh.MeshType = MeshType |
513 | - | local Enabled = Table.Enabled or false |
513 | + | Msh.MeshId = MeshId |
514 | - | PRTCL.Parent = Parent |
514 | + | |
515 | - | PRTCL.Size = NumberSequence.new(Size1,Size2) |
515 | + | return Msh |
516 | - | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) |
516 | + | |
517 | - | PRTCL.Speed = NumberRange.new(Speed) |
517 | + | }, |
518 | - | PRTCL.VelocitySpread = Offset |
518 | + | Weld = { |
519 | - | PRTCL.Drag = Drag |
519 | + | Create = function(Parent, Part0, Part1, C0, C1) |
520 | - | PRTCL.Acceleration = Accel |
520 | + | local Weld = Create("Weld")({ |
521 | - | if Enabled == false then |
521 | + | Parent = Parent, |
522 | - | PRTCL:Emit(Emit) |
522 | + | Part0 = Part0, |
523 | - | Debris:AddItem(PRTCL,Lifetime2) |
523 | + | Part1 = Part1, |
524 | C0 = C0, | |
525 | - | PRTCL.Enabled = true |
525 | + | C1 = C1 |
526 | }) | |
527 | - | return PRTCL |
527 | + | return Weld |
528 | end | |
529 | }, | |
530 | - | function Pheonix(Size) |
530 | + | Sound = { |
531 | - | local PHEONIX = IT("Model",nil) |
531 | + | Create = function(id, par, vol, pit) |
532 | - | PHEONIX.Name = "PHEONIX" |
532 | + | |
533 | - | local BASEPART = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",VT(0,0,0),false) |
533 | + | local S = Create("Sound")({ |
534 | - | CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, BASEPART, CF(0 , 4*Size, 3*Size), CF(0, 0, 0)) |
534 | + | Volume = vol, |
535 | - | CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0)) |
535 | + | Pitch = pit or 1, |
536 | - | local RWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Right Wing", VT(0,0,0),false) |
536 | + | SoundId = id, |
537 | - | local RWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, RWING, CF(2*Size , 2*Size, 0.75*Size), CF(-2*Size, 0, 0)) |
537 | + | Parent = par or workspace |
538 | - | local LWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Left Wing", VT(0,0,0),false) |
538 | + | }) |
539 | - | local LWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, LWING, CF(-2*Size , 2*Size, 0.75*Size), CF(2*Size, 0, 0)) |
539 | + | wait() |
540 | - | CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0)) |
540 | + | S:play() |
541 | - | CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0)) |
541 | + | game:GetService("Debris"):AddItem(S, 6) |
542 | - | for _, c in pairs(PHEONIX:GetChildren()) do |
542 | + | |
543 | - | if c.ClassName == "Part" then |
543 | + | |
544 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
544 | + | }, |
545 | - | c.Color = FIRECOLOR |
545 | + | ParticleEmitter = { |
546 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
547 | local fp = Create("ParticleEmitter")({ | |
548 | - | PHEONIX.Parent = Weapon |
548 | + | Parent = Parent, |
549 | - | return PHEONIX,BASEPART,RWING,LWING,RWELD,LWELD |
549 | + | Color = ColorSequence.new(Color1, Color2), |
550 | LightEmission = LightEmission, | |
551 | Size = Size, | |
552 | - | function turnto(position) |
552 | + | Texture = Texture, |
553 | - | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) |
553 | + | Transparency = Transparency, |
554 | ZOffset = ZOffset, | |
555 | Acceleration = Accel, | |
556 | - | function AddChildrenToTable(FROM,PARENT,DIST,TABLE) |
556 | + | Drag = Drag, |
557 | - | for _, c in pairs(PARENT:GetDescendants()) do |
557 | + | LockedToPart = LockedToPart, |
558 | - | if c.ClassName == "Model" then |
558 | + | VelocityInheritance = VelocityInheritance, |
559 | - | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then |
559 | + | EmissionDirection = EmissionDirection, |
560 | - | local HUMANOID = c:FindFirstChildOfClass("Humanoid") |
560 | + | Enabled = Enabled, |
561 | - | local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) |
561 | + | Lifetime = LifeTime, |
562 | - | if (TORSO.Position - FROM).Magnitude < DIST then |
562 | + | Rate = Rate, |
563 | - | table.insert(TABLE,c) |
563 | + | Rotation = Rotation, |
564 | RotSpeed = RotSpeed, | |
565 | Speed = Speed, | |
566 | VelocitySpread = VelocitySpread | |
567 | }) | |
568 | return fp | |
569 | end | |
570 | - | --//=================================\\ |
570 | + | } |
571 | - | --|| WEAPON CREATION |
571 | + | } |
572 | - | --\\=================================// |
572 | + | function RemoveOutlines(part) |
573 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
574 | - | Humanoid.DisplayDistanceType = "None" |
574 | + | |
575 | - | local naeeym2 = IT("BillboardGui",Character) |
575 | + | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
576 | local Part = Create("Part")({ | |
577 | - | naeeym2.Size = UDim2.new(2,35,1,15) |
577 | + | formFactor = FormFactor, |
578 | - | naeeym2.StudsOffset = Vector3.new(0,1.5,0) |
578 | + | Parent = Parent, |
579 | - | naeeym2.MaxDistance = 75 |
579 | + | Reflectance = Reflectance, |
580 | - | naeeym2.Adornee = Character.Head |
580 | + | Transparency = Transparency, |
581 | CanCollide = false, | |
582 | - | naeeym2.PlayerToHideFrom = Player |
582 | + | Locked = true, |
583 | - | local tecks2 = IT("TextLabel",naeeym2) |
583 | + | BrickColor = BrickColor.new(tostring(BColor)), |
584 | Name = Name, | |
585 | Size = Size, | |
586 | Material = Material | |
587 | - | tecks2.Text = "The Pharaoh" |
587 | + | }) |
588 | - | tecks2.Font = "Bodoni" |
588 | + | RemoveOutlines(Part) |
589 | return Part | |
590 | end | |
591 | - | tecks2.TextColor3 = C3(0,0,0) |
591 | + | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
592 | - | tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255) |
592 | + | local Msh = Create(Mesh)({ |
593 | Parent = Part, | |
594 | Offset = OffSet, | |
595 | - | local top = Instance.new("Shirt") |
595 | + | Scale = Scale |
596 | - | top.ShirtTemplate = "rbxassetid://182802864" |
596 | + | }) |
597 | - | top.Parent = Character |
597 | + | if Mesh == "SpecialMesh" then |
598 | - | top.Name = "Cloth" |
598 | + | Msh.MeshType = MeshType |
599 | - | local bottom = Instance.new("Pants") |
599 | + | Msh.MeshId = MeshId |
600 | - | bottom.PantsTemplate = "rbxassetid://182802941" |
600 | + | |
601 | - | bottom.Parent = Character |
601 | + | return Msh |
602 | - | bottom.Name = "Cloth" |
602 | + | |
603 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
604 | - | --Head.Transparency = 1 |
604 | + | local Weld = Create("Weld")({ |
605 | - | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) |
605 | + | Parent = Parent, |
606 | - | PRT.Color = C3(0,0,0) |
606 | + | Part0 = Part0, |
607 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.1,0.05), CF(0, 0, 0)) |
607 | + | Part1 = Part1, |
608 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "10661327", "10661334", VT(1,1,1)*1.1, VT(0,0,0)) |
608 | + | C0 = C0, |
609 | - | CreateMesh("SpecialMesh", Head, "FileMesh", "16150909", "16150889", VT(1,1,1), VT(0,0,0)) |
609 | + | C1 = C1 |
610 | - | local Handle = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0,6,0),false) |
610 | + | }) |
611 | - | MakeForm(Handle,"Cyl") |
611 | + | return Weld |
612 | - | local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) |
612 | + | |
613 | - | local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false) |
613 | + | |
614 | - | MakeForm(Part,"Cyl") |
614 | + | |
615 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,Handle.Size.Y/2,0), CF(0, 0, 0)) |
615 | + | ------------------------------------------------------- |
616 | - | local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false) |
616 | + | --Start Effect Function-- |
617 | - | MakeForm(Part,"Cyl") |
617 | + | ------------------------------------------------------- |
618 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-Handle.Size.Y/2-1.3,0) * ANGLES(RAD(0), RAD(150), RAD(0)), CF(0, 0, 0)) |
618 | + | EffectModel = Instance.new("Model", char) |
619 | - | CreateMesh("SpecialMesh", Part, "FileMesh", "19106648", "19106633", VT(1,1,1)*1.1, VT(0,0,0)) |
619 | + | Effects = { |
620 | - | local Eye = CreatePart(3, Weapon, "Concrete", 0, 1, "Cork", "Eye", VT(0,0,0),false) |
620 | + | Block = { |
621 | - | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Eye, CF(0,Part.Size.Y/2+0.17,-0.05), CF(0, 0, 0)) |
621 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
622 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
623 | - | for _, c in pairs(Weapon:GetChildren()) do |
623 | + | prt.Anchored = true |
624 | - | if c.ClassName == "Part" then |
624 | + | prt.CFrame = cframe |
625 | - | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
625 | + | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
626 | game:GetService("Debris"):AddItem(prt, 10) | |
627 | if Type == 1 or Type == nil then | |
628 | table.insert(Effects, { | |
629 | - | local SKILLTEXTCOLOR = C3(188/255, 155/255, 93/255) |
629 | + | prt, |
630 | - | local SKILLFONT = "Bodoni" |
630 | + | "Block1", |
631 | - | local SKILLTEXTSIZE = 6 |
631 | + | delay, |
632 | x3, | |
633 | - | Weapon.Parent = Character |
633 | + | y3, |
634 | z3, | |
635 | - | Humanoid.Died:connect(function() |
635 | + | msh |
636 | - | ATTACK = true |
636 | + | }) |
637 | elseif Type == 2 then | |
638 | table.insert(Effects, { | |
639 | - | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
639 | + | prt, |
640 | - | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
640 | + | "Block2", |
641 | - | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") |
641 | + | delay, |
642 | - | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") |
642 | + | x3, |
643 | - | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") |
643 | + | y3, |
644 | z3, | |
645 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Summon", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") |
645 | + | msh |
646 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") |
646 | + | }) |
647 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Pheonix Glare", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") |
647 | + | else |
648 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shade Zone", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") |
648 | + | table.insert(Effects, { |
649 | - | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pharaoh's Throne", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") |
649 | + | prt, |
650 | "Block3", | |
651 | - | --//=================================\\ |
651 | + | delay, |
652 | - | --|| DAMAGING |
652 | + | x3, |
653 | - | --\\=================================// |
653 | + | y3, |
654 | z3, | |
655 | - | function ApplyDamage(Humanoid,Damage,TorsoPart) |
655 | + | msh |
656 | - | local defence = Instance.new("BoolValue",Humanoid.Parent) |
656 | + | }) |
657 | - | defence.Name = ("HitBy"..Player.Name) |
657 | + | end |
658 | - | game:GetService("Debris"):AddItem(defence, 0.001) |
658 | + | end |
659 | - | Damage = Damage * DAMAGEMULTIPLIER |
659 | + | }, |
660 | - | if Humanoid.Health ~= 0 then |
660 | + | Sphere = { |
661 | - | local CritChance = MRANDOM(1,100) |
661 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
662 | - | if Damage > Humanoid.Health then |
662 | + | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
663 | - | Damage = math.ceil(Humanoid.Health) |
663 | + | prt.Anchored = true |
664 | - | if Damage == 0 then |
664 | + | prt.CFrame = cframe |
665 | - | Damage = 0.1 |
665 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
666 | game:GetService("Debris"):AddItem(prt, 10) | |
667 | table.insert(Effects, { | |
668 | - | Humanoid.Health = Humanoid.Health - Damage |
668 | + | prt, |
669 | "Cylinder", | |
670 | delay, | |
671 | x3, | |
672 | - | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) |
672 | + | y3, |
673 | - | local CHILDREN = workspace:GetDescendants() |
673 | + | z3, |
674 | - | for index, CHILD in pairs(CHILDREN) do |
674 | + | msh |
675 | - | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then |
675 | + | }) |
676 | - | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
676 | + | end |
677 | - | if HUM then |
677 | + | }, |
678 | - | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
678 | + | Cylinder = { |
679 | - | if TORSO then |
679 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
680 | - | if (TORSO.Position - POSITION).Magnitude <= RANGE then |
680 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
681 | - | if INSTAKILL == true then |
681 | + | prt.Anchored = true |
682 | - | CHILD:BreakJoints() |
682 | + | prt.CFrame = cframe |
683 | - | else |
683 | + | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
684 | - | local DMG = MRANDOM(MINDMG,MAXDMG) |
684 | + | game:GetService("Debris"):AddItem(prt, 10) |
685 | - | ApplyDamage(HUM,DMG,TORSO) |
685 | + | table.insert(Effects, { |
686 | prt, | |
687 | - | if FLING > 0 then |
687 | + | "Cylinder", |
688 | - | for _, c in pairs(CHILD:GetChildren()) do |
688 | + | delay, |
689 | - | if c:IsA("BasePart") then |
689 | + | x3, |
690 | - | local bv = Instance.new("BodyVelocity") |
690 | + | y3, |
691 | - | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) |
691 | + | z3, |
692 | - | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
692 | + | msh |
693 | - | bv.Parent = c |
693 | + | }) |
694 | - | Debris:AddItem(bv,0.05) |
694 | + | end |
695 | }, | |
696 | Wave = { | |
697 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
698 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
699 | prt.Anchored = true | |
700 | prt.CFrame = cframe | |
701 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
702 | game:GetService("Debris"):AddItem(prt, 10) | |
703 | table.insert(Effects, { | |
704 | prt, | |
705 | - | --//=================================\\ |
705 | + | "Cylinder", |
706 | - | --|| ATTACK FUNCTIONS AND STUFF |
706 | + | delay, |
707 | - | --\\=================================// |
707 | + | x3 / 60, |
708 | y3 / 60, | |
709 | - | function Raise() |
709 | + | z3 / 60, |
710 | - | PLAYANIMS = false |
710 | + | msh |
711 | - | for i=0, 0.3, 0.1 / Animation_Speed do |
711 | + | }) |
712 | - | Swait() |
712 | + | end |
713 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed) |
713 | + | }, |
714 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
714 | + | Ring = { |
715 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
715 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
716 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
716 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
717 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
717 | + | prt.Anchored = true |
718 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
718 | + | prt.CFrame = cframe |
719 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
719 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
720 | game:GetService("Debris"):AddItem(prt, 10) | |
721 | - | Rooted = true |
721 | + | table.insert(Effects, { |
722 | - | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5}) |
722 | + | prt, |
723 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
723 | + | "Cylinder", |
724 | - | WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
724 | + | delay, |
725 | - | for i=0, 1, 0.1 / Animation_Speed do |
725 | + | x3, |
726 | - | Swait() |
726 | + | y3, |
727 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed) |
727 | + | z3, |
728 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
728 | + | msh |
729 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
729 | + | }) |
730 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
730 | + | end |
731 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
731 | + | }, |
732 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
732 | + | Break = { |
733 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
733 | + | Create = function(brickcolor, cframe, x1, y1, z1) |
734 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
735 | - | Rooted = false |
735 | + | prt.Anchored = true |
736 | - | PLAYANIMS = true |
736 | + | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(Mrandom(-50, 50), Mrandom(-50, 50), Mrandom(-50, 50)) |
737 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
738 | local num = Mrandom(10, 50) / 1000 | |
739 | - | function Attack() |
739 | + | game:GetService("Debris"):AddItem(prt, 10) |
740 | - | ATTACK = true |
740 | + | table.insert(Effects, { |
741 | - | Raise() |
741 | + | prt, |
742 | "Shatter", | |
743 | num, | |
744 | - | ATTACK = false |
744 | + | prt.CFrame, |
745 | Mrandom() - Mrandom(), | |
746 | 0, | |
747 | - | function Summon() |
747 | + | Mrandom(50, 100) / 100 |
748 | - | ATTACK = true |
748 | + | }) |
749 | - | Raise() |
749 | + | end |
750 | }, | |
751 | - | local MINIONS = {} |
751 | + | Spiral = { |
752 | - | local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}} |
752 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
753 | - | local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}} |
753 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
754 | - | local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}} |
754 | + | prt.Anchored = true |
755 | - | local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}} |
755 | + | prt.CFrame = cframe |
756 | - | local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}} |
756 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
757 | - | local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}} |
757 | + | game:GetService("Debris"):AddItem(prt, 10) |
758 | - | for i = 1, 3 do |
758 | + | table.insert(Effects, { |
759 | - | Swait() |
759 | + | prt, |
760 | - | local MINION = CLONE:Clone() |
760 | + | "Cylinder", |
761 | - | ANIMATE:Clone().Parent = MINION |
761 | + | delay, |
762 | - | MINION.Name = "Mummy" |
762 | + | x3, |
763 | - | MINION.Parent = Effects |
763 | + | y3, |
764 | - | MINION.Head:ClearAllChildren() |
764 | + | z3, |
765 | - | MINION.HumanoidRootPart.Anchored = true |
765 | + | msh |
766 | - | MINION.HumanoidRootPart.CFrame = RootPart.CFrame*CF(MRANDOM(-15,15),-10,MRANDOM(-15,15)) |
766 | + | }) |
767 | - | local HITFLOOR = Raycast(MINION.HumanoidRootPart.Position+VT(0,10,0), (CF(MINION.HumanoidRootPart.Position, MINION.HumanoidRootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
767 | + | end |
768 | - | if HITFLOOR then |
768 | + | }, |
769 | - | MINION.HumanoidRootPart.Color = HITFLOOR.Color |
769 | + | Push = { |
770 | - | WACKYEFFECT({Time = 25, EffectType = "Crystal", Size = VT(1,0,1), Size2 = VT(0,100,0), Transparency = 1, Transparency2 = 0, CFrame = CF(MINION.HumanoidRootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2}) |
770 | + | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
771 | - | local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)] |
771 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
772 | - | CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0)) |
772 | + | prt.Anchored = true |
773 | - | --------- |
773 | + | prt.CFrame = cframe |
774 | - | local PACKAGE = IT("CharacterMesh",MINION) |
774 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
775 | - | PACKAGE.BodyPart = "RightArm" |
775 | + | game:GetService("Debris"):AddItem(prt, 10) |
776 | - | local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)] |
776 | + | table.insert(Effects, { |
777 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
777 | + | prt, |
778 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
778 | + | "Cylinder", |
779 | - | --------- |
779 | + | delay, |
780 | - | local PACKAGE = IT("CharacterMesh",MINION) |
780 | + | x3, |
781 | - | PACKAGE.BodyPart = "LeftArm" |
781 | + | y3, |
782 | - | local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)] |
782 | + | z3, |
783 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
783 | + | msh |
784 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
784 | + | }) |
785 | - | --------- |
785 | + | end |
786 | - | local PACKAGE = IT("CharacterMesh",MINION) |
786 | + | } |
787 | - | PACKAGE.BodyPart = "RightLeg" |
787 | + | } |
788 | - | local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)] |
788 | + | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) |
789 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
789 | + | local fp = IT("Part") |
790 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
790 | + | fp.formFactor = formfactor |
791 | - | --------- |
791 | + | fp.Parent = parent |
792 | - | local PACKAGE = IT("CharacterMesh",MINION) |
792 | + | fp.Reflectance = reflectance |
793 | - | PACKAGE.BodyPart = "LeftLeg" |
793 | + | fp.Transparency = transparency |
794 | - | local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)] |
794 | + | fp.CanCollide = false |
795 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
795 | + | fp.Locked = true |
796 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
796 | + | fp.BrickColor = brickcolor |
797 | - | --------- |
797 | + | fp.Name = name |
798 | - | local PACKAGE = IT("CharacterMesh",MINION) |
798 | + | fp.Size = size |
799 | - | PACKAGE.BodyPart = "Torso" |
799 | + | fp.Position = tors.Position |
800 | - | local PACKAGESTUFF = TORSOS[MRANDOM(1,2)] |
800 | + | RemoveOutlines(fp) |
801 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
801 | + | fp.Material = "SmoothPlastic" |
802 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
802 | + | fp:BreakJoints() |
803 | - | --------- |
803 | + | return fp |
804 | - | table.insert(MINIONS,MINION) |
804 | + | end |
805 | - | else |
805 | + | |
806 | - | MINION:remove() |
806 | + | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
807 | local mesh = IT(Mesh) | |
808 | mesh.Parent = part | |
809 | - | for e = 1, 100 do |
809 | + | if Mesh == "SpecialMesh" then |
810 | - | Swait() |
810 | + | mesh.MeshType = meshtype |
811 | - | for i = 1, #MINIONS do |
811 | + | if meshid ~= "nil" then |
812 | - | if MINIONS[i] ~= nil then |
812 | + | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid |
813 | - | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(1,2,1), Size2 = VT(8,0,8), Transparency = 0.5, Transparency2 = 1, CFrame = MINIONS[i].HumanoidRootPart.CFrame*CF(0,7.5-(e*0.1),0) * ANGLES(RAD(0), RAD(i*2), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MINIONS[i].HumanoidRootPart.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
813 | + | |
814 | - | MINIONS[i].HumanoidRootPart.CFrame = MINIONS[i].HumanoidRootPart.CFrame * CF(0,0.1,0) |
814 | + | |
815 | mesh.Offset = offset | |
816 | mesh.Scale = scale | |
817 | return mesh | |
818 | - | for i = 1, #MINIONS do |
818 | + | |
819 | - | if MINIONS[i] ~= nil then |
819 | + | |
820 | - | MINIONS[i].HumanoidRootPart.Anchored = false |
820 | + | function Magic(bonuspeed, type, pos, scale, value, color, MType) |
821 | local type = type | |
822 | local rng = Instance.new("Part", char) | |
823 | - | for i = 1, #MINIONS do |
823 | + | rng.Anchored = true |
824 | rng.BrickColor = color | |
825 | - | local SHOUTS = {1158091961,1158091668,1158092150} |
825 | + | rng.CanCollide = false |
826 | - | local TORSO = MINIONS[i].Torso |
826 | + | rng.FormFactor = 3 |
827 | - | local MUMMY = MINIONS[i] |
827 | + | rng.Name = "Ring" |
828 | - | local HUMAN = MINIONS[i].Humanoid |
828 | + | rng.Material = "Neon" |
829 | - | HUMAN.MaxHealth = MRANDOM(20,65) |
829 | + | rng.Size = Vector3.new(1, 1, 1) |
830 | - | HUMAN.Health = HUMAN.MaxHealth |
830 | + | rng.Transparency = 0 |
831 | - | HUMAN.Died:connect(function() |
831 | + | rng.TopSurface = 0 |
832 | - | CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) |
832 | + | rng.BottomSurface = 0 |
833 | - | end) |
833 | + | rng.CFrame = pos |
834 | - | local findNearestTorso = function(POS) |
834 | + | local rngm = Instance.new("SpecialMesh", rng) |
835 | - | local list = game.Workspace:GetDescendants() |
835 | + | rngm.MeshType = MType |
836 | - | local torso = nil |
836 | + | rngm.Scale = scale |
837 | - | local dist = 10000 |
837 | + | local scaler2 = 1 |
838 | - | local temp = nil |
838 | + | if type == "Add" then |
839 | - | local human = nil |
839 | + | scaler2 = 1 * value |
840 | - | local temp2 = nil |
840 | + | elseif type == "Divide" then |
841 | - | for x = 1, #list do |
841 | + | scaler2 = 1 / value |
842 | - | temp2 = list[x] |
842 | + | |
843 | - | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then |
843 | + | |
844 | - | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") |
844 | + | for i = 0, 10 / bonuspeed, 0.1 do |
845 | - | human = temp2:findFirstChild("Humanoid") |
845 | + | swait() |
846 | - | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then |
846 | + | if type == "Add" then |
847 | - | if (temp.Position - POS).magnitude < dist then |
847 | + | scaler2 = scaler2 - 0.01 * value / bonuspeed |
848 | - | torso = temp |
848 | + | elseif type == "Divide" then |
849 | - | dist = (temp.Position - POS).magnitude |
849 | + | scaler2 = scaler2 - 0.01 / value * bonuspeed |
850 | end | |
851 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
852 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
853 | end | |
854 | - | return torso, dist |
854 | + | rng:Destroy() |
855 | end)) | |
856 | - | for i = 1, 60 do |
856 | + | |
857 | - | if HUMAN.Health == 0 then |
857 | + | |
858 | - | break |
858 | + | function Eviscerate(dude) |
859 | if dude.Name ~= char then | |
860 | - | wait(1) |
860 | + | local bgf = IT("BodyGyro", dude.Head) |
861 | - | local target,dist= findNearestTorso(TORSO.Position) |
861 | + | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) |
862 | - | if target then |
862 | + | local val = IT("BoolValue", dude) |
863 | - | HUMAN:MoveTo(target.Position) |
863 | + | val.Name = "IsHit" |
864 | - | if dist < 5 then |
864 | + | local ds = coroutine.wrap(function() |
865 | - | local ANIM = HUMAN:LoadAnimation(ATANIM) |
865 | + | dude:WaitForChild("Head"):BreakJoints() |
866 | - | ANIM:Play() |
866 | + | wait(0.5) |
867 | - | CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) |
867 | + | target = nil |
868 | - | ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false) |
868 | + | |
869 | for i, v in pairs(dude:GetChildren()) do | |
870 | if v:IsA("Accessory") then | |
871 | v:Destroy() | |
872 | - | TORSO.Parent:BreakJoints() |
872 | + | |
873 | - | Debris:AddItem(MUMMY,4) |
873 | + | if v:IsA("Humanoid") then |
874 | v:Destroy() | |
875 | - | end |
875 | + | |
876 | if v:IsA("CharacterMesh") then | |
877 | - | ATTACK = false |
877 | + | v:Destroy() |
878 | end | |
879 | if v:IsA("Model") then | |
880 | - | function Warp(Pos) |
880 | + | v:Destroy() |
881 | - | ATTACK = true |
881 | + | |
882 | - | Raise() |
882 | + | if v:IsA("Part") or v:IsA("MeshPart") then |
883 | - | PLAYANIMS = false |
883 | + | for x, o in pairs(v:GetChildren()) do |
884 | - | local SPOT = Pos |
884 | + | if o:IsA("Decal") then |
885 | - | if Pos == "Mouse" then |
885 | + | o:Destroy() |
886 | - | SPOT = Mouse.Hit.p |
886 | + | |
887 | end | |
888 | - | local PLAYPOS = RootPart.Position |
888 | + | coroutine.resume(coroutine.create(function() |
889 | - | Rooted = true |
889 | + | v.Material = "Neon" |
890 | v.CanCollide = false | |
891 | - | repeat |
891 | + | local PartEmmit1 = IT("ParticleEmitter", v) |
892 | - | Swait() |
892 | + | PartEmmit1.LightEmission = 1 |
893 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed) |
893 | + | PartEmmit1.Texture = "rbxassetid://243660373" |
894 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
894 | + | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
895 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
895 | + | PartEmmit1.Rate = 75 |
896 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
896 | + | PartEmmit1.Lifetime = NumberRange.new(1) |
897 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
897 | + | PartEmmit1.Size = NumberSequence.new({ |
898 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
898 | + | NumberSequenceKeypoint.new(0, 0.75, 0), |
899 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
899 | + | NumberSequenceKeypoint.new(1, 0, 0) |
900 | - | until ATTACK == false |
900 | + | }) |
901 | - | PLAYANIMS = true |
901 | + | PartEmmit1.Transparency = NumberSequence.new({ |
902 | NumberSequenceKeypoint.new(0, 0, 0), | |
903 | - | for i = 1, 10 do |
903 | + | NumberSequenceKeypoint.new(1, 1, 0) |
904 | - | for _, c in pairs(Weapon:GetChildren()) do |
904 | + | }) |
905 | - | if c.ClassName == "Part" then |
905 | + | PartEmmit1.Speed = NumberRange.new(0, 0) |
906 | - | c.Transparency = c.Transparency + 1/10 |
906 | + | PartEmmit1.VelocitySpread = 30000 |
907 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
908 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
909 | - | for _, c in pairs(Character:GetChildren()) do |
909 | + | local BodPoss = IT("BodyPosition", v) |
910 | - | if c.ClassName == "Part" and c ~= RootPart then |
910 | + | BodPoss.P = 3000 |
911 | - | c.Transparency = c.Transparency + 1/10 |
911 | + | BodPoss.D = 1000 |
912 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
913 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
914 | - | tecks2.TextTransparency = tecks2.TextTransparency + 1/10 |
914 | + | v.Color = maincolor.Color |
915 | - | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 1/10 |
915 | + | coroutine.resume(coroutine.create(function() |
916 | - | WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(1,1,1)*25, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2}) |
916 | + | for i = 0, 49 do |
917 | - | wait(0.1) |
917 | + | swait(1) |
918 | v.Transparency = v.Transparency + 0.08 | |
919 | - | CreateSound(743521450, Torso, 5, 0.5, false) |
919 | + | |
920 | - | RootPart.CFrame = CF(SPOT+VT(0,15,0),PLAYPOS) |
920 | + | wait(0.5) |
921 | - | UNANCHOR = false |
921 | + | PartEmmit1.Enabled = false |
922 | - | RootPart.Anchored = true |
922 | + | wait(3) |
923 | - | for i = 1, 10 do |
923 | + | v:Destroy() |
924 | - | wait(0.04) |
924 | + | dude:Destroy() |
925 | - | WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 1.5, SoundVolume = 2}) |
925 | + | end)) |
926 | - | for _, c in pairs(Weapon:GetChildren()) do |
926 | + | end)) |
927 | - | if c.ClassName == "Part" then |
927 | + | |
928 | - | c.Transparency = c.Transparency - 1/10 |
928 | + | |
929 | end)) | |
930 | end) | |
931 | - | for _, c in pairs(Character:GetChildren()) do |
931 | + | ds() |
932 | - | if c.ClassName == "Part" and c ~= RootPart then |
932 | + | |
933 | - | c.Transparency = c.Transparency - 1/10 |
933 | + | |
934 | ||
935 | function FindNearestHead(Position, Distance, SinglePlayer) | |
936 | - | tecks2.TextTransparency = tecks2.TextTransparency - 1/10 |
936 | + | if SinglePlayer then |
937 | - | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency - 1/10 |
937 | + | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude |
938 | end | |
939 | - | UNANCHOR = true |
939 | + | local List = {} |
940 | - | RootPart.Anchored = false |
940 | + | for i, v in pairs(workspace:GetChildren()) do |
941 | - | Rooted = false |
941 | + | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then |
942 | - | ATTACK = false |
942 | + | table.insert(List, v) |
943 | end | |
944 | end | |
945 | - | function PheonixGlare() |
945 | + | return List |
946 | - | ATTACK = true |
946 | + | |
947 | - | Rooted = true |
947 | + | |
948 | - | local BURNINGBODIES = {} |
948 | + | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) |
949 | - | local SIZE = 2 |
949 | + | local type = type |
950 | - | if Humanoid.Sit == false then |
950 | + | local rng = Instance.new("Part", char) |
951 | - | Raise() |
951 | + | rng.Anchored = true |
952 | rng.BrickColor = color | |
953 | - | PLAYANIMS = false |
953 | + | rng.CanCollide = false |
954 | - | SIZE = 9 |
954 | + | rng.FormFactor = 3 |
955 | - | for i=0, 0.3, 0.1 / Animation_Speed do |
955 | + | rng.Name = "Ring" |
956 | - | Swait() |
956 | + | rng.Material = "Neon" |
957 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed) |
957 | + | rng.Size = Vector3.new(1, 1, 1) |
958 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
958 | + | rng.Transparency = 0 |
959 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
959 | + | rng.TopSurface = 0 |
960 | rng.BottomSurface = 0 | |
961 | - | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5}) |
961 | + | rng.CFrame = pos |
962 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
962 | + | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos |
963 | - | WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
963 | + | local rngm = Instance.new("SpecialMesh", rng) |
964 | - | for i=0, 1, 0.1 / Animation_Speed do |
964 | + | rngm.MeshType = MType |
965 | - | Swait() |
965 | + | rngm.Scale = Vector3.new(x1, y1, z1) |
966 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed) |
966 | + | local scaler2 = 1 |
967 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
967 | + | local speeder = FastSpeed |
968 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
968 | + | if type == "Add" then |
969 | scaler2 = 1 * value | |
970 | - | PLAYANIMS = true |
970 | + | elseif type == "Divide" then |
971 | scaler2 = 1 / value | |
972 | - | Rooted = true |
972 | + | |
973 | - | local PHEONIX,WBODY,WRWING,WLWING,RWELD2,LWELD2 = Pheonix(SIZE) |
973 | + | |
974 | - | for i=1, 20 do |
974 | + | for i = 0, 10 / bonuspeed, 0.1 do |
975 | - | Swait() |
975 | + | swait() |
976 | - | RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.1 / Animation_Speed) |
976 | + | if type == "Add" then |
977 | - | LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.1 / Animation_Speed) |
977 | + | scaler2 = scaler2 - 0.01 * value / bonuspeed |
978 | elseif type == "Divide" then | |
979 | - | for i=1, 65 do |
979 | + | scaler2 = scaler2 - 0.01 / value * bonuspeed |
980 | - | Swait() |
980 | + | |
981 | - | RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 0.1 / Animation_Speed) |
981 | + | speeder = speeder - 0.01 * FastSpeed * bonuspeed |
982 | - | LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 0.1 / Animation_Speed) |
982 | + | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed |
983 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
984 | - | for i = 1, 5 do |
984 | + | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) |
985 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0.1,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
985 | + | |
986 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(45,45,45)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
986 | + | rng:Destroy() |
987 | end)) | |
988 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(200,200,200)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = 462676772, SoundPitch = 1.2, SoundVolume = 10}) |
988 | + | |
989 | - | AddChildrenToTable(WBODY.Position,workspace,50*(SIZE/2),BURNINGBODIES) |
989 | + | |
990 | - | ApplyAoE(WBODY.Position,50*(SIZE/2),0,0,130,false) |
990 | + | function SoulSteal(dude) |
991 | - | for i=1, 15 do |
991 | + | if dude.Name ~= char then |
992 | - | Swait() |
992 | + | local bgf = IT("BodyGyro", dude.Head) |
993 | - | RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 1 / Animation_Speed) |
993 | + | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) |
994 | - | LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 1 / Animation_Speed) |
994 | + | local val = IT("BoolValue", dude) |
995 | val.Name = "IsHit" | |
996 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
997 | - | wait(1) |
997 | + | local soulst = coroutine.wrap(function() |
998 | - | for i = 1, 150 do |
998 | + | local soul = Instance.new("Part",dude) |
999 | - | for i = 1, #BURNINGBODIES do |
999 | + | soul.Size = Vector3.new(1,1,1) |
1000 | - | if BURNINGBODIES[i] ~= nil then |
1000 | + | soul.CanCollide = false |
1001 | - | if BURNINGBODIES[i].Name ~= "Mummy" then |
1001 | + | soul.Anchored = false |
1002 | - | local HUM = BURNINGBODIES[i]:FindFirstChildOfClass("Humanoid") |
1002 | + | soul.Position = torso.Position |
1003 | - | if HUM then |
1003 | + | soul.Transparency = 1 |
1004 | - | if HUM.Health > 0 then |
1004 | + | local PartEmmit1 = IT("ParticleEmitter", soul) |
1005 | - | for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do |
1005 | + | PartEmmit1.LightEmission = 1 |
1006 | - | if c:IsA("BasePart") and c.Transparency < 1 then |
1006 | + | PartEmmit1.Texture = "rbxassetid://243660373" |
1007 | - | ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 4, Offset = 360, Enabled = false}) |
1007 | + | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
1008 | - | end |
1008 | + | PartEmmit1.Rate = 75 |
1009 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1010 | - | HUM.Health = HUM.Health - 0.5 |
1010 | + | PartEmmit1.Size = NumberSequence.new({ |
1011 | - | else |
1011 | + | NumberSequenceKeypoint.new(0, 1, 0), |
1012 | - | table.remove(BURNINGBODIES,i) |
1012 | + | NumberSequenceKeypoint.new(1, 0, 0) |
1013 | }) | |
1014 | - | else |
1014 | + | PartEmmit1.Transparency = NumberSequence.new({ |
1015 | - | table.remove(BURNINGBODIES,i) |
1015 | + | NumberSequenceKeypoint.new(0, 0, 0), |
1016 | NumberSequenceKeypoint.new(1, 1, 0) | |
1017 | }) | |
1018 | - | for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do |
1018 | + | PartEmmit1.Speed = NumberRange.new(0, 0) |
1019 | - | if c:IsA("BasePart") and c.Transparency < 1 then |
1019 | + | PartEmmit1.VelocitySpread = 30000 |
1020 | - | c.Velocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))*5 |
1020 | + | PartEmmit1.Rotation = NumberRange.new(-360, 360) |
1021 | - | ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.5, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 45, Offset = 360, Enabled = true}) |
1021 | + | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) |
1022 | local BodPoss = IT("BodyPosition", soul) | |
1023 | BodPoss.P = 3000 | |
1024 | - | BURNINGBODIES[i]:BreakJoints() |
1024 | + | BodPoss.D = 1000 |
1025 | - | table.remove(BURNINGBODIES,i) |
1025 | + | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) |
1026 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1027 | - | else |
1027 | + | wait(1.6) |
1028 | - | table.remove(BURNINGBODIES,i) |
1028 | + | soul.Touched:connect(function(hit) |
1029 | if hit.Parent == char then | |
1030 | soul:Destroy() | |
1031 | - | wait() |
1031 | + | |
1032 | end) | |
1033 | wait(1.2) | |
1034 | while soul do | |
1035 | - | for i = 1, 50 do |
1035 | + | swait() |
1036 | - | Swait() |
1036 | + | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
1037 | - | WBODY.Transparency = WBODY.Transparency + 0.5/50 |
1037 | + | BodPoss.Position = tors.Position |
1038 | - | WRWING.Transparency = WBODY.Transparency |
1038 | + | |
1039 | - | WLWING.Transparency = WBODY.Transparency |
1039 | + | |
1040 | soulst() | |
1041 | - | PHEONIX:remove() |
1041 | + | |
1042 | end | |
1043 | - | Rooted = false |
1043 | + | function FaceMouse() |
1044 | - | ATTACK = false |
1044 | + | local Cam = workspace.CurrentCamera |
1045 | return { | |
1046 | CF(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1047 | - | function ShadeZone() |
1047 | + | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) |
1048 | - | local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}} |
1048 | + | } |
1049 | - | local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}} |
1049 | + | |
1050 | - | local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}} |
1050 | + | ------------------------------------------------------- |
1051 | - | local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}} |
1051 | + | --End Effect Function-- |
1052 | - | local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}} |
1052 | + | ------------------------------------------------------- |
1053 | - | local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}} |
1053 | + | function Cso(ID, PARENT, VOLUME, PITCH) |
1054 | - | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) |
1054 | + | local NSound = nil |
1055 | - | if HITFLOOR and Effects:FindFirstChild("Shade Zone") == nil then |
1055 | + | |
1056 | - | ATTACK = true |
1056 | + | NSound = IT("Sound", PARENT) |
1057 | - | local BODIES = {} |
1057 | + | NSound.Volume = VOLUME |
1058 | - | Raise() |
1058 | + | NSound.Pitch = PITCH |
1059 | - | coroutine.resume(coroutine.create(function() |
1059 | + | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID |
1060 | - | local ZONE = CreatePart(3, Effects, "Neon", 0, 1, C3(0,0,0), "Shade Zone", VT(45,0,45)) |
1060 | + | swait() |
1061 | - | ZONE.Color = C3(0,0,0) |
1061 | + | NSound:play() |
1062 | - | MakeForm(ZONE,"Cyl") |
1062 | + | game:GetService("Debris"):AddItem(NSound, 10) |
1063 | - | ZONE.CFrame = CF(HITPOS) |
1063 | + | |
1064 | - | local AURA = CreateSound(1393698948, ZONE, 0, 0.5, true) |
1064 | + | return NSound |
1065 | - | for i =1, 45 do |
1065 | + | |
1066 | - | Swait() |
1066 | + | ------------------------------------------------------- |
1067 | - | AURA.Volume = AURA.Volume + 10/45 |
1067 | + | --End Important Functions-- |
1068 | - | ZONE.Transparency = ZONE.Transparency - 1/45 |
1068 | + | ------------------------------------------------------- |
1069 | - | ZONE.Size = ZONE.Size + VT(2,0,2) |
1069 | + | local PurpleFloatyCube = Instance.new("Part", char) |
1070 | PurpleFloatyCube.CanCollide = false | |
1071 | - | local SIZE = ZONE.Size |
1071 | + | PurpleFloatyCube.BrickColor = BrickC("Crimson") |
1072 | - | for i =1, 400 do |
1072 | + | PurpleFloatyCube.Size = Vector3.new(0.75, 0.75, 0.75) |
1073 | - | Swait() |
1073 | + | PurpleFloatyCube.Material = "Neon" |
1074 | - | AddChildrenToTable(ZONE.Position,workspace,ZONE.Size.X/2,BODIES) |
1074 | + | PurpleFloatyCube.TopSurface = Enum.SurfaceType.Smooth |
1075 | - | if MRANDOM(1,5) == 1 then |
1075 | + | PurpleFloatyCube.BottomSurface = Enum.SurfaceType.Smooth |
1076 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(0,135,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ZONE.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(0,math.ceil(ZONE.Size.X/2.1))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1076 | + | local BodyPosition = Instance.new("BodyPosition", PurpleFloatyCube) |
1077 | ||
1078 | - | ZONE.Size = SIZE + VT(2 * COS(i / 12),0,2 * COS(i / 12)) |
1078 | + | function WWeld(a, b, acf) |
1079 | local we = Instance.new("Weld", a) | |
1080 | - | for i =1, 45 do |
1080 | + | we.Part0 = a |
1081 | - | Swait() |
1081 | + | we.Part1 = b |
1082 | - | AURA.Volume = AURA.Volume - 10/45 |
1082 | + | we.C0 = acf |
1083 | - | ZONE.Transparency = ZONE.Transparency + 1/45 |
1083 | + | |
1084 | - | ZONE.Size = ZONE.Size - VT(2,0,2) |
1084 | + | |
1085 | function Emitt(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang1,sprdang2,locked2part) | |
1086 | - | ZONE:remove() |
1086 | + | Emitt = IT("ParticleEmitter",parent) |
1087 | - | for e = 1, #BODIES do |
1087 | + | Emitt.Texture = tex |
1088 | - | Swait() |
1088 | + | Emitt.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)}) |
1089 | - | if BODIES[e] ~= nil then |
1089 | + | Emitt.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)}) |
1090 | - | local BOD = BODIES[e] |
1090 | + | Emitt.LightEmission = lightem |
1091 | - | for i = 1, 10 do |
1091 | + | Emitt.EmissionDirection = emdir |
1092 | - | for i = 1, #BODIES do |
1092 | + | Emitt.Lifetime = NumberRange.new(lif) |
1093 | - | if (BODIES[i] == BOD and i ~= e) then |
1093 | + | Emitt.Rate = rate |
1094 | - | table.remove(BODIES,i) |
1094 | + | Emitt.Speed = NumberRange.new(speed) |
1095 | Emitt.RotSpeed = NumberRange.new(rotspeed) | |
1096 | Emitt.SpreadAngle = Vector2.new(sprdang1,sprdang2) | |
1097 | Emitt.LockedToPart = locked2part | |
1098 | - | coroutine.resume(coroutine.create(function() |
1098 | + | return(Emitt) |
1099 | - | local BODY = BODIES[e] |
1099 | + | |
1100 | - | local TORSO = BODIES[e]:FindFirstChild("Torso") or BODIES[e]:FindFirstChild("UpperTorso") |
1100 | + | |
1101 | - | local HUM = BODIES[e]:FindFirstChildOfClass("Humanoid") |
1101 | + | local list = {NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.371,0.525,0),NumberSequenceKeypoint.new(0.775,0.579,0),NumberSequenceKeypoint.new(1,0.985,0)} |
1102 | - | if TORSO and HUM then |
1102 | + | |
1103 | - | TORSO.Anchored = true |
1103 | + | local color1 = Color3.fromRGB(255, 0, 0) |
1104 | - | for i = 1, 15 do |
1104 | + | local color2 = Color3.fromRGB(0, 0, 0) |
1105 | - | if HUM.Health > 0 then |
1105 | + | local color3 = Color3.fromRGB(125, 0, 0) |
1106 | - | wait(0.1) |
1106 | + | |
1107 | - | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 182765513, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2.5}) |
1107 | + | local list4 = {ColorSequenceKeypoint.new(0,color1),ColorSequenceKeypoint.new(0.959,color2),ColorSequenceKeypoint.new(1,color3)} |
1108 | - | TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) |
1108 | + | |
1109 | - | HUM.Health = HUM.Health - 1.5 |
1109 | + | local list5 = {NumberSequenceKeypoint.new(0,0.425,0),NumberSequenceKeypoint.new(0.29,0.899,0),NumberSequenceKeypoint.new(0.59,0.955,0),NumberSequenceKeypoint.new(1,0.579,0)} |
1110 | - | if HUM.Health == 0 then |
1110 | + | |
1111 | - | local MINION = CLONE:Clone() |
1111 | + | local list6 = {NumberSequenceKeypoint.new(0,0.429,0),NumberSequenceKeypoint.new(0.29,0.9,0),NumberSequenceKeypoint.new(0.59,0.959,0),NumberSequenceKeypoint.new(1,0.589,0)} |
1112 | - | ANIMATE:Clone().Parent = MINION |
1112 | + | |
1113 | - | MINION.Name = "Mummy" |
1113 | + | |
1114 | - | MINION.Parent = Effects |
1114 | + | local ssjgaurak = Instance.new("ParticleEmitter",PurpleFloatyCube) |
1115 | - | MINION.Head:ClearAllChildren() |
1115 | + | ssjgaurak.Name = "aura2" |
1116 | - | MINION.Torso.CFrame = TORSO.CFrame |
1116 | + | ssjgaurak.Texture = "rbxassetid://243660373" |
1117 | - | BODY:remove() |
1117 | + | ssjgaurak.Color = ColorSequence.new(list4) |
1118 | - | local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)] |
1118 | + | ssjgaurak.Transparency = NumberSequence.new(list) |
1119 | - | CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0)) |
1119 | + | ssjgaurak.LightEmission = 1 |
1120 | - | --------- |
1120 | + | ssjgaurak.Speed = NumberRange.new(0) |
1121 | - | local PACKAGE = IT("CharacterMesh",MINION) |
1121 | + | ssjgaurak.SpreadAngle = Vector2.new(3,6) |
1122 | - | PACKAGE.BodyPart = "RightArm" |
1122 | + | ssjgaurak.RotSpeed = NumberRange.new(360) |
1123 | - | local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)] |
1123 | + | ssjgaurak.Rotation = NumberRange.new(360) |
1124 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
1124 | + | ssjgaurak.LightInfluence = 0 |
1125 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
1125 | + | ssjgaurak.Size = NumberSequence.new(list6) |
1126 | - | --------- |
1126 | + | ssjgaurak.Lifetime = NumberRange.new(2) |
1127 | - | local PACKAGE = IT("CharacterMesh",MINION) |
1127 | + | ssjgaurak.Rate = 75 |
1128 | - | PACKAGE.BodyPart = "LeftArm" |
1128 | + | ssjgaurak.ZOffset = 0 |
1129 | - | local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)] |
1129 | + | ssjgaurak.Acceleration = Vector3.new(0,.01,0) |
1130 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
1130 | + | ssjgaurak.LockedToPart = true |
1131 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
1131 | + | ssjgaurak.Enabled = true |
1132 | - | --------- |
1132 | + | |
1133 | - | local PACKAGE = IT("CharacterMesh",MINION) |
1133 | + | local ssjgaura3 = Instance.new("ParticleEmitter",ra) |
1134 | - | PACKAGE.BodyPart = "RightLeg" |
1134 | + | ssjgaura3.Name = "aura2" |
1135 | - | local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)] |
1135 | + | ssjgaura3.Texture = "rbxassetid://243660373" |
1136 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
1136 | + | ssjgaura3.Color = ColorSequence.new(list4) |
1137 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
1137 | + | ssjgaura3.Transparency = NumberSequence.new(list) |
1138 | - | --------- |
1138 | + | ssjgaura3.LightEmission = 1 |
1139 | - | local PACKAGE = IT("CharacterMesh",MINION) |
1139 | + | ssjgaura3.LightInfluence = 0 |
1140 | - | PACKAGE.BodyPart = "LeftLeg" |
1140 | + | ssjgaura3.Speed = NumberRange.new(0) |
1141 | - | local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)] |
1141 | + | ssjgaura3.SpreadAngle = Vector2.new(0,0) |
1142 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
1142 | + | ssjgaura3.RotSpeed = NumberRange.new(0) |
1143 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
1143 | + | ssjgaura3.Rotation = NumberRange.new(0) |
1144 | - | --------- |
1144 | + | ssjgaura3.Size = NumberSequence.new(list5) |
1145 | - | local PACKAGE = IT("CharacterMesh",MINION) |
1145 | + | ssjgaura3.Lifetime = NumberRange.new(5) |
1146 | - | PACKAGE.BodyPart = "Torso" |
1146 | + | ssjgaura3.Rate = 75 |
1147 | - | local PACKAGESTUFF = TORSOS[MRANDOM(1,2)] |
1147 | + | ssjgaura3.ZOffset = 0 |
1148 | - | PACKAGE.MeshId = PACKAGESTUFF.Mesh |
1148 | + | ssjgaura3.Acceleration = Vector3.new(0,0.09,0) |
1149 | - | PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture |
1149 | + | ssjgaura3.LockedToPart = true |
1150 | - | --------- |
1150 | + | |
1151 | - | coroutine.resume(coroutine.create(function() |
1151 | + | local ssjgaura4 = Instance.new("ParticleEmitter",la) |
1152 | - | local SHOUTS = {1158091961,1158091668,1158092150} |
1152 | + | ssjgaura4.Name = "aura2" |
1153 | - | local TORSO = MINION.Torso |
1153 | + | ssjgaura4.Texture = "rbxassetid://243660373" |
1154 | - | local MUMMY = MINION |
1154 | + | ssjgaura4.Color = ColorSequence.new(list4) |
1155 | - | local HUMAN = MINION.Humanoid |
1155 | + | ssjgaura4.Transparency = NumberSequence.new(list) |
1156 | - | HUMAN.MaxHealth = MRANDOM(20,65) |
1156 | + | ssjgaura4.LightEmission = 1 |
1157 | - | HUMAN.Health = HUMAN.MaxHealth |
1157 | + | ssjgaura4.LightInfluence = 0 |
1158 | - | HUMAN.Died:connect(function() |
1158 | + | ssjgaura4.Speed = NumberRange.new(0) |
1159 | - | CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) |
1159 | + | ssjgaura4.SpreadAngle = Vector2.new(0,0) |
1160 | - | end) |
1160 | + | ssjgaura4.RotSpeed = NumberRange.new(0) |
1161 | - | local findNearestTorso = function(POS) |
1161 | + | ssjgaura4.Rotation = NumberRange.new(0) |
1162 | - | local list = game.Workspace:GetDescendants() |
1162 | + | ssjgaura4.Size = NumberSequence.new(list5) |
1163 | - | local torso = nil |
1163 | + | ssjgaura4.Lifetime = NumberRange.new(5) |
1164 | - | local dist = 10000 |
1164 | + | ssjgaura4.Rate = 75 |
1165 | - | local temp = nil |
1165 | + | ssjgaura4.ZOffset = 0 |
1166 | - | local human = nil |
1166 | + | ssjgaura4.Acceleration = Vector3.new(0,0.09,0) |
1167 | - | local temp2 = nil |
1167 | + | ssjgaura4.LockedToPart = true |
1168 | - | for x = 1, #list do |
1168 | + | |
1169 | - | temp2 = list[x] |
1169 | + | local ssjgaurag = Instance.new("ParticleEmitter",tors) |
1170 | - | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then |
1170 | + | ssjgaurag.Name = "aura2" |
1171 | - | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") |
1171 | + | ssjgaurag.Texture = "rbxassetid://243660373" |
1172 | - | human = temp2:findFirstChild("Humanoid") |
1172 | + | ssjgaurag.Color = ColorSequence.new(list4) |
1173 | - | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then |
1173 | + | ssjgaurag.Transparency = NumberSequence.new(list) |
1174 | - | if (temp.Position - POS).magnitude < dist then |
1174 | + | ssjgaurag.LightEmission = 1 |
1175 | - | torso = temp |
1175 | + | ssjgaurag.LightInfluence = 1 |
1176 | - | dist = (temp.Position - POS).magnitude |
1176 | + | ssjgaurag.Speed = NumberRange.new(0) |
1177 | - | end |
1177 | + | ssjgaurag.SpreadAngle = Vector2.new(0,0) |
1178 | - | end |
1178 | + | ssjgaurag.RotSpeed = NumberRange.new(0) |
1179 | - | end |
1179 | + | ssjgaurag.Rotation = NumberRange.new(0) |
1180 | - | end |
1180 | + | ssjgaurag.Size = NumberSequence.new(list5) |
1181 | - | return torso, dist |
1181 | + | ssjgaurag.Lifetime = NumberRange.new(5) |
1182 | - | end |
1182 | + | ssjgaurag.Rate = 75 |
1183 | - | for i = 1, 30 do |
1183 | + | ssjgaurag.ZOffset = 0 |
1184 | - | if HUMAN.Health == 0 then |
1184 | + | ssjgaurag.Acceleration = Vector3.new(0,0.09,0) |
1185 | - | break |
1185 | + | ssjgaurag.LockedToPart = true |
1186 | - | end |
1186 | + | |
1187 | - | wait(1) |
1187 | + | local ssjgaura1 = Instance.new("ParticleEmitter",rl) |
1188 | - | local target,dist= findNearestTorso(TORSO.Position) |
1188 | + | ssjgaura1.Name = "aura2" |
1189 | - | if target then |
1189 | + | ssjgaura1.Texture = "rbxassetid://243660373" |
1190 | - | HUMAN:MoveTo(target.Position) |
1190 | + | ssjgaura1.Color = ColorSequence.new(list4) |
1191 | - | if dist < 5 then |
1191 | + | ssjgaura1.Transparency = NumberSequence.new(list) |
1192 | - | local ANIM = HUMAN:LoadAnimation(ATANIM) |
1192 | + | ssjgaura1.LightEmission = 1 |
1193 | - | ANIM:Play() |
1193 | + | ssjgaura1.LightInfluence = 0 |
1194 | - | CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) |
1194 | + | ssjgaura1.Speed = NumberRange.new(0) |
1195 | - | ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false) |
1195 | + | ssjgaura1.SpreadAngle = Vector2.new(0,0) |
1196 | - | end |
1196 | + | ssjgaura1.RotSpeed = NumberRange.new(0) |
1197 | - | end |
1197 | + | ssjgaura1.Rotation = NumberRange.new(0) |
1198 | - | end |
1198 | + | ssjgaura1.Size = NumberSequence.new(list5) |
1199 | - | TORSO.Parent:BreakJoints() |
1199 | + | ssjgaura1.Lifetime = NumberRange.new(5) |
1200 | - | Debris:AddItem(MUMMY,4) |
1200 | + | ssjgaura1.Rate = 75 |
1201 | - | end)) |
1201 | + | ssjgaura1.ZOffset = 0 |
1202 | - | break |
1202 | + | ssjgaura1.Acceleration = Vector3.new(0,0.09,0) |
1203 | - | end |
1203 | + | ssjgaura1.LockedToPart = false |
1204 | ||
1205 | local ssjgaura2 = Instance.new("ParticleEmitter",ll) | |
1206 | - | if TORSO then |
1206 | + | ssjgaura2.Name = "aura2" |
1207 | - | TORSO.Anchored = false |
1207 | + | ssjgaura2.Texture = "rbxassetid://243660373" |
1208 | ssjgaura2.Color = ColorSequence.new(list4) | |
1209 | ssjgaura2.Transparency = NumberSequence.new(list) | |
1210 | - | end)) |
1210 | + | ssjgaura2.LightEmission = 1 |
1211 | ssjgaura2.LightInfluence = 0 | |
1212 | ssjgaura2.Speed = NumberRange.new(0) | |
1213 | - | end)) |
1213 | + | ssjgaura2.SpreadAngle = Vector2.new(0,0) |
1214 | - | ATTACK = false |
1214 | + | ssjgaura2.RotSpeed = NumberRange.new(0) |
1215 | ssjgaura2.Rotation = NumberRange.new(0) | |
1216 | ssjgaura2.Size = NumberSequence.new(list5) | |
1217 | ssjgaura2.Lifetime = NumberRange.new(5) | |
1218 | - | function PharaohsThrone() |
1218 | + | ssjgaura2.Rate = 75 |
1219 | - | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1219 | + | ssjgaura2.ZOffset = 0 |
1220 | - | if HITFLOOR then |
1220 | + | ssjgaura2.Acceleration = Vector3.new(0,0.09,0) |
1221 | - | ATTACK = true |
1221 | + | ssjgaura2.LockedToPart = false |
1222 | - | Raise() |
1222 | + | |
1223 | - | coroutine.resume(coroutine.create(function() |
1223 | + | local DarEye = Instance.new("Part", char) |
1224 | - | local PYRAMID = IT("Model") |
1224 | + | DarEye.CanCollide = false |
1225 | - | PYRAMID.Name = "Pyramid" |
1225 | + | DarEye.BrickColor = BrickC("Really black") |
1226 | - | local BASEPART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100,1,100)) |
1226 | + | DarEye.Color = Color3.new(0,0,0) |
1227 | - | local FIREPART = CreatePart(3, Effects, "Neon", 0, 1, "Wheat", "Pyramid", VT(110,1,110)) |
1227 | + | DarEye.Material = "Glass" |
1228 | - | FIREPART.Touched:Connect(function(hit) |
1228 | + | DarEye.Size = Vector3.new(.15,.15,.15) |
1229 | - | if FIREPART.Transparency ~= 1 then |
1229 | + | WWeld(DarEye, hed, CF(0.15,-0.2,0.55), CF(1,0,0)) |
1230 | - | if hit.Parent:FindFirstChildOfClass("Humanoid") then |
1230 | + | DarEyeMesh = Instance.new("SpecialMesh", DarEye) |
1231 | - | if hit.Parent.Name == "Mummy" then |
1231 | + | DarEyeMesh.MeshType = "Sphere" |
1232 | - | hit.Parent:BreakJoints() |
1232 | + | DarEyeMesh.Scale = Vector3.new(0.7,1.3,0.9) |
1233 | - | else |
1233 | + | DarEye.Locked = true |
1234 | - | hit.Parent:FindFirstChildOfClass("Humanoid").Health = hit.Parent:FindFirstChildOfClass("Humanoid").Health - 25 |
1234 | + | |
1235 | local DarEye2 = Instance.new("Part", char) | |
1236 | DarEye2.CanCollide = false | |
1237 | DarEye2.BrickColor = BrickC("Smoky grey") | |
1238 | - | end) |
1238 | + | DarEye2.Material = "Neon" |
1239 | - | ------ |
1239 | + | DarEye2.Size = Vector3.new(.15,.15,.15) |
1240 | - | local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5)) |
1240 | + | WWeld(DarEye2, hed, CF(-0.15,-0.2,0.55), CF(1,0,0)) |
1241 | - | MakeForm(PILLAR,"Cyl") |
1241 | + | DarEyeMesh2 = Instance.new("SpecialMesh", DarEye2) |
1242 | - | PILLAR.CFrame = BASEPART.CFrame*CF(25,25,25) |
1242 | + | DarEyeMesh2.MeshType = "Sphere" |
1243 | - | local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6)) |
1243 | + | DarEyeMesh2.Scale = Vector3.new(0.7,1.3,0.9) |
1244 | - | MakeForm(PILLARTOP,"Cyl") |
1244 | + | DarEye2.Locked = true |
1245 | - | PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0) |
1245 | + | |
1246 | - | local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2)) |
1246 | + | Emitt(DarEye,"rbxassetid://243660373",Color3.new(1,0,0),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true) |
1247 | - | COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0) |
1247 | + | char.Shirt:Destroy() |
1248 | - | local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true}) |
1248 | + | char.Pants:Destroy() |
1249 | - | FIRE.LockedToPart = true |
1249 | + | hed.face:Remove() |
1250 | - | ------ |
1250 | + | for i,v in pairs(char:children()) do |
1251 | - | local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5)) |
1251 | + | if v:IsA("Hat") then |
1252 | - | MakeForm(PILLAR,"Cyl") |
1252 | + | v:Destroy() |
1253 | - | PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,25) |
1253 | + | end |
1254 | - | local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6)) |
1254 | + | |
1255 | - | MakeForm(PILLARTOP,"Cyl") |
1255 | + | for i,v in pairs(char:children()) do |
1256 | - | PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0) |
1256 | + | if v:IsA("Accessory") then |
1257 | - | local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2)) |
1257 | + | v:Destroy() |
1258 | - | COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0) |
1258 | + | end |
1259 | - | local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true}) |
1259 | + | |
1260 | - | FIRE.LockedToPart = true |
1260 | + | la.BrickColor = BrickC("Crimson") |
1261 | - | ------ |
1261 | + | ra.BrickColor = BrickC("Crimson") |
1262 | - | local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5)) |
1262 | + | rl.BrickColor = BrickC("Crimson") |
1263 | - | MakeForm(PILLAR,"Cyl") |
1263 | + | ll.BrickColor = BrickC("Crimson") |
1264 | - | PILLAR.CFrame = BASEPART.CFrame*CF(25,25,-25) |
1264 | + | hed.BrickColor = BrickC("Crimson") |
1265 | - | local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6)) |
1265 | + | tors.BrickColor = BrickC("Crimson") |
1266 | - | MakeForm(PILLARTOP,"Cyl") |
1266 | + | ------------------------------------------------------- |
1267 | - | PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0) |
1267 | + | --Start Music Option-- |
1268 | - | local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2)) |
1268 | + | ------------------------------------------------------- |
1269 | - | COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0) |
1269 | + | local Music = Instance.new("Sound",tors) |
1270 | - | local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true}) |
1270 | + | Music.Volume = 2.5 |
1271 | - | FIRE.LockedToPart = true |
1271 | + | Music.SoundId = "rbxassetid://1494452913" |
1272 | - | ------ |
1272 | + | Music.Looped = true |
1273 | - | local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5)) |
1273 | + | Music.Pitch = 1 --Pitcher |
1274 | - | MakeForm(PILLAR,"Cyl") |
1274 | + | Music:Play() |
1275 | - | PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,-25) |
1275 | + | ------------------------------------------------------- |
1276 | - | local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6)) |
1276 | + | --End Music Option-- |
1277 | - | MakeForm(PILLARTOP,"Cyl") |
1277 | + | ------------------------------------------------------- |
1278 | - | PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0) |
1278 | + | |
1279 | - | local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2)) |
1279 | + | local naeeym2 = Instance.new("BillboardGui",char) |
1280 | - | COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0) |
1280 | + | |
1281 | - | local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true}) |
1281 | + | naeeym2.Size = UDim2.new(5,35,2,35) |
1282 | - | FIRE.LockedToPart = true |
1282 | + | naeeym2.StudsOffset = Vector3.new(0,2,0) |
1283 | - | ------ |
1283 | + | naeeym2.Adornee = hed |
1284 | - | FIREPART.Color = FIRECOLOR |
1284 | + | |
1285 | - | FIREPART.CFrame = RootPart.CFrame*CF(0,-3.3,65) |
1285 | + | local tecks2 = Instance.new("TextLabel",naeeym2) |
1286 | - | local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = FIREPART, Emit = 45, Offset = 360, Enabled = true}) |
1286 | + | |
1287 | - | local LASTPART = nil |
1287 | + | |
1288 | - | for i = 1, 35 do |
1288 | + | |
1289 | - | local PART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100-i*2,1,100-i*2)) |
1289 | + | tecks2.Text = "The Burning Nightmare" |
1290 | - | PART.CFrame = BASEPART.CFrame*CF(0,i,0) |
1290 | + | tecks2.Font = "Garamond" |
1291 | - | LASTPART = PART |
1291 | + | |
1292 | - | local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(5,1.1,100.1-i*2)) |
1292 | + | tecks2.TextTransparency = 0 |
1293 | - | PART.CFrame = BASEPART.CFrame*CF(0,i,0) |
1293 | + | |
1294 | - | local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(100.1-i*2,1.1,5)) |
1294 | + | tecks2.TextColor3 = Color3.new(0,0,0) |
1295 | - | PART.CFrame = BASEPART.CFrame*CF(0,i,0) |
1295 | + | tecks2.TextStrokeColor3 = Color3.new(125, 0, 0) |
1296 | - | local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(7,1.05,100.05-i*2)) |
1296 | + | |
1297 | - | PART.CFrame = BASEPART.CFrame*CF(0,i,0) |
1297 | + | |
1298 | - | local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(100.05-i*2,1.05,7)) |
1298 | + | |
1299 | - | PART.CFrame = BASEPART.CFrame*CF(0,i,0) |
1299 | + | ------------------------------------------------------- |
1300 | --Start Attacks N Stuff-- | |
1301 | - | local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(20,0.1,20)) |
1301 | + | ------------------------------------------------------- |
1302 | - | PART.CFrame = LASTPART.CFrame*CF(0,LASTPART.Size.Y/2,0) |
1302 | + | local sine=0 |
1303 | - | FIRE.Rate = 999 |
1303 | + | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) |
1304 | - | local CHAIR1 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(7,1,7)) |
1304 | + | local Hitboxpart = Instance.new("Part", EffectModel) |
1305 | - | CHAIR1.CFrame = BASEPART.CFrame*CF(0,36,0) |
1305 | + | RemoveOutlines(Hitboxpart) |
1306 | - | local CHAIR2 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(5,1,5)) |
1306 | + | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) |
1307 | - | CHAIR2.CFrame = CHAIR1.CFrame*CF(0,1,0) |
1307 | + | Hitboxpart.CanCollide = false |
1308 | - | local CHAIR3 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,1,3)) |
1308 | + | Hitboxpart.Transparency = 1 |
1309 | - | CHAIR3.CFrame = CHAIR2.CFrame*CF(0,1,0) |
1309 | + | Hitboxpart.Anchored = true |
1310 | - | local SEAT = IT("Seat",PYRAMID) |
1310 | + | Hitboxpart.CFrame = Pose |
1311 | - | SEAT.Size = VT(2,0.2,2) |
1311 | + | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) |
1312 | - | SEAT.Material = "Concrete" |
1312 | + | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) |
1313 | - | SEAT.Anchored = true |
1313 | + | |
1314 | - | SEAT.BrickColor = BRICKC"Dark orange" |
1314 | + | wait2 = false |
1315 | - | SEAT.CFrame = CHAIR3.CFrame*CF(0,0.55,-0.5) |
1315 | + | combo = 1 |
1316 | - | local CHAIR4 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,5,1)) |
1316 | + | mouse.Button1Down:connect(function(key) |
1317 | - | CHAIR4.CFrame = CHAIR3.CFrame*CF(0,3,1) |
1317 | + | if attack == false then |
1318 | - | local CHAIR5 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,4.7,1)) |
1318 | + | attack = true |
1319 | - | CHAIR5.CFrame = CHAIR4.CFrame*CF(0,0,-0.1) |
1319 | + | hum.WalkSpeed = 3.01 |
1320 | - | local CHAIR6 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2)) |
1320 | + | if combo == 1 and wait2 == false then |
1321 | - | CHAIR6.CFrame = CHAIR3.CFrame*CF(1.5,0.75,0) |
1321 | + | wait2 = true |
1322 | - | local CHAIR7 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2)) |
1322 | + | for i = 0, 1.2, 0.1 do |
1323 | - | CHAIR7.CFrame = CHAIR3.CFrame*CF(-1.5,0.75,0) |
1323 | + | swait() |
1324 | - | PYRAMID.PrimaryPart = BASEPART |
1324 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3) |
1325 | - | PYRAMID:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,-50,65)) |
1325 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(-65)), 0.1) |
1326 | - | PYRAMID.Parent = Weapon |
1326 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0.8) * angles(Rad(180), Rad(0), Rad(20)), 0.1) |
1327 | - | for i = 1, 25 do |
1327 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(40)), 0.3) |
1328 | - | Swait() |
1328 | + | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) |
1329 | - | FIREPART.Transparency = FIREPART.Transparency - 1/25 |
1329 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(-20)), 0.3) |
1330 | end | |
1331 | - | for _, c in pairs(PYRAMID:GetChildren()) do |
1331 | + | Cso("138097048", ra, 3, .8) |
1332 | - | if c:IsA("BasePart") then |
1332 | + | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") |
1333 | - | c.CanCollide = true |
1333 | + | for i = 0, 1.2, 0.1 do |
1334 | swait() | |
1335 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(7), Rad(0), Rad(75)), 0.3) | |
1336 | - | local RESET = PYRAMID.Changed:Connect(function() |
1336 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.1) |
1337 | - | PYRAMID.Parent = workspace |
1337 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(76), Rad(0), Rad(-40)), 0.1) |
1338 | - | end) |
1338 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(-10)), 0.3) |
1339 | - | CreateSound(130972023, BASEPART, 10, 0.8, false) |
1339 | + | RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(-17)), 0.3) |
1340 | - | for i = 1, 46*4 do |
1340 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(-0), Rad(0)), 0.3) |
1341 | - | Swait() |
1341 | + | end |
1342 | - | PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,0.25,0)) |
1342 | + | combo = 2 |
1343 | end | |
1344 | - | for i = 1, 25 do |
1344 | + | if combo == 2 and wait2 == false then |
1345 | - | Swait() |
1345 | + | wait2 = true |
1346 | - | FIREPART.Transparency = FIREPART.Transparency + 1/25 |
1346 | + | for i = 0, 1.2, 0.1 do |
1347 | swait() | |
1348 | - | FIRE.Enabled = false |
1348 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(-5), Rad(0), Rad(60)), 0.3) |
1349 | - | local SINKING = false |
1349 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.1) |
1350 | - | SIT.Changed:Connect(function() |
1350 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, .8) * angles(Rad(90), Rad(0), Rad(-75)), 0.1) |
1351 | - | if SIT.Value == false and SINKING == false then |
1351 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(-20)), 0.3) |
1352 | - | SINKING = true |
1352 | + | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) |
1353 | - | local PRT = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,0.2,2)) |
1353 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) |
1354 | - | PRT.CFrame = SEAT.CFrame |
1354 | + | end |
1355 | - | SEAT:remove() |
1355 | + | Cso("138097048", ra, 3, .8) |
1356 | - | wait(1) |
1356 | + | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") |
1357 | - | FIRE.Enabled = true |
1357 | + | for i = 0, 1.2, 0.1 do |
1358 | - | for i = 1, 25 do |
1358 | + | swait() |
1359 | - | Swait() |
1359 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(-5), Rad(0), Rad(-60)), 0.3) |
1360 | - | FIREPART.Transparency = FIREPART.Transparency - 1/25 |
1360 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.1) |
1361 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -.8) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
1362 | - | for i = 1, 46*4 do |
1362 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(-20)), 0.3) |
1363 | - | Swait() |
1363 | + | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) |
1364 | - | FIREPART.Size = FIREPART.Size - VT(0.003*i,0,0.003*i) |
1364 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(20), Rad(-10)), 0.3) |
1365 | - | PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,-0.25,0)) |
1365 | + | end |
1366 | combo = 3 | |
1367 | - | for i = 1, 25 do |
1367 | + | end |
1368 | - | Swait() |
1368 | + | if combo == 3 and wait2 == false then |
1369 | - | FIREPART.Size = FIREPART.Size - VT((0.003*i)*45,0,(0.003*i)*45) |
1369 | + | wait2 = true |
1370 | - | FIREPART.Transparency = FIREPART.Transparency + 1/25 |
1370 | + | for i = 0, 1.2, 0.1 do |
1371 | swait() | |
1372 | - | FIRE.Enabled = false |
1372 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3) |
1373 | - | Debris:AddItem(FIREPART,5) |
1373 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(-65)), 0.1) |
1374 | - | RESET:disconnect() |
1374 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0.8) * angles(Rad(180), Rad(0), Rad(20)), 0.1) |
1375 | - | PYRAMID:remove() |
1375 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(40)), 0.3) |
1376 | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) | |
1377 | - | end) |
1377 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(-20)), 0.3) |
1378 | - | end)) |
1378 | + | end |
1379 | - | ATTACK = false |
1379 | + | Cso("138097048", ra, 3, .8) |
1380 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") | |
1381 | for i = 0, 1.2, 0.1 do | |
1382 | swait() | |
1383 | - | --//=================================\\ |
1383 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(7), Rad(0), Rad(75)), 0.3) |
1384 | - | --|| ASSIGN THINGS TO KEYS |
1384 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.1) |
1385 | - | --\\=================================// |
1385 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(76), Rad(0), Rad(-40)), 0.1) |
1386 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(-10)), 0.3) | |
1387 | - | function MouseDown(Mouse) |
1387 | + | RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(-17)), 0.3) |
1388 | - | if ATTACK == false then |
1388 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(-0), Rad(0)), 0.3) |
1389 | end | |
1390 | combo = 4 | |
1391 | end | |
1392 | - | function MouseUp(Mouse) |
1392 | + | if combo == 4 and wait2 == false then |
1393 | - | HOLD = false |
1393 | + | for i = 0, 1.2, 0.1 do |
1394 | swait() | |
1395 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3) | |
1396 | - | function KeyDown(Key) |
1396 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-65)), 0.1) |
1397 | - | KEYHOLD = true |
1397 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0.8) * angles(Rad(87), Rad(0), Rad(20)), 0.1) |
1398 | - | if Humanoid.Sit == false then |
1398 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(-40)), 0.3) |
1399 | - | if Key == "z" and ATTACK == false then |
1399 | + | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-2.5), Rad(0), Rad(-0)), 0.3) |
1400 | - | Summon() |
1400 | + | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(-20)), 0.3) |
1401 | end | |
1402 | Cso("138097048", ra, 3, .8) | |
1403 | - | if Key == "b" and ATTACK == false then |
1403 | + | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") |
1404 | - | if Weapon:FindFirstChild("Pyramid") == nil then |
1404 | + | for i = 0, 1.2, 0.1 do |
1405 | - | Warp("Mouse") |
1405 | + | swait() |
1406 | - | else |
1406 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -0.5, 0) * angles(Rad(7), Rad(0), Rad(75)), 0.3) |
1407 | - | if Weapon.Pyramid:FindFirstChild("Seat") then |
1407 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.1) |
1408 | - | Warp(Weapon.Pyramid.Seat.Position+VT(0,5,0)) |
1408 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(-96), Rad(0), Rad(-40)), 0.1) |
1409 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
1410 | RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(-17)), 0.3) | |
1411 | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(-0), Rad(0)), 0.3) | |
1412 | end | |
1413 | - | if Key == "v" and ATTACK == false then |
1413 | + | combo = 1 |
1414 | - | ShadeZone() |
1414 | + | |
1415 | hum.WalkSpeed = 16 | |
1416 | wait2 = false | |
1417 | - | if Key == "x" and ATTACK == false then |
1417 | + | attack = false |
1418 | - | if Weapon:FindFirstChild("Pyramid") == nil then |
1418 | + | |
1419 | - | PharaohsThrone() |
1419 | + | |
1420 | - | else |
1420 | + | function Burning_Sphere() |
1421 | - | SIT.Value = true |
1421 | + | attack = true |
1422 | local orb = Instance.new("Part", char) | |
1423 | orb.Anchored = true | |
1424 | orb.BrickColor = BrickC("Crimson") | |
1425 | orb.CanCollide = false | |
1426 | - | if Key == "c" and ATTACK == false then |
1426 | + | orb.FormFactor = 3 |
1427 | - | PheonixGlare() |
1427 | + | orb.Name = "Ring" |
1428 | orb.Material = "Neon" | |
1429 | orb.Size = Vector3.new(1, 1, 1) | |
1430 | orb.Transparency = 0 | |
1431 | - | function KeyUp(Key) |
1431 | + | orb.TopSurface = 0 |
1432 | - | KEYHOLD = false |
1432 | + | orb.BottomSurface = 0 |
1433 | local orbm = Instance.new("SpecialMesh", orb) | |
1434 | orbm.MeshType = "Sphere" | |
1435 | - | Mouse.Button1Down:connect(function(NEWKEY) |
1435 | + | orbm.Name = "SizeMesh" |
1436 | - | MouseDown(NEWKEY) |
1436 | + | orbm.Scale = Vector3.new(0, 0, 0) |
1437 | local scaled = 0.1 | |
1438 | - | Mouse.Button1Up:connect(function(NEWKEY) |
1438 | + | local posid = 0 |
1439 | - | MouseUp(NEWKEY) |
1439 | + | for i = 0, 5, 0.1 do |
1440 | swait() | |
1441 | - | Mouse.KeyDown:connect(function(NEWKEY) |
1441 | + | scaled = scaled - 0.001 |
1442 | - | KeyDown(NEWKEY) |
1442 | + | posid = posid - scaled |
1443 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
1444 | - | Mouse.KeyUp:connect(function(NEWKEY) |
1444 | + | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) |
1445 | - | KeyUp(NEWKEY) |
1445 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-20)), 0.15) |
1446 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(20)), 0.3) | |
1447 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1448 | - | --//=================================\\ |
1448 | + | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) |
1449 | - | --\\=================================// |
1449 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(180), Rad(-1), Rad(17 + 4.5 * Sin(sine / 20))), 0.1) |
1450 | LW.C0 = clerp(LW.C0, CF(-.9, 0.5 + 0.02 * Sin(sine / 20), -.4) * angles(Rad(90), Rad(-.6), Rad(65 - 4.5 * Sin(sine / 20))), 0.1) | |
1451 | end | |
1452 | - | function unanchor() |
1452 | + | for i = 0, 2, 0.1 do |
1453 | - | if UNANCHOR == true then |
1453 | + | swait() |
1454 | - | RootPart.Anchored = false |
1454 | + | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) |
1455 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(30)), 0.15) | |
1456 | - | g = Character:GetChildren() |
1456 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-30)), 0.3) |
1457 | - | for i = 1, #g do |
1457 | + | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) |
1458 | - | if g[i].ClassName == "Part" and g[i] ~= RootPart then |
1458 | + | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) |
1459 | - | g[i].Anchored = false |
1459 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(87), Rad(-1), Rad(-37 + 4.5 * Sin(sine / 20))), 0.1) |
1460 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), -.4) * angles(Rad(90), Rad(-.6), Rad(65 - 4.5 * Sin(sine / 20))), 0.1) | |
1461 | end | |
1462 | - | g = Weapon:GetChildren() |
1462 | + | |
1463 | - | for i = 1, #g do |
1463 | + | orb.Anchored = false |
1464 | - | if g[i].ClassName == "Part" then |
1464 | + | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) |
1465 | - | g[i].Anchored = false |
1465 | + | local a = Instance.new("Part", workspace) |
1466 | a.Name = "Direction" | |
1467 | a.Anchored = true | |
1468 | a.BrickColor = BrickC("Bright red") | |
1469 | a.Material = "Neon" | |
1470 | a.Transparency = 1 | |
1471 | - | --//=================================\\ |
1471 | + | a.CanCollide = false |
1472 | - | --|| WRAP THE WHOLE SCRIPT UP |
1472 | + | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) |
1473 | - | --\\=================================// |
1473 | + | local ignore = orb |
1474 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1475 | - | Humanoid.Changed:connect(function(Jump) |
1475 | + | a.BottomSurface = 10 |
1476 | - | if Jump == "Jump" and (Disable_Jump == true) then |
1476 | + | a.TopSurface = 10 |
1477 | - | Humanoid.Jump = false |
1477 | + | local distance = (orb.CFrame.p - position).magnitude |
1478 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1479 | a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0) | |
1480 | orb.CFrame = a.CFrame | |
1481 | a:Destroy() | |
1482 | - | Swait() |
1482 | + | local bv = Instance.new("BodyVelocity") |
1483 | - | script.Parent = WEAPONGUI |
1483 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
1484 | - | ANIMATE.Parent = nil |
1484 | + | bv.velocity = orb.CFrame.lookVector * 125 |
1485 | - | if Humanoid then |
1485 | + | bv.Parent = orb |
1486 | - | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) |
1486 | + | local hitted = false |
1487 | - | IDLEANIMATION:Play() |
1487 | + | game:GetService("Debris"):AddItem(orb, 15) |
1488 | wait() | |
1489 | - | SINE = SINE + CHANGE |
1489 | + | local hit = orb.Touched:connect(function(hit) |
1490 | - | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
1490 | + | if hitted == false then |
1491 | - | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
1491 | + | hitted = true |
1492 | - | Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,PRT} |
1492 | + | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) |
1493 | - | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) |
1493 | + | MagniDamage(orb, 65, 65, 90, 0, "Normal") |
1494 | - | local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore) |
1494 | + | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Crimson"), "Sphere") |
1495 | - | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) |
1495 | + | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Crimson"), "Sphere") |
1496 | - | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
1496 | + | for i = 0, 9 do |
1497 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1497 | + | Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Crimson"), 0, "Sphere") |
1498 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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) |
1498 | + | Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Crimson"), 0, "Sphere") |
1499 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1499 | + | |
1500 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1500 | + | orb.Anchored = true |
1501 | - | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then |
1501 | + | orb.Transparency = 1 |
1502 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1502 | + | wait(8) |
1503 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1503 | + | orb:Destroy() |
1504 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1504 | + | |
1505 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1505 | + | end) |
1506 | end)) | |
1507 | - | if Humanoid.Sit == false then |
1507 | + | for i = 0, 1, 0.1 do |
1508 | - | SIT.Value = false |
1508 | + | swait() |
1509 | - | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
1509 | + | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) |
1510 | - | ANIM = "Jump" |
1510 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-30)), 0.15) |
1511 | - | if PLAYANIMS == true then |
1511 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(30)), 0.3) |
1512 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1512 | + | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) |
1513 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1513 | + | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) |
1514 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1514 | + | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(87), Rad(-1), Rad(17 + 4.5 * Sin(sine / 20))), 0.1) |
1515 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
1515 | + | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), -.4) * angles(Rad(90), Rad(-.6), Rad(65 - 4.5 * Sin(sine / 20))), 0.1) |
1516 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
1516 | + | |
1517 | - | 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) |
1517 | + | attack = false |
1518 | - | 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) |
1518 | + | |
1519 | - | end |
1519 | + | function Beamo() |
1520 | - | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
1520 | + | attack = true |
1521 | - | ANIM = "Fall" |
1521 | + | hum.WalkSpeed = 0 |
1522 | - | if PLAYANIMS == true then |
1522 | + | local Ring1 = Instance.new("Part", char) |
1523 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1523 | + | Ring1.Anchored = true |
1524 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1524 | + | Ring1.BrickColor = maincolor |
1525 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1525 | + | Ring1.CanCollide = false |
1526 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
1526 | + | Ring1.FormFactor = 3 |
1527 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
1527 | + | Ring1.Name = "Ring" |
1528 | - | 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) |
1528 | + | Ring1.Material = "Neon" |
1529 | - | 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) |
1529 | + | Ring1.Size = Vector3.new(1, 0.05, 1) |
1530 | Ring1.Transparency = 1 | |
1531 | - | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
1531 | + | Ring1.TopSurface = 0 |
1532 | - | ANIM = "Idle" |
1532 | + | Ring1.BottomSurface = 0 |
1533 | - | if PLAYANIMS == true then |
1533 | + | local Ring1Mesh = Instance.new("SpecialMesh", Ring1) |
1534 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1534 | + | Ring1Mesh.MeshType = "Brick" |
1535 | - | 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) |
1535 | + | Ring1Mesh.Name = "SizeMesh" |
1536 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-8 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1536 | + | Ring1Mesh.Scale = Vector3.new(0, 1, 0) |
1537 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 - 0.25 * COS(SINE / 12), 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(7.5 * COS(SINE / 12)), RAD(45 - 7.5 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1537 | + | local InnerRing1 = Ring1:Clone() |
1538 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1538 | + | InnerRing1.Parent = char |
1539 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1539 | + | InnerRing1.Transparency = 0 |
1540 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1540 | + | InnerRing1.BrickColor = BrickColor.new("New Yeller") |
1541 | InnerRing1.Size = Vector3.new(1, 1, 1) | |
1542 | - | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
1542 | + | local InnerRing1Mesh = InnerRing1.SizeMesh |
1543 | - | ANIM = "Walk" |
1543 | + | InnerRing1Mesh.Scale = Vector3.new(0, 0, 0) |
1544 | - | if PLAYANIMS == true then |
1544 | + | InnerRing1Mesh.MeshType = "Sphere" |
1545 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0+0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(0), RAD(0), RAD(-20 * COS(SINE / WALKSPEEDVALUE / 2))), 0.5 / Animation_Speed) |
1545 | + | Ring1:Destroy() |
1546 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1546 | + | for i = 0, 8, 0.1 do |
1547 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1547 | + | swait() |
1548 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65-0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(90-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) |
1548 | + | Aura(7, 0.12, "Add", ra.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Sphere") |
1549 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) |
1549 | + | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 - 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.15) |
1550 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) |
1550 | + | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35 - 4.5 * Sin(sine / 30)), Rad(0), Rad(-90)), 0.3) |
1551 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) |
1551 | + | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15) |
1552 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5 + 3 * Sin(sine / 20)), Rad(0), Rad(0 + 2.5 * Sin(sine / 20))), 0.15) | |
1553 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0) * angles(Rad(-3 * Sin(sine / 20)), Rad(-10 * Sin(sine / 20)), Rad(90 - 2.5 * Sin(sine / 20))), 0.1) | |
1554 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0) * angles(Rad(4 * Sin(sine / 20)), Rad(10 * Sin(sine / 20)), Rad(-3 + 2.5 * Sin(sine / 20))), 0.1) | |
1555 | - | SIT.Value = true |
1555 | + | |
1556 | - | if PLAYANIMS == true then |
1556 | + | InnerRing1.Transparency = 1 |
1557 | - | Grasp.C1 = Clerp(Grasp.C1,CF(0, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1557 | + | InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 5 |
1558 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1558 | + | Cso("294188875", char, 2.3, 1) |
1559 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) |
1559 | + | local a = IT("Part", char) |
1560 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1560 | + | a.Name = "Direction" |
1561 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.05 * COS(SINE / 12), 0.3) * ANGLES(RAD(90), RAD(0), RAD(5)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
1561 | + | a.Anchored = true |
1562 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) |
1562 | + | a.BrickColor = BrickC("White") |
1563 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(-65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) |
1563 | + | a.Material = "Neon" |
1564 | a.Transparency = 0 | |
1565 | a.Shape = "Cylinder" | |
1566 | - | unanchor() |
1566 | + | a.CanCollide = false |
1567 | - | Humanoid.MaxHealth = "inf" |
1567 | + | local a2 = IT("Part", char) |
1568 | - | Humanoid.Health = "inf" |
1568 | + | a2.Name = "Direction" |
1569 | - | if Rooted == false then |
1569 | + | a2.Anchored = true |
1570 | - | Disable_Jump = false |
1570 | + | a2.BrickColor = BrickC("New Yeller") |
1571 | - | Humanoid.WalkSpeed = Speed |
1571 | + | a2.Color = maincolor.Color |
1572 | - | elseif Rooted == true then |
1572 | + | a2.Material = "Neon" |
1573 | - | Disable_Jump = true |
1573 | + | a2.Transparency = 0.2 |
1574 | - | Humanoid.WalkSpeed = 0 |
1574 | + | a2.Shape = "Cylinder" |
1575 | a2.CanCollide = false | |
1576 | - | for _, c in pairs(Character:GetChildren()) do |
1576 | + | local ba = IT("Part", char) |
1577 | - | if c.ClassName == "Part" and c.Name ~= "Eye" then |
1577 | + | ba.Name = "HitDirect" |
1578 | - | c.Material = "Neon" |
1578 | + | ba.Anchored = true |
1579 | - | if c:FindFirstChildOfClass("ParticleEmitter") then |
1579 | + | ba.BrickColor = BrickC("Really black") |
1580 | - | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
1580 | + | ba.Material = "Neon" |
1581 | ba.Transparency = 1 | |
1582 | - | c.Color = C3(0,0,0) |
1582 | + | ba.CanCollide = false |
1583 | - | if c == Head then |
1583 | + | local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) |
1584 | - | if c:FindFirstChild("face") then |
1584 | + | local ignore = char |
1585 | - | c.face:remove() |
1585 | + | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) |
1586 | a.BottomSurface = 9.9 | |
1587 | a.TopSurface = 9.9 | |
1588 | - | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then |
1588 | + | a2.BottomSurface = 10 |
1589 | - | c:remove() |
1589 | + | a2.TopSurface = 10 |
1590 | - | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then |
1590 | + | local distance = (InnerRing1.CFrame.p - position).magnitude |
1591 | - | c:remove() |
1591 | + | a.Size = Vector3.new(distance, 1, 1) |
1592 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1593 | a2.Size = Vector3.new(distance, 1, 1) | |
1594 | - | sick.SoundId = "rbxassetid://1551788627" |
1594 | + | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) |
1595 | - | sick.Looped = true |
1595 | + | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) |
1596 | - | sick.Pitch = 1 |
1596 | + | a.CFrame = a.CFrame * angles(0, Rad(90), 0) |
1597 | - | sick.Volume = 3 |
1597 | + | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) |
1598 | - | sick.Parent = Torso |
1598 | + | game:GetService("Debris"):AddItem(a, 20) |
1599 | - | sick:Resume() |
1599 | + | game:GetService("Debris"):AddItem(a2, 20) |
1600 | - | Humanoid.Name = "Pharaoh" |
1600 | + | game:GetService("Debris"):AddItem(ba, 20) |
1601 | local msh = Instance.new("SpecialMesh", a) | |
1602 | msh.MeshType = "Cylinder" | |
1603 | - | --//=================================\\ |
1603 | + | msh.Scale = Vector3.new(1, 15, 15) |
1604 | - | --\\=================================// |
1604 | + | local msh2 = Instance.new("SpecialMesh", a2) |
1605 | msh2.MeshType = "Cylinder" | |
1606 | msh2.Scale = Vector3.new(1, 25, 25) | |
1607 | for z = 0, 1 do | |
1608 | for i = 0, 4, 0.1 do | |
1609 | swait() | |
1610 | - | --//====================================================\\-- |
1610 | + | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) |
1611 | - | --|| END OF SCRIPT |
1611 | + | a2.Color = maincolor.Color |
1612 | - | --\\====================================================//-- |
1612 | + | root.CFrame = FaceMouse()[1] |
1613 | InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
1614 | ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
1615 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1616 | distance = (InnerRing1.CFrame.p - position).magnitude | |
1617 | a.Size = Vector3.new(distance, 1, 1) | |
1618 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1619 | a2.Size = Vector3.new(distance, 1, 1) | |
1620 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1621 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
1622 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
1623 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
1624 | msh.Scale = msh.Scale - Vector3.new(0, 0.25, 0.25) | |
1625 | msh2.Scale = msh2.Scale - Vector3.new(0, 0.3, 0.3) | |
1626 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere") | |
1627 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Brick") | |
1628 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do | |
1629 | if v:FindFirstChild("Head") then | |
1630 | Eviscerate(v) | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | for i = 0, 4, 0.1 do | |
1635 | swait() | |
1636 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
1637 | a2.Color = maincolor.Color | |
1638 | root.CFrame = FaceMouse()[1] | |
1639 | InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
1640 | ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
1641 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1642 | distance = (InnerRing1.CFrame.p - position).magnitude | |
1643 | a.Size = Vector3.new(distance, 1, 1) | |
1644 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1645 | a2.Size = Vector3.new(distance, 1, 1) | |
1646 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1647 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
1648 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
1649 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
1650 | msh.Scale = msh.Scale + Vector3.new(0, 0.25, 0.25) | |
1651 | msh2.Scale = msh2.Scale + Vector3.new(0, 0.3, 0.3) | |
1652 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere") | |
1653 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Brick") | |
1654 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do | |
1655 | if v:FindFirstChild("Head") then | |
1656 | Eviscerate(v) | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | end | |
1661 | for i = 0, 10, 0.1 do | |
1662 | swait() | |
1663 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
1664 | a2.Color = maincolor.Color | |
1665 | root.CFrame = FaceMouse()[1] | |
1666 | InnerRing1.CFrame = root.CFrame * CF(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
1667 | ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
1668 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1669 | distance = (InnerRing1.CFrame.p - position).magnitude | |
1670 | a.Size = Vector3.new(distance, 1, 1) | |
1671 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1672 | a2.Size = Vector3.new(distance, 1, 1) | |
1673 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1674 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
1675 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
1676 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
1677 | msh.Scale = msh.Scale - Vector3.new(0, 0.15, 0.15) | |
1678 | msh2.Scale = msh2.Scale - Vector3.new(0, 0.2, 0.2) | |
1679 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere") | |
1680 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Brick") | |
1681 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do | |
1682 | if v:FindFirstChild("Head") then | |
1683 | Eviscerate(v) | |
1684 | end | |
1685 | end | |
1686 | end | |
1687 | hum.WalkSpeed = 8 | |
1688 | a:Destroy() | |
1689 | a2:Destroy() | |
1690 | ba:Destroy() | |
1691 | InnerRing1:Destroy() | |
1692 | attack = false | |
1693 | hum.CameraOffset = Vector3.new(0,0,0) | |
1694 | end | |
1695 | function Chaotic_Stomp() | |
1696 | attack = true | |
1697 | for i = 0,5.2,0.1 do | |
1698 | swait() | |
1699 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
1700 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1701 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
1702 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
1703 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
1704 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
1705 | end | |
1706 | Cso("331666100", char, 10, .85) | |
1707 | coroutine.resume(coroutine.create(function() | |
1708 | for i = 0,3.7,0.1 do | |
1709 | Aura(2.5, 0.75, "Add", root.CFrame * CF(Mrandom(-9.5, 9.5), -5, Mrandom(-9.5, 9.5)) * angles(Rad(90 + Rad(Mrandom(-45, 45))), Rad(Mrandom(-45, 45)), Rad(Mrandom(-45, 45))), 2.5, 2.5, 25, -0.025, maincolor, 0, "Brick") | |
1710 | end | |
1711 | end)) | |
1712 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1713 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1714 | Effects.Sphere.Create(maincolor, root.CFrame * CF(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
1715 | Effects.Sphere.Create(maincolor, root.CFrame * CF(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
1716 | Magic(5, "Add", root.CFrame * CF(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1717 | Magic(10, "Add", root.CFrame * CF(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1718 | Magic(1, "Add", root.CFrame * CF(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, maincolor, "Sphere") | |
1719 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.7)) do | |
1720 | if v:FindFirstChild("Head") then | |
1721 | Eviscerate(v) | |
1722 | end | |
1723 | end | |
1724 | coroutine.resume(coroutine.create(function() | |
1725 | for i = 0,2.8,0.1 do | |
1726 | swait() | |
1727 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
1728 | end | |
1729 | for i = 0,1.8,0.1 do | |
1730 | swait() | |
1731 | hum.CameraOffset = Vector3.new(0,0,0) | |
1732 | end | |
1733 | end)) | |
1734 | for i = 0,3.7,0.1 do | |
1735 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
1736 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1737 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
1738 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
1739 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
1740 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
1741 | end | |
1742 | wait(.6) | |
1743 | attack = false | |
1744 | end | |
1745 | ------------------------------------------------------- | |
1746 | --End Attacks N Stuff-- | |
1747 | ------------------------------------------------------- | |
1748 | mouse.KeyDown:connect(function(key) | |
1749 | if string.byte(key) == 48 then | |
1750 | Swing = 2 | |
1751 | hum.WalkSpeed = 38.82 | |
1752 | end | |
1753 | end) | |
1754 | mouse.KeyUp:connect(function(key) | |
1755 | if string.byte(key) == 48 then | |
1756 | Swing = 1 | |
1757 | hum.WalkSpeed = 8 | |
1758 | end | |
1759 | end) | |
1760 | mouse.KeyDown:connect(function(key) | |
1761 | if attack == false then | |
1762 | if key == 'z' then | |
1763 | Burning_Sphere() | |
1764 | elseif key == 'x' then | |
1765 | Beamo() | |
1766 | elseif key == 'c' then | |
1767 | Chaotic_Stomp() | |
1768 | end | |
1769 | end | |
1770 | end) | |
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ------------------------------------------------------- | |
1780 | --Start Animations-- | |
1781 | ------------------------------------------------------- | |
1782 | local equipped = false | |
1783 | local idle = 0 | |
1784 | local change = 1 | |
1785 | local val = 0 | |
1786 | local toim = 0 | |
1787 | local idleanim = 0.4 | |
1788 | hum.WalkSpeed = 8 | |
1789 | hum.JumpPower = 57 | |
1790 | hum.Animator.Parent = nil | |
1791 | while true do | |
1792 | swait() | |
1793 | sine = sine + change | |
1794 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1795 | local velderp = root.Velocity.y | |
1796 | hitfloor, posfloor = rayCast(root.Position, CF(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1797 | if equipped == true or equipped == false then | |
1798 | if attack == false then | |
1799 | idle = idle + 1 | |
1800 | else | |
1801 | idle = 0 | |
1802 | end | |
1803 | Aura(5, 0.3, "Add" , root.CFrame * CF(Mrandom(-9, 9), -6, Mrandom(-9, 9)) * angles(Rad(90), 0, 0), 1.5, 1.5, 10, -0.015, BrickColor.new("Really black"), 0, "Brick") | |
1804 | BodyPosition.Position = hed.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) | |
1805 | if 1 < root.Velocity.y and hitfloor == nil then | |
1806 | Anim = "Jump" | |
1807 | if attack == false then | |
1808 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
1809 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1810 | RH.C0 = clerp(RH.C0, CF(1, -.2 - 0.1 * Cos(sine / 20), -.3) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1811 | LH.C0 = clerp(LH.C0, CF(-1, -.9 - 0.1 * Cos(sine / 20), -.5) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1812 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
1813 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1814 | end | |
1815 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1816 | Anim = "Fall" | |
1817 | if attack == false then | |
1818 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1819 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1820 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.1 * Cos(sine / 20), -.3) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1821 | LH.C0 = clerp(LH.C0, CF(-1, -.8 - 0.1 * Cos(sine / 20), -.3) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1822 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1823 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1824 | end | |
1825 | elseif torvel < 1 and hitfloor ~= nil then | |
1826 | Anim = "Idle" | |
1827 | change = .5 | |
1828 | if attack == false then | |
1829 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15) | |
1830 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3) | |
1831 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1832 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1833 | RW.C0 = clerp(RW.C0, CF(.9, 0.5 + 0.02 * Sin(sine / 20), -.4) * angles(Rad(90), Rad(-1), Rad(-75 + 4.5 * Sin(sine / 20))), 0.1) | |
1834 | LW.C0 = clerp(LW.C0, CF(-.9, 0.5 + 0.02 * Sin(sine / 20), -.4) * angles(Rad(90), Rad(-.6), Rad(65 - 4.5 * Sin(sine / 20))), 0.1) | |
1835 | end | |
1836 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
1837 | Anim = "Walk" | |
1838 | change = .9 | |
1839 | if attack == false then | |
1840 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
1841 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1842 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1843 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1844 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1845 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1846 | end | |
1847 | elseif torvel >= 25 and hitfloor ~= nil then | |
1848 | Anim = "Sprint" | |
1849 | change = 1.35 | |
1850 | if attack == false then | |
1851 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
1852 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1853 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1854 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1855 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
1856 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
1857 | end | |
1858 | end | |
1859 | end | |
1860 | if 0 < #Effects then | |
1861 | for e = 1, #Effects do | |
1862 | if Effects[e] ~= nil then | |
1863 | local Thing = Effects[e] | |
1864 | if Thing ~= nil then | |
1865 | local Part = Thing[1] | |
1866 | local Mode = Thing[2] | |
1867 | local Delay = Thing[3] | |
1868 | local IncX = Thing[4] | |
1869 | local IncY = Thing[5] | |
1870 | local IncZ = Thing[6] | |
1871 | if 1 >= Thing[1].Transparency then | |
1872 | if Thing[2] == "Block1" then | |
1873 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(Mrandom(-50, 50), Mrandom(-50, 50), Mrandom(-50, 50)) | |
1874 | local Mesh = Thing[1].Mesh | |
1875 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1876 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1877 | elseif Thing[2] == "Block2" then | |
1878 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1879 | local Mesh = Thing[7] | |
1880 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1881 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1882 | elseif Thing[2] == "Block3" then | |
1883 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(Mrandom(-50, 50), Mrandom(-50, 50), Mrandom(-50, 50)) + Vector3.new(0, 0.15, 0) | |
1884 | local Mesh = Thing[7] | |
1885 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1886 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1887 | elseif Thing[2] == "Cylinder" then | |
1888 | local Mesh = Thing[1].Mesh | |
1889 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1890 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1891 | elseif Thing[2] == "Blood" then | |
1892 | local Mesh = Thing[7] | |
1893 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1894 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1895 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1896 | elseif Thing[2] == "Elec" then | |
1897 | local Mesh = Thing[1].Mesh | |
1898 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1899 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1900 | elseif Thing[2] == "Disappear" then | |
1901 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1902 | elseif Thing[2] == "Shatter" then | |
1903 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1904 | Thing[4] = Thing[4] * CF(0, Thing[7], 0) | |
1905 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1906 | Thing[6] = Thing[6] + Thing[5] | |
1907 | end | |
1908 | else | |
1909 | Part.Parent = nil | |
1910 | table.remove(Effects, e) | |
1911 | end | |
1912 | end | |
1913 | end | |
1914 | end | |
1915 | end | |
1916 | end | |
1917 | ------------------------------------------------------- | |
1918 | --End Animations And Script-- | |
1919 | ------------------------------------------------------- |