SHOW:
|
|
- or go back to the newest paste.
1 | local player = 'RGames1234' -- put your name here or something | |
2 | wait(5) | |
3 | local character = game:GetService("Players"):FindFirstChild(player).Character | |
4 | if character:FindFirstChild('Head') and character:FindFirstChild('HumanoidRootPart') then | |
5 | local sound = Instance.new("Sound", character.Head) | |
6 | sound.SoundId = 'rbxassetid://1784586952' | |
7 | sound.Volume = 10 | |
8 | sound.Looped = true | |
9 | sound:Play() | |
10 | for _,v in pairs(character:GetChildren()) do | |
11 | if v:IsA('Part') then | |
12 | v.BrickColor = BrickColor.new("Br. yellowish orange") | |
13 | end | |
14 | if v:IsA('Accessory') then | |
15 | v:Destroy() | |
16 | end | |
17 | if v:IsA('Shirt') or v:IsA('ShirtGraphic') or v:IsA('Pants') then | |
18 | v:Destroy() | |
19 | end | |
20 | end | |
21 | if character.Head:FindFirstChild('face') then | |
22 | character.Head.face.Texture = 'rbxassetid://3467700326' | |
23 | end | |
24 | - | end |
24 | + | else |
25 | return | |
26 | end | |
27 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
28 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
29 | do | |
30 | print("FE Compatibility code by Mokiros") | |
31 | script.Parent = Player.Character | |
32 | ||
33 | --RemoteEvent for communicating | |
34 | local Event = Instance.new("RemoteEvent") | |
35 | Event.Name = "UserInput_Event" | |
36 | ||
37 | --Fake event to make stuff like Mouse.KeyDown work | |
38 | local function fakeEvent() | |
39 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
40 | t.connect = t.Connect | |
41 | return t | |
42 | end | |
43 | ||
44 | --Creating fake input objects with fake variables | |
45 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
46 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
47 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
48 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
49 | end} | |
50 | --Merged 2 functions into one by checking amount of arguments | |
51 | CAS.UnbindAction = CAS.BindAction | |
52 | ||
53 | --This function will trigger the events that have been :Connect()'ed | |
54 | local function te(self,ev,...) | |
55 | local t = m[ev] | |
56 | if t and t._fakeEvent and t.Function then | |
57 | t.Function(...) | |
58 | end | |
59 | end | |
60 | m.TrigEvent = te | |
61 | UIS.TrigEvent = te | |
62 | ||
63 | Event.OnServerEvent:Connect(function(plr,io) | |
64 | if plr~=Player then return end | |
65 | if io.isMouse then | |
66 | m.Target = io.Target | |
67 | m.Hit = io.Hit | |
68 | else | |
69 | local b = io.UserInputState == Enum.UserInputState.Begin | |
70 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
71 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
72 | end | |
73 | for _,t in pairs(CAS.Actions) do | |
74 | for _,k in pairs(t.Keys) do | |
75 | if k==io.KeyCode then | |
76 | t.Function(t.Name,io.UserInputState,io) | |
77 | end | |
78 | end | |
79 | end | |
80 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
81 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
82 | end | |
83 | end) | |
84 | Event.Parent = NLS([==[ | |
85 | local Player = game:GetService("Players").LocalPlayer | |
86 | local Event = script:WaitForChild("UserInput_Event") | |
87 | ||
88 | local UIS = game:GetService("UserInputService") | |
89 | local input = function(io,a) | |
90 | if a then return end | |
91 | --Since InputObject is a client-side instance, we create and pass table instead | |
92 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
93 | end | |
94 | UIS.InputBegan:Connect(input) | |
95 | UIS.InputEnded:Connect(input) | |
96 | ||
97 | local Mouse = Player:GetMouse() | |
98 | local h,t | |
99 | --Give the server mouse data 30 times every second, but only if the values changed | |
100 | --If player is not moving their mouse, client won't fire events | |
101 | while wait(1/30) do | |
102 | if h~=Mouse.Hit or t~=Mouse.Target then | |
103 | h,t=Mouse.Hit,Mouse.Target | |
104 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
105 | end | |
106 | end]==],Player.Character) | |
107 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
108 | end | |
109 | -- params : ... | |
110 | ||
111 | wait(0.016666666666667) | |
112 | local Player = owner | |
113 | local Character = Player.Character | |
114 | script.Name = "GG" | |
115 | local Player = owner | |
116 | local Character = Player.Character | |
117 | local Humanoid = Character.Humanoid | |
118 | local Effects = {} | |
119 | local m = Instance.new("Model", Character) | |
120 | m.Name = "WeaponModel" | |
121 | local LeftArm = Character["Left Arm"] | |
122 | local RightArm = Character["Right Arm"] | |
123 | local LeftLeg = Character["Left Leg"] | |
124 | local RightLeg = Character["Right Leg"] | |
125 | local Head = Character.Head | |
126 | local Torso = Character.Torso | |
127 | local cam = game.Workspace.CurrentCamera | |
128 | local RootPart = Character.HumanoidRootPart | |
129 | local RootJoint = RootPart.RootJoint | |
130 | local equipped = false | |
131 | local attack = false | |
132 | local Anim = "Idle" | |
133 | local idle = 0 | |
134 | local attacktype = 1 | |
135 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
136 | local velocity = RootPart.Velocity.y | |
137 | local sine = 0 | |
138 | local change = 1 | |
139 | local grabbed = false | |
140 | local cn = CFrame.new | |
141 | local mr = math.rad | |
142 | local angles = CFrame.Angles | |
143 | local ud = UDim2.new | |
144 | local c3 = Color3.new | |
145 | Humanoid.Animator.Parent = nil | |
146 | Character.Animate.Parent = nil | |
147 | local newMotor = function(part0, part1, c0, c1) | |
148 | ||
149 | local w = Instance.new("Motor", part0) | |
150 | w.Part0 = part0 | |
151 | w.Part1 = part1 | |
152 | w.C0 = c0 | |
153 | w.C1 = c1 | |
154 | return w | |
155 | end | |
156 | ||
157 | clerp = function(a, b, t) | |
158 | ||
159 | return a:lerp(b, t) | |
160 | end | |
161 | ||
162 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
163 | NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
164 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
165 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
166 | local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
167 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
168 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
169 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
170 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
171 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
172 | local rarmc1 = RW.C1 | |
173 | local larmc1 = LW.C1 | |
174 | local rlegc1 = RH.C1 | |
175 | local llegc1 = LH.C1 | |
176 | local resetc1 = false | |
177 | PlayAnimationFromTable = function(table, speed, bool) | |
178 | ||
179 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
180 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
181 | RW.C0 = clerp(RW.C0, table[3], speed) | |
182 | LW.C0 = clerp(LW.C0, table[4], speed) | |
183 | RH.C0 = clerp(RH.C0, table[5], speed) | |
184 | LH.C0 = clerp(LH.C0, table[6], speed) | |
185 | if bool == true and resetc1 == false then | |
186 | resetc1 = true | |
187 | RootJoint.C1 = RootJoint.C1 | |
188 | Torso.Neck.C1 = Torso.Neck.C1 | |
189 | RW.C1 = rarmc1 | |
190 | LW.C1 = larmc1 | |
191 | RH.C1 = rlegc1 | |
192 | LH.C1 = llegc1 | |
193 | end | |
194 | end | |
195 | ||
196 | local co1 = 5 | |
197 | local co2 = 8 | |
198 | local co3 = 10 | |
199 | local co4 = 25 | |
200 | local cooldown1 = 0 | |
201 | local cooldown2 = 0 | |
202 | local cooldown3 = 0 | |
203 | local cooldown4 = 0 | |
204 | local skillcolorscheme = BrickColor.new("White").Color | |
205 | local scrn = Instance.new("ScreenGui", Player.PlayerGui) | |
206 | makeframe = function(par, trans, pos, size, color) | |
207 | ||
208 | local frame = Instance.new("Frame", par) | |
209 | frame.BackgroundTransparency = trans | |
210 | frame.BorderSizePixel = 0 | |
211 | frame.Position = pos | |
212 | frame.Size = size | |
213 | frame.BackgroundColor3 = color | |
214 | return frame | |
215 | end | |
216 | ||
217 | makelabel = function(par, text) | |
218 | ||
219 | local label = Instance.new("TextLabel", par) | |
220 | label.BackgroundTransparency = 1 | |
221 | label.Size = UDim2.new(1, 0, 1, 0) | |
222 | label.Position = UDim2.new(0, 0, 0, 0) | |
223 | label.TextColor3 = Color3.new(255, 255, 255) | |
224 | label.TextStrokeTransparency = 0 | |
225 | label.FontSize = Enum.FontSize.Size32 | |
226 | label.Font = Enum.Font.SourceSansLight | |
227 | label.BorderSizePixel = 0 | |
228 | label.TextScaled = true | |
229 | label.Text = text | |
230 | end | |
231 | ||
232 | framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
233 | framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
234 | framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
235 | framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
236 | bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
237 | bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
238 | bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
239 | bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
240 | text1 = Instance.new("TextLabel", framesk1) | |
241 | text1.BackgroundTransparency = 1 | |
242 | text1.Size = UDim2.new(1, 0, 1, 0) | |
243 | text1.Position = UDim2.new(0, 0, 0, 0) | |
244 | text1.TextColor3 = Color3.new(255, 255, 255) | |
245 | text1.TextStrokeTransparency = 0 | |
246 | text1.FontSize = Enum.FontSize.Size18 | |
247 | text1.Font = Enum.Font.SourceSansLight | |
248 | text1.BorderSizePixel = 0 | |
249 | text1.TextScaled = true | |
250 | text1.Text = "[Z]\n Meteor Slam" | |
251 | text2 = Instance.new("TextLabel", framesk2) | |
252 | text2.BackgroundTransparency = 1 | |
253 | text2.Size = UDim2.new(1, 0, 1, 0) | |
254 | text2.Position = UDim2.new(0, 0, 0, 0) | |
255 | text2.TextColor3 = Color3.new(255, 255, 255) | |
256 | text2.TextStrokeTransparency = 0 | |
257 | text2.FontSize = Enum.FontSize.Size18 | |
258 | text2.Font = Enum.Font.SourceSansLight | |
259 | text2.BorderSizePixel = 0 | |
260 | text2.TextScaled = true | |
261 | text2.Text = "[X]\n Explosive Ambush" | |
262 | text3 = Instance.new("TextLabel", framesk3) | |
263 | text3.BackgroundTransparency = 1 | |
264 | text3.Size = UDim2.new(1, 0, 1, 0) | |
265 | text3.Position = UDim2.new(0, 0, 0, 0) | |
266 | text3.TextColor3 = Color3.new(255, 255, 255) | |
267 | text3.TextStrokeTransparency = 0 | |
268 | text3.FontSize = Enum.FontSize.Size18 | |
269 | text3.Font = Enum.Font.SourceSansLight | |
270 | text3.BorderSizePixel = 0 | |
271 | text3.TextScaled = false | |
272 | text3.Text = "[C]\n Rocket Barrage" | |
273 | text4 = Instance.new("TextLabel", framesk4) | |
274 | text4.BackgroundTransparency = 1 | |
275 | text4.Size = UDim2.new(1, 0, 1, 0) | |
276 | text4.Position = UDim2.new(0, 0, 0, 0) | |
277 | text4.TextColor3 = Color3.new(255, 255, 255) | |
278 | text4.TextStrokeTransparency = 0 | |
279 | text4.FontSize = Enum.FontSize.Size18 | |
280 | text4.Font = Enum.Font.SourceSansLight | |
281 | text4.BorderSizePixel = 0 | |
282 | text4.TextScaled = true | |
283 | text4.Text = "[V]\n Atomic Punch" | |
284 | ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui) | |
285 | ArtificialHB.Name = "Heartbeat" | |
286 | Player.PlayerGui:WaitForChild("Heartbeat") | |
287 | frame = 0.033333333333333 | |
288 | tf = 0 | |
289 | allowframeloss = false | |
290 | tossremainder = false | |
291 | lastframe = tick() | |
292 | Player.PlayerGui.Heartbeat:Fire() | |
293 | local gg = false | |
294 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
295 | ||
296 | if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then | |
297 | gg = true | |
298 | end | |
299 | if gg == true then | |
300 | return | |
301 | end | |
302 | tf = tf + s | |
303 | if frame <= tf then | |
304 | if allowframeloss then | |
305 | Player.PlayerGui.Heartbeat:Fire() | |
306 | lastframe = tick() | |
307 | else | |
308 | for i = 1, math.floor(tf / frame) do | |
309 | Player.PlayerGui.Heartbeat:Fire() | |
310 | end | |
311 | lastframe = tick() | |
312 | end | |
313 | if tossremainder then | |
314 | tf = 0 | |
315 | else | |
316 | tf = tf - frame * math.floor(tf / frame) | |
317 | end | |
318 | end | |
319 | end | |
320 | ) | |
321 | swait = function(num) | |
322 | ||
323 | if num == 0 or num == nil then | |
324 | ArtificialHB.Event:wait() | |
325 | else | |
326 | for i = 0, num do | |
327 | ArtificialHB.Event:wait() | |
328 | end | |
329 | end | |
330 | end | |
331 | ||
332 | local RbxUtility = LoadLibrary("RbxUtility") | |
333 | local Create = RbxUtility.Create | |
334 | RemoveOutlines = function(part) | |
335 | ||
336 | part.TopSurface = 10 | |
337 | end | |
338 | ||
339 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
340 | ||
341 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
342 | RemoveOutlines(Part) | |
343 | return Part | |
344 | end | |
345 | ||
346 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
347 | ||
348 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
349 | if Mesh == "SpecialMesh" then | |
350 | Msh.MeshType = MeshType | |
351 | Msh.MeshId = MeshId | |
352 | end | |
353 | return Msh | |
354 | end | |
355 | ||
356 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
357 | ||
358 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
359 | return Weld | |
360 | end | |
361 | ||
362 | CFuncs = { | |
363 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
364 | ||
365 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
366 | RemoveOutlines(Part) | |
367 | return Part | |
368 | end | |
369 | } | |
370 | , | |
371 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
372 | ||
373 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
374 | if Mesh == "SpecialMesh" then | |
375 | Msh.MeshType = MeshType | |
376 | Msh.MeshId = MeshId | |
377 | end | |
378 | return Msh | |
379 | end | |
380 | } | |
381 | , | |
382 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
383 | ||
384 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
385 | if Mesh == "SpecialMesh" then | |
386 | Msh.MeshType = MeshType | |
387 | Msh.MeshId = MeshId | |
388 | end | |
389 | return Msh | |
390 | end | |
391 | } | |
392 | , | |
393 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
394 | ||
395 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
396 | return Weld | |
397 | end | |
398 | } | |
399 | , | |
400 | Sound = {Create = function(id, par, vol, pit) | |
401 | ||
402 | coroutine.resume(coroutine.create(function() | |
403 | ||
404 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace}) | |
405 | wait() | |
406 | S:play() | |
407 | game:GetService("Debris"):AddItem(S, 6) | |
408 | end | |
409 | )) | |
410 | end | |
411 | } | |
412 | , | |
413 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
414 | ||
415 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
416 | return fp | |
417 | end | |
418 | } | |
419 | } | |
420 | rayCast = function(Position, Direction, Range, Ignore) | |
421 | ||
422 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
423 | end | |
424 | ||
425 | local GetNearest = function(obj, distance) | |
426 | ||
427 | local last, lastx = distance + 1, nil | |
428 | for i,v in pairs(workspace:GetChildren()) do | |
429 | if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
430 | local t = v.Torso | |
431 | local dist = (t.Position - obj.Position).magnitude | |
432 | if dist <= distance and dist < last then | |
433 | last = dist | |
434 | lastx = v | |
435 | end | |
436 | end | |
437 | end | |
438 | return lastx | |
439 | end | |
440 | ||
441 | Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "Handle", Vector3.new(2, 2, 1)) | |
442 | HandleWeld = CreateWeld(m, Character.Torso, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.010008812, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
443 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.799999952, 0.48999998, 1.01999998)) | |
444 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.389007568, -0.0804796219, 0.00506401062, 0.9993909, -0.0348989964, 0, 0.0348989964, 0.9993909, 0, 0, 0, 1)) | |
445 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.799999952, 0.49000001, 1.01999998)) | |
446 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.3697052, -0.079957962, -0.00506210327, -0.9993909, -0.0348989964, 0, -0.0348989964, 0.9993909, 0, 0, 0, -1)) | |
447 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.530000091, 1.01999998)) | |
448 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.255264282, -1.10845184, 0.00506401062, 0.829038203, -0.559192121, 0, 0.559192121, 0.829038203, 0, 0, 0, 1)) | |
449 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.61000001, 1.01999998)) | |
450 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.688995361, 0.169520378, 0.00506401062, 0.9993909, -0.0348989964, 0, 0.0348989964, 0.9993909, 0, 0, 0, 1)) | |
451 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.61000001, 1.01999998)) | |
452 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.678436279, 0.16988945, -0.00506210327, -0.9993909, -0.0348989964, 0, -0.0348989964, 0.9993909, 0, 0, 0, -1)) | |
453 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.530000091, 1.01999998)) | |
454 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.246520996, -1.10255432, -0.00506210327, -0.829038203, -0.559192121, 0, -0.559192121, 0.829038203, 0, 0, 0, -1)) | |
455 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(1.82000005, 1.61000001, 1.01999998)) | |
456 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, 0.165195227, -0.644943237, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
457 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(1.82000005, 2.33999991, 0.220000029)) | |
458 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, -0.474357605, -1.4232254, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
459 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(1.5, 2.09000015, 1.22000003)) | |
460 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, -0.569357395, -0.83322525, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
461 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.790000081, 1.82000005, 0.700000048)) | |
462 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.63980341, -0.0268859863, 0.804944992, 0, -1, 0, -1, 0, 0, 0, 0, -1)) | |
463 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
464 | Shoot1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot1", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
465 | Shoot1Weld = CreateWeld(m, Handle, Shoot1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, -1.53471231, -1.07691193, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
466 | CreateMesh("CylinderMesh", Shoot1, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
467 | Shoot2 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot2", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
468 | Shoot2Weld = CreateWeld(m, Handle, Shoot2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.463119507, -1.53471231, -1.07691193, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
469 | CreateMesh("CylinderMesh", Shoot2, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
470 | Shoot4 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot4", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
471 | Shoot4Weld = CreateWeld(m, Handle, Shoot4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.526855469, -1.53471231, -1.07691193, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
472 | CreateMesh("CylinderMesh", Shoot4, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
473 | Shoot3 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot3", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
474 | Shoot3Weld = CreateWeld(m, Handle, Shoot3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.463119507, -1.52871275, -0.548072815, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
475 | CreateMesh("CylinderMesh", Shoot3, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
476 | Shoot5 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot5", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
477 | Shoot5Weld = CreateWeld(m, Handle, Shoot5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, -1.52871275, -0.548072815, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
478 | CreateMesh("CylinderMesh", Shoot5, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
479 | Shoot6 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Shoot6", Vector3.new(0.410000086, 0.200000003, 0.430000067)) | |
480 | Shoot6Weld = CreateWeld(m, Handle, Shoot6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.526855469, -1.52871275, -0.548072815, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
481 | CreateMesh("CylinderMesh", Shoot6, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
482 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(0.290000081, 2.26999998, 0.25000003)) | |
483 | PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0268859863, -0.409357309, -1.43822479, 1, 0, 0, 0, 0.961262107, 0.275636017, 0, -0.275635988, 0.961262107)) | |
484 | RightHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Dirt brown", "RightHandle", Vector3.new(1, 1.55999994, 1)) | |
485 | RightHandleWeld = CreateWeld(m, Character["Right Arm"], RightHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00958251953, 0.209863663, 7.05718994e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
486 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
487 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.229995728, 0.729995489, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
488 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.17000008, 1.01999998)) | |
489 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.186126709, 0.14704895, 0.00499343872, 0.829038203, -0.559192121, 0, 0.559192121, 0.829038203, 0, 0, 0, 1)) | |
490 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.55000007, 1.01999998)) | |
491 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.419998169, 0.0549926758, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
492 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.55000007, 1.01999998)) | |
493 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.429992676, 0.0549926758, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
494 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.0400002, 1.01999998)) | |
495 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.596198082, 0.0137176514, 0.00499343872, -0.034897998, -0.9993909, 0, 0.9993909, -0.034897998, 0, 0, 0, 1)) | |
496 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.70000005, 1.01999998)) | |
497 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.63923645, 0.190513611, 0.00499343872, 0.95105654, 0.309016854, 0, -0.309016854, 0.95105654, 0, 0, 0, 1)) | |
498 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.360000014, 0.950000107, 0.709999979)) | |
499 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456954956, 0.396179199, 0.00499343872, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
500 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
501 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666175842, 0.224983215, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
502 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
503 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666175842, -0.00498580933, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
504 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
505 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666175842, -0.224979401, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
506 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.469999999, 1.0200001, 0.99000001)) | |
507 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.555007935, -0.210006714, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
508 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.430000126, 1)) | |
509 | PartWeld = CreateWeld(m, RightHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.615005493, -0.515014172, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
510 | Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Barrel", Vector3.new(0.200000003, 0.429999977, 0.519999981)) | |
511 | BarrelWeld = CreateWeld(m, RightHandle, Barrel2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.536849976, 0.675645828, 0.0200119019, 0.994522095, 0.104527012, 0, -0.104527019, 0.994522095, 0, 0, 0, 1)) | |
512 | LeftHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Dirt brown", "LeftHandle", Vector3.new(1, 1.55999994, 1)) | |
513 | LeftHandleWeld = CreateWeld(m, Character["Left Arm"], LeftHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0149993896, 0.199864864, -5.53131104e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
514 | Barrel = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Barrel", Vector3.new(0.200000003, 0.429999977, 0.519999981)) | |
515 | BarrelWeld = CreateWeld(m, LeftHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.536849976, 0.675645828, 0.0200119019, 0.994522095, 0.104527012, 0, -0.104527019, 0.994522095, 0, 0, 0, 1)) | |
516 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
517 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.229995728, 0.729995489, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
518 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
519 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666179657, -0.224979401, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
520 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.17000008, 1.01999998)) | |
521 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.186096191, 0.147041321, 0.00499343872, 0.829038203, -0.559192121, 0, 0.559192121, 0.829038203, 0, 0, 0, 1)) | |
522 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.469999999, 1.0200001, 0.99000001)) | |
523 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.554992676, -0.210006714, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
524 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.70000005, 1.01999998)) | |
525 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.63923645, 0.190513611, 0.00499343872, 0.95105654, 0.309016854, 0, -0.309016854, 0.95105654, 0, 0, 0, 1)) | |
526 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.55000007, 1.01999998)) | |
527 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.419998169, 0.0549926758, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
528 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.360000014, 0.950000107, 0.709999979)) | |
529 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.396179199, 0.00499343872, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
530 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
531 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666179657, -0.00498580933, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
532 | Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 0.430000126, 1)) | |
533 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.615005493, -0.515014648, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
534 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.55000007, 1.01999998)) | |
535 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.430007935, 0.0549926758, 0.00499343872, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
536 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Fossil", "Part", Vector3.new(0.200000003, 1.0400002, 1.01999998)) | |
537 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.59619832, 0.0137176514, 0.00499343872, -0.034897998, -0.9993909, 0, 0.9993909, -0.034897998, 0, 0, 0, 1)) | |
538 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.429999977, 0.200000003)) | |
539 | PartWeld = CreateWeld(m, LeftHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.456939697, 0.666179657, 0.224983215, 0.970296025, 0.241920993, 0, -0.241920993, 0.970296025, 0, 0, 0, 1)) | |
540 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
541 | ||
542 | if hit.Parent == nil then | |
543 | return | |
544 | end | |
545 | local h = hit.Parent:FindFirstChild("Humanoid") | |
546 | for _,v in pairs(hit.Parent:children()) do | |
547 | if v:IsA("Humanoid") then | |
548 | h = v | |
549 | end | |
550 | end | |
551 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
552 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
553 | return | |
554 | end | |
555 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
556 | game:GetService("Debris"):AddItem(c, 0.5) | |
557 | if HitSound ~= nil and HitPitch ~= nil then | |
558 | CreateSound(HitSound, hit, 1, HitPitch) | |
559 | end | |
560 | local Damage = math.random(minim, maxim) | |
561 | local blocked = false | |
562 | local block = hit.Parent:findFirstChild("Block") | |
563 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
564 | blocked = true | |
565 | block.Value = block.Value - 1 | |
566 | print(block.Value) | |
567 | end | |
568 | if blocked == false then | |
569 | h.Health = h.Health - Damage | |
570 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
571 | else | |
572 | h.Health = h.Health - Damage / 2 | |
573 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
574 | end | |
575 | if Type == "Knockdown" then | |
576 | local hum = hit.Parent.Humanoid | |
577 | hum.PlatformStand = true | |
578 | coroutine.resume(coroutine.create(function(HHumanoid) | |
579 | ||
580 | swait(1) | |
581 | HHumanoid.PlatformStand = false | |
582 | end | |
583 | ), hum) | |
584 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
585 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
586 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
587 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
588 | game:GetService("Debris"):AddItem(rl, 0.5) | |
589 | elseif Type == "Normal" then | |
590 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) | |
591 | if knockback > 0 then | |
592 | vp.Parent = hit.Parent.Torso | |
593 | end | |
594 | game:GetService("Debris"):AddItem(vp, 0.5) | |
595 | elseif Type == "Up" then | |
596 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
597 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
598 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
599 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
600 | elseif Type == "Snare" then | |
601 | local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
602 | game:GetService("Debris"):AddItem(bp, 1) | |
603 | elseif Type == "Freeze" then | |
604 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
605 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
606 | hit.Parent.Torso.Anchored = true | |
607 | coroutine.resume(coroutine.create(function(Part) | |
608 | ||
609 | swait(1.5) | |
610 | Part.Anchored = false | |
611 | end | |
612 | ), hit.Parent.Torso) | |
613 | game:GetService("Debris"):AddItem(BodPos, 3) | |
614 | game:GetService("Debris"):AddItem(BodGy, 3) | |
615 | end | |
616 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
617 | game:GetService("Debris"):AddItem(debounce, Delay) | |
618 | c = Instance.new("ObjectValue") | |
619 | c.Name = "creator" | |
620 | c.Value = Player | |
621 | c.Parent = h | |
622 | game:GetService("Debris"):AddItem(c, 0.5) | |
623 | end | |
624 | end | |
625 | ||
626 | ShowDamage = function(Pos, Text, Time, Color) | |
627 | ||
628 | local Rate = 0.033333333333333 | |
629 | if not Pos then | |
630 | local Pos = Vector3.new(0, 0, 0) | |
631 | end | |
632 | local Text = Text or "" | |
633 | local Time = Time or 2 | |
634 | if not Color then | |
635 | local Color = Color3.new(1, 0, 1) | |
636 | end | |
637 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
638 | EffectPart.Anchored = true | |
639 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
640 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
641 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
642 | EffectPart.Parent = game:GetService("Workspace") | |
643 | delay(0, function() | |
644 | ||
645 | local Frames = Time / Rate | |
646 | for Frame = 1, Frames do | |
647 | wait(Rate) | |
648 | local Percent = Frame / Frames | |
649 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
650 | TextLabel.TextTransparency = Percent | |
651 | end | |
652 | if EffectPart and EffectPart.Parent then | |
653 | EffectPart:Destroy() | |
654 | end | |
655 | end | |
656 | ) | |
657 | end | |
658 | ||
659 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
660 | ||
661 | for _,c in pairs(workspace:children()) do | |
662 | local hum = c:findFirstChild("Humanoid") | |
663 | if hum ~= nil then | |
664 | local head = c:findFirstChild("Torso") | |
665 | if head ~= nil then | |
666 | local targ = head.Position - Part.Position | |
667 | local mag = targ.magnitude | |
668 | if mag <= magni and c.Name ~= Player.Name then | |
669 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
670 | end | |
671 | end | |
672 | end | |
673 | end | |
674 | end | |
675 | ||
676 | EffectModel = Instance.new("Model", Character) | |
677 | EffectModel.Name = "Effects" | |
678 | Effects = { | |
679 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
680 | ||
681 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
682 | prt.Anchored = true | |
683 | prt.CFrame = cframe | |
684 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
685 | game:GetService("Debris"):AddItem(prt, 10) | |
686 | if Type == 1 or Type == nil then | |
687 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
688 | else | |
689 | if Type == 2 then | |
690 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
691 | end | |
692 | end | |
693 | end | |
694 | } | |
695 | , | |
696 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
697 | ||
698 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
699 | prt.Anchored = true | |
700 | prt.CFrame = cframe | |
701 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
702 | game:GetService("Debris"):AddItem(prt, 10) | |
703 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
704 | end | |
705 | } | |
706 | , | |
707 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
708 | ||
709 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
710 | prt.Anchored = true | |
711 | prt.CFrame = cframe | |
712 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
713 | game:GetService("Debris"):AddItem(prt, 10) | |
714 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
715 | end | |
716 | } | |
717 | , | |
718 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
719 | ||
720 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
721 | prt.Anchored = true | |
722 | prt.CFrame = cframe | |
723 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
724 | game:GetService("Debris"):AddItem(prt, 10) | |
725 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
726 | end | |
727 | } | |
728 | , | |
729 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
730 | ||
731 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
732 | prt.Anchored = true | |
733 | prt.CFrame = cframe | |
734 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
735 | game:GetService("Debris"):AddItem(prt, 10) | |
736 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
737 | end | |
738 | } | |
739 | , | |
740 | Break = {Create = function(brickcolor, cframe, x1, y1, z1) | |
741 | ||
742 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
743 | prt.Anchored = true | |
744 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
745 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
746 | local num = math.random(10, 50) / 1000 | |
747 | game:GetService("Debris"):AddItem(prt, 10) | |
748 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) | |
749 | end | |
750 | } | |
751 | } | |
752 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
753 | ||
754 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
755 | prt.Anchored = true | |
756 | prt.CFrame = cframe | |
757 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
758 | game:GetService("Debris"):AddItem(prt, 10) | |
759 | if Type == 1 or Type == nil then | |
760 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
761 | else | |
762 | if Type == 2 then | |
763 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
764 | end | |
765 | end | |
766 | end | |
767 | ||
768 | CreateSound = function(id, par, vol, pit) | |
769 | ||
770 | coroutine.resume(coroutine.create(function() | |
771 | ||
772 | local sou = Instance.new("Sound", par or workspace) | |
773 | sou.Volume = vol | |
774 | sou.Pitch = pit or 1 | |
775 | sou.SoundId = id | |
776 | swait() | |
777 | sou:play() | |
778 | game:GetService("Debris"):AddItem(sou, 6) | |
779 | end | |
780 | )) | |
781 | end | |
782 | ||
783 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
784 | ||
785 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
786 | prt.Anchored = true | |
787 | prt.CFrame = cframe | |
788 | prt.Material = "Neon" | |
789 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
790 | game:GetService("Debris"):AddItem(prt, 10) | |
791 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
792 | ||
793 | for i = 0, 1, delay do | |
794 | swait() | |
795 | Part.Transparency = i | |
796 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
797 | end | |
798 | Part.Parent = nil | |
799 | end | |
800 | ), prt, msh) | |
801 | end | |
802 | ||
803 | shoottraildd = function(mouse, partt, SpreadAmount) | |
804 | ||
805 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
806 | local MainPos = partt.Position | |
807 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
808 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
809 | local speed = 15 | |
810 | local num = 20 | |
811 | coroutine.resume(coroutine.create(function() | |
812 | ||
813 | repeat | |
814 | swait() | |
815 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
816 | local mag = (MainPos - pos).magnitude | |
817 | Laser(BrickColor.new("Bright red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15) | |
818 | MainPos = MainPos + MouseLook.lookVector * speed | |
819 | num = num - 1 | |
820 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
821 | if hit ~= nil then | |
822 | num = 0 | |
823 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
824 | refpart.Anchored = true | |
825 | refpart.CFrame = CFrame.new(pos) | |
826 | game:GetService("Debris"):AddItem(refpart, 2) | |
827 | end | |
828 | do | |
829 | if num <= 0 then | |
830 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
831 | refpart.Anchored = true | |
832 | refpart.CFrame = CFrame.new(pos) | |
833 | if hit ~= nil then | |
834 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
835 | BlockEffect(BrickColor.new("Br. yellowish orange"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05) | |
836 | BlockEffect(BrickColor.new("Bright red"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07) | |
837 | MagniDamage(refpart, 15, 10, 15, 0, "Normal") | |
838 | end | |
839 | game:GetService("Debris"):AddItem(refpart, 0) | |
840 | end | |
841 | end | |
842 | until num <= 0 | |
843 | end | |
844 | )) | |
845 | end | |
846 | ||
847 | attackone = function() | |
848 | ||
849 | attack = true | |
850 | for i = 0, 1, 0.1 do | |
851 | swait() | |
852 | PlayAnimationFromTable({CFrame.new(0.0168012269, 0.0140947225, 0.176023334, 0.170834526, 0.0229868423, -0.985031247, -0.241162121, 0.97029531, -0.0191819277, 0.955330193, 0.240829155, 0.171303496), CFrame.new(-0.0490820035, 1.51753175, -0.0841583014, 0.891632974, -0.237090871, 0.385718524, 0.134611636, 0.95222342, 0.274135917, -0.432285249, -0.192506418, 0.880948901), CFrame.new(1.33407795, 0.58572197, -0.929743409, 0.0415165424, 0.979251385, 0.198351115, 0.59342736, 0.135545582, -0.79339242, -0.803816199, 0.150645882, -0.575487137), CFrame.new(-1.70516646, 0.200321093, -0.0163192302, 0.406020403, 0.913860857, -0.00234819204, -0.913677216, 0.405987978, 0.0191818345, 0.0184828788, -0.00564271957, 0.99981308), CFrame.new(0.799933672, -1.87646341, 0.0238581076, 0.956145704, -0.241162121, 0.166209832, 0.234167412, 0.97029531, 0.0607677661, -0.17592749, -0.0191819277, 0.984216034), CFrame.new(-0.170546949, -2.11762524, 0.0262068212, 0.841636002, -0.241162121, 0.483207196, 0.199261591, 0.97029531, 0.137192965, -0.501939416, -0.0191819277, 0.864689827)}, 0.2, false) | |
853 | end | |
854 | for i = 0, 1, 0.13 do | |
855 | swait() | |
856 | PlayAnimationFromTable({CFrame.new(0.125685468, -0.083208181, 0.0652366504, 0.406280458, -0.129335701, 0.904548407, -0.126267031, 0.972488344, 0.195763171, -0.904981852, -0.193749383, 0.37877214), CFrame.new(-0.0850939453, 1.48672271, -0.11930868, 0.695180237, -0.0759676918, -0.714810133, 0.0455091298, 0.997056544, -0.0617045462, 0.717393637, 0.010365352, 0.696591139), CFrame.new(1.74906945, 0.68710798, -0.728966653, 0.199944049, -0.882648349, 0.425387383, 0.777047575, -0.121617213, -0.617581248, 0.596841455, 0.454027891, 0.661542952), CFrame.new(-0.572255433, 0.337804973, -0.855933249, -0.0181611478, -0.830141723, -0.557256341, -0.994747162, -0.0411543846, 0.0937266722, -0.100740038, 0.556031346, -0.825033426), CFrame.new(1.12533855, -1.8726579, -0.0747017935, 0.882101774, -0.442035675, 0.162791193, 0.436708689, 0.896940768, 0.069158107, -0.176584333, 0.0100878254, 0.984233916), CFrame.new(-0.474834979, -1.95017993, -0.189468995, 0.8071329, -0.0219258294, 0.589962482, 0.132095978, 0.980681181, -0.144274905, -0.575401664, 0.194380671, 0.794436336)}, 0.4, false) | |
857 | end | |
858 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", Barrel2, 1, 2) | |
859 | MagniDamage(Barrel2, 5, 10, 15, 10, "Normal") | |
860 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
861 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
862 | attack = false | |
863 | end | |
864 | ||
865 | attacktwo = function() | |
866 | ||
867 | attack = true | |
868 | for i = 0, 1, 0.08 do | |
869 | swait() | |
870 | PlayAnimationFromTable({CFrame.new(-0.0186349452, -0.248176977, 0.0628215745, 0.375544965, 0.0766297877, 0.923630476, 0.128763035, 0.982597232, -0.133876607, -0.917815626, 0.169206128, 0.359142333), CFrame.new(0.0423668474, 1.57783902, -0.316276073, 0.696152329, 0.180450261, -0.6948452, 0.104184225, 0.932252288, 0.346484721, 0.710294187, -0.313598007, 0.630189419), CFrame.new(1.92671323, 0.132951051, -0.678923368, 0.401373565, -0.876565754, 0.265578508, 0.854572356, 0.254073381, -0.452938288, 0.329553753, 0.408753514, 0.851067066), CFrame.new(-1.04651415, 0.432963669, -0.675856173, 0.261162102, -0.915728152, -0.305346608, -0.132824391, 0.279225171, -0.950994909, 0.9561131, 0.288921267, -0.0487079956), CFrame.new(0.758113086, -1.88259661, 0.453171372, 0.961009741, -0.198991895, 0.191996455, 0.124079227, 0.930845678, 0.343701482, -0.247112811, -0.306477666, 0.91924262), CFrame.new(-0.581928134, -1.66874206, -0.0443570018, 0.834722936, 0.0594652742, 0.547450185, -0.0592483878, 0.998079777, -0.0180748496, -0.547473669, -0.0173480511, 0.836643219)}, 0.2, false) | |
871 | end | |
872 | for i = 0, 1, 0.13 do | |
873 | swait() | |
874 | PlayAnimationFromTable({CFrame.new(0.332943976, -0.0453501195, -0.185544059, 0.503931701, -0.122271061, -0.855045021, 0.268410921, 0.963087022, 0.0204703975, 0.820979714, -0.239819095, 0.518148959), CFrame.new(0.10902524, 1.42164171, -0.150368646, 0.428041071, -0.00987225771, 0.903705418, -0.0982332975, 0.993507743, 0.0573815703, -0.898404837, -0.113335624, 0.424292356), CFrame.new(0.908786654, 0.47266987, -1.09219909, 0.403207213, 0.872515678, 0.275935531, 0.777617276, -0.167717531, -0.60595572, -0.482426614, 0.458898008, -0.746108055), CFrame.new(-1.85339892, 0.927808642, -0.52081728, -0.0625723004, 0.800370812, -0.596230865, -0.952449501, -0.226383746, -0.203937709, -0.298202783, 0.555118978, 0.776477993), CFrame.new(0.600215256, -2.26092339, 0.0316785164, 0.999409437, -0.0130844563, 0.0317713022, 0.0115824938, 0.998827398, 0.0470069796, -0.0323491395, -0.0466112271, 0.998389244), CFrame.new(-0.808889031, -1.75554359, -0.179014683, 0.920005083, 0.178009719, 0.349146128, -0.121227235, 0.976460695, -0.17840609, -0.372685492, 0.121808507, 0.919928432)}, 0.4, false) | |
875 | end | |
876 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", Barrel, 1, 2.5) | |
877 | MagniDamage(Barrel, 5, 10, 15, 10, "Normal") | |
878 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
879 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
880 | attack = false | |
881 | end | |
882 | ||
883 | attackthree = function() | |
884 | ||
885 | attack = true | |
886 | for i = 0, 1, 0.1 do | |
887 | swait() | |
888 | PlayAnimationFromTable({CFrame.new(-0.0630386472, -0.278067917, 0.662609518, 0.997418523, 0.0324964076, 0.0640287697, -0.00866699871, 0.939693093, -0.34190917, -0.071278207, 0.340471566, 0.937548816), CFrame.new(0.116541803, 1.50563574, -0.363379985, 0.99741888, 0.00384203624, -0.071700342, 0.0324964076, 0.866294563, 0.498475581, 0.0640287548, -0.499518931, 0.863933623), CFrame.new(1.76550686, 0.851317883, 0.633524954, -0.717778921, -0.64158994, 0.270473421, -0.121112853, -0.267489254, -0.955919087, 0.685656786, -0.718896329, 0.114293337), CFrame.new(-1.85054755, 0.725809753, 0.462940723, -0.385106921, 0.903384864, 0.188649699, -0.491353273, -0.027673766, -0.870520771, -0.781194389, -0.42793712, 0.454538435), CFrame.new(0.482117534, -1.79728031, -0.705268621, 0.984953582, -0.0355595201, 0.169121593, 0.0185976997, 0.994728923, 0.100839898, -0.171815932, -0.0961773992, 0.980422974), CFrame.new(-0.498361021, -1.81340992, 0.0649374723, 0.997632146, -0.00866699871, 0.0682281703, -0.0152039425, 0.939693093, 0.341680884, -0.06707488, -0.34190917, 0.937336206)}, 0.3, false) | |
889 | end | |
890 | for i = 0, 1, 0.5 do | |
891 | swait() | |
892 | PlayAnimationFromTable({CFrame.new(-0.0596649423, -0.0609331392, -0.24926284, 0.997557878, -0.00662699156, 0.0695250854, 0.00176699972, 0.997564137, 0.0697326064, -0.0698178485, -0.0694394559, 0.995139658), CFrame.new(0.03276008, 1.44252896, -0.116725445, 0.997558236, 0.0232553538, -0.0658547133, -0.00662699156, 0.970198154, 0.242222458, 0.0695250779, -0.241194606, 0.967983305), CFrame.new(1.96562946, 0.507137001, -0.054060474, 0.137299404, -0.987933397, -0.0716712326, -0.34079802, 0.0208241269, -0.939905882, 0.93005687, 0.153473929, -0.333826572), CFrame.new(-1.79703903, 0.611130834, -0.341432333, 0.346754491, 0.937174857, 0.0382722393, -0.127409071, 0.0874885172, -0.98798418, -0.92926228, 0.337711692, 0.149741635), CFrame.new(0.583949924, -1.99326468, 0.549392104, 0.985466778, -0.119053118, 0.121168382, 0.0766996518, 0.948305786, 0.307950079, -0.151567101, -0.294180989, 0.943655193), CFrame.new(-0.473392367, -1.41731274, -0.923102856, 0.997566938, 0.0384304449, 0.0581673309, 0.00310152699, 0.809055507, -0.58772409, -0.0696470886, 0.586474597, 0.806967795)}, 0.5, false) | |
893 | end | |
894 | for i = 0, 1, 0.13 do | |
895 | swait() | |
896 | PlayAnimationFromTable({CFrame.new(-0.0742319226, -0.212178648, -0.401880711, 0.997319937, -0.0416516848, 0.0601444766, 0.0111089991, 0.898794532, 0.438229501, -0.0723105147, -0.436386824, 0.8968485), CFrame.new(0.0310760923, 1.54887593, -0.183208376, 0.997320294, 0.0496452525, -0.0537361279, -0.0416516848, 0.989159107, 0.140817374, 0.0601444691, -0.138201743, 0.988576412), CFrame.new(0.972631454, 0.606948912, -1.07130337, 0.639069736, 0.749865711, -0.17114751, 0.0601495504, -0.270558029, -0.960822821, -0.76679337, 0.603738368, -0.218009531), CFrame.new(-0.864498973, 0.767386198, -1.04104149, 0.445705116, -0.872666836, -0.1994984, -0.559173465, -0.0973761603, -0.823312283, 0.699050963, 0.478508621, -0.531373262), CFrame.new(0.569158137, -1.99067521, -0.0340827554, 0.986428559, -0.109501459, 0.12234471, 0.118518293, 0.990550876, -0.0690104067, -0.113631904, 0.0825739205, 0.990085661), CFrame.new(-0.47435376, -1.51467299, -0.961076021, 0.99767828, 0.0111089991, 0.0671921968, 0.0194864757, 0.898794532, -0.437936932, -0.0652570128, 0.438229501, 0.896491289)}, 0.6, false) | |
897 | end | |
898 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", Barrel, 1, 1) | |
899 | MagniDamage(Barrel, 10, 10, 20, 10, "Normal") | |
900 | Effects.Ring.Create(BrickColor.new("White"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
901 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 3, 3, 3, 0.09) | |
902 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 3, 3, 3, 0.07) | |
903 | attack = false | |
904 | end | |
905 | ||
906 | dunk = function() | |
907 | ||
908 | attack = true | |
909 | for i = 0, 1, 0.1 do | |
910 | swait() | |
911 | PlayAnimationFromTable({CFrame.new(-0.0558750853, -0.0773498267, 0.332619429, -0.377112269, 0.0229866933, -0.925881863, -0.214679077, 0.970296085, 0.111528262, 0.90094322, 0.24082613, -0.360975742), CFrame.new(-0.0114901662, 1.54095101, -0.0923257098, 0.257508159, -0.214679077, 0.942126632, 0.166381299, 0.970296085, 0.175621539, -0.951843977, 0.111528262, 0.285577655), CFrame.new(1.58127809, 0.795648813, -1.15537035, 0.257202566, -0.756908178, 0.600780487, 0.964671552, 0.23781319, -0.11337468, -0.0570593029, 0.608716011, 0.791333795), CFrame.new(-1.67734432, 0.1196426, 0.90712893, 0.35411644, 0.772008419, 0.527830005, -0.913678527, 0.405985177, 0.0191814546, -0.199482933, -0.489059329, 0.849133134), CFrame.new(0.502895653, -1.82377911, -0.404230505, 0.717630088, -0.214679077, 0.662510157, 0.234164506, 0.970296085, 0.060766872, -0.655876279, 0.111528262, 0.74658376), CFrame.new(-0.741218328, -1.53127491, -0.412305295, 0.845636725, 0.0793296099, 0.527831078, -0.105245247, 0.994261265, 0.0191820543, -0.523280203, -0.0717727393, 0.849132836)}, 0.3, false) | |
912 | end | |
913 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231917845", Barrel2, 1, 2) | |
914 | Effects.Wave.Create(BrickColor.new("White"), Barrel2.CFrame, 1, 1, 1, 1, 0.5, 1, 0.07) | |
915 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
916 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
917 | for i = 0, 1, 0.05 do | |
918 | swait() | |
919 | Torso.Velocity = RootPart.CFrame.lookVector * 50 | |
920 | PlayAnimationFromTable({CFrame.new(-0.347489059, 1.89379489, -0.530023634, 0.793617308, 0.26859948, -0.545916855, -0.398839056, 0.907263517, -0.133417904, 0.459454417, 0.32361573, 0.827147961), CFrame.new(-0.155465648, 1.53718615, -0.221591562, 0.908247709, -0.356378019, -0.219273746, 0.410897195, 0.858626902, 0.306469262, 0.0790553093, -0.368448973, 0.926280618), CFrame.new(1.88301468, 1.10491538, -0.0779324025, 0.873505831, -0.437252998, 0.214003652, -0.034406364, -0.493952602, -0.868807912, 0.485596418, 0.751545608, -0.446514755), CFrame.new(-1.83038306, 0.636132836, -0.234082431, 0.924620271, 0.373744726, 0.0734322965, -0.10938219, 0.445217013, -0.888716757, -0.364846468, 0.813693285, 0.452537686), CFrame.new(1.17151093, -1.51884532, 0.288996607, 0.823733747, -0.512612104, 0.242263496, 0.290519148, 0.748543799, 0.596054316, -0.486889541, -0.420607924, 0.765524387), CFrame.new(-0.630549073, -1.55479836, -0.714515686, 0.848122776, -0.304236203, 0.433737427, 0.21012038, 0.94470042, 0.251774967, -0.486351013, -0.122398987, 0.865148008)}, 0.3, false) | |
921 | end | |
922 | for i = 0, 1, 0.13 do | |
923 | swait() | |
924 | PlayAnimationFromTable({CFrame.new(-0.623933315, -0.369826853, -0.156407177, 0.849217772, -0.397029608, 0.348132133, -0.00044699994, 0.658747792, 0.752363741, -0.528041959, -0.639076173, 0.559242845), CFrame.new(-0.00439473987, 1.45538008, -0.0782935619, 0.938704193, -0.0374080688, -0.342688411, -0.0310979187, 0.980852127, -0.19225502, 0.343318582, 0.191127568, 0.919566631), CFrame.new(1.00555742, 0.750556827, -1.25407493, 0.468402296, 0.699207723, 0.540099919, 0.820548713, -0.117627844, -0.559342086, -0.327565491, 0.7051754, -0.628831208), CFrame.new(-1.95691848, 0.234090745, 0.140298545, 0.247598886, 0.777176738, -0.578525066, -0.83666712, -0.12958549, -0.532161355, -0.488551885, 0.615795493, 0.618152916), CFrame.new(0.935974598, -1.46626627, -0.895650029, 0.826233387, -0.118111357, -0.55080694, -0.0985342935, 0.932397962, -0.347742766, 0.554643631, 0.341590106, 0.758740246), CFrame.new(-0.8566764, -1.7819916, -0.314571321, 0.898790061, 0.438003123, 0.0181599259, -0.420946509, 0.873872995, -0.243207857, -0.122395292, 0.210948437, 0.969804227)}, 0.3, false) | |
925 | end | |
926 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=233856079", Barrel2, 1, 0.8) | |
927 | MagniDamage(Barrel2, 8, 20, 25, 10, "Knockdown") | |
928 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
929 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
930 | attack = false | |
931 | end | |
932 | ||
933 | dunkooza = function() | |
934 | ||
935 | attack = true | |
936 | for i = 0, 1, 0.1 do | |
937 | swait() | |
938 | PlayAnimationFromTable({CFrame.new(-0.0288373418, -0.192418262, -0.0531356111, 0.997948349, -0.0446073487, -0.0459267199, 0.060890004, 0.882948518, 0.465504676, 0.0197860003, -0.467346132, 0.883853197), CFrame.new(0.0114286756, 1.44308722, 0.0591937304, 0.997938633, 0.0608900972, 0.0197861046, -0.0446069054, 0.882949769, -0.46734193, -0.0459263027, 0.465505332, 0.88384515), CFrame.new(1.41529405, -0.107281052, 0.612583578, 0.971561313, 0.0101020709, -0.236572772, 0.118062474, 0.845376968, 0.520960093, 0.205255911, -0.534075022, 0.820142746), CFrame.new(-1.71688473, -0.0926266164, 0.561368287, 0.901585162, 0.236020699, 0.362544537, -0.250200659, 0.96816051, -0.0080781281, -0.352907896, -0.0834257305, 0.931931615), CFrame.new(0.317776978, -1.71058083, -0.680077612, 0.964743137, 0.0786031038, -0.251182169, -0.171697885, 0.911277533, -0.374290407, 0.199476242, 0.404221505, 0.892644644), CFrame.new(-0.754294932, -1.82473743, -0.323320627, 0.962212265, 0.140705347, 0.233130246, -0.11977759, 0.987579584, -0.101686805, -0.244542569, 0.0699205399, 0.967114389)}, 0.3, false) | |
939 | end | |
940 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231917845", Barrel2, 1, 0.8) | |
941 | Effects.Wave.Create(BrickColor.new("White"), RootPart.CFrame, 1, 1, 1, 2, 1, 2, 0.06) | |
942 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
943 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
944 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.09) | |
945 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.07) | |
946 | for i = 0, 1, 0.04 do | |
947 | swait() | |
948 | Torso.Velocity = RootPart.CFrame.lookVector * 75 | |
949 | PlayAnimationFromTable({CFrame.new(-0.0415195711, 2.08569407, -0.185997486, 0.997948468, 0.0446058102, -0.045927316, -0.0608890243, 0.882946372, -0.46550864, 0.0197869763, 0.467350066, 0.883850992), CFrame.new(-0.0330298916, 1.53079355, -0.280739367, 0.997948587, -0.0615424737, 0.0176494569, 0.0446060188, 0.866098166, 0.497879982, -0.0459269285, -0.496071339, 0.867066443), CFrame.new(2.00445485, 0.648462772, 0.409209311, 0.184988767, -0.961532891, -0.203061089, 0.252809882, 0.24623464, -0.935657859, 0.949666619, 0.121750318, 0.288635612), CFrame.new(-1.91055453, 0.245741665, -0.27787447, 0.495856375, 0.751108885, 0.435846418, 0.356316745, 0.281724274, -0.890881538, -0.79193747, 0.5970487, -0.127937913), CFrame.new(0.498059809, -1.45009089, 0.698198855, 0.964743495, -0.0428793319, -0.259676158, 0.171697423, 0.850315392, 0.497477412, 0.19947511, -0.524523735, 0.82769841), CFrame.new(-0.727485538, -1.60267472, -0.11832726, 0.981819093, 0.0295088291, 0.187511846, -0.164540589, 0.624853075, 0.763207197, -0.094645977, -0.780184627, 0.618348002)}, 0.3, false) | |
950 | end | |
951 | for i = 0, 1, 0.1 do | |
952 | swait() | |
953 | PlayAnimationFromTable({CFrame.new(-0.117653005, -1.15651703, -0.983633459, 0.993958175, -0.0787762105, -0.076430276, 0.107529014, 0.559188843, 0.822037339, -0.0220180228, -0.82528919, 0.564281106), CFrame.new(0.0185009073, 1.37960994, 0.113212526, 0.993958294, 0.107188329, 0.0236212909, -0.0787765905, 0.846520543, -0.526495278, -0.0764300525, 0.521453321, 0.849849999), CFrame.new(1.5037396, 0.407824367, -1.32765841, 0.140987605, -0.0965467021, 0.985292554, 0.883371055, 0.461591452, -0.0811730698, -0.446965665, 0.881823242, 0.150365233), CFrame.new(-1.40880704, 1.01266086, -1.31886494, -0.12855117, 0.0286603589, -0.991288841, -0.79185468, 0.598803818, 0.120001137, 0.597026765, 0.800382912, -0.0542820916), CFrame.new(0.417401671, -0.608768165, -1.15205181, 0.96308738, 0.0867218822, -0.254838139, -0.193809614, 0.880385101, -0.432851017, 0.186818033, 0.466263294, 0.864695191), CFrame.new(-0.742704809, -1.885674, -0.234664246, 0.961165249, 0.149617493, 0.23189722, -0.11127989, 0.979062796, -0.17044884, -0.252544075, 0.138023973, 0.957690477)}, 0.3, false) | |
954 | end | |
955 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=231917806", Barrel2, 1, 0.8) | |
956 | MagniDamage(Barrel2, 15, 20, 25, 10, "Knockdown") | |
957 | Effects.Sphere.Create(BrickColor.new("White"), RootPart.CFrame * cn(0, -2, 0), 5, 5, 5, 10, 10, 10, 0.08) | |
958 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.04) | |
959 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel2.CFrame, 5, 5, 5, 1, 1, 1, 0.03) | |
960 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.04) | |
961 | Effects.Block.Create(BrickColor.new("Bright red"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.03) | |
962 | attack = false | |
963 | end | |
964 | ||
965 | dunkannons = function() | |
966 | ||
967 | attack = true | |
968 | Humanoid.WalkSpeed = 4 | |
969 | for i = 0, 1, 0.1 do | |
970 | swait() | |
971 | PlayAnimationFromTable({CFrame.new(0.186240405, 0.110796131, -0.440708041, 0.993961096, 0.0229864083, -0.107295461, -0.0480340123, 0.970295787, -0.23710531, 0.098658137, 0.240827292, 0.96554029), CFrame.new(-0.00653786398, 1.47169375, -0.0460130274, 0.993961334, -0.0480340123, 0.0986581594, 0.022986412, 0.970295787, 0.240827352, -0.107295483, -0.23710531, 0.965540528), CFrame.new(1.55870771, 0.422533929, -0.228132412, 0.920158267, 0.269758672, -0.28379336, -0.349885702, 0.24116005, -0.905219197, -0.17575103, 0.932240129, 0.31629023), CFrame.new(-1.4401089, 0.59103018, 0.10050077, 0.997758627, 0.030987978, -0.0593110174, -0.0609709062, 0.0556920618, -0.996584773, -0.0275789797, 0.997967064, 0.0574565977), CFrame.new(0.374292582, -2.11797833, 0.117044657, 0.998829126, -0.0480340123, -0.00577862561, 0.0480335876, 0.970295787, 0.237105429, -0.00578215718, -0.23710531, 0.971466839), CFrame.new(-0.76240015, -1.74029541, -0.806325555, 0.940569639, -0.0480340123, 0.336186945, -0.0359573625, 0.970295787, 0.239234746, -0.337692142, -0.23710531, 0.910903454)}, 0.3, false) | |
972 | end | |
973 | for i = 0, 1, 0.1 do | |
974 | swait() | |
975 | PlayAnimationFromTable({CFrame.new(0.0913087875, -1.21074545, -1.43529654, 0.981485367, -0.0903667733, -0.168877333, 0.18883504, 0.309012026, 0.932122827, -0.0320478007, -0.946754932, 0.320355177), CFrame.new(0.0631730855, 1.29753327, 0.298094243, 0.981485724, 0.19137165, 0.00791353732, -0.0903667733, 0.499100775, -0.861819267, -0.168877408, 0.845148146, 0.507153869), CFrame.new(1.1398747, 0.727956295, -1.15539122, 0.57954824, 0.308892846, 0.754127979, 0.673663259, 0.339146107, -0.656626105, -0.458586603, 0.888574898, -0.0115382075), CFrame.new(-1.34308207, 0.352208972, 0.579449832, 0.984155059, 0.000163774937, -0.177310467, -0.149885938, -0.533476114, -0.832428753, -0.0947272182, 0.845815182, -0.524998605), CFrame.new(0.186483294, -1.48678553, -0.810016513, 0.972759366, 0.0996307135, 0.209315687, -0.188833594, 0.864302933, 0.466178745, -0.13446641, -0.493005574, 0.859572232), CFrame.new(-1.12868333, -0.336534053, -0.54941982, 0.960084856, 0.18883504, 0.20634529, 0.141356587, 0.309012026, -0.940494537, -0.241361499, 0.932122827, 0.269984663)}, 0.3, false) | |
976 | end | |
977 | for i = 0, 3 do | |
978 | local hobib = math.random(1, 6) | |
979 | for i = 0, 1, 0.1 do | |
980 | swait() | |
981 | PlayAnimationFromTable({CFrame.new(-0.0225678831, -1.21728492, -1.42334998, 0.996199608, -0.0492271595, 0.0718503445, -0.0538799912, 0.299834162, 0.952468574, -0.0684305131, -0.952720106, 0.296042293), CFrame.new(0.0751699433, 1.43051457, -0.39642638, 0.996199965, 0.0806309506, -0.0329308063, -0.0492271446, 0.833168447, 0.550824106, 0.0718503594, -0.547109783, 0.8339715), CFrame.new(1.46657431, 0.799420893, -0.830374599, 0.644049466, 0.0717548952, 0.761611223, 0.703545749, 0.335361838, -0.626542866, -0.300372809, 0.93935281, 0.165506721), CFrame.new(-1.34261823, 0.297376126, 0.252365947, 0.983457386, -0.180813491, -0.0108846743, -0.109879918, -0.547714889, -0.829418421, 0.144008338, 0.816893458, -0.558521807), CFrame.new(0.551745534, -1.45635438, -0.741569817, 0.983590007, 0.17892608, -0.0231617149, -0.148542851, 0.87597388, 0.458917201, 0.102401309, -0.447945833, 0.888177037), CFrame.new(-0.834492505, -0.362758934, -0.796781898, 0.983163714, -0.0538799912, 0.174602941, 0.182717323, 0.299834162, -0.93633008, -0.00190247595, 0.952468574, 0.304630846)}, 0.3, false) | |
982 | end | |
983 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), m:FindFirstChild("Shoot" .. hobib).CFrame, 5, 5, 5, 0.5, 0.5, 0.5, 0.07) | |
984 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=151776307", RootPart, 1, 2) | |
985 | shoottraildd(mouse, m:FindFirstChild("Shoot" .. hobib), 0.5) | |
986 | for i = 0, 1, 0.5 do | |
987 | swait() | |
988 | PlayAnimationFromTable({CFrame.new(-0.00831588358, -1.21728492, -1.2740283, 0.996199608, -0.0492271595, 0.0718503445, -0.0538799912, 0.299834162, 0.952468574, -0.0684305131, -0.952720106, 0.296042293), CFrame.new(0.0711895972, 1.57347798, -0.441656053, 0.996199965, 0.0806309506, -0.0329308063, -0.0492271446, 0.833168447, 0.550824106, 0.0718503594, -0.547109783, 0.8339715), CFrame.new(1.47081995, 0.64692831, -0.782130241, 0.644049466, 0.0717548952, 0.761611223, 0.703545749, 0.335361838, -0.626542866, -0.300372809, 0.93935281, 0.165506721), CFrame.new(-1.34102535, 0.240191355, 0.270457268, 0.983457386, -0.180813491, -0.0108846743, -0.109879918, -0.547714889, -0.829418421, 0.144008338, 0.816893458, -0.558521807), CFrame.new(0.547765613, -1.31339121, -0.786799312, 0.983590007, 0.17892608, -0.0231617149, -0.148542851, 0.87597388, 0.458917201, 0.102401309, -0.447945833, 0.888177037), CFrame.new(-0.838472426, -0.219795436, -0.842011452, 0.983163714, -0.0538799912, 0.174602941, 0.182717323, 0.299834162, -0.93633008, -0.00190247595, 0.952468574, 0.304630846)}, 0.3, false) | |
989 | end | |
990 | end | |
991 | Humanoid.WalkSpeed = 16 | |
992 | attack = false | |
993 | end | |
994 | ||
995 | verydunk = function() | |
996 | ||
997 | attack = true | |
998 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=238319531", RootPart, 1, 0.5) | |
999 | for i = 0, 1, 0.05 do | |
1000 | swait() | |
1001 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 10, 10, 10, -1, -1, -1, 0.07) | |
1002 | PlayAnimationFromTable({CFrame.new(0.041139707, 0.044585079, 0.431010723, 0.164062083, 0.0416527241, -0.985569894, -0.436991155, 0.898793995, -0.0347580127, 0.884376585, 0.436387777, 0.165659875), CFrame.new(-0.0562867522, 1.59175599, -0.00447699428, 0.285545528, -0.436991155, 0.852937639, 0.101980112, 0.898793995, 0.426344275, -0.952923834, -0.0347580127, 0.301210999), CFrame.new(1.4891398, 1.07213497, -1.11837041, -0.21181941, 0.971555471, 0.105890013, 0.977145553, 0.212517619, 0.00477617467, -0.017863173, 0.10448163, -0.994366407), CFrame.new(-1.52433658, 0.125274807, -0.768075228, 0.502447903, 0.333001524, -0.797907352, -0.844186068, 0.388335317, -0.369520664, 0.186804652, 0.859247208, 0.476233542), CFrame.new(0.95525521, -1.80896652, 0.0362099186, 0.887154818, -0.436991155, 0.14830631, 0.424316525, 0.898793995, 0.110112481, -0.181414992, -0.0347580127, 0.982791901), CFrame.new(-0.618177056, -1.84541512, -0.400635123, 0.782929122, -0.436991155, 0.442787081, 0.361066431, 0.898793995, 0.248596638, -0.506608844, -0.0347580127, 0.861474812)}, 0.1, false) | |
1003 | end | |
1004 | for i = 0, 1, 0.25 do | |
1005 | swait() | |
1006 | PlayAnimationFromTable({CFrame.new(0.0401331335, 0.0741440356, 0.42046985, 0.151488289, 0.0610756539, -0.98657006, -0.640763819, 0.766044617, -0.0509660058, 0.752643824, 0.639879048, 0.155181855), CFrame.new(-0.411456347, 1.51497698, -0.0327271074, 0.254760653, -0.640763819, 0.724236727, 0.149534211, 0.766044617, 0.625152171, -0.955372512, -0.0509660058, 0.29097414), CFrame.new(1.304847, 1.15274966, -0.9747262, -0.220305115, 0.952353835, 0.210922092, 0.974325597, 0.204557091, 0.0940542966, 0.0464273617, 0.226227403, -0.972967565), CFrame.new(-1.51677501, -0.265117556, -0.138394684, 0.758258045, 0.610287666, -0.229333594, -0.645010769, 0.753440619, -0.127626568, 0.09490031, 0.244696528, 0.964944422), CFrame.new(1.39025009, -1.5400058, 0.0708092526, 0.759066045, -0.640763819, 0.115066618, 0.622178853, 0.766044617, 0.161458939, -0.191603184, -0.0509660058, 0.980148077), CFrame.new(-0.267891169, -1.79467082, -0.372773767, 0.673933685, -0.640763819, 0.367743045, 0.529434681, 0.766044617, 0.364519417, -0.515278399, -0.0509660058, 0.855505824)}, 0.3, false) | |
1007 | end | |
1008 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=238319531", RootPart, 1, 2) | |
1009 | for i = 0, 1, 0.5 do | |
1010 | swait() | |
1011 | Effects.Block.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame, 10, 10, 10, -1, -1, -1, 0.07) | |
1012 | PlayAnimationFromTable({CFrame.new(0.200224042, -0.227714077, -0.387235343, 0.949956238, -0.243331015, 0.195888788, 0.123870984, 0.869098783, 0.478877187, -0.28677237, -0.430647433, 0.855747461), CFrame.new(0.0819287449, 1.41396284, -0.27420333, 0.915596783, 0.0299440324, 0.400981069, -0.112619296, 0.976408243, 0.184238791, -0.386004388, -0.213846684, 0.89736855), CFrame.new(1.14642, 0.662253082, -0.920918107, -0.00301490724, 0.0640034825, 0.99794513, 0.980141044, -0.19768405, 0.0156396553, 0.198278829, 0.97817421, -0.0621364564), CFrame.new(-1.45047593, 0.217968062, 0.413363159, -0.0768081546, 0.277757645, -0.957575679, -0.941704333, -0.335731506, -0.021848321, -0.327556908, 0.900075078, 0.287352532), CFrame.new(0.520247221, -1.82374465, -0.525635481, 0.988821089, 0.149106205, 0.000458553433, -0.148477226, 0.98435849, 0.0948312283, 0.0136885494, -0.0938392878, 0.995493293), CFrame.new(-0.57537961, -2.09034443, 0.11631836, 0.99074924, 0.0795628428, 0.109935179, -0.08136677, 0.996611834, 0.012014389, -0.10860683, -0.020848304, 0.993866265)}, 0.4, false) | |
1013 | end | |
1014 | for i = 0, 1, 0.13 do | |
1015 | swait() | |
1016 | PlayAnimationFromTable({CFrame.new(-0.32173726, -0.227715075, -0.881562114, 0.0899681896, -0.490443766, 0.866817713, 0.123871259, 0.869101048, 0.478878796, -0.988212466, 0.0642898232, 0.138943106), CFrame.new(0.337672263, 1.68985736, -0.235476986, 0.875947833, 0.165182114, -0.453246117, -0.0474886224, 0.96451354, 0.259732485, 0.480064601, -0.205987319, 0.852707028), CFrame.new(1.79723549, 0.554554403, -0.512672782, 0.0541117489, -0.913280547, 0.40372315, 0.943166137, -0.0860183686, -0.321000129, 0.327890873, 0.398147374, 0.856719494), CFrame.new(-1.44090164, 0.658615828, -0.388829917, -0.199676231, -0.419071078, -0.885725915, -0.922202766, -0.225134045, 0.314418942, -0.331171125, 0.87959981, -0.341513991), CFrame.new(0.575238645, -1.87178028, -0.452693194, 0.773394883, 0.110019118, -0.624305904, 0.125435278, 0.93879509, 0.320830435, 0.62139225, -0.326437622, 0.712258458), CFrame.new(-1.11411142, -1.55052757, -0.724033237, 0.763290703, 0.479035646, -0.433490157, -0.499207586, 0.863237977, 0.0749294758, 0.410098314, 0.159208834, 0.898038864)}, 0.3, false) | |
1017 | end | |
1018 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=151776391", RootPart, 1, 2) | |
1019 | MagniDamage(Barrel2, 10, 30, 30, 100, "Knockdown") | |
1020 | Effects.Ring.Create(BrickColor.new("Br. yellowish orange"), Barrel2.CFrame * angles(1.47, 0, 0), 10, 10, 1, 1, 1, 0, 0.05) | |
1021 | attack = false | |
1022 | end | |
1023 | ||
1024 | mouse.Button1Down:connect(function() | |
1025 | ||
1026 | if attack == false and attacktype == 1 then | |
1027 | attacktype = 2 | |
1028 | attackone() | |
1029 | else | |
1030 | if attack == false and attacktype == 2 then | |
1031 | attacktype = 3 | |
1032 | attacktwo() | |
1033 | else | |
1034 | if attack == false and attacktype == 3 then | |
1035 | attacktype = 1 | |
1036 | attackthree() | |
1037 | end | |
1038 | end | |
1039 | end | |
1040 | end | |
1041 | ) | |
1042 | updateskills = function() | |
1043 | ||
1044 | if cooldown1 <= co1 then | |
1045 | cooldown1 = cooldown1 + 0.033333333333333 | |
1046 | end | |
1047 | if cooldown2 <= co2 then | |
1048 | cooldown2 = cooldown2 + 0.033333333333333 | |
1049 | end | |
1050 | if cooldown3 <= co3 then | |
1051 | cooldown3 = cooldown3 + 0.033333333333333 | |
1052 | end | |
1053 | if cooldown4 <= co4 then | |
1054 | cooldown4 = cooldown4 + 0.033333333333333 | |
1055 | end | |
1056 | end | |
1057 | ||
1058 | mouse.KeyDown:connect(function(k) | |
1059 | ||
1060 | k = k:lower() | |
1061 | if attack == false and k == "z" and co1 <= cooldown1 then | |
1062 | cooldown1 = 0 | |
1063 | dunk() | |
1064 | else | |
1065 | if attack == false and k == "x" and co2 <= cooldown2 then | |
1066 | cooldown2 = 0 | |
1067 | dunkooza() | |
1068 | else | |
1069 | if attack == false and k == "c" and co3 <= cooldown3 then | |
1070 | cooldown3 = 0 | |
1071 | dunkannons() | |
1072 | else | |
1073 | if attack == false and k == "v" and co4 <= cooldown4 then | |
1074 | cooldown4 = 0 | |
1075 | verydunk() | |
1076 | end | |
1077 | end | |
1078 | end | |
1079 | end | |
1080 | end | |
1081 | ) | |
1082 | while 1 do | |
1083 | swait() | |
1084 | updateskills() | |
1085 | bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5) | |
1086 | bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5) | |
1087 | bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5) | |
1088 | bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5) | |
1089 | for i,v in pairs(Character:GetChildren()) do | |
1090 | if v:IsA("Part") then | |
1091 | v.Material = "SmoothPlastic" | |
1092 | else | |
1093 | if v:IsA("Hat") then | |
1094 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1099 | velocity = RootPart.Velocity.y | |
1100 | sine = sine + change | |
1101 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1102 | if equipped == true or equipped == false then | |
1103 | if 1 < RootPart.Velocity.y and hit == nil then | |
1104 | Anim = "Jump" | |
1105 | if attack == false then | |
1106 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1107 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1108 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
1109 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
1110 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1111 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1112 | end | |
1113 | else | |
1114 | if RootPart.Velocity.y < -1 and hit == nil then | |
1115 | Anim = "Fall" | |
1116 | if attack == false then | |
1117 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1118 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
1119 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1120 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3) | |
1121 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1122 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1123 | end | |
1124 | else | |
1125 | if Torsovelocity < 1 and hit ~= nil then | |
1126 | Anim = "Idle" | |
1127 | if attack == false then | |
1128 | change = 1 | |
1129 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)), 0.3) | |
1130 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(80), math.rad(0)), 0.3) | |
1131 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.9) * angles(math.rad(70), math.rad(0), math.rad(-90)), 0.3) | |
1132 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1133 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(10), math.rad(0)), 0.3) | |
1134 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3) | |
1135 | end | |
1136 | else | |
1137 | if 2 < Torsovelocity and hit ~= nil then | |
1138 | Anim = "Walk" | |
1139 | if attack == false then | |
1140 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1141 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1142 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1143 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1144 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1145 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | end | |
1150 | end | |
1151 | end | |
1152 | if 0 < #Effects then | |
1153 | for e = 1, #Effects do | |
1154 | if Effects[e] ~= nil then | |
1155 | local Thing = Effects[e] | |
1156 | if Thing ~= nil then | |
1157 | local Part = Thing[1] | |
1158 | local Mode = Thing[2] | |
1159 | local Delay = Thing[3] | |
1160 | local IncX = Thing[4] | |
1161 | local IncY = Thing[5] | |
1162 | local IncZ = Thing[6] | |
1163 | if Thing[1].Transparency <= 1 then | |
1164 | if Thing[2] == "Block1" then | |
1165 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1166 | Mesh = Thing[1].Mesh | |
1167 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1168 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1169 | else | |
1170 | if Thing[2] == "Block2" then | |
1171 | Thing[1].CFrame = Thing[1].CFrame | |
1172 | Mesh = Thing[7] | |
1173 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1174 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1175 | else | |
1176 | if Thing[2] == "Cylinder" then | |
1177 | Mesh = Thing[1].Mesh | |
1178 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1179 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1180 | else | |
1181 | if Thing[2] == "Blood" then | |
1182 | Mesh = Thing[7] | |
1183 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1184 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1185 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1186 | else | |
1187 | if Thing[2] == "Elec" then | |
1188 | Mesh = Thing[1].Mesh | |
1189 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1190 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1191 | else | |
1192 | if Thing[2] == "Disappear" then | |
1193 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1194 | else | |
1195 | if Thing[2] == "Shatter" then | |
1196 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1197 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1198 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1199 | Thing[6] = Thing[6] + Thing[5] | |
1200 | end | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | end | |
1205 | end | |
1206 | end | |
1207 | else | |
1208 | Part.Parent = nil | |
1209 | table.remove(Effects, e) | |
1210 | end | |
1211 | end | |
1212 | end | |
1213 | end | |
1214 | end | |
1215 | end | |
1216 | repeat | |
1217 | if character:FindFirstChild('Humanoid') then | |
1218 | character.Humanoid.MaxHealth = 9999999 | |
1219 | character.Humanoid.Health = 9999999 | |
1220 | end | |
1221 | wait() | |
1222 | until nil |