SHOW:
|
|
- or go back to the newest paste.
1 | --meme smash!11!!! pls just stop | |
2 | Player = game:GetService("Players").LocalPlayer | |
3 | Character = Player.Character | |
4 | PlayerGui = Player.PlayerGui | |
5 | Backpack = Player.Backpack | |
6 | Torso = Character.Torso | |
7 | Head = Character.Head | |
8 | Humanoid = Character.Humanoid | |
9 | LeftArm = Character["Left Arm"] | |
10 | LeftLeg = Character["Left Leg"] | |
11 | RightArm = Character["Right Arm"] | |
12 | RightLeg = Character["Right Leg"] | |
13 | LS = Torso["Left Shoulder"] | |
14 | LH = Torso["Left Hip"] | |
15 | RS = Torso["Right Shoulder"] | |
16 | RH = Torso["Right Hip"] | |
17 | Face = Head.face | |
18 | Neck = Torso.Neck | |
19 | it = Instance.new | |
20 | attacktype = 1 | |
21 | vt = Vector3.new | |
22 | cf = CFrame.new | |
23 | euler = CFrame.fromEulerAnglesXYZ | |
24 | angles = CFrame.Angles | |
25 | cloaked = false | |
26 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
27 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
28 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
29 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
30 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
31 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
32 | RootPart = Character.HumanoidRootPart | |
33 | RootJoint = RootPart.RootJoint | |
34 | RootCF = euler(-1.57, 0, 3.14) | |
35 | attack = false | |
36 | attackdebounce = false | |
37 | deb = false | |
38 | equipped = false | |
39 | hand = false | |
40 | MMouse = nil | |
41 | combo = 0 | |
42 | mana = 0 | |
43 | trispeed = 0.2 | |
44 | attackmode = "none" | |
45 | local idle = 0 | |
46 | local Anim = "Idle" | |
47 | local gun = false | |
48 | local shoot = false | |
49 | player = nil | |
50 | mana = 0 | |
51 | local Player = game.Players.localPlayer | |
52 | local Character = Player.Character | |
53 | local Humanoid = Character.Humanoid | |
54 | local mouse = Player:GetMouse() | |
55 | local LeftArm = Character["Left Arm"] | |
56 | local RightArm = Character["Right Arm"] | |
57 | local LeftLeg = Character["Left Leg"] | |
58 | local RightLeg = Character["Right Leg"] | |
59 | local Head = Character.Head | |
60 | local Torso = Character.Torso | |
61 | local cam = game.Workspace.CurrentCamera | |
62 | local RootPart = Character.HumanoidRootPart | |
63 | local equipped = false | |
64 | local attack = false | |
65 | local Anim = "Idle" | |
66 | local idle = 0 | |
67 | local sprint = false | |
68 | local battlestance = false | |
69 | local attacktype = 1 | |
70 | local state = "none" | |
71 | local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
72 | local velocity = RootPart.Velocity.y | |
73 | local sine = 0 | |
74 | local change = 1 | |
75 | local on = false | |
76 | local grabbed = false | |
77 | local skill1 = false | |
78 | local skill2 = false | |
79 | local skill3 = false | |
80 | local skill4 = false | |
81 | local cooldown1 = 0 | |
82 | local cooldown2 = 0 | |
83 | local cooldown3 = 0 | |
84 | local cooldown4 = 0 | |
85 | local co1 = 0 | |
86 | local co2 = 0 | |
87 | local co3 = 0 | |
88 | local co4 = 0 | |
89 | local inputserv = game:GetService("UserInputService") | |
90 | local typing = false | |
91 | local crit = false | |
92 | local critchance = 2 | |
93 | local critdamageaddmin = 3 | |
94 | local critdamageaddmax = 7 | |
95 | - | local maxstamina = 100 |
95 | + | local maxstamina = 1000 |
96 | local stamina = 0 | |
97 | local skill1stam = 0 | |
98 | local skill2stam = 0 | |
99 | local skill3stam = 0 | |
100 | local skill4stam = 0 | |
101 | local recovermana = 3 | |
102 | - | local mindamage = 5 |
102 | + | local mindamage = 100 |
103 | - | local maxdamage = 10 |
103 | + | local maxdamage = 200 |
104 | local cf = CFrame.new | |
105 | local mr = math.rad | |
106 | local angles = CFrame.Angles | |
107 | local ud = UDim2.new | |
108 | local c3 = Color3.new | |
109 | local skillcolorscheme = c3(1, 1, 1) | |
110 | - | local defensevalue = 1 |
110 | + | local defensevalue = 200 |
111 | - | local speedvalue = 1 |
111 | + | local speedvalue = 50 |
112 | - | local damagevalue = 1 |
112 | + | local damagevalue = 200 |
113 | local cf = CFrame.new | |
114 | local mr = math.rad | |
115 | local angles = CFrame.Angles | |
116 | local ud = UDim2.new | |
117 | local c3 = Color3.new | |
118 | local skillcolorscheme = c3(1, 1, 1) | |
119 | local scrn = Instance.new("ScreenGui", Player.PlayerGui) | |
120 | makeframe = function(par, trans, pos, size, color) | |
121 | local frame = Instance.new("Frame", par) | |
122 | frame.BackgroundTransparency = trans | |
123 | frame.BorderSizePixel = 0 | |
124 | frame.Position = pos | |
125 | frame.Size = size | |
126 | frame.BackgroundColor3 = color | |
127 | return frame | |
128 | end | |
129 | ||
130 | makelabel = function(par, text) | |
131 | local label = Instance.new("TextLabel", par) | |
132 | label.BackgroundTransparency = 1 | |
133 | label.Size = ud(1, 0, 1, 0) | |
134 | label.Position = ud(0, 0, 0, 0) | |
135 | label.TextColor3 = c3(255, 255, 255) | |
136 | label.TextStrokeTransparency = 0 | |
137 | label.FontSize = Enum.FontSize.Size32 | |
138 | label.Font = Enum.Font.SourceSansBold | |
139 | label.BorderSizePixel = 0 | |
140 | label.TextScaled = true | |
141 | label.Text = text | |
142 | end | |
143 | ||
144 | local stats = Instance.new("Folder", Character) | |
145 | stats.Name = "Stats" | |
146 | local block = Instance.new("BoolValue", stats) | |
147 | block.Name = "Block" | |
148 | block.Value = false | |
149 | local stun = Instance.new("BoolValue", stats) | |
150 | stun.Name = "Stun" | |
151 | stun.Value = false | |
152 | local defense = Instance.new("NumberValue", stats) | |
153 | defense.Name = "Defence" | |
154 | defense.Value = defensevalue | |
155 | local speed = Instance.new("NumberValue", stats) | |
156 | speed.Name = "Speed" | |
157 | speed.Value = speedvalue | |
158 | local damagea = Instance.new("NumberValue", stats) | |
159 | damagea.Name = "Damage" | |
160 | damagea.Value = damagevalue | |
161 | framesk1 = makeframe(scrn, 0.5, ud(0.13, 0, 0.56, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 0.5)) | |
162 | bar1 = makeframe(framesk1, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 0.5)) | |
163 | ammolabel = Instance.new("TextLabel", framesk1) | |
164 | ammolabel.BackgroundTransparency = 1 | |
165 | ammolabel.Size = ud(1, 0, 1, 0) | |
166 | ammolabel.Position = ud(0, 0, 0, 0) | |
167 | ammolabel.TextColor3 = c3(255, 255, 255) | |
168 | ammolabel.TextStrokeTransparency = 0 | |
169 | ammolabel.FontSize = Enum.FontSize.Size8 | |
170 | ammolabel.Font = Enum.Font.SourceSans | |
171 | ammolabel.BorderSizePixel = 0 | |
172 | ammolabel.TextScaled = true | |
173 | ammolabel.Text = "Speed [" .. speed.Value .. "]" | |
174 | framesk2 = makeframe(scrn, 0.5, ud(0.13, 0, 0.63, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1)) | |
175 | bar2 = makeframe(framesk2, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.5, 0.25, 0.25)) | |
176 | ammolabel2 = Instance.new("TextLabel", framesk2) | |
177 | ammolabel2.BackgroundTransparency = 1 | |
178 | ammolabel2.Size = ud(1, 0, 1, 0) | |
179 | ammolabel2.Position = ud(0, 0, 0, 0) | |
180 | ammolabel2.TextColor3 = c3(255, 255, 255) | |
181 | ammolabel2.TextStrokeTransparency = 0 | |
182 | ammolabel2.FontSize = Enum.FontSize.Size8 | |
183 | ammolabel2.Font = Enum.Font.SourceSans | |
184 | ammolabel2.BorderSizePixel = 0 | |
185 | ammolabel2.TextScaled = true | |
186 | ammolabel2.Text = "Damage [" .. damagea.Value .. "]" | |
187 | framesk3 = makeframe(scrn, 0.5, ud(0.13, 0, 0.7, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1)) | |
188 | bar3 = makeframe(framesk3, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.25, 0.25, 0.5)) | |
189 | ammolabel3 = Instance.new("TextLabel", framesk3) | |
190 | ammolabel3.BackgroundTransparency = 1 | |
191 | ammolabel3.Size = ud(1, 0, 1, 0) | |
192 | ammolabel3.Position = ud(0, 0, 0, 0) | |
193 | ammolabel3.TextColor3 = c3(255, 255, 255) | |
194 | ammolabel3.TextStrokeTransparency = 0 | |
195 | ammolabel3.FontSize = Enum.FontSize.Size8 | |
196 | ammolabel3.Font = Enum.Font.SourceSans | |
197 | ammolabel3.BorderSizePixel = 0 | |
198 | ammolabel3.TextScaled = true | |
199 | ammolabel3.Text = "Defense [" .. defense.Value .. "]" | |
200 | framesk4 = makeframe(scrn, 0.5, ud(0.13, 0, 0.42, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 1)) | |
201 | bar4 = makeframe(framesk4, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 1)) | |
202 | ammolabel4 = Instance.new("TextLabel", framesk4) | |
203 | ammolabel4.BackgroundTransparency = 1 | |
204 | ammolabel4.Size = ud(1, 0, 1, 0) | |
205 | ammolabel4.Position = ud(0, 0, 0, 0) | |
206 | ammolabel4.TextColor3 = c3(255, 255, 255) | |
207 | ammolabel4.TextStrokeTransparency = 0 | |
208 | ammolabel4.FontSize = Enum.FontSize.Size8 | |
209 | ammolabel4.Font = Enum.Font.SourceSans | |
210 | ammolabel4.BorderSizePixel = 0 | |
211 | ammolabel4.TextScaled = true | |
212 | ammolabel4.Text = "Press F to equip your weapon." | |
213 | framesk5 = makeframe(scrn, 0.5, ud(0.13, 0, 0.49, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 1)) | |
214 | bar5 = makeframe(framesk5, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 1)) | |
215 | ammolabel4 = Instance.new("TextLabel", framesk5) | |
216 | ammolabel4.BackgroundTransparency = 1 | |
217 | ammolabel4.Size = ud(1, 0, 1, 0) | |
218 | ammolabel4.Position = ud(0, 0, 0, 0) | |
219 | ammolabel4.TextColor3 = c3(255, 255, 255) | |
220 | ammolabel4.TextStrokeTransparency = 0 | |
221 | ammolabel4.FontSize = Enum.FontSize.Size8 | |
222 | ammolabel4.Font = Enum.Font.SourceSans | |
223 | ammolabel4.BorderSizePixel = 0 | |
224 | ammolabel4.TextScaled = true | |
225 | ammolabel4.Text = "The keys for the abilities are: E, Z, X, C, and V." | |
226 | animate = Character:findFirstChild("Animate") | |
227 | animate.Disabled = false | |
228 | CustomColor = Torso.BrickColor | |
229 | Colorpart1 = Torso.BrickColor.r | |
230 | Colorpart2 = Torso.BrickColor.g | |
231 | Colorpart3 = Torso.BrickColor.b | |
232 | mouse = Player:GetMouse() | |
233 | RW = Torso["Right Shoulder"] | |
234 | LW = Torso["Left Shoulder"] | |
235 | LH = Torso["Left Hip"] | |
236 | RH = Torso["Right Hip"] | |
237 | TorsoColor = Torso.BrickColor | |
238 | NoOutline = function(Part) | |
239 | Part.TopSurface = 10 | |
240 | end | |
241 | ||
242 | local weldBetween = function(a, b) | |
243 | local weldd = Instance.new("ManualWeld") | |
244 | weldd.Part0 = a | |
245 | weldd.Part1 = b | |
246 | weldd.C0 = CFrame.new() | |
247 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
248 | weldd.Parent = a | |
249 | return weldd | |
250 | end | |
251 | ||
252 | swait = function(num) | |
253 | if num == 0 or num == nil then | |
254 | game:service("RunService").Stepped:wait(0) | |
255 | else | |
256 | for i = 0, num do | |
257 | game:service("RunService").Stepped:wait(0) | |
258 | end | |
259 | end | |
260 | end | |
261 | ||
262 | fat = Instance.new("BindableEvent", script) | |
263 | fat.Name = "Heartbeat" | |
264 | script:WaitForChild("Heartbeat") | |
265 | frame = 0.033333333333333 | |
266 | tf = 0 | |
267 | allowframeloss = false | |
268 | tossremainder = false | |
269 | lastframe = tick() | |
270 | script.Heartbeat:Fire() | |
271 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
272 | tf = tf + s | |
273 | if frame <= tf then | |
274 | if allowframeloss then | |
275 | script.Heartbeat:Fire() | |
276 | lastframe = tick() | |
277 | else | |
278 | for i = 1, math.floor(tf / frame) do | |
279 | script.Heartbeat:Fire() | |
280 | end | |
281 | lastframe = tick() | |
282 | end | |
283 | if tossremainder then | |
284 | tf = 0 | |
285 | else | |
286 | tf = tf - frame * math.floor(tf / frame) | |
287 | end | |
288 | end | |
289 | end | |
290 | ) | |
291 | nooutline = function(part) | |
292 | part.TopSurface = 10 | |
293 | end | |
294 | ||
295 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
296 | local fp = it("Part") | |
297 | fp.formFactor = formfactor | |
298 | fp.Parent = parent | |
299 | fp.Reflectance = reflectance | |
300 | fp.Transparency = transparency | |
301 | fp.CanCollide = false | |
302 | fp.Locked = true | |
303 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
304 | fp.Name = name | |
305 | fp.Size = size | |
306 | fp.Position = Character.Torso.Position | |
307 | nooutline(fp) | |
308 | fp.Material = material | |
309 | fp:BreakJoints() | |
310 | return fp | |
311 | end | |
312 | ||
313 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
314 | local mesh = it(Mesh) | |
315 | mesh.Parent = part | |
316 | if Mesh == "SpecialMesh" then | |
317 | mesh.MeshType = meshtype | |
318 | mesh.MeshId = meshid | |
319 | end | |
320 | mesh.Offset = offset | |
321 | mesh.Scale = scale | |
322 | return mesh | |
323 | end | |
324 | ||
325 | weld = function(parent, part0, part1, c0, c1) | |
326 | local weld = it("Weld") | |
327 | weld.Parent = parent | |
328 | weld.Part0 = part0 | |
329 | weld.Part1 = part1 | |
330 | weld.C0 = c0 | |
331 | weld.C1 = c1 | |
332 | return weld | |
333 | end | |
334 | ||
335 | m = Instance.new("Model", Character) | |
336 | m.Name = "STOP" | |
337 | Handle = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
338 | Handleweld = weld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.14576721e-005, 1.00000191, 1.52587891e-005, -4.37113883e-008, 0, -1, 0, 0.999999881, 0, 1, 0, -4.37113883e-008)) | |
339 | mesh("SpecialMesh", Handle, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(35, 1.5, 1.5)) | |
340 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
341 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.01000118, -0.200000763, -1.1920929e-007, 1, 4.37113883e-008, 0, 0, 1.91068547e-015, 1, 4.37113883e-008, -1, 1.91068547e-015)) | |
342 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 4)) | |
343 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
344 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.1283927, -0.200000763, -2.12839127, 0.707106948, 0.70710659, -1.28027615e-008, -1.28027615e-008, 3.0908609e-008, 1, 0.70710659, -0.707106948, 3.0908609e-008)) | |
345 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(9.89999962, 1, 4.19999981)) | |
346 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
347 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.12839174, -0.200000763, -2.1283927, -0.70710659, 0.707106948, -7.46199973e-008, -7.46199973e-008, 3.09086268e-008, 1, 0.707106948, 0.70710659, 3.09086268e-008)) | |
348 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(9.89999962, 1, 4.19999981)) | |
349 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
350 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.200000763, 3.01000118, 1.91068547e-015, -1, -4.37113883e-008, -4.37113883e-008, -4.37113883e-008, 1, -1, 0, -4.37113883e-008)) | |
351 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 4)) | |
352 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
353 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.724999547, -0.210002899, -3.34500122, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
354 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
355 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
356 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.18500042, -0.210002899, -0.824999571, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
357 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
358 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
359 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.72500062, -0.210002899, 3.0350008, -5.96046341e-008, -1, -4.37113954e-008, -4.37113883e-008, -4.37113918e-008, 1, -1, 5.96046377e-008, -4.37113847e-008)) | |
360 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
361 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
362 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88500118, -0.210002899, -0.625000238, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
363 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
364 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
365 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.725000381, -0.210002899, 2.73500061, -5.96046341e-008, -1, -4.37113954e-008, -4.37113883e-008, -4.37113918e-008, 1, -1, 5.96046377e-008, -4.37113847e-008)) | |
366 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
367 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
368 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88500023, -0.210002899, -0.305000544, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
369 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
370 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
371 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.1950016, -0.210002899, -0.30500102, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
372 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
373 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
374 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.305000186, -0.210002899, -3.34500217, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
375 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
376 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
377 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88500118, -0.210002899, 0.015000701, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
378 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
379 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
380 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500065, -0.210002899, 0.0150001049, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
381 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
382 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
383 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.164998531, -0.210002899, -3.34500122, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
384 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
385 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
386 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88500118, -0.210002899, 0.315000296, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
387 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
388 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
389 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500065, -0.210002899, 0.315001369, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
390 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
391 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
392 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.164998174, -0.210002899, -2.73500061, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
393 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
394 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
395 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88500214, -0.210002899, 0.535002112, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
396 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
397 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
398 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500065, -0.210002899, 0.535001278, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
399 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
400 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
401 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500065, -0.210002899, 0.834999204, -1, 5.96046377e-008, -8.74227766e-008, -8.74227766e-008, 0, 1, 5.96046377e-008, 1, 5.21080354e-015)) | |
402 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
403 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
404 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.684997559, -0.210002899, -3.34500027, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
405 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
406 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
407 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.684998512, -0.210002899, -3.04500103, 5.96046412e-008, 1, -4.37113883e-008, -4.37113847e-008, 4.37113918e-008, 1, 1, -5.96046377e-008, 4.37113883e-008)) | |
408 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
409 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
410 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.01000166, -0.189994812, 0.0100030899, 1, -4.37114025e-008, -1.58932352e-008, -1.58932387e-008, -5.96046377e-008, -1, 4.37114025e-008, 1, -5.96046341e-008)) | |
411 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 4)) | |
412 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
413 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.1354661, -0.189994812, -2.12131977, 0.707106829, -0.707106769, 4.58097809e-008, -2.24173533e-008, -8.72021815e-008, -1, 0.707106769, 0.707106829, -7.75127234e-008)) | |
414 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(9.89999962, 1, 4.19999981)) | |
415 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
416 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.12131834, -0.189994812, -2.13546705, -0.707106292, -0.707107246, -6.07109172e-008, 1.47268324e-007, -6.14099775e-008, -1, 0.707107246, -0.707106292, 1.47557884e-007)) | |
417 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(9.89999962, 1, 4.19999981)) | |
418 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
419 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0100032091, -0.189994812, 3.01000166, 2.60540156e-015, 1, -5.96046377e-008, -1.58932636e-008, -5.96046377e-008, -1, -1, 3.55271368e-015, 1.58932636e-008)) | |
420 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 4)) | |
421 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
422 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.735001564, -0.199996948, -3.34499979, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
423 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
424 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
425 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.18499231, -0.199996948, -0.834997773, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
426 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
427 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
428 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.735005498, -0.199996948, 3.03500223, -5.96046164e-008, 1, -5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, -1, -5.96046164e-008, 1.58932636e-008)) | |
429 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
430 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
431 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88499784, -0.200004578, -0.63499558, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
432 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
433 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
434 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.734998822, -0.199993134, 2.73499918, -5.96046164e-008, 1, -5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, -1, -5.96046164e-008, 1.58932636e-008)) | |
435 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
436 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
437 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.88499594, -0.200000763, -0.315001726, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
438 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
439 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
440 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500494, -0.199996948, -0.31500113, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
441 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
442 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
443 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.315002918, -0.200000763, -3.34500074, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
444 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2, 1, 1)) | |
445 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
446 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.8849988, -0.200000763, 0.00499808788, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
447 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
448 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
449 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500017, -0.200000763, 0.00499856472, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
450 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
451 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
452 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154998422, -0.200000763, -3.34500074, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
453 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
454 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
455 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.8849988, -0.200004578, 0.305001616, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
456 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
457 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
458 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500017, -0.200004578, 0.305000901, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
459 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
460 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
461 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154993892, -0.199996948, -2.73500013, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
462 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
463 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
464 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.8849988, -0.200000763, 0.525003314, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
465 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
466 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
467 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500017, -0.200004578, 0.524998307, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
468 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
469 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
470 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.19500017, -0.200004578, 0.82499969, -1, -5.96046519e-008, 1.58932281e-008, -1.58932245e-008, -5.96046377e-008, -1, 5.96046519e-008, -1, 5.96046377e-008)) | |
471 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
472 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
473 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.675001979, -0.199996948, -3.34499884, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
474 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
475 | Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
476 | Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.675001979, -0.199996948, -3.04500151, 5.96046092e-008, -1, 5.96046412e-008, -1.58932636e-008, -5.96046377e-008, -1, 1, 5.96046092e-008, -1.58932636e-008)) | |
477 | mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(2.5, 1, 1)) | |
478 | - | Hitbox = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Hitbox", Vector3.new(0.899999976, 2.25, 2.25)) |
478 | + | Hitbox = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "Hitbox", Vector3.new(0.899999976, 2.25, 2.25)) |
479 | Hitboxweld = weld(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 3.01000118, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)) | |
480 | Handleweld.Part0 = Torso | |
481 | Handleweld.Part1 = Handle | |
482 | Handleweld.C0 = cf(-0.5, 0.75, 0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(45), math.rad(0), math.rad(0)) | |
483 | if script.Parent.className ~= "HopperBin" then | |
484 | Tool = Instance.new("HopperBin") | |
485 | Tool.Parent = Backpack | |
486 | Tool.Name = "It\'s Time to Stop" | |
487 | script.Parent = Tool | |
488 | end | |
489 | Bin = script.Parent | |
490 | for i,v in pairs(Character:GetChildren()) do | |
491 | if v:IsA("Model") then | |
492 | for _,c in pairs(v:GetChildren()) do | |
493 | if c:IsA("Part") then | |
494 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
495 | end | |
496 | end | |
497 | end | |
498 | end | |
499 | so = function(id, par, vol, pit) | |
500 | coroutine.resume(coroutine.create(function() | |
501 | local sou = Instance.new("Sound", par or workspace) | |
502 | sou.Volume = vol | |
503 | sou.Pitch = pit or 1 | |
504 | sou.SoundId = id | |
505 | swait() | |
506 | sou:play() | |
507 | game:GetService("Debris"):AddItem(sou, 6) | |
508 | end | |
509 | )) | |
510 | end | |
511 | ||
512 | local CFrameFromTopBack = function(at, top, back) | |
513 | local right = top:Cross(back) | |
514 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
515 | end | |
516 | ||
517 | Triangle = function(a, b, c) | |
518 | local edg1 = c - a:Dot(b - a.unit) | |
519 | local edg2 = a - b:Dot(c - b.unit) | |
520 | local edg3 = b - c:Dot(a - c.unit) | |
521 | if edg1 <= b - a.magnitude and edg1 >= 0 then | |
522 | a = a | |
523 | else | |
524 | -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg' | |
525 | ||
526 | if edg2 <= c - b.magnitude and edg2 >= 0 then | |
527 | a = b | |
528 | else | |
529 | -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg' | |
530 | ||
531 | -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg' | |
532 | ||
533 | if edg3 <= a - c.magnitude and edg3 >= 0 then | |
534 | a = c | |
535 | else | |
536 | assert(false, "unreachable") | |
537 | end | |
538 | end | |
539 | end | |
540 | local len1 = c - a:Dot(b - a.unit) | |
541 | local len2 = b - a.magnitude - len1 | |
542 | local width = a + b - a.unit * len1 - c.magnitude | |
543 | local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit) | |
544 | local list = {} | |
545 | local TrailColor = "Dark grey" | |
546 | if len1 > 0.01 then | |
547 | local w1 = Instance.new("WedgePart", m) | |
548 | game:GetService("Debris"):AddItem(w1, 5) | |
549 | w1.Material = "SmoothPlastic" | |
550 | w1.FormFactor = "Custom" | |
551 | w1.BrickColor = BrickColor.new(TrailColor) | |
552 | w1.Transparency = 0 | |
553 | w1.Reflectance = 0 | |
554 | w1.Material = "SmoothPlastic" | |
555 | w1.CanCollide = false | |
556 | NoOutline(w1) | |
557 | local sz = Vector3.new(0.2, width, len1) | |
558 | w1.Size = sz | |
559 | local sp = Instance.new("SpecialMesh", w1) | |
560 | sp.MeshType = "Wedge" | |
561 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
562 | w1:BreakJoints() | |
563 | w1.Anchored = true | |
564 | w1.Parent = workspace | |
565 | w1.Transparency = 0.7 | |
566 | table.insert(Effects, {w1, "Disappear", 0.01}) | |
567 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
568 | table.insert(list, w1) | |
569 | end | |
570 | do | |
571 | if len2 > 0.01 then | |
572 | local w2 = Instance.new("WedgePart", m) | |
573 | game:GetService("Debris"):AddItem(w2, 5) | |
574 | w2.Material = "SmoothPlastic" | |
575 | w2.FormFactor = "Custom" | |
576 | w2.BrickColor = BrickColor.new(TrailColor) | |
577 | w2.Transparency = 0 | |
578 | w2.Reflectance = 0 | |
579 | w2.Material = "SmoothPlastic" | |
580 | w2.CanCollide = false | |
581 | NoOutline(w2) | |
582 | local sz = Vector3.new(0.2, width, len2) | |
583 | w2.Size = sz | |
584 | local sp = Instance.new("SpecialMesh", w2) | |
585 | sp.MeshType = "Wedge" | |
586 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
587 | w2:BreakJoints() | |
588 | w2.Anchored = true | |
589 | w2.Parent = workspace | |
590 | w2.Transparency = 0.7 | |
591 | table.insert(Effects, {w2, "Disappear", 0.01}) | |
592 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
593 | table.insert(list, w2) | |
594 | end | |
595 | do | |
596 | return unpack(list) | |
597 | end | |
598 | end | |
599 | end | |
600 | ||
601 | rayCast = function(Pos, Dir, Max, Ignore) | |
602 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
603 | end | |
604 | ||
605 | function clerp(a,b,t) | |
606 | local qa = {QuaternionFromCFrame(a)} | |
607 | local qb = {QuaternionFromCFrame(b)} | |
608 | local ax, ay, az = a.x, a.y, a.z | |
609 | local bx, by, bz = b.x, b.y, b.z | |
610 | local _t = 1-t | |
611 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
612 | end | |
613 | ||
614 | function QuaternionFromCFrame(cf) | |
615 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
616 | local trace = m00 + m11 + m22 | |
617 | if trace > 0 then | |
618 | local s = math.sqrt(1 + trace) | |
619 | local recip = 0.5/s | |
620 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
621 | else | |
622 | local i = 0 | |
623 | if m11 > m00 then | |
624 | i = 1 | |
625 | end | |
626 | if m22 > (i == 0 and m00 or m11) then | |
627 | i = 2 | |
628 | end | |
629 | if i == 0 then | |
630 | local s = math.sqrt(m00-m11-m22+1) | |
631 | local recip = 0.5/s | |
632 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
633 | elseif i == 1 then | |
634 | local s = math.sqrt(m11-m22-m00+1) | |
635 | local recip = 0.5/s | |
636 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
637 | elseif i == 2 then | |
638 | local s = math.sqrt(m22-m00-m11+1) | |
639 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
640 | end | |
641 | end | |
642 | end | |
643 | ||
644 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
645 | local xs, ys, zs = x + x, y + y, z + z | |
646 | local wx, wy, wz = w*xs, w*ys, w*zs | |
647 | local xx = x*xs | |
648 | local xy = x*ys | |
649 | local xz = x*zs | |
650 | local yy = y*ys | |
651 | local yz = y*zs | |
652 | local zz = z*zs | |
653 | 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)) | |
654 | end | |
655 | ||
656 | function QuaternionSlerp(a, b, t) | |
657 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
658 | local startInterp, finishInterp; | |
659 | if cosTheta >= 0.0001 then | |
660 | if (1 - cosTheta) > 0.0001 then | |
661 | local theta = math.acos(cosTheta) | |
662 | local invSinTheta = 1/math.sin(theta) | |
663 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
664 | finishInterp = math.sin(t*theta)*invSinTheta | |
665 | else | |
666 | startInterp = 1-t | |
667 | finishInterp = t | |
668 | end | |
669 | else | |
670 | if (1+cosTheta) > 0.0001 then | |
671 | local theta = math.acos(-cosTheta) | |
672 | local invSinTheta = 1/math.sin(theta) | |
673 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
674 | finishInterp = math.sin(t*theta)*invSinTheta | |
675 | else | |
676 | startInterp = t-1 | |
677 | finishInterp = t | |
678 | end | |
679 | end | |
680 | 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 | |
681 | end | |
682 | ||
683 | rayCast = function(Pos, Dir, Max, Ignore) | |
684 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
685 | end | |
686 | ||
687 | makegui = function(cframe, text) | |
688 | local a = math.random(-10, 10) / 100 | |
689 | local c = Instance.new("Part") | |
690 | c.Transparency = 1 | |
691 | Instance.new("BodyGyro").Parent = c | |
692 | c.Parent = workspace | |
693 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
694 | local f = Instance.new("BodyPosition") | |
695 | f.P = 2000 | |
696 | f.D = 100 | |
697 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
698 | f.position = c.Position + Vector3.new(0, 3, 0) | |
699 | f.Parent = c | |
700 | game:GetService("Debris"):AddItem(c, 6.5) | |
701 | c.CanCollide = false | |
702 | c.Parent = workspace | |
703 | c.CanCollide = false | |
704 | local bg = Instance.new("BillboardGui", c) | |
705 | bg.Adornee = c | |
706 | bg.Size = UDim2.new(1, 0, 1, 0) | |
707 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
708 | bg.AlwaysOnTop = false | |
709 | local tl = Instance.new("TextLabel", bg) | |
710 | tl.BackgroundTransparency = 1 | |
711 | tl.Size = UDim2.new(1, 0, 1, 0) | |
712 | tl.Text = text | |
713 | tl.Font = "SourceSansBold" | |
714 | tl.FontSize = "Size42" | |
715 | if crit == true then | |
716 | tl.TextColor3 = Color3.new(0.70588235294118, 0, 0) | |
717 | else | |
718 | tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2) | |
719 | end | |
720 | tl.TextStrokeTransparency = 0 | |
721 | tl.TextScaled = true | |
722 | tl.TextWrapped = true | |
723 | coroutine.wrap(function() | |
724 | wait(2) | |
725 | for i = 1, 10 do | |
726 | swait() | |
727 | c.Transparency = 1 | |
728 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
729 | end | |
730 | end | |
731 | )() | |
732 | end | |
733 | ||
734 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock) | |
735 | if hit.Parent == nil then | |
736 | return | |
737 | end | |
738 | h = hit.Parent:FindFirstChild("Humanoid") | |
739 | for _,v in pairs(hit.Parent:children()) do | |
740 | if v:IsA("Humanoid") then | |
741 | h = v | |
742 | end | |
743 | end | |
744 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then | |
745 | h = hit.Parent.Parent:FindFirstChild("Humanoid") | |
746 | end | |
747 | if hit.Parent.className == "Hat" then | |
748 | hit = hit.Parent.Parent:findFirstChild("Head") | |
749 | end | |
750 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
751 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
752 | return | |
753 | end | |
754 | local blocked = false | |
755 | block = hit.Parent:findFirstChild("Block") | |
756 | if block ~= nil then | |
757 | print(block.className) | |
758 | if block.className == "NumberValue" and block.Value > 0 then | |
759 | blocked = true | |
760 | if decreaseblock == nil then | |
761 | block.Value = block.Value - 1 | |
762 | end | |
763 | end | |
764 | if block.className == "IntValue" and block.Value > 0 then | |
765 | blocked = true | |
766 | if decreaseblock ~= nil then | |
767 | block.Value = block.Value - 1 | |
768 | end | |
769 | end | |
770 | end | |
771 | if blocked == false then | |
772 | local D = math.random(minim, maxim) * damagea.Value | |
773 | if h.Parent:FindFirstChild("Stats") then | |
774 | D = D / h.Parent:FindFirstChild("Stats").Defence.Value | |
775 | else | |
776 | end | |
777 | if not h.Parent:FindFirstChild("Stats") then | |
778 | do | |
779 | h.Health = h.Health - D | |
780 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5))) | |
781 | local D = math.random(minim, maxim) * damagea.Value | |
782 | if h.Parent:FindFirstChild("Stats") then | |
783 | D = D / h.Parent:FindFirstChild("Stats").Defence.Value | |
784 | else | |
785 | end | |
786 | if not h.Parent:FindFirstChild("Stats") then | |
787 | do | |
788 | h.Health = h.Health - D / 2 | |
789 | makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5))) | |
790 | if Type == "Knockdown" then | |
791 | local humanoid = hit.Parent.Humanoid | |
792 | humanoid.PlatformStand = true | |
793 | coroutine.resume(coroutine.create(function(Humanoid) | |
794 | fat.Event:wait() | |
795 | Humanoid.PlatformStand = false | |
796 | end | |
797 | ), humanoid) | |
798 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
799 | local bodvol = Instance.new("BodyVelocity") | |
800 | bodvol.velocity = angle * knockback | |
801 | bodvol.P = 5000 | |
802 | bodvol.maxForce = Vector3.new(8000, 8000, 8000) | |
803 | bodvol.Parent = hit | |
804 | rl = Instance.new("BodyAngularVelocity") | |
805 | rl.P = 3000 | |
806 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
807 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
808 | rl.Parent = hit | |
809 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
810 | game:GetService("Debris"):AddItem(rl, 0.5) | |
811 | else | |
812 | do | |
813 | if Type == "Normal" then | |
814 | local hitsoundchoose = math.random(1, 6) | |
815 | if hitsoundchoose == 1 then | |
816 | so("http://www.roblox.com/asset/?id=199149137", hit, 1, 1) | |
817 | else | |
818 | if hitsoundchoose == 2 then | |
819 | so("http://www.roblox.com/asset/?id=199149186", hit, 1, 1) | |
820 | else | |
821 | if hitsoundchoose == 3 then | |
822 | so("http://www.roblox.com/asset/?id=199149221", hit, 1, 1) | |
823 | else | |
824 | if hitsoundchoose == 4 then | |
825 | so("http://www.roblox.com/asset/?id=199149235", hit, 1, 1) | |
826 | else | |
827 | if hitsoundchoose == 5 then | |
828 | so("http://www.roblox.com/asset/?id=199149269", hit, 1, 1) | |
829 | else | |
830 | if hitsoundchoose == 6 then | |
831 | so("http://www.roblox.com/asset/?id=199149297", hit, 1, 1) | |
832 | end | |
833 | end | |
834 | end | |
835 | end | |
836 | end | |
837 | end | |
838 | vp = Instance.new("BodyVelocity") | |
839 | vp.P = 500 | |
840 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
841 | if KnockbackType == 1 then | |
842 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
843 | else | |
844 | if KnockbackType == 2 then | |
845 | vp.velocity = Property.CFrame.lookVector * knockback | |
846 | end | |
847 | end | |
848 | if knockback > 0 then | |
849 | vp.Parent = hit.Parent.Torso | |
850 | end | |
851 | game:GetService("Debris"):AddItem(vp, 0.5) | |
852 | else | |
853 | do | |
854 | if Type == "QuietNormal" then | |
855 | vp = Instance.new("BodyVelocity") | |
856 | vp.P = 500 | |
857 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
858 | if KnockbackType == 1 then | |
859 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
860 | else | |
861 | if KnockbackType == 2 then | |
862 | vp.velocity = Property.CFrame.lookVector * knockback | |
863 | end | |
864 | end | |
865 | if knockback > 0 then | |
866 | vp.Parent = hit.Parent.Torso | |
867 | end | |
868 | game:GetService("Debris"):AddItem(vp, 0.5) | |
869 | else | |
870 | if Type == "MovementDebuff" then | |
871 | coroutine.resume(coroutine.create(function() | |
872 | hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed - 0.2 | |
873 | speed.Value = speed.Value + 0.2 | |
874 | Humanoid.WalkSpeed = 16 * speed.Value | |
875 | wait(1) | |
876 | hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed + 0.2 | |
877 | speed.Value = speed.Value - 0.2 | |
878 | Humanoid.WalkSpeed = 50 * speed.Value | |
879 | end | |
880 | )) | |
881 | vp = Instance.new("BodyVelocity") | |
882 | vp.P = 500 | |
883 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
884 | if KnockbackType == 1 then | |
885 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
886 | else | |
887 | if KnockbackType == 2 then | |
888 | vp.velocity = Property.CFrame.lookVector * knockback | |
889 | end | |
890 | end | |
891 | if knockback > 0 then | |
892 | vp.Parent = hit.Parent.Torso | |
893 | end | |
894 | game:GetService("Debris"):AddItem(vp, 0.5) | |
895 | else | |
896 | if Type == "CurseAura" then | |
897 | coroutine.resume(coroutine.create(function() | |
898 | local savethewalkspeed = hit.Parent.Humanoid.WalkSpeed | |
899 | hit.Parent.Humanoid.WalkSpeed = 0 | |
900 | wait(0.25) | |
901 | hit.Parent.Humanoid.WalkSpeed = savethewalkspeed | |
902 | end | |
903 | )) | |
904 | vp = Instance.new("BodyVelocity") | |
905 | vp.P = 500 | |
906 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
907 | if KnockbackType == 1 then | |
908 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
909 | else | |
910 | if KnockbackType == 2 then | |
911 | vp.velocity = Property.CFrame.lookVector * knockback | |
912 | end | |
913 | end | |
914 | if knockback > 0 then | |
915 | vp.Parent = hit.Parent.Torso | |
916 | end | |
917 | game:GetService("Debris"):AddItem(vp, 0.5) | |
918 | else | |
919 | if Type == "Up" then | |
920 | local bodyVelocity = Instance.new("BodyVelocity") | |
921 | bodyVelocity.velocity = vt(0, 60, 0) | |
922 | bodyVelocity.P = 5000 | |
923 | bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000) | |
924 | bodyVelocity.Parent = hit | |
925 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
926 | rl = Instance.new("BodyAngularVelocity") | |
927 | rl.P = 3000 | |
928 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
929 | rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)) | |
930 | rl.Parent = hit | |
931 | game:GetService("Debris"):AddItem(rl, 0.5) | |
932 | else | |
933 | do | |
934 | if Type == "Snare" then | |
935 | wait() | |
936 | bp = Instance.new("BodyPosition") | |
937 | bp.P = 2000 | |
938 | bp.D = 100 | |
939 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
940 | bp.position = hit.Parent.Torso.Position | |
941 | bp.Parent = hit.Parent.Torso | |
942 | game:GetService("Debris"):AddItem(bp, 1) | |
943 | else | |
944 | if Type == "Target" then | |
945 | so("http://www.roblox.com/asset/?id=199144144", hit, 1, math.random(150, 200) / 100) | |
946 | vp = Instance.new("BodyVelocity") | |
947 | vp.P = 500 | |
948 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
949 | if KnockbackType == 1 then | |
950 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
951 | else | |
952 | if KnockbackType == 2 then | |
953 | vp.velocity = Property.CFrame.lookVector * knockback | |
954 | end | |
955 | end | |
956 | if knockback > 0 then | |
957 | vp.Parent = hit.Parent.Torso | |
958 | end | |
959 | game:GetService("Debris"):AddItem(vp, 0.5) | |
960 | end | |
961 | end | |
962 | debounce = Instance.new("BoolValue") | |
963 | debounce.Name = "DebounceHit" | |
964 | debounce.Parent = hit.Parent | |
965 | debounce.Value = true | |
966 | game:GetService("Debris"):AddItem(debounce, Delay) | |
967 | c = Instance.new("ObjectValue") | |
968 | c.Name = "creator" | |
969 | c.Value = Player | |
970 | c.Parent = h | |
971 | game:GetService("Debris"):AddItem(c, 0.5) | |
972 | CRIT = false | |
973 | hitDeb = true | |
974 | AttackPos = 6 | |
975 | end | |
976 | end | |
977 | end | |
978 | end | |
979 | end | |
980 | end | |
981 | end | |
982 | end | |
983 | end | |
984 | end | |
985 | end | |
986 | end | |
987 | end | |
988 | end | |
989 | end | |
990 | end | |
991 | ||
992 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
993 | for _,c in pairs(workspace:children()) do | |
994 | local hum = c:findFirstChild("Humanoid") | |
995 | if hum ~= nil then | |
996 | local head = c:findFirstChild("Torso") | |
997 | if head ~= nil then | |
998 | local targ = head.Position - Part.Position | |
999 | local mag = targ.magnitude | |
1000 | if mag <= magni and c.Name ~= Player.Name then | |
1001 | Damagefunc(head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3, 1) | |
1002 | end | |
1003 | end | |
1004 | end | |
1005 | end | |
1006 | end | |
1007 | ||
1008 | Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last) | |
1009 | local magz = p0 - p1.magnitude | |
1010 | local curpos = p0 | |
1011 | local trz = {-ofs, ofs} | |
1012 | for i = 1, tym do | |
1013 | local li = Instance.new("Part", workspace) | |
1014 | do | |
1015 | li.TopSurface = 0 | |
1016 | li.BottomSurface = 0 | |
1017 | li.Anchored = true | |
1018 | li.Transparency = tra or 0.4 | |
1019 | li.BrickColor = brickcolor | |
1020 | li.formFactor = "Custom" | |
1021 | li.CanCollide = false | |
1022 | li.Size = Vector3.new(th, th, magz / tym) | |
1023 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1024 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
1025 | if tym == i then | |
1026 | local magz2 = curpos - p1.magnitude | |
1027 | li.Size = Vector3.new(th, th, magz2) | |
1028 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
1029 | else | |
1030 | do | |
1031 | do | |
1032 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
1033 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
1034 | game.Debris:AddItem(li, last) | |
1035 | coroutine.resume(coroutine.create(function() | |
1036 | while li.Transparency ~= 1 do | |
1037 | for i = 0, 1, last do | |
1038 | fat.Event:wait() | |
1039 | li.Transparency = li.Transparency + 0.1 / last | |
1040 | end | |
1041 | end | |
1042 | end | |
1043 | )) | |
1044 | end | |
1045 | -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
1046 | ||
1047 | -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_STMT | |
1048 | ||
1049 | -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out DO_STMT | |
1050 | ||
1051 | end | |
1052 | end | |
1053 | end | |
1054 | end | |
1055 | end | |
1056 | ||
1057 | JumpEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay) | |
1058 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1059 | prt.Anchored = true | |
1060 | prt.CanCollide = false | |
1061 | prt.CFrame = cframe * angles(math.rad(90), 0, 0) | |
1062 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
1063 | game:GetService("Debris"):AddItem(prt, 10) | |
1064 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1065 | for i = 0, 1, delay do | |
1066 | fat.Event:wait() | |
1067 | Part.CFrame = Part.CFrame | |
1068 | Part.Transparency = i | |
1069 | Mesh.Scale = Mesh.Scale + vt(x2, y2, z2) | |
1070 | end | |
1071 | Part.Parent = nil | |
1072 | end | |
1073 | ), prt, msh) | |
1074 | end | |
1075 | ||
1076 | Shockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1077 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1078 | prt.Anchored = true | |
1079 | prt.CFrame = cframe | |
1080 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1081 | game:GetService("Debris"):AddItem(prt, 4) | |
1082 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1083 | for i = 0, 1, delay do | |
1084 | fat.Event:wait() | |
1085 | Part.CFrame = Part.CFrame | |
1086 | Part.Transparency = i | |
1087 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1088 | end | |
1089 | Part.Parent = nil | |
1090 | end | |
1091 | ), prt, msh) | |
1092 | end | |
1093 | ||
1094 | OrbEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay) | |
1095 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1096 | prt.Anchored = true | |
1097 | prt.CanCollide = false | |
1098 | prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1099 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
1100 | game:GetService("Debris"):AddItem(prt, 10) | |
1101 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1102 | for i = 0, 1, delay do | |
1103 | fat.Event:wait() | |
1104 | Part.CFrame = Part.CFrame | |
1105 | Part.Transparency = i | |
1106 | Mesh.Scale = Mesh.Scale + vt(x2, y2, z2) | |
1107 | end | |
1108 | Part.Parent = nil | |
1109 | end | |
1110 | ), prt, msh) | |
1111 | end | |
1112 | ||
1113 | BlockShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1114 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1115 | prt.Anchored = true | |
1116 | prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1117 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1118 | game:GetService("Debris"):AddItem(prt, 10) | |
1119 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1120 | for i = 0, 1, delay do | |
1121 | fat.Event:wait() | |
1122 | Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1123 | Part.Transparency = i | |
1124 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1125 | end | |
1126 | Part.Parent = nil | |
1127 | end | |
1128 | ), prt, msh) | |
1129 | end | |
1130 | ||
1131 | RainbowBlockShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay) | |
1132 | local rainbowcolor = BrickColor.new(0) | |
1133 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, rainbowcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1134 | prt.Anchored = true | |
1135 | prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1136 | prt.Material = "Neon" | |
1137 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1138 | game:GetService("Debris"):AddItem(prt, 10) | |
1139 | coroutine.resume(coroutine.create(function() | |
1140 | while prt.Parent ~= nil do | |
1141 | wait() | |
1142 | rainbowcolor = BrickColor.new(23) | |
1143 | wait() | |
1144 | rainbowcolor = BrickColor.new(107) | |
1145 | wait() | |
1146 | rainbowcolor = BrickColor.new(37) | |
1147 | wait() | |
1148 | rainbowcolor = BrickColor.new(119) | |
1149 | wait() | |
1150 | rainbowcolor = BrickColor.new(24) | |
1151 | wait() | |
1152 | rainbowcolor = BrickColor.new(106) | |
1153 | wait() | |
1154 | rainbowcolor = BrickColor.new(21) | |
1155 | wait() | |
1156 | rainbowcolor = BrickColor.new(104) | |
1157 | end | |
1158 | end | |
1159 | )) | |
1160 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1161 | for i = 0, 1, delay do | |
1162 | fat.Event:wait() | |
1163 | Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1164 | Part.Transparency = i | |
1165 | Part.BrickColor = rainbowcolor | |
1166 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1167 | end | |
1168 | Part.Parent = nil | |
1169 | end | |
1170 | ), prt, msh) | |
1171 | end | |
1172 | ||
1173 | RainbowCylinderShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay) | |
1174 | local rainbowcolor = BrickColor.new(0) | |
1175 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1176 | prt.Anchored = true | |
1177 | prt.CFrame = cframe | |
1178 | prt.Material = "Neon" | |
1179 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1180 | game:GetService("Debris"):AddItem(prt, 10) | |
1181 | coroutine.resume(coroutine.create(function() | |
1182 | while prt.Parent ~= nil do | |
1183 | wait() | |
1184 | rainbowcolor = BrickColor.new(23) | |
1185 | wait() | |
1186 | rainbowcolor = BrickColor.new(107) | |
1187 | wait() | |
1188 | rainbowcolor = BrickColor.new(37) | |
1189 | wait() | |
1190 | rainbowcolor = BrickColor.new(119) | |
1191 | wait() | |
1192 | rainbowcolor = BrickColor.new(24) | |
1193 | wait() | |
1194 | rainbowcolor = BrickColor.new(106) | |
1195 | wait() | |
1196 | rainbowcolor = BrickColor.new(21) | |
1197 | wait() | |
1198 | rainbowcolor = BrickColor.new(104) | |
1199 | end | |
1200 | end | |
1201 | )) | |
1202 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1203 | for i = 0, 1, delay do | |
1204 | fat.Event:wait() | |
1205 | Part.BrickColor = rainbowcolor | |
1206 | Part.Transparency = i | |
1207 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1208 | end | |
1209 | Part.Parent = nil | |
1210 | end | |
1211 | ), prt, msh) | |
1212 | end | |
1213 | ||
1214 | CylinderShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1215 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1216 | prt.Anchored = true | |
1217 | prt.CFrame = cframe | |
1218 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1219 | game:GetService("Debris"):AddItem(prt, 10) | |
1220 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1221 | for i = 0, 1, delay do | |
1222 | fat.Event:wait() | |
1223 | Part.Transparency = i | |
1224 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1225 | end | |
1226 | Part.Parent = nil | |
1227 | end | |
1228 | ), prt, msh) | |
1229 | end | |
1230 | ||
1231 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1232 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1233 | prt.Anchored = true | |
1234 | prt.CFrame = cframe | |
1235 | prt.Material = "Neon" | |
1236 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1237 | game:GetService("Debris"):AddItem(prt, 10) | |
1238 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1239 | for i = 0, 1, delay do | |
1240 | fat.Event:wait() | |
1241 | Part.Transparency = i | |
1242 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1243 | end | |
1244 | Part.Parent = nil | |
1245 | end | |
1246 | ), prt, msh) | |
1247 | end | |
1248 | ||
1249 | Laser2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1250 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1251 | prt.Anchored = true | |
1252 | prt.CFrame = cframe | |
1253 | prt.Material = "Neon" | |
1254 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1255 | game:GetService("Debris"):AddItem(prt, 10) | |
1256 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1257 | for i = 0, 1, delay do | |
1258 | fat.Event:wait() | |
1259 | Part.Transparency = i | |
1260 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1261 | end | |
1262 | Part.Parent = nil | |
1263 | end | |
1264 | ), prt, msh) | |
1265 | end | |
1266 | ||
1267 | Laser3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1268 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1269 | prt.Anchored = true | |
1270 | prt.CFrame = cframe | |
1271 | prt.Material = "Neon" | |
1272 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1273 | game:GetService("Debris"):AddItem(prt, 10) | |
1274 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1275 | for i = 0, 1, delay do | |
1276 | fat.Event:wait() | |
1277 | Part.Transparency = i | |
1278 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1279 | end | |
1280 | Part.Parent = nil | |
1281 | end | |
1282 | ), prt, msh) | |
1283 | end | |
1284 | ||
1285 | SphereShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1286 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1287 | prt.Anchored = true | |
1288 | prt.CFrame = cframe | |
1289 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1290 | game:GetService("Debris"):AddItem(prt, 10) | |
1291 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1292 | for i = 0, 1, delay do | |
1293 | fat.Event:wait() | |
1294 | Part.Transparency = i | |
1295 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1296 | end | |
1297 | Part.Parent = nil | |
1298 | end | |
1299 | ), prt, msh) | |
1300 | end | |
1301 | ||
1302 | SphereShockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1303 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1304 | prt.Anchored = true | |
1305 | prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))) | |
1306 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1307 | game:GetService("Debris"):AddItem(prt, 10) | |
1308 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1309 | for i = 0, 1, delay do | |
1310 | fat.Event:wait() | |
1311 | Part.Transparency = i | |
1312 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1313 | end | |
1314 | Part.Parent = nil | |
1315 | end | |
1316 | ), prt, msh) | |
1317 | end | |
1318 | ||
1319 | Shockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1320 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1321 | prt.Anchored = true | |
1322 | prt.CFrame = cframe | |
1323 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1324 | game:GetService("Debris"):AddItem(prt, 10) | |
1325 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1326 | for i = 0, 1, delay do | |
1327 | fat.Event:wait() | |
1328 | Part.CFrame = Part.CFrame | |
1329 | Part.Transparency = i | |
1330 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1331 | end | |
1332 | Part.Parent = nil | |
1333 | end | |
1334 | ), prt, msh) | |
1335 | end | |
1336 | ||
1337 | BashEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay) | |
1338 | local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1339 | prt.Anchored = true | |
1340 | prt.CFrame = cframe | |
1341 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1342 | game:GetService("Debris"):AddItem(prt, 10) | |
1343 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1344 | for i = 0, 1, delay do | |
1345 | fat.Event:wait() | |
1346 | Part.CFrame = Part.CFrame | |
1347 | Part.Transparency = i | |
1348 | Mesh.Scale = Mesh.Scale + vt(x2, y2, z2) | |
1349 | end | |
1350 | Part.Parent = nil | |
1351 | end | |
1352 | ), prt, msh) | |
1353 | end | |
1354 | ||
1355 | leftlegangle = 0 | |
1356 | leftlegcframe2 = 0 | |
1357 | leftlegcframe3 = 0 | |
1358 | rightlegangle = 0 | |
1359 | rightlegcframe2 = 0 | |
1360 | rightlegcframe3 = 0 | |
1361 | leftarmangle = 0 | |
1362 | rightarmangle = 0 | |
1363 | MMouse = mouse | |
1364 | canidle = true | |
1365 | canwalk = true | |
1366 | local robloxidleanimation = Instance.new("Animation", Torso) | |
1367 | robloxidleanimation.Name = "robloxidleanimation" | |
1368 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1369 | RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) | |
1370 | LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) | |
1371 | coroutine.resume(coroutine.create(function() | |
1372 | while 1 do | |
1373 | while 1 do | |
1374 | leftlegangle = -60 | |
1375 | leftlegcframe3 = 0.1 | |
1376 | leftlegcframe2 = 0.225 | |
1377 | rightlegangle = 60 | |
1378 | rightlegcframe3 = 0.2 | |
1379 | rightlegcframe2 = -0.2 | |
1380 | leftarmangle = -30 | |
1381 | rightarmangle = 60 | |
1382 | if speed.Value > 0.9 then | |
1383 | wait(0.375 / (speed.Value / 0.9)) | |
1384 | else | |
1385 | if speed.Value == 0.9 or speed.Value < 0.9 then | |
1386 | wait(0.375) | |
1387 | end | |
1388 | end | |
1389 | leftlegangle = 60 | |
1390 | leftlegcframe3 = -0.2 | |
1391 | leftlegcframe2 = -0.2 | |
1392 | rightlegangle = -60 | |
1393 | rightlegcframe3 = -0.1 | |
1394 | rightlegcframe2 = 0.225 | |
1395 | leftarmangle = 60 | |
1396 | rightarmangle = -30 | |
1397 | if speed.Value > 0.9 then | |
1398 | wait(0.375 / (speed.Value / 0.9)) | |
1399 | -- DECOMPILER ERROR at PC64: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1400 | ||
1401 | -- DECOMPILER ERROR at PC64: LeaveBlock: unexpected jumping out IF_STMT | |
1402 | ||
1403 | end | |
1404 | end | |
1405 | if speed.Value == 0.9 or speed.Value < 0.9 then | |
1406 | wait(0.375) | |
1407 | end | |
1408 | end | |
1409 | end | |
1410 | )) | |
1411 | leftarmidleangle = 0 | |
1412 | rightarmidleangle = 0 | |
1413 | headidleangle = 0 | |
1414 | idlenumber = 0 | |
1415 | coroutine.resume(coroutine.create(function() | |
1416 | while 1 do | |
1417 | wait() | |
1418 | idlenumber = idlenumber + 1 | |
1419 | if idlenumber == 250 then | |
1420 | idlenumber = 0 | |
1421 | leftarmidleangle = -25 | |
1422 | rightarmidleangle = 25 | |
1423 | headidleangle = 50 | |
1424 | wait(2) | |
1425 | leftarmidleangle = 25 | |
1426 | rightarmidleangle = -25 | |
1427 | headidleangle = -50 | |
1428 | wait(2) | |
1429 | leftarmidleangle = 0 | |
1430 | rightarmidleangle = 0 | |
1431 | headidleangle = 0 | |
1432 | end | |
1433 | if attack == true or equipped == false or Anim ~= "Idle" then | |
1434 | idlenumber = 0 | |
1435 | end | |
1436 | end | |
1437 | end | |
1438 | )) | |
1439 | canability1 = true | |
1440 | canability2 = true | |
1441 | canability3 = true | |
1442 | canability4 = true | |
1443 | equipanim = function() | |
1444 | attack = true | |
1445 | for i = 0, 1, 0.1 do | |
1446 | fat.Event:wait() | |
1447 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1448 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3) | |
1449 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.25, 0) * angles(math.rad(-50), math.rad(0), math.rad(-40)) * RWC0, 0.3) | |
1450 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)) * LWC0, 0.3) | |
1451 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3) | |
1452 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1453 | end | |
1454 | Handleweld.Part0 = RightArm | |
1455 | Handleweld.Part1 = Handle | |
1456 | Handleweld.C0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(145), math.rad(0)) * angles(math.rad(75), math.rad(0), math.rad(0)) * cf(0, 0.25, 0) | |
1457 | Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.5, 0) * angles(math.rad(0), math.rad(-180), math.rad(0)) * angles(math.rad(75), math.rad(0), math.rad(45)) * cf(0, 0.25, 0), 1) | |
1458 | for i = 0, 1, 0.1 do | |
1459 | fat.Event:wait() | |
1460 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1461 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1462 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.25, 0) * angles(math.rad(30), math.rad(0), math.rad(30)) * RWC0, 0.3) | |
1463 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)) * LWC0, 0.3) | |
1464 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3) | |
1465 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1466 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(315), math.rad(0)) * angles(math.rad(15), math.rad(0), math.rad(0)) * cf(0, 0.25, 0), 0.3) | |
1467 | end | |
1468 | speed.Value = speed.Value - 0.1 | |
1469 | attack = false | |
1470 | end | |
1471 | ||
1472 | unequipanim = function() | |
1473 | attack = true | |
1474 | for i = 0, 1, 0.2 do | |
1475 | fat.Event:wait() | |
1476 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1477 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1478 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.25, 0) * angles(math.rad(30), math.rad(0), math.rad(30)) * RWC0, 0.3) | |
1479 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)) * LWC0, 0.3) | |
1480 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3) | |
1481 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1482 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(315), math.rad(0)) * angles(math.rad(15), math.rad(0), math.rad(0)) * cf(0, 0.25, 0), 0.3) | |
1483 | end | |
1484 | for i = 0, 1, 0.08 do | |
1485 | fat.Event:wait() | |
1486 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.3) | |
1487 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3) | |
1488 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.25, 0) * angles(math.rad(-40), math.rad(0), math.rad(-40)) * RWC0, 0.3) | |
1489 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)) * LWC0, 0.3) | |
1490 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3) | |
1491 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1492 | Handleweld.C0 = clerp(Handleweld.C0, cf(0.5, -0.5, 0) * angles(math.rad(0), math.rad(-180), math.rad(0)) * angles(math.rad(75), math.rad(0), math.rad(45)) * cf(0, 0.25, 0), 0.3) | |
1493 | end | |
1494 | Handleweld.Part0 = Torso | |
1495 | Handleweld.Part1 = Handle | |
1496 | Handleweld.C0 = cf(-0.5, 0.75, 0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(45), math.rad(0), math.rad(0)) | |
1497 | for i = 0, 1, 0.06 do | |
1498 | fat.Event:wait() | |
1499 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1500 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1501 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3) | |
1502 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3) | |
1503 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1504 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1505 | end | |
1506 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
1507 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1) | |
1508 | speed.Value = speed.Value + 0.1 | |
1509 | attack = false | |
1510 | end | |
1511 | ||
1512 | attackone = function() | |
1513 | attack = true | |
1514 | for i = 0, 1, 0.16 do | |
1515 | fat.Event:wait() | |
1516 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3) | |
1517 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
1518 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.3) | |
1519 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-45)) * LWC0, 0.3) | |
1520 | RH.C0 = clerp(RH.C0, cf(0.75, -1, -0.25) * angles(math.rad(0), math.rad(150), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1521 | LH.C0 = clerp(LH.C0, cf(-0.75, -1, 0.25) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1522 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1523 | end | |
1524 | con1 = Hitbox.Touched:connect(function(hit) | |
1525 | Damagefunc(hit, 8, 12, 1, "Normal", RootPart, 0.2, 1) | |
1526 | end | |
1527 | ) | |
1528 | so("http://roblox.com/asset/?id=199145204", Hitbox, 1, 1.2) | |
1529 | for i = 0, 1, 0.16 do | |
1530 | fat.Event:wait() | |
1531 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.45) | |
1532 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45) | |
1533 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(5), math.rad(0)) * angles(math.rad(60), math.rad(0), math.rad(10)) * RWC0, 0.45) | |
1534 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)) * LWC0, 0.45) | |
1535 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(75), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1536 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-105), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.45) | |
1537 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0.25, 0) * angles(math.rad(-40), math.rad(0), math.rad(0)) * cf(0, 0, -1), 0.45) | |
1538 | end | |
1539 | con1:disconnect() | |
1540 | attack = false | |
1541 | end | |
1542 | ||
1543 | attacktwo = function() | |
1544 | attack = true | |
1545 | for i = 0, 1, 0.16 do | |
1546 | fat.Event:wait() | |
1547 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1548 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
1549 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.75, -0.5) * angles(math.rad(135), math.rad(0), math.rad(-45)) * RWC0, 0.3) | |
1550 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.75, -0.5) * angles(math.rad(135), math.rad(0), math.rad(45)) * LWC0, 0.3) | |
1551 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3) | |
1552 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3) | |
1553 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)) * angles(math.rad(20), math.rad(0), math.rad(0)) * cf(-0.65, 0.25, 0), 0.3) | |
1554 | end | |
1555 | con1 = Hitbox.Touched:connect(function(hit) | |
1556 | Damagefunc(hit, 8, 12, 1, "Normal", RootPart, 0.2, 1) | |
1557 | end | |
1558 | ) | |
1559 | so("http://roblox.com/asset/?id=199145095", Hitbox, 1, 1) | |
1560 | for i = 0, 1, 0.16 do | |
1561 | fat.Event:wait() | |
1562 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45) | |
1563 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45) | |
1564 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.25, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.45) | |
1565 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.25, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)) * LWC0, 0.45) | |
1566 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-40)), 0.45) | |
1567 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-40)), 0.45) | |
1568 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(45)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * cf(-0.65, 0.25, 0), 0.3) | |
1569 | end | |
1570 | con1:disconnect() | |
1571 | attack = false | |
1572 | end | |
1573 | ||
1574 | attackthree = function() | |
1575 | attack = true | |
1576 | for i = 0, 1, 0.16 do | |
1577 | fat.Event:wait() | |
1578 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1579 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-15)), 0.3) | |
1580 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.3) | |
1581 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.3) | |
1582 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1583 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1584 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1585 | end | |
1586 | con1 = Hitbox.Touched:connect(function(hit) | |
1587 | Damagefunc(hit, 8, 12, 1, "Normal", RootPart, 0.2, 1) | |
1588 | end | |
1589 | ) | |
1590 | so("http://roblox.com/asset/?id=199145204", Hitbox, 1, 0.8) | |
1591 | for i = 0, 1, 0.16 do | |
1592 | fat.Event:wait() | |
1593 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30 - 360 * i)), 0.45) | |
1594 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45) | |
1595 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.45) | |
1596 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)) * LWC0, 0.45) | |
1597 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1598 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1599 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.25, -0.5) * angles(math.rad(-40), math.rad(0), math.rad(0)), 0.45) | |
1600 | end | |
1601 | for i = 0, 1, 0.16 do | |
1602 | fat.Event:wait() | |
1603 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1604 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1605 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.3) | |
1606 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.3) | |
1607 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1608 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1609 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.25, -0.5) * angles(math.rad(-40), math.rad(0), math.rad(0)), 0.3) | |
1610 | end | |
1611 | con1:disconnect() | |
1612 | attack = false | |
1613 | end | |
1614 | ||
1615 | attackfour = function() | |
1616 | attack = true | |
1617 | for i = 0, 1, 0.16 do | |
1618 | fat.Event:wait() | |
1619 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1620 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(15)), 0.3) | |
1621 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(135), math.rad(0)) * RWC0, 0.3) | |
1622 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)) * LWC0, 0.3) | |
1623 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1624 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1625 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1626 | end | |
1627 | con1 = Hitbox.Touched:connect(function(hit) | |
1628 | Damagefunc(hit, 8, 12, 1, "Normal", RootPart, 0.2, 1) | |
1629 | end | |
1630 | ) | |
1631 | so("http://roblox.com/asset/?id=199145204", Hitbox, 1, 1) | |
1632 | for i = 0, 1, 0.12 do | |
1633 | fat.Event:wait() | |
1634 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(90), math.rad(-30 - 360 * i)), 0.45) | |
1635 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45) | |
1636 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.45) | |
1637 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)) * LWC0, 0.45) | |
1638 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1639 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1640 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.25, -0.5) * angles(math.rad(-40), math.rad(0), math.rad(0)), 0.45) | |
1641 | end | |
1642 | so("http://roblox.com/asset/?id=199145095", Hitbox, 1, 0.9) | |
1643 | for i = 0, 1, 0.12 do | |
1644 | fat.Event:wait() | |
1645 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 4) * angles(math.rad(0), math.rad(90), math.rad(-30 - 360 * i)), 0.45) | |
1646 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45) | |
1647 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(90), math.rad(0)) * RWC0, 0.45) | |
1648 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)) * LWC0, 0.45) | |
1649 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1650 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45) | |
1651 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.25, -0.5) * angles(math.rad(-40), math.rad(0), math.rad(0)), 0.45) | |
1652 | end | |
1653 | con1:disconnect() | |
1654 | attack = false | |
1655 | end | |
1656 | ||
1657 | Stop = function() | |
1658 | attack = true | |
1659 | for i = 0, 1, 0.1 do | |
1660 | fat.Event:wait() | |
1661 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1662 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1663 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(30), math.rad(30)) * RWC0, 0.3) | |
1664 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)) * LWC0, 0.3) | |
1665 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1666 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3) | |
1667 | Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1668 | end | |
1669 | for i = 0, 1, 0.1 do | |
1670 | fat.Event:wait() | |
1671 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.3) | |
1672 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-45)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
1673 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)) * RWC0, 0.3) | |
1674 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)) * LWC0, 0.3) | |
1675 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * angles(math.rad(0), math.rad(45), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3) | |
1676 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3) | |
1677 | Handleweld.C0 = clerp(Handleweld.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1678 | end | |
1679 | - | local stopsignref = part(3, Character, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt()) |
1679 | + | local stopsignref = part(3, Character, "SmoothPlastic", 0, 1, BrickColor.new("Really red"), "Effect", vt()) |
1680 | stopsignref.Anchored = true | |
1681 | stopsignref.CanCollide = false | |
1682 | stopsignref.Size = Vector3.new(0.2, 0.2, 0.2) | |
1683 | stopsignref.CFrame = RootPart.CFrame * cf(1.05, 0, -2.5) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
1684 | Handleweld.Part0 = stopsignref | |
1685 | Handleweld.Part1 = Handle | |
1686 | Handleweld.C0 = stopsignref.CFrame * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
1687 | coroutine.resume(coroutine.create(function() | |
1688 | while Handleweld.Part0 == stopsignref do | |
1689 | wait(0.5) | |
1690 | MagniDamage(stopsignref, 15, 5, 10, 0, "QuietNormal") | |
1691 | end | |
1692 | end | |
1693 | )) | |
1694 | for i = 1, math.random(2, 4) do | |
1695 | OrbEffect(CustomColor, stopsignref.CFrame * cf(0, 0, 0), 1, 1, 1, 0.5, 0.5, 0.5, 0.05) | |
1696 | end | |
1697 | coroutine.resume(coroutine.create(function() | |
1698 | while 1 do | |
1699 | wait() | |
1700 | if stopsignref.Parent ~= nil then | |
1701 | wait(0.1) | |
1702 | SphereShockwave(CustomColor, stopsignref.CFrame * cf(0, -2.95, 0), 50, 0.1, 50, 0.1, 0.1, 0.1, 0.1) | |
1703 | BlockShockwave(CustomColor, stopsignref.CFrame * cf(math.random(-6, 6), math.random(-2, 2), math.random(-6, 6)), 1, 1, 1, 0.5, 0.5, 0.5, 0.1) | |
1704 | JumpEffect(CustomColor, stopsignref.CFrame * cf(0, -2.9, 0), 25, 25, 0.1, 0.1, 0.1, 1, 0.1) | |
1705 | end | |
1706 | if Humanoid.Health < 0 or Humanoid.Health == 0 then | |
1707 | stopsignref:Destroy() | |
1708 | end | |
1709 | if (((equipped == false or equipped ~= true) or attack ~= false) and attack ~= true) or Handleweld.Part0 ~= stopsignref then | |
1710 | stopsignref:Destroy() | |
1711 | end | |
1712 | end | |
1713 | end | |
1714 | )) | |
1715 | attack = false | |
1716 | end | |
1717 | ||
1718 | NoStop = function() | |
1719 | attack = true | |
1720 | speed.Value = speed.Value - 0.6 | |
1721 | coroutine.resume(coroutine.create(function() | |
1722 | for i,v in pairs(m:children()) do | |
1723 | do | |
1724 | if v:IsA("Part") and v.Name ~= "Hitbox" then | |
1725 | do | |
1726 | coroutine.resume(coroutine.create(function() | |
1727 | for i = 0, 1, 0.1 do | |
1728 | fat.Event:wait() | |
1729 | v.Transparency = v.Transparency + 1 * i | |
1730 | end | |
1731 | v.Transparency = 1 | |
1732 | end | |
1733 | )) | |
1734 | end | |
1735 | end | |
1736 | end | |
1737 | end | |
1738 | end | |
1739 | )) | |
1740 | for i = 0, 1, 0.1 do | |
1741 | fat.Event:wait() | |
1742 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.3) | |
1743 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
1744 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(70), math.rad(30)) * RWC0, 0.3) | |
1745 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)) * LWC0, 0.3) | |
1746 | RH.C0 = clerp(RH.C0, cf(1, 0.5, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3) | |
1747 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-40), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3) | |
1748 | SphereShockwave(CustomColor, RootPart.CFrame * cf(0.8, -3, -1.4), 8, 0.2, 8, 0.1, 0.1, 0.1, 0.1) | |
1749 | JumpEffect(CustomColor, RootPart.CFrame * cf(0.8, -3, -1.4), 4, 4, 0.2, 0.1, 0.1, 0.4, 0.1) | |
1750 | end | |
1751 | coroutine.resume(coroutine.create(function() | |
1752 | for i,v in pairs(m:children()) do | |
1753 | do | |
1754 | if v:IsA("Part") and v.Name ~= "Hitbox" then | |
1755 | do | |
1756 | coroutine.resume(coroutine.create(function() | |
1757 | for i = 0, 1, 0.1 do | |
1758 | fat.Event:wait() | |
1759 | v.Transparency = v.Transparency - 1 * i | |
1760 | end | |
1761 | v.Transparency = 0 | |
1762 | end | |
1763 | )) | |
1764 | -- DECOMPILER ERROR at PC22: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
1765 | ||
1766 | -- DECOMPILER ERROR at PC22: LeaveBlock: unexpected jumping out IF_STMT | |
1767 | ||
1768 | end | |
1769 | end | |
1770 | end | |
1771 | end | |
1772 | end | |
1773 | )) | |
1774 | Handleweld.Part0 = RootPart | |
1775 | Handleweld.Part1 = Handle | |
1776 | Handleweld.C0 = cf(-0.25, -8, -1.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)) * cf(0, 0, 0) | |
1777 | so("http://roblox.com/asset/?id=203691785", Hitbox, 1, 1) | |
1778 | for i = 0, 1, 0.1 do | |
1779 | fat.Event:wait() | |
1780 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
1781 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
1782 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(70), math.rad(0)) * RWC0, 0.3) | |
1783 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)) * LWC0, 0.3) | |
1784 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1785 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1786 | Handleweld.C0 = clerp(Handleweld.C0, cf(-0.25, 0, -1.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(90)) * cf(0, 0, 0), 0.3) | |
1787 | SphereShockwave(CustomColor, RootPart.CFrame * cf(0.8, -3, -1.4), 8, 0.2, 8, 0.1, 0.1, 0.1, 0.1) | |
1788 | JumpEffect(CustomColor, RootPart.CFrame * cf(0.8, -3, -1.4), 4, 4, 0.2, 0.1, 0.1, 0.4, 0.1) | |
1789 | end | |
1790 | Handleweld.Part0 = RightArm | |
1791 | Handleweld.Part1 = Handle | |
1792 | Handleweld.C0 = cf(1, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * cf(0, 0, 0) * angles(math.rad(120), math.rad(-70), math.rad(0)) * angles(math.rad(0), math.rad(-70), math.rad(0)) * cf(1, 1, 1) | |
1793 | speed.Value = speed.Value + 0.6 | |
1794 | attack = false | |
1795 | end | |
1796 | ||
1797 | LaserThing = function(Part, Spread1, Spread2, Height1, Height2) | |
1798 | coroutine.resume(coroutine.create(function() | |
1799 | local risespeed = 0.08 | |
1800 | local orbthingy = part(3, Character, "SmoothPlastic", 0, 1, CustomColor, "Orb Thingy", vt()) | |
1801 | orbthingy.Anchored = true | |
1802 | orbthingy.CanCollide = false | |
1803 | local orbthingymesh = mesh("SpecialMesh", orbthingy, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10)) | |
1804 | orbthingy.CFrame = Part.CFrame * cf(math.random(-10, 10), math.random(0, 10), math.random(-10, 10)) | |
1805 | BlockShockwave(CustomColor, cf(orbthingy.Position), 1, 1, 1, 1, 1, 1, 0.1) | |
1806 | so("http://roblox.com/asset/?id=183763498", orbthingy, 1, 1.2) | |
1807 | coroutine.resume(coroutine.create(function() | |
1808 | local cf1 = math.random(Height1, Height2) / 10 | |
1809 | local cf2 = math.random(Spread1, Spread2) / 10 | |
1810 | local cf3 = math.random(Spread1, Spread2) / 10 | |
1811 | local n = 10 | |
1812 | for i = 0, 1, risespeed do | |
1813 | fat.Event:wait() | |
1814 | orbthingy.Transparency = 1 - 0.5 * i | |
1815 | orbthingy.CFrame = orbthingy.CFrame * cf(cf2 * i * n, cf1 * i * n, cf3 * i * n) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
1816 | n = n - 0.8 | |
1817 | end | |
1818 | end | |
1819 | )) | |
1820 | coroutine.resume(coroutine.create(function() | |
1821 | wait(1) | |
1822 | orbthingy.CFrame = orbthingy.CFrame * angles(math.rad(180), math.rad(0), math.rad(0)) | |
1823 | local spread = vt(math.random(-1, 1) / 10, math.random(-1, 1) / 10, math.random(-1, 1) / 10) | |
1824 | local StartingPos = orbthingy.Position + vt(0, -1, 0) | |
1825 | local MouseLook = cf((orbthingy.Position + StartingPos) / 2, StartingPos + spread) | |
1826 | local hit, pos = rayCast(orbthingy.Position, MouseLook.lookVector, 999, Character) | |
1827 | local mag = orbthingy.Position - pos.magnitude | |
1828 | CylinderShockwave(CustomColor, CFrame.new((StartingPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 2, 1, 0.5, 0, 0.5, 0.125) | |
1829 | BlockShockwave(CustomColor, cf(orbthingy.Position), 1, 1, 1, 1, 1, 1, 0.1) | |
1830 | BlockShockwave(CustomColor, cf(pos), 1, 1, 1, 1, 1, 1, 0.075) | |
1831 | JumpEffect(CustomColor, cf(pos), 1, 1, 1, 1, 1, 1, 0.075) | |
1832 | - | local refpart = part(3, Character, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) |
1832 | + | local refpart = part(3, Character, "SmoothPlastic", 0, 1, "Really red", "Effect", vt()) |
1833 | refpart.Anchored = true | |
1834 | refpart.CanCollide = false | |
1835 | refpart.CFrame = cf(pos) | |
1836 | game:getService("Debris"):AddItem(refpart, 2) | |
1837 | so("http://roblox.com/asset/?id=183763487", refpart, 1, 1) | |
1838 | MagniDamage(refpart, 10, 5, 10, 0, "Normal", RootPart) | |
1839 | if hit ~= nil then | |
1840 | Damagefunc(hit, 10, 20, 1, "Normal", RootPart, 0) | |
1841 | end | |
1842 | orbthingy.Parent = nil | |
1843 | end | |
1844 | )) | |
1845 | end | |
1846 | )) | |
1847 | end | |
1848 | ||
1849 | local LaserTarget = RootPart | |
1850 | local spawninglasers = false | |
1851 | Lasers = function() | |
1852 | attack = true | |
1853 | spawninglasers = true | |
1854 | coroutine.resume(coroutine.create(function() | |
1855 | while spawninglasers == true do | |
1856 | LaserThing(Torso, -1, 1, 5, 10) | |
1857 | if Handleweld.Part0 == RightArm then | |
1858 | BlockShockwave(CustomColor, cf(Hitbox.Position), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.1) | |
1859 | else | |
1860 | if Handleweld.Part0 ~= RightArm then | |
1861 | BlockShockwave(CustomColor, RightArm.CFrame * cf(0, -1, 0), 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.1) | |
1862 | end | |
1863 | end | |
1864 | wait(0.1) | |
1865 | end | |
1866 | end | |
1867 | )) | |
1868 | for i = 1, 3 do | |
1869 | for i = 0, 1, 0.1 do | |
1870 | fat.Event:wait() | |
1871 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1872 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1873 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(20)) * RWC0, 0.3) | |
1874 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)) * LWC0, 0.3) | |
1875 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1876 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1877 | if Handleweld.Part0 == RightArm then | |
1878 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0 + 360 * i), math.rad(0)), 0.3) | |
1879 | end | |
1880 | end | |
1881 | end | |
1882 | spawninglasers = false | |
1883 | attack = false | |
1884 | end | |
1885 | ||
1886 | hold = false | |
1887 | ob1d = function(mouse) | |
1888 | if attack == true or equipped == false then | |
1889 | return | |
1890 | end | |
1891 | hold = true | |
1892 | if Handleweld.Part0 == RightArm then | |
1893 | if attacktype == 1 then | |
1894 | attacktype = 2 | |
1895 | attackone() | |
1896 | else | |
1897 | if attacktype == 2 then | |
1898 | attacktype = 3 | |
1899 | attacktwo() | |
1900 | else | |
1901 | if attacktype == 3 then | |
1902 | attacktype = 4 | |
1903 | attackthree() | |
1904 | else | |
1905 | if attacktype == 4 then | |
1906 | attacktype = 1 | |
1907 | attackfour() | |
1908 | end | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | end | |
1913 | coroutine.resume(coroutine.create(function() | |
1914 | for i = 1, 50 do | |
1915 | if attack == false then | |
1916 | swait(1) | |
1917 | end | |
1918 | end | |
1919 | if attack == false then | |
1920 | attacktype = 1 | |
1921 | end | |
1922 | end | |
1923 | )) | |
1924 | end | |
1925 | ||
1926 | ob1u = function(mouse) | |
1927 | hold = false | |
1928 | end | |
1929 | ||
1930 | k = function(k) | |
1931 | if k == "f" and attack == false then | |
1932 | if equipped == false then | |
1933 | equipped = true | |
1934 | animate.Disabled = true | |
1935 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
1936 | idleanimation:Play() | |
1937 | equipanim() | |
1938 | else | |
1939 | do | |
1940 | if equipped == true and Handleweld.Part0 == RightArm then | |
1941 | equipped = false | |
1942 | unequipanim() | |
1943 | swait(0) | |
1944 | animate.Disabled = false | |
1945 | end | |
1946 | if k == "e" and attack == false and equipped == true and canability1 == true then | |
1947 | if Handleweld.Part0 == RightArm then | |
1948 | Stop() | |
1949 | else | |
1950 | if Handleweld.Part0 ~= RightArm then | |
1951 | NoStop() | |
1952 | end | |
1953 | end | |
1954 | end | |
1955 | if k == "x" and attack == false and equipped == true and canability2 == true then | |
1956 | Lasers() | |
1957 | end | |
1958 | if k == "c" and attack == false and equipped == true and canability3 == true then | |
1959 | end | |
1960 | end | |
1961 | end | |
1962 | end | |
1963 | end | |
1964 | ||
1965 | k2 = function(k) | |
1966 | end | |
1967 | ||
1968 | s = function(mouse) | |
1969 | mouse.Button1Down:connect(function() | |
1970 | ob1d(mouse) | |
1971 | end | |
1972 | ) | |
1973 | mouse.Button1Up:connect(function() | |
1974 | ob1u(mouse) | |
1975 | end | |
1976 | ) | |
1977 | mouse.KeyDown:connect(k) | |
1978 | mouse.KeyUp:connect(k2) | |
1979 | player = Player | |
1980 | ch = Character | |
1981 | MMouse = mouse | |
1982 | end | |
1983 | ||
1984 | ds = function(mouse) | |
1985 | end | |
1986 | ||
1987 | local Stats = Instance.new("BoolValue") | |
1988 | Stats.Name = "Stats" | |
1989 | Stats.Parent = Character | |
1990 | local Mvmt = Instance.new("NumberValue") | |
1991 | Mvmt.Name = "Movement" | |
1992 | Mvmt.Parent = Stats | |
1993 | Mvmt.Value = 1 | |
1994 | ||
1995 | Bin.Selected:connect(s) | |
1996 | Bin.Deselected:connect(ds) | |
1997 | local donum = 0 | |
1998 | local walk = 0 | |
1999 | local walkforw = true | |
2000 | while true do | |
2001 | swait() | |
2002 | if 0.5 <= donum then | |
2003 | handidle = true | |
2004 | else | |
2005 | if donum <= 0 then | |
2006 | handidle = false | |
2007 | end | |
2008 | end | |
2009 | if handidle == false then | |
2010 | donum = donum + 0.003 | |
2011 | else | |
2012 | donum = donum - 0.003 | |
2013 | end | |
2014 | torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2015 | velderp=RootPart.Velocity.y | |
2016 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2017 | if equipped == true then | |
2018 | if Anim == "Walk" then | |
2019 | if walkforw == true then | |
2020 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
2021 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
2022 | else | |
2023 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
2024 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
2025 | end | |
2026 | else | |
2027 | RH.C1 = clerp(RH.C1, RHC1, 0.2) | |
2028 | LH.C1 = clerp(LH.C1, LHC1, 0.2) | |
2029 | end | |
2030 | if 1 < RootPart.Velocity.y and hitfloor == nil then | |
2031 | Anim = "Jump" | |
2032 | if attack == false and equipped == true and Handleweld.Part0 == RightArm then | |
2033 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2034 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15) | |
2035 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.3, -0.25) * angles(math.rad(30), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(60), math.rad(0)) * RWC0, 0.15) | |
2036 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.25) * angles(math.rad(75), math.rad(0), math.rad(30)) * angles(math.rad(0), math.rad(60), math.rad(0)) * LWC0, 0.15) | |
2037 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.25) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15) | |
2038 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.25) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15) | |
2039 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2040 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2041 | end | |
2042 | if Handleweld.Part0 == RightArm then | |
2043 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0.5, -1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2044 | end | |
2045 | else | |
2046 | if RootPart.Velocity.y < -1 and hitfloor == nil then | |
2047 | Anim = "Fall" | |
2048 | if attack == false and equipped == true and Handleweld.Part0 == RightArm then | |
2049 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2050 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2051 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.3, -0.25) * angles(math.rad(30), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(60), math.rad(0)) * RWC0, 0.15) | |
2052 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.25) * angles(math.rad(75), math.rad(0), math.rad(10)) * angles(math.rad(0), math.rad(60), math.rad(0)) * LWC0, 0.15) | |
2053 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(10), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2054 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2055 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2056 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2057 | end | |
2058 | if attack == false and equipped == true and Handleweld.Part0 ~= RightArm then | |
2059 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2060 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2061 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(10)) * RWC0, 0.15) | |
2062 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)) * LWC0, 0.15) | |
2063 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(10), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2064 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2065 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2066 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2067 | end | |
2068 | else | |
2069 | if torvel < 1 and hitfloor ~= nil then | |
2070 | Anim = "Idle" | |
2071 | if attack == false and equipped == true then | |
2072 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.15) | |
2073 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(30 + headidleangle)), 0.15) | |
2074 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10 + (donum) / 0.05 + rightarmidleangle), math.rad(0), math.rad(20 - (donum) / 0.05)) * RWC0, 0.15) | |
2075 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30 - (donum) / 0.05 + leftarmidleangle), math.rad(0), math.rad(-30 + (donum) / 0.05)) * LWC0, 0.15) | |
2076 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.15) | |
2077 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15) | |
2078 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2079 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2080 | end | |
2081 | if Handleweld.Part0 == RightArm then | |
2082 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0.25, 0.75) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15) | |
2083 | end | |
2084 | else | |
2085 | if 2 < torvel and torvel < 30 and hitfloor ~= nil then | |
2086 | Anim = "Walk" | |
2087 | walk = walk + 1 | |
2088 | if 15 - 5 * Mvmt.Value <= walk then | |
2089 | walk = 0 | |
2090 | if walkforw == true then | |
2091 | walkforw = false | |
2092 | else | |
2093 | if walkforw == false then | |
2094 | walkforw = true | |
2095 | end | |
2096 | end | |
2097 | end | |
2098 | if attack == false and equipped == true and Handleweld.Part0 == RightArm then | |
2099 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.15) | |
2100 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(15)), 0.15) | |
2101 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.3, -0.25) * angles(math.rad(30), math.rad(0), math.rad(10)) * angles(math.rad(0), math.rad(60), math.rad(0)) * RWC0, 0.15) | |
2102 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.25) * angles(math.rad(75), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(60), math.rad(0)) * LWC0, 0.15) | |
2103 | --RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25) | |
2104 | --LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25) | |
2105 | RH.C0 = clerp(RH.C0, cf(1.05, -1, 0) * angles(math.rad(0), math.rad(105), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2106 | LH.C0 = clerp(LH.C0, cf(-1.05, -1, 0) * angles(math.rad(0), math.rad(-75), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
2107 | --RH.C1 = clerp(RH.C1, RHC1 * cf(0 + rightlegcframe3, 0 + rightlegcframe2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + rightlegangle)), 0.175 * (speed.Value / 0.9)) | |
2108 | --LH.C1 = clerp(LH.C1, LHC1 * cf(0 + leftlegcframe3, 0 + leftlegcframe2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 - leftlegangle)), 0.175 * (speed.Value / 0.9)) | |
2109 | end | |
2110 | if Handleweld.Part0 == RightArm then | |
2111 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0.5, -1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15) | |
2112 | end | |
2113 | end | |
2114 | end | |
2115 | end | |
2116 | end | |
2117 | end | |
2118 | end |