· 5 years ago · Nov 30, 2020, 05:26 AM
1-- Gui to Lua
2-- Version: 3.2
3
4-- Instances:
5
6local ScreenGui = Instance.new("ScreenGui")
7local main = Instance.new("Frame")
8local TextLabel = Instance.new("TextLabel")
9local TextLabel_2 = Instance.new("TextLabel")
10local Nullware = Instance.new("TextButton")
11local KrystalDance = Instance.new("TextButton")
12local NeptunianV = Instance.new("TextButton")
13local Sniper = Instance.new("TextButton")
14local Carnage = Instance.new("TextButton")
15local Gale = Instance.new("TextButton")
16local OwlHub = Instance.new("TextButton")
17local OrHub = Instance.new("TextButton")
18local FECop = Instance.new("TextButton")
19local TextLabel_3 = Instance.new("TextLabel")
20
21--Properties:
22
23ScreenGui.Parent = game.CoreGui
24ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
25
26main.Name = "main"
27main.Parent = ScreenGui
28main.BackgroundColor3 = Color3.fromRGB(56, 56, 56)
29main.Position = UDim2.new(0.596310318, 0, 0.510452986, 0)
30main.Size = UDim2.new(0, 451, 0, 222)
31main.Visible = true
32main.Active = true
33main.Draggable = true
34
35TextLabel.Parent = main
36TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
37TextLabel.Position = UDim2.new(0, 0, -0.225225225, 0)
38TextLabel.Size = UDim2.new(0, 451, 0, 50)
39TextLabel.Font = Enum.Font.SourceSansBold
40TextLabel.Text = "Lantonware"
41TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
42TextLabel.TextSize = 37.000
43TextLabel.TextWrapped = true
44
45TextLabel_2.Parent = main
46TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
47TextLabel_2.BackgroundTransparency = 1.000
48TextLabel_2.Position = UDim2.new(0, 0, -0.225225225, 0)
49TextLabel_2.Size = UDim2.new(0, 64, 0, 50)
50TextLabel_2.Font = Enum.Font.SourceSansBold
51TextLabel_2.Text = "LW"
52TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
53TextLabel_2.TextScaled = true
54TextLabel_2.TextSize = 14.000
55TextLabel_2.TextWrapped = true
56
57Nullware.Name = "Nullware"
58Nullware.Parent = main
59Nullware.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
60Nullware.Position = UDim2.new(0.0209790207, 0, 0.0810810775, 0)
61Nullware.Size = UDim2.new(0, 133, 0, 50)
62Nullware.Font = Enum.Font.SourceSansBold
63Nullware.Text = "Nullware Hub Rewritten"
64Nullware.TextColor3 = Color3.fromRGB(255, 255, 255)
65Nullware.TextScaled = true
66Nullware.TextSize = 14.000
67Nullware.TextWrapped = true
68Nullware.MouseButton1Down:connect(function()
69 loadstring(game:HttpGet("https://paste.ee/r/z5drj/0"))()
70end)
71
72KrystalDance.Name = "KrystalDance"
73KrystalDance.Parent = main
74KrystalDance.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
75KrystalDance.Position = UDim2.new(0.363636374, 0, 0.0810810775, 0)
76KrystalDance.Size = UDim2.new(0, 133, 0, 50)
77KrystalDance.Font = Enum.Font.SourceSansBold
78KrystalDance.Text = "Krystal Dance"
79KrystalDance.TextColor3 = Color3.fromRGB(255, 255, 255)
80KrystalDance.TextScaled = true
81KrystalDance.TextSize = 14.000
82KrystalDance.TextWrapped = true
83KrystalDance.MouseButton1Down:connect(function()
84 function LoadLibrary(a)
85 return loadstring(game:HttpGet("https://pastebin.com/raw/UfzKgS6T", true))()
86 end
87
88 loadstring(game:GetObjects("rbxassetid://4480871791")[1].Source)()
89
90
91 Player=game.Players.LocalPlayer
92 Character=workspace.CloneCharacter
93 hum = Character.Humanoid
94 LeftArm=Character["Left Arm"]
95 LeftLeg=Character["Left Leg"]
96 RightArm=Character["Right Arm"]
97 RightLeg=Character["Right Leg"]
98 Root=Character["HumanoidRootPart"]
99 Head=Character["Head"]
100 Torso=Character["Torso"]
101 Neck=Torso["Neck"]
102 mouse = Player:GetMouse()
103 walking = false
104 jumping = false
105 attacking = false
106 firsttime = false
107 tauntdebounce = false
108 position = nil
109 MseGuide = true
110 running = false
111 settime = 0
112 sine = 0
113 t = 0
114 ws = 14
115 change = 1
116 combo1 = true
117 dancing = false
118 equip = false
119 dgs = 75
120 combo2 = false
121 switch1 = true
122 switch2 = false
123 firsttime2 = false
124 combo3 = false
125 gunallowance = false
126 shooting = false
127 RunSrv = game:GetService("RunService")
128 RenderStepped = game:GetService("RunService").RenderStepped
129 removeuseless = game:GetService("Debris")
130
131 screenGui = Instance.new("ScreenGui")
132 screenGui.Parent = script.Parent
133
134 local HEADLERP = Instance.new("ManualWeld")
135 HEADLERP.Parent = Head
136 HEADLERP.Part0 = Head
137 HEADLERP.Part1 = Head
138 HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
139
140 local TORSOLERP = Instance.new("ManualWeld")
141 TORSOLERP.Parent = Root
142 TORSOLERP.Part0 = Torso
143 TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
144
145 local ROOTLERP = Instance.new("ManualWeld")
146 ROOTLERP.Parent = Root
147 ROOTLERP.Part0 = Root
148 ROOTLERP.Part1 = Torso
149 ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
150
151 local RIGHTARMLERP = Instance.new("ManualWeld")
152 RIGHTARMLERP.Parent = RightArm
153 RIGHTARMLERP.Part0 = RightArm
154 RIGHTARMLERP.Part1 = Torso
155 RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
156
157 local LEFTARMLERP = Instance.new("ManualWeld")
158 LEFTARMLERP.Parent = LeftArm
159 LEFTARMLERP.Part0 = LeftArm
160 LEFTARMLERP.Part1 = Torso
161 LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
162
163 local RIGHTLEGLERP = Instance.new("ManualWeld")
164 RIGHTLEGLERP.Parent = RightLeg
165 RIGHTLEGLERP.Part0 = RightLeg
166 RIGHTLEGLERP.Part1 = Torso
167 RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
168
169 local LEFTLEGLERP = Instance.new("ManualWeld")
170 LEFTLEGLERP.Parent = LeftLeg
171 LEFTLEGLERP.Part0 = LeftLeg
172 LEFTLEGLERP.Part1 = Torso
173 LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
174
175 local function weldBetween(a, b)
176 local weld = Instance.new("ManualWeld", a)
177 weld.Part0 = a
178 weld.Part1 = b
179 weld.C0 = a.CFrame:inverse() * b.CFrame
180 return weld
181 end
182
183 function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
184 A = Instance.new("Attachment", PARENT)
185 A.Position = POSITION1
186 A.Name = "A"
187 B = Instance.new("Attachment", PARENT)
188 B.Position = POSITION2
189 B.Name = "B"
190 tr1 = Instance.new("Trail", PARENT)
191 tr1.Attachment0 = A
192 tr1.Attachment1 = B
193 tr1.Enabled = true
194 tr1.Lifetime = LIFETIME
195 tr1.TextureMode = "Static"
196 tr1.LightInfluence = 0
197 tr1.Color = COLOR
198 tr1.Transparency = NumberSequence.new(0, 1)
199 end
200
201 introsound = Instance.new("Sound",Head)
202 introsound.SoundId = "rbxassetid://236146895"
203 introsound.Volume = 8
204 introsound:Play()
205
206
207 fedora = Instance.new("Part",Character)
208 fedora.Size = Vector3.new(2,2,2)
209 fedora.CFrame = Head.CFrame
210 fedora.CanCollide = false
211 fedoraweld = Instance.new("Weld",fedora)
212 fedoraweld.Part0 = fedora
213 fedoraweld.Part1 = Head
214 fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0)
215 mfedora = Instance.new("SpecialMesh", fedora)
216 mfedora.MeshType = "FileMesh"
217 mfedora.Scale = Vector3.new(.97, .97, .97)
218 mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
219
220 shades = Instance.new("Part",Character)
221 shades.Size = Vector3.new(2,2,2)
222 shades.CFrame = Head.CFrame
223 shades.CanCollide = false
224 shadesweld = Instance.new("Weld",shades)
225 shadesweld.Part0 = shades
226 shadesweld.Part1 = Head
227 shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15)
228 mshades = Instance.new("SpecialMesh", shades)
229 mshades.MeshType = "FileMesh"
230 mshades.Scale = Vector3.new(1.04, 1.28, 1.04)
231 mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349'
232
233 for i,v in pairs(Character:GetChildren()) do
234 if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
235 v:Remove()
236 end
237 end
238
239 coroutine.wrap(function()
240 while wait() do
241 Head.face.Texture = "rbxasset://textures/face.png"
242 hum.WalkSpeed = ws
243 LeftArm.BrickColor = BrickColor.new("Really black")
244 RightArm.BrickColor = BrickColor.new("Really black")
245 Head.BrickColor = BrickColor.new("White")
246 Torso.BrickColor = BrickColor.new("Really black")
247 LeftLeg.BrickColor = BrickColor.new("Really black")
248 RightLeg.BrickColor = BrickColor.new("Really black")
249 end
250 end)()
251 godmode = coroutine.wrap(function()
252 for i,v in pairs(Character:GetChildren()) do
253 if v:IsA("BasePart") and v ~= Root then
254 v.Anchored = false
255 end
256 end
257 while true do
258 hum.MaxHealth = math.huge
259 wait(0.0000001)
260 hum.Health = math.huge
261 wait()
262 end
263 end)
264 godmode()
265 ff = Instance.new("ForceField", Character)
266 ff.Visible = false
267
268 coroutine.wrap(function()
269 for i,v in pairs(Character:GetChildren()) do
270 if v.Name == "Animate" then v:Remove()
271 end
272 end
273 end)()
274
275 function damagealll(Radius,Position)
276 local Returning = {}
277 for _,v in pairs(workspace:GetChildren()) do
278 if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
279 if v:FindFirstChild("Torso") then
280 local Mag = (v.Torso.Position - Position).magnitude
281 if Mag < Radius then
282 table.insert(Returning,v)
283 end
284 elseif v:FindFirstChild("UpperTorso") then
285 local Mag = (v.UpperTorso.Position - Position).magnitude
286 if Mag < Radius then
287 table.insert(Returning,v)
288 end
289 end
290 end
291 end
292 return Returning
293 end
294
295 ArtificialHB = Instance.new("BindableEvent", script)
296 ArtificialHB.Name = "Heartbeat"
297 script:WaitForChild("Heartbeat")
298
299 frame = 1 / 60
300 tf = 0
301 allowframeloss = false
302 tossremainder = false
303
304
305 lastframe = tick()
306 script.Heartbeat:Fire()
307
308
309 game:GetService("RunService").Heartbeat:connect(function(s, p)
310 tf = tf + s
311 if tf >= frame then
312 if allowframeloss then
313 script.Heartbeat:Fire()
314 lastframe = tick()
315 else
316 for i = 1, math.floor(tf / frame) do
317 script.Heartbeat:Fire()
318 end
319 lastframe = tick()
320 end
321 if tossremainder then
322 tf = 0
323 else
324 tf = tf - frame * math.floor(tf / frame)
325 end
326 end
327 end)
328
329 function swait(num)
330 if num == 0 or num == nil then
331 game:service("RunService").Stepped:wait(0)
332 else
333 for i = 0, num do
334 game:service("RunService").Stepped:wait(0)
335 end
336 end
337 end
338
339 for _,n in pairs(Character:GetChildren()) do
340 if n:IsA("Accessory") then end
341 end
342 for _,x in pairs(Character:GetChildren()) do
343 if x:IsA("Decal") then x:Remove() end
344 end
345
346 intro = true
347 ws = 0
348
349 bigfedora = Instance.new("Part",Character)
350 bigfedora.Size = Vector3.new(2,2,2)
351 bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
352 bigfedora.CanCollide = false
353 bigfedora.Anchored = true
354 bigfedora.Name = "mbigf"
355 mbigfedora = Instance.new("SpecialMesh", bigfedora)
356 mbigfedora.MeshType = "FileMesh"
357 mbigfedora.Scale = Vector3.new(6, 7, 7)
358 mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
359 for i,v in pairs(Character:GetDescendants()) do
360 if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
361 end
362 end
363 for i = 1, 60 do
364 bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
365 swait()
366 end
367 wait(.25)
368 for i,v in pairs(Character:GetDescendants()) do
369 if v:IsA("Part") and v.Name ~= "mbigf" and v.Name ~= "HumanoidRootPart" then v.Transparency = 0
370 end
371 end
372 for i = 1, 50 do
373 bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
374 swait()
375 end
376 zmc = 0
377 for i = 1, 29 do
378 zmc = zmc + 2
379 mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
380 bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
381 swait()
382 end
383 bigfedora:Remove()
384
385 ws = 14
386
387 function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
388 so = Instance.new("Sound")
389 so.Parent = PARENT
390 so.SoundId = "rbxassetid://"..ID
391 so.Volume = VOL
392 so.Looped = LOOP
393
394 so:Play()
395 removeuseless:AddItem(so,REMOVE)
396 end
397
398 mouse.KeyDown:connect(function(Press)
399 Press=Press:lower()
400 if Press=='k' then
401 if dancing then
402 dancing = false
403 else
404 dancing = true
405 ws = 0
406 change = .5
407 attacking = true
408 jam = Instance.new("Sound",Torso)
409 jam.SoundId = "rbxassetid://665751753"
410 jam.Volume = 8
411 jam.Looped = true
412 jam.TimePosition = 22.3
413 jam:Play()
414 lol90 = 0
415 coroutine.wrap(function()
416 while dancing do
417 lol90 = lol90 + 11
418 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25)
419 ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
420 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25)
421 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25)
422 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25)
423 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25)
424 swait()
425 end
426 ws = 14
427 jam:Remove()
428 ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
429 attacking = false
430 end)()
431 end
432 end
433 end)
434
435 mouse.KeyDown:connect(function(Press)
436 Press=Press:lower()
437 if Press=='j' then
438 if dancing then
439 dancing = false
440 else
441 dancing = true
442 ws = 3
443 change = .5
444 attacking = true
445 g1 = Instance.new("BodyGyro", Root)
446 g1.D = 175
447 g1.P = 20000
448 g1.MaxTorque = Vector3.new(0,9000,0)
449 herecomesthemoney = Instance.new("Sound",Torso)
450 herecomesthemoney.Pitch = 1
451 herecomesthemoney.SoundId = "rbxassetid://2426693638"
452 herecomesthemoney.Volume = 8
453 herecomesthemoney.Looped = true
454 herecomesthemoney:Play()
455 robuxpile = Instance.new("Part",Torso)
456 robuxpile.Size = Vector3.new(1,1,1)
457 robuxpile.CFrame = LeftArm.CFrame
458 robuxpile.CanCollide = false
459 robuxpileweld = Instance.new("Weld",robuxpile)
460 robuxpileweld.Part0 = robuxpile
461 robuxpileweld.Part1 = Torso
462 robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
463 mrobuxpile = Instance.new("SpecialMesh", robuxpile)
464 mrobuxpile.MeshType = "FileMesh"
465 mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
466 mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
467 coroutine.wrap(function()
468 coroutine.wrap(function()
469 while wait(.35) do
470 if not dancing then break end
471 local robux = Instance.new("Part",Torso)
472 robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
473 robux.Anchored = false
474 robux.CanCollide = true
475 robux.Size = Vector3.new(1,1,1)
476 removeuseless:AddItem(robux,4)
477 mrobux = Instance.new("SpecialMesh", robux)
478 mrobux.MeshType = "FileMesh"
479 mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
480 mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
481 bov = Instance.new("BodyVelocity",robux)
482 bov.maxForce = Vector3.new(99999,99999,99999)
483 robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
484 bov.velocity = robux.CFrame.lookVector*45
485 removeuseless:AddItem(bov,.1)
486 end
487 end)()
488 while dancing do
489 g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
490 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25)
491 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25)
492 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
493 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
494 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25)
495 swait()
496 end
497 ws = 14
498 removeuseless:AddItem(g1,.001)
499 robuxpile:Remove()
500 attacking = false
501 end)()
502 end
503 end
504 end)
505
506 mouse.KeyDown:connect(function(Press)
507 Press=Press:lower()
508 if Press=='h' then
509 if dancing then
510 dancing = false
511 else
512 dancing = true
513 ws = 0
514 change = .5
515 attacking = true
516 jellyfishjam = Instance.new("Sound",Torso)
517 jellyfishjam.SoundId = "rbxassetid://840189092"
518 jellyfishjam.Volume = 8
519 jellyfishjam.Looped = true
520 jellyfishjam.TimePosition = 14.8
521 jellyfishjam:Play()
522 coroutine.wrap(function()
523 while dancing do
524 for i = 1, 15 do
525 if not dancing then break end
526 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25)
527 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
528 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
529 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25)
530 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25)
531 swait()
532 end
533 for i = 1, 15 do
534 if not dancing then break end
535 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
536 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
537 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
538 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25)
539 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
540 swait()
541 end
542 for i = 1, 15 do
543 if not dancing then break end
544 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25)
545 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
546 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
547 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
548 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25)
549 swait()
550 end
551 for i = 1, 15 do
552 if not dancing then break end
553 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
554 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
555 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
556 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3)
557 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25)
558 swait()
559 end
560 swait()
561 end
562 ws = 14
563 attacking = false
564 end)()
565 end
566 end
567 end)
568
569 mouse.KeyDown:connect(function(Press)
570 Press=Press:lower()
571 if Press=='g' then
572 if dancing then
573 dancing = false
574 else
575 dancing = true
576 ws = 0
577 change = .5
578 attacking = true
579 deadmau7 = Instance.new("Sound",Torso)
580 deadmau7.SoundId = "rbxassetid://168166611"
581 deadmau7.Volume = 8
582 deadmau7.Looped = true
583 deadmau7:Play()
584 coroutine.wrap(function()
585 coroutine.wrap(function()
586 while dancing do
587 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25)
588 swait()
589 end
590 end)()
591 while dancing do
592 for i = 1, 28 do
593 if not dancing then break end
594 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
595 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
596 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25)
597 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3)
598 swait()
599 end
600 for i = 1, 28 do
601 if not dancing then break end
602 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
603 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
604 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25)
605 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25)
606 swait()
607 end
608 swait()
609 end
610 ws = 14
611 deadmau7:Remove()
612 attacking = false
613 end)()
614 end
615 end
616 end)
617
618 mouse.KeyDown:connect(function(Press)
619 Press=Press:lower()
620 if Press=='f' then
621 if dancing then
622 dancing = false
623 else
624 dancing = true
625 ws = 6
626 change = .5
627 attacking = true
628 bennyhill = Instance.new("Sound",Torso)
629 bennyhill.SoundId = "rbxassetid://138211362"
630 bennyhill.Volume = 8
631 bennyhill.Looped = true
632 bennyhill:Play()
633 coroutine.wrap(function()
634 while dancing do
635 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25)
636 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25)
637 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine/2)),0,math.rad(0)),.25)
638 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25)
639 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25)
640 swait()
641 end
642 ws = 14
643 bennyhill:Remove()
644 attacking = false
645 end)()
646 end
647 end
648 end)
649
650 mouse.KeyDown:connect(function(Press)
651 Press=Press:lower()
652 if Press=='p' then
653 if dancing then
654 dancing = false
655 else
656 dancing = true
657 ws = 0
658 change = .5
659 attacking = true
660 barrelspin = 0
661 barrelrollsound = Instance.new("Sound",Torso)
662 barrelrollsound.SoundId = "rbxassetid://505320170"
663 barrelrollsound.Volume = 8
664 barrelrollsound.Looped = true
665 barrelrollsound:Play()
666 barrol = Instance.new("Part",Torso)
667 barrol.Size = Vector3.new(1,1,1)
668 barrol.CFrame = Torso.CFrame
669 barrol.CanCollide = false
670 barrolweld = Instance.new("Weld",barrol)
671 barrolweld.Part0 = barrol
672 barrolweld.Part1 = Torso
673 barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
674 mbarrol = Instance.new("SpecialMesh", barrol)
675 mbarrol.MeshType = "FileMesh"
676 mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
677 mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
678 coroutine.wrap(function()
679 while dancing do
680 ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25)
681 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
682 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
683 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
684 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
685 swait()
686 end
687 ws = 14
688 barrol:Remove()
689 attacking = false
690 end)()
691 end
692 end
693 end)
694
695 mouse.KeyDown:connect(function(Press)
696 Press=Press:lower()
697 if Press=='q' then
698 if dancing then
699 dancing = false
700 else
701 dancing = true
702 ws = 0
703 change = .5
704 spinningmove = 0
705 dbwouldlovethis = Instance.new("Sound",Torso)
706 dbwouldlovethis.SoundId = "rbxassetid://1532157598"
707 dbwouldlovethis.Volume = 8
708 dbwouldlovethis.Looped = true
709 dbwouldlovethis:Play()
710 attacking = true
711 coroutine.wrap(function()
712 while dancing do
713 spinningmove = spinningmove + 10
714 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
715 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
716 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2)
717 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3)
718 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3)
719 swait()
720 end
721 ws = 14
722 dbwouldlovethis:Remove()
723 attacking = false
724 end)()
725 end
726 end
727 end)
728
729
730 mouse.KeyDown:connect(function(Press)
731 Press=Press:lower()
732 if Press=='u' then
733 if dancing then
734 dancing = false
735 else
736 dancing = true
737 ws = 6
738 change = .5
739 attacking = true
740 slavdance = Instance.new("Sound",Torso)
741 slavdance.SoundId = "rbxassetid://2341226836"
742 slavdance.Volume = 6
743 slavdance.Looped = true
744 slavdance:Play()
745 coroutine.wrap(function()
746 while dancing do
747 for i = 1, 17 do
748 if not dancing then break end
749 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
750 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
751 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
752 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
753 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
754 swait()
755 end
756 for i = 1, 17 do
757 if not dancing then break end
758 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
759 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
760 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
761 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
762 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
763 swait()
764 end
765 swait()
766 end
767 ws = 14
768 slavdance:Remove()
769 attacking = false
770 end)()
771 end
772 end
773 end)
774
775 mouse.KeyDown:connect(function(Press)
776 Press=Press:lower()
777 if Press=='y' then
778 if dancing then
779 dancing = false
780 else
781 dancing = true
782 ws = 0
783 change = .5
784 walkforward = 0
785 walkrotation = 0
786 attacking = true
787 truelegend = Instance.new("Sound",Torso)
788 truelegend.SoundId = "rbxassetid://487872908"
789 truelegend.TimePosition = 13.98
790 truelegend.Volume = 8
791 truelegend.Looped = true
792 truelegend:Play()
793 coroutine.wrap(function()
794 while dancing do
795 for i = 1, 100 do
796 if not dancing then break end
797 walkforward = walkforward + .1
798 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
799 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
800 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
801 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
802 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
803 swait()
804 end
805 for i = 1, 50 do
806 if not dancing then break end
807 walkrotation = walkrotation + 15
808 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
809 swait()
810 end
811 walkrotation = 0
812 for i = 1, 100 do
813 if not dancing then break end
814 walkforward = walkforward - .1
815 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
816 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
817 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
818 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
819 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
820 swait()
821 end
822 for i = 1, 50 do
823 if not dancing then break end
824 walkrotation = walkrotation + 15
825 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
826 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
827 swait()
828 end
829 walkrotation = 0
830 swait()
831 end
832 ws = 14
833 truelegend:Remove()
834 attacking = false
835 end)()
836 end
837 end
838 end)
839
840 mouse.KeyDown:connect(function(Press)
841 Press=Press:lower()
842 if Press=='t' then
843 if dancing then
844 dancing = false
845 else
846 dancing = true
847 ws = 0
848 change = .5
849 attacking = true
850 plummusic = Instance.new("Sound",Torso)
851 plummusic.Volume = 8
852 plummusic.Looped = true
853 plummusic.SoundId = "rbxassetid://2526093213"
854 plummusic:Play()
855 coroutine.wrap(function()
856 while dancing do
857 for i = 1, 20 do
858 if not dancing then break end
859 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
860 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
861 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2)
862 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
863 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
864 swait()
865 end
866 for i = 1, 20 do
867 if not dancing then break end
868 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
869 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
870 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2)
871 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
872 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
873 swait()
874 end
875 swait()
876 end
877 ws = 14
878 plummusic:Remove()
879 attacking = false
880 end)()
881 end
882 end
883 end)
884
885 mouse.KeyDown:connect(function(Press)
886 Press=Press:lower()
887 if Press=='e' then
888 if dancing then
889 dancing = false
890 else
891 dancing = true
892 ws = 0
893 change = .5
894 attacking = true
895 mrozo = Instance.new("Sound",Torso)
896 mrozo.Volume = 8
897 mrozo.SoundId = "rbxassetid://335701357"
898 mrozo.Looped = true
899 mrozo.TimePosition = 10
900 mrozo:Play()
901 coroutine.wrap(function()
902 while dancing do
903 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
904 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
905 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2)
906 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
907 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
908 swait()
909 end
910 mrozo:Remove()
911 ws = 14
912 attacking = false
913 end)()
914 end
915 end
916 end)
917
918 mouse.KeyDown:connect(function(Press)
919 Press=Press:lower()
920 if Press=='r' then
921 if dancing then
922 dancing = false
923 else
924 ws = 6
925 recordbaby = 0
926 dancing = true
927 change = .5
928 attacking = true
929 spinme = Instance.new("Sound",Torso)
930 spinme.Volume = 8
931 spinme.SoundId = "rbxassetid://145799973"
932 spinme.Looped = true
933 spinme:Play()
934 coroutine.wrap(function()
935 while dancing do
936 recordbaby = recordbaby + 10
937 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
938 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
939 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3)
940 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
941 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
942 swait()
943 end
944 spinme:Remove()
945 ws = 14
946 attacking = false
947 end)()
948 end
949 end
950 end)
951
952 function ray(pos, dir, rang, ignoredesc)
953 return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
954 end
955
956 function ray2(startpos, endpos, distance, ignore)
957 local dir = CFrame.new(startpos,endpos).lookVector
958 return ray(startpos, dir, distance, ignore)
959 end
960
961 checks1 = coroutine.wrap(function() -------Checks
962 while true do
963 hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
964 if Root.Velocity.y > 1 then
965 position = "Jump"
966 elseif Root.Velocity.y < -1 then
967 position = "Falling"
968 elseif Root.Velocity.Magnitude < 2 then
969 position = "Idle"
970 elseif Root.Velocity.Magnitude > 2 then
971 position = "Walking"
972 elseif Root.Velocity.Magnitude > 20 then
973 position = "Running"
974 else
975 end
976 wait()
977 end
978 end)
979 checks1()
980
981 function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
982 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
983 end
984
985 function ray2(StartPos, EndPos, Distance, Ignore)
986 local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
987 return ray(StartPos, DIRECTION, Distance, Ignore)
988 end
989
990 OrgnC0 = Neck.C0
991 local movelimbs = coroutine.wrap(function()
992 while RunSrv.RenderStepped:wait() do
993 TrsoLV = Torso.CFrame.lookVector
994 Dist = nil
995 Diff = nil
996 if not MseGuide then
997 print("Failed to recognize")
998 else
999 local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
1000 Dist = (Head.CFrame.p-Point).magnitude
1001 Diff = Head.CFrame.Y-Point.Y
1002 local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
1003 Dist2 = (LeftArm.CFrame.p-Point).magnitude
1004 Diff2 = LeftArm.CFrame.Y-Point.Y
1005 HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1006 Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
1007 end
1008 end
1009 end)
1010 movelimbs()
1011 immortal = {}
1012 for i,v in pairs(Character:GetDescendants()) do
1013 if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
1014 if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
1015 v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1016 end
1017 table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
1018 elseif v:IsA("JointInstance") then
1019 table.insert(immortal,{v,v.Parent,nil,nil,nil})
1020 end
1021 end
1022 for e = 1, #immortal do
1023 if immortal[e] ~= nil then
1024 local STUFF = immortal[e]
1025 local PART = STUFF[1]
1026 local PARENT = STUFF[2]
1027 local MATERIAL = STUFF[3]
1028 local COLOR = STUFF[4]
1029 local TRANSPARENCY = STUFF[5]
1030 if levitate then
1031 if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
1032 PART.Material = MATERIAL
1033 PART.Color = COLOR
1034 PART.Transparency = TRANSPARENCY
1035 end
1036 PART.AncestryChanged:connect(function()
1037 PART.Parent = PARENT
1038 end)
1039 else
1040 if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
1041 PART.Material = MATERIAL
1042 PART.Color = COLOR
1043 PART.Transparency = TRANSPARENCY
1044 end
1045 PART.AncestryChanged:connect(function()
1046 PART.Parent = PARENT
1047 end)
1048 end
1049 end
1050 end
1051 function immortality()
1052 for e = 1, #immortal do
1053 if immortal[e] ~= nil then
1054 local STUFF = immortal[e]
1055 local PART = STUFF[1]
1056 local PARENT = STUFF[2]
1057 local MATERIAL = STUFF[3]
1058 local COLOR = STUFF[4]
1059 local TRANSPARENCY = STUFF[5]
1060 if PART.ClassName == "Part" and PART == Root then
1061 PART.Material = MATERIAL
1062 PART.Color = COLOR
1063 PART.Transparency = TRANSPARENCY
1064 end
1065 if PART.Parent ~= PARENT then
1066 hum:Remove()
1067 PART.Parent = PARENT
1068 hum = Instance.new("Humanoid",Character)
1069 end
1070 end
1071 end
1072 end
1073 coroutine.wrap(function()
1074 while true do
1075 if hum.Health < .1 then
1076 deadsound = Instance.new("Sound", Torso)
1077 deadsound.Volume = 6
1078 deadsound.SoundId = "rbxassetid://1411352723"
1079 deadsound:Play()
1080 immortality()
1081 end
1082 wait()
1083 end
1084 end)()
1085
1086 local anims = coroutine.wrap(function()
1087 while true do
1088 settime = 0.05
1089 sine = sine + change
1090 if position == "Jump" and attacking == false then
1091 change = 1
1092 spin = false
1093 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1094 LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
1095 RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
1096 LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
1097 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1098 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
1099 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
1100 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
1101 elseif position == "Falling" and attacking == false then
1102 change = 1
1103 spin = false
1104 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1105 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
1106 LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
1107 RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
1108 LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
1109 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
1110 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
1111 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
1112 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
1113 elseif position == "Walking" and attacking == false and running == false then
1114 change = 1.2
1115 walking = true
1116 spin = false
1117 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1118 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3)
1119 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
1120 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
1121 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
1122 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
1123 elseif position == "Idle" and attacking == false and running == false then
1124 change = .5
1125 spin = true
1126 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1127 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
1128 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
1129 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1)
1130 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
1131 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
1132 elseif position == "Running" and attacking == false then
1133 change = 1
1134 for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1135 RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
1136 LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
1137 LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1138 ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
1139 RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
1140 RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
1141 LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
1142 LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
1143 end
1144 swait()
1145 end
1146 end)
1147 anims()
1148end)
1149
1150NeptunianV.Name = "NeptunianV"
1151NeptunianV.Parent = main
1152NeptunianV.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
1153NeptunianV.Position = UDim2.new(0.687361419, 0, 0.0810810775, 0)
1154NeptunianV.Size = UDim2.new(0, 133, 0, 50)
1155NeptunianV.Font = Enum.Font.SourceSansBold
1156NeptunianV.Text = "Neptunian V"
1157NeptunianV.TextColor3 = Color3.fromRGB(255, 255, 255)
1158NeptunianV.TextScaled = true
1159NeptunianV.TextSize = 14.000
1160NeptunianV.TextWrapped = true
1161NeptunianV.MouseButton1Down:connect(function()
1162 loadstring(game:HttpGetAsync("https://pastebin.com/raw/t0Mkc33N"))()
1163end)
1164
1165Sniper.Name = "Sniper"
1166Sniper.Parent = main
1167Sniper.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
1168Sniper.Position = UDim2.new(0.687361419, 0, 0.387387365, 0)
1169Sniper.Size = UDim2.new(0, 133, 0, 50)
1170Sniper.Font = Enum.Font.SourceSansBold
1171Sniper.Text = "Sniper"
1172Sniper.TextColor3 = Color3.fromRGB(255, 255, 255)
1173Sniper.TextScaled = true
1174Sniper.TextSize = 14.000
1175Sniper.TextWrapped = true
1176Sniper.MouseButton1Down:connect(function()
1177 --[[ Options ]]--
1178 _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
1179 _G.GodMode = true --Set to true if you want godmode.
1180 _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
1181 --[[Reanimate]]--
1182 loadstring(game:HttpGet("https://paste.ee/r/uk77k/0"))()
1183 -----------------
1184 repeat wait() until _G.MSG ~= nil
1185 repeat wait() until _G.MSG.Text == ""
1186 -----------------
1187 --//====================================================\\--
1188 --|| CREATED BY x0rs#4411
1189 --\\====================================================//--
1190
1191 --Hat = https://web.roblox.com/catalog/5063578607/Cyberpunk-Sniper
1192
1193 local script = game:GetObjects("rbxassetid://5457832019")[1]
1194
1195 wait(0.2)
1196 local shooting = false
1197 Player = game:GetService("Players").LocalPlayer
1198 PlayerGui = Player.PlayerGui
1199 Cam = workspace.CurrentCamera
1200 Backpack = Player.Backpack
1201 Character = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
1202 Humanoid = Character.Humanoid
1203 Mouse = Player:GetMouse()
1204 RootPart = Character.HumanoidRootPart
1205 Torso = Character.Torso
1206 Head = Character.Head
1207 RightArm = Character["Right Arm"]
1208 LeftArm = Character["Left Arm"]
1209 RightLeg = Character["Right Leg"]
1210 LeftLeg = Character["Left Leg"]
1211 RootJoint = RootPart.RootJoint
1212 Neck = Torso.Neck
1213 RightShoulder = Torso["Right Shoulder"]
1214 LeftShoulder = Torso["Left Shoulder"]
1215 RightHip = Torso["Right Hip"]
1216 LeftHip = Torso["Left Hip"]
1217 Equipped = false
1218
1219
1220 local mouseup = false
1221 local plrs = game:GetService("Players")
1222 local plr = plrs.LocalPlayer
1223 local char = plr.Character
1224 local hrp = char.HumanoidRootPart
1225 local hrp2 = hrp:Clone()
1226
1227 hrp2.Parent = char
1228 hrp.Name = "hi"
1229 hrp.Transparency = 0
1230 hrp.Anchored = false
1231 if hrp:FindFirstChildOfClass("AlignPosition") then
1232 hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
1233 end
1234 if hrp:FindFirstChildOfClass("AlignOrientation") then
1235 hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
1236 end
1237 local bp = Instance.new("BodyPosition", hrp)
1238 bp.Position = hrp.Position
1239 bp.D = 9999999
1240 bp.P = 999999999999999
1241 bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
1242 flinger = Instance.new("BodyAngularVelocity",hrp)
1243 flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
1244 flinger.P = 1000000000000000000000000000
1245 flinger.AngularVelocity = Vector3.new(10000,10000,10000)
1246
1247 spawn(function()
1248 while game:GetService("RunService").Heartbeat:Wait() do
1249 if shooting == false then
1250 bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].HumanoidRootPart.Position
1251 end
1252 end
1253 end)
1254
1255 plr:GetMouse().Button1Down:Connect(function()
1256 repeat wait() until shooting == true
1257 repeat
1258 game:GetService("RunService").Heartbeat:Wait()
1259 if plr:GetMouse().Target ~= nil then
1260 bp.Position = game:GetService("Players").LocalPlayer:GetMouse().Hit.p
1261 end
1262 until shooting == false
1263 end)
1264
1265 coroutine.wrap(function()
1266 while true do
1267 wait()
1268 if not Character or not Character:FindFirstChild("Humanoid") or Character:FindFirstChild("Humanoid").Health <= 0 then
1269 HumanoidIsDead = true
1270 break
1271 end
1272 end
1273 end)()
1274
1275 IT = Instance.new
1276 CF = CFrame.new
1277 VT = Vector3.new
1278 RAD = math.rad
1279 C3 = Color3.new
1280 UD2 = UDim2.new
1281 BRICKC = BrickColor.new
1282 ANGLES = CFrame.Angles
1283 EULER = CFrame.fromEulerAnglesXYZ
1284 COS = math.cos
1285 ACOS = math.acos
1286 SIN = math.sin
1287 ASIN = math.asin
1288 ABS = math.abs
1289 MRANDOM = math.random
1290 FLOOR = math.floor
1291 --//=================================\\
1292 --|| USEFUL VALUES
1293 --\\=================================//
1294
1295 Animation_Speed = 3
1296 Frame_Speed = 0.016666666666666666
1297 local FORCERESET = false
1298 Frame_Speed = 1 / 80 -- (1 / 60) OR (1 / 80)
1299 local Speed = 25
1300 local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1301 local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1302 local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
1303 local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
1304 local DAMAGEMULTIPLIER = 1
1305 local ANIM = "Idle"
1306 local ATTACK = false
1307 local HOLD = false
1308 local Rooted = false
1309 local SINE = 0
1310 local SIZE = 1
1311 local UserInputService = game:GetService("UserInputService")
1312 local KEYHOLD = false
1313 local CHANGE = 2 / Animation_Speed
1314 local WALKINGANIM = false
1315 local VALUE1 = false
1316 local VALUE2 = false
1317 local ROBLOXIDLEANIMATION = IT("Animation")
1318 ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1319 ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1320 local ANIMATOR = Humanoid.Animator
1321 local ANIMATE = Character:FindFirstChild("Animate")
1322 local UNANCHOR = true
1323
1324 function Swait(NUMBER)
1325 if NUMBER == 0 or NUMBER == nil then
1326 game:GetService("RunService").RenderStepped:wait()
1327 else
1328 for i = 1, NUMBER do
1329 game:GetService("RunService").RenderStepped:wait()
1330 end
1331 end
1332 end
1333
1334 function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1335 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1336 end
1337
1338 function QuaternionFromCFrame(cf)
1339 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1340 local trace = m00 + m11 + m22
1341 if trace > 0 then
1342 local s = math.sqrt(1 + trace)
1343 local recip = 0.5 / s
1344 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1345 else
1346 local i = 0
1347 if m11 > m00 then
1348 i = 1
1349 end
1350 if m22 > (i == 0 and m00 or m11) then
1351 i = 2
1352 end
1353 if i == 0 then
1354 local s = math.sqrt(m00 - m11 - m22 + 1)
1355 local recip = 0.5 / s
1356 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1357 elseif i == 1 then
1358 local s = math.sqrt(m11 - m22 - m00 + 1)
1359 local recip = 0.5 / s
1360 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1361 elseif i == 2 then
1362 local s = math.sqrt(m22 - m00 - m11 + 1)
1363 local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1364 end
1365 end
1366 end
1367
1368 function QuaternionToCFrame(px, py, pz, x, y, z, w)
1369 local xs, ys, zs = x + x, y + y, z + z
1370 local wx, wy, wz = w * xs, w * ys, w * zs
1371 local xx = x * xs
1372 local xy = x * ys
1373 local xz = x * zs
1374 local yy = y * ys
1375 local yz = y * zs
1376 local zz = z * zs
1377 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))
1378 end
1379
1380 function QuaternionSlerp(a, b, t)
1381 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1382 local startInterp, finishInterp;
1383 if cosTheta >= 0.0001 then
1384 if (1 - cosTheta) > 0.0001 then
1385 local theta = ACOS(cosTheta)
1386 local invSinTheta = 1 / SIN(theta)
1387 startInterp = SIN((1 - t) * theta) * invSinTheta
1388 finishInterp = SIN(t * theta) * invSinTheta
1389 else
1390 startInterp = 1 - t
1391 finishInterp = t
1392 end
1393 else
1394 if (1 + cosTheta) > 0.0001 then
1395 local theta = ACOS(-cosTheta)
1396 local invSinTheta = 1 / SIN(theta)
1397 startInterp = SIN((t - 1) * theta) * invSinTheta
1398 finishInterp = SIN(t * theta) * invSinTheta
1399 else
1400 startInterp = t - 1
1401 finishInterp = t
1402 end
1403 end
1404 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
1405 end
1406
1407 function Clerp(a, b, t)
1408 local qa = {QuaternionFromCFrame(a)}
1409 local qb = {QuaternionFromCFrame(b)}
1410 local ax, ay, az = a.x, a.y, a.z
1411 local bx, by, bz = b.x, b.y, b.z
1412 local _t = 1 - t
1413 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1414 end
1415
1416 Character.Humanoid.WalkSpeed = 19
1417
1418 kan = Instance.new("Sound", Character)
1419 kan.Volume = 10
1420 kan.TimePosition = 0
1421 kan.PlaybackSpeed = 1
1422 kan.Pitch = 1
1423 kan.SoundId = "rbxassetid://415898123"
1424 kan.Name = "coolmusicyes"
1425 kan.Looped = true
1426 kan:Play()
1427
1428 function theme(ID, timepos, pitch, vol)
1429 local kanz = kan
1430 kanz.PlaybackSpeed = pitch
1431 kanz.Pitch = pitch
1432 kanz.SoundId = ID
1433 kanz.Name = "wrecked"
1434 kanz.Looped = true
1435 end
1436
1437 --//=========================\\
1438 --|| Cool Functions
1439 --\\=========================//
1440
1441 function turnto(position)
1442 RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
1443 end
1444
1445 function CreateSound(ID, PARENT, VOLUME, PITCH)
1446 local NEWSOUND
1447 coroutine.resume(coroutine.create(function()
1448 NEWSOUND = SOUND:Clone()
1449 NEWSOUND.Parent = PARENT
1450 NEWSOUND.Volume = VOLUME
1451 NEWSOUND.Pitch = PITCH
1452 NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
1453 NEWSOUND:play()
1454 repeat
1455 Swait()
1456 until NEWSOUND.Playing == false
1457 NEWSOUND:remove()
1458 end))
1459 return NEWSOUND
1460 end
1461
1462 function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
1463 local wave = CreatePart(3, Effects, "Neon", 0, 0.5, COLOR, "Effect", VT(0,0,0))
1464 local mesh = Instance.NEWSOUND("SpecialMesh",wave)
1465 mesh.MeshType = "FileMesh"
1466 mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
1467 mesh.Scale = SIZE
1468 wave.CFrame = CFRAME
1469 coroutine.resume(coroutine.create(function(PART)
1470 for i = 1, WAIT do
1471 Swait()
1472 mesh.Scale = mesh.Scale + GROW
1473 wave.Color = C3(0,0,0)
1474 if DOESROT == true then
1475 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
1476 end
1477 wave.Transparency = wave.Transparency + (0.5/WAIT)
1478 if wave.Transparency > 0.99 then
1479 wave:remove()
1480 end
1481 end
1482 end))
1483 end
1484
1485 function ShootoBulleto()
1486 ATTACK = true
1487 Rooted = false
1488 for i = 0, 0.8, 0.1 / Animation_Speed do
1489 Swait()
1490 turnto(Mouse.Hit.p)
1491 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1492 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1493 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1494 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1495 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1496 end
1497 repeat
1498 for i = 0, 0.6, 0.1 / Animation_Speed do
1499 Swait()
1500 turnto(Mouse.Hit.p)
1501 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1502 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1503 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1504 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1505 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1506 end
1507 kan = Instance.new("Sound", Character)
1508 kan.Volume = 10
1509 kan.TimePosition = 0
1510 kan.PlaybackSpeed = 1
1511 kan.Pitch = 1
1512 kan.SoundId = "rbxassetid://130767489"
1513 kan.Name = "bang"
1514 kan:Play()
1515 for i = 0, 0.3, 0.1 / Animation_Speed do
1516 Swait()
1517 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1518 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1519 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1520 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1521 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1522 end
1523 until KEYHOLD == false
1524 ATTACK = false
1525 Rooted = false
1526 end
1527
1528 function weld(parent,part0,part1,c0,c1)
1529 local weld=Instance.new("Weld")
1530 weld.Parent=parent
1531 weld.Part0=part0
1532 weld.Part1=part1
1533 weld.C0=c0
1534 weld.C1=c1
1535 return weld
1536 end
1537
1538 if Character.Sniper.Handle["AccessoryWeld"] then
1539 Character.Sniper.Handle["AccessoryWeld"]:Remove()
1540 end
1541
1542 local mlok = Character.Sniper
1543
1544 handle=mlok.Handle
1545 handleweld=weld(handle,Character["Torso"],handle,CFrame.new(0, 0, 0),CFrame.new(-1, 0, -.8)* CFrame.Angles(math.rad(0),math.rad(0),math.rad(-46)))
1546 handleweld.Name = "muc"
1547
1548 function Equip()
1549 Equipped = true
1550
1551 if mlok.Handle["muc"] then
1552 mlok.Handle["muc"]:Remove()
1553 end
1554
1555 local handle=mlok.Handle
1556 handleweld=weld(mlok.Handle,Character["Right Arm"],handle,CFrame.new(0, 0, 0),CFrame.new(-2.2, -.81, 0)* CFrame.Angles(math.rad(90),math.rad(4),math.rad(95)))
1557 handleweld.Name = "woah"
1558 end
1559
1560
1561 function DeEquip()
1562 Equipped = false
1563
1564 if mlok.Handle["woah"] then
1565 mlok.Handle["woah"]:Remove()
1566 end
1567
1568 handle2=mlok.Handle
1569 handleweld2=weld(handle2,Character["Torso"],handle2,CFrame.new(0, 0, 0),CFrame.new(-1, 0, -.8)* CFrame.Angles(math.rad(0),math.rad(0),math.rad(-46)))
1570 handleweld2.Name = "muc"
1571 end
1572
1573 --//=================================\\
1574 --|| ASSIGN THINGS TO KEYS
1575 --\\=================================//
1576
1577 Mouse.Button1Down:connect(function()
1578 if Equipped == true and ATTACK == false then
1579 shooting = true
1580 ShootoBulleto()
1581 shooting = false
1582 end
1583 end)
1584
1585 Mouse.KeyDown:connect(function(k)
1586 if k == "f" and ATTACK == false and Equipped == false then
1587 Equip()
1588 shooting = false
1589 end
1590 end)
1591 Mouse.KeyDown:connect(function(k)
1592 if k == "g" and ATTACK == false and Equipped == true then
1593 DeEquip()
1594 shooting = false
1595 end
1596 end)
1597 --//=================================\\
1598 --|| WRAP THE WHOLE SCRIPT UP
1599 --\\=================================//
1600
1601 Humanoid.Changed:connect(function(Jump)
1602 if Jump == "Jump" and (Disable_Jump == true) then
1603 Humanoid.Jump = false
1604 end
1605 end)
1606
1607 local CONNECT = nil
1608
1609 while true do
1610 Swait()
1611 if Character:FindFirstChildOfClass("Humanoid") == nil then
1612 Humanoid = IT("Humanoid",Character)
1613 end
1614 for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1615 v:Stop();
1616 end
1617
1618 local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1619 local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1620 local NameClan = 0
1621 local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 5, Character)
1622 local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1623 SINE = SINE + CHANGE
1624 if ANIM == "Walk" and Equipped == false and TORSOVELOCITY > 1 then
1625 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.2 * COS(SINE / (WALKSPEEDVALUE))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 100, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1626 Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 25), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1627 RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1 - 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.5 * COS(SINE / WALKSPEEDVALUE*1), 0 * COS(SINE / WALKSPEEDVALUE) +0+ 0 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 100, RAD(0), RAD(110 * COS(SINE / WALKSPEEDVALUE))), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1628 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1 + 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.5 * COS(SINE / WALKSPEEDVALUE*1), 0 * COS(SINE / WALKSPEEDVALUE) +0+ 0 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 100, RAD(0), RAD(110 * COS(SINE / WALKSPEEDVALUE))), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1629 elseif (ANIM ~= "Walk") and Equipped == false or (TORSOVELOCITY < 1) then
1630 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1631 Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1632 RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1633 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1634 elseif ANIM == "Walk" and Equipped == true and TORSOVELOCITY > 1 then
1635 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.2 * COS(SINE / (WALKSPEEDVALUE))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 100, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1636 Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 25), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1637 RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1 - 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.5 * COS(SINE / WALKSPEEDVALUE*1), 0 * COS(SINE / WALKSPEEDVALUE) +0+ 0 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 100, RAD(0), RAD(110 * COS(SINE / WALKSPEEDVALUE))), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1638 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1 + 0.5 * SIN(SINE / WALKSPEEDVALUE) - 0.5 * COS(SINE / WALKSPEEDVALUE*1), 0 * COS(SINE / WALKSPEEDVALUE) +0+ 0 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 100, RAD(0), RAD(110 * COS(SINE / WALKSPEEDVALUE))), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1639 elseif Equipped == true and (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1640 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1641 Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1642 RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1643 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1644 end
1645 if TORSOVERTICALVELOCITY > 1 and ATTACK == false and Equipped == false and HITFLOOR == nil then
1646 ANIM = "Jump"
1647 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1648 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1649 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1650 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1651 elseif TORSOVERTICALVELOCITY > 1 and ATTACK == false and Equipped == true and HITFLOOR == nil then
1652 ANIM = "Jump"
1653 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1654 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1655 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1656 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1657 elseif TORSOVERTICALVELOCITY < -1 and ATTACK == false and Equipped == false and HITFLOOR == nil then
1658 ANIM = "Fall"
1659 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1660 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1661 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1662 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1663 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1664 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1665 elseif TORSOVERTICALVELOCITY < -1 and ATTACK == false and Equipped == true and HITFLOOR == nil then
1666 ANIM = "Fall"
1667 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1668 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1669 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1670 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1671 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1672 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1673 elseif TORSOVELOCITY < 1 and ATTACK == false and Equipped == false and HITFLOOR ~= nil then
1674 ANIM = "Idle"
1675 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 00 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1676 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0 + 25 * COS(SINE / 20))), 0.15 / Animation_Speed)
1677 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6+ 0.1 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-12), RAD(10 + 10 * COS(SINE / 10)))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1678 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6 + 0.1 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(-12), RAD(-10 + -10 * COS(SINE / 10))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1679 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1- 0.2 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1680 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.2 * COS(SINE / 12) , 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1681 elseif TORSOVELOCITY < 1 and ATTACK == false and Equipped == true and HITFLOOR ~= nil then
1682 ANIM = "Idle"
1683 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 , 0 , 00 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1684 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(30), RAD(0), RAD(0 + 25 * COS(SINE / 20))), 0.15 / Animation_Speed)
1685 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4+ 0.2 * SIN(SINE / 12), 0) * ANGLES(RAD(180), RAD(-15), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1686 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4 + 0.2 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1687 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1- 0.2 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1688 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1- 0.2 * COS(SINE / 12) , 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1689 elseif TORSOVELOCITY > 1 and Equipped == false and HITFLOOR ~= nil then
1690 ANIM = "Walk"
1691 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1692 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1693 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.03) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5))* RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1694 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1695 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1696 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1697 elseif TORSOVELOCITY > 1 and Equipped == true and HITFLOOR ~= nil then
1698 ANIM = "Walk"
1699 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1700 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1701 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.03) * ANGLES(RAD(180), RAD(-15), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1702 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1703 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1704 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1705 end
1706 end
1707 unanchor()
1708end)
1709
1710Carnage.Name = "Carnage"
1711Carnage.Parent = main
1712Carnage.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
1713Carnage.Position = UDim2.new(0.363636374, 0, 0.387387365, 0)
1714Carnage.Size = UDim2.new(0, 133, 0, 50)
1715Carnage.Font = Enum.Font.SourceSansBold
1716Carnage.Text = "Carnage"
1717Carnage.TextColor3 = Color3.fromRGB(255, 255, 255)
1718Carnage.TextScaled = true
1719Carnage.TextSize = 14.000
1720Carnage.TextWrapped = true
1721Carnage.MouseButton1Down:connect(function()
1722 --Keybinds
1723 _G.UnReanimateKey = "q" --The keybind for unreanimating.
1724 _G.ReanimateKey = "e" --The keybind for reanimating.
1725 _G.R6ToggleKey = "r" --The keybind for toggling R15 to R6.
1726 _G.GodmodeToggleKey = "t" --The keybind for toggling godmode.
1727 --Options
1728 _G.CharacterBug = false --Set to true if your uppertorso floats when you use godmode with R15 To R6.
1729 _G.GodMode = true --Set to true if you want godmode.
1730 _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
1731 _G.AutoReanimate = true --Set to true if you want to auto reanimate and disable keybinds after executing.
1732
1733 loadstring(game:HttpGet("https://paste.ee/r/pt8Dx/0"))()
1734
1735 local script = game:GetObjects("rbxassetid://5904293434")[1]
1736
1737 workspace.FallenPartsDestroyHeight = -1000
1738
1739 print("Converted to FE by Smorkles aka Rawget#0001 \n xd big gamer")
1740
1741 local invpart = Instance.new("Part", game:GetService("Players").LocalPlayer.Character)
1742 invpart.Anchored = true
1743 invpart.Position = Vector3.new(0, -50, 0)
1744 invpart.CanCollide = false
1745 local InvAtt = Instance.new("Attachment", invpart)
1746
1747 local hat = game:GetService("Players").LocalPlayer.Character["Sniper"]
1748 hat.Handle.CustomAtt0:Destroy()
1749 hat.Handle.CustomAtt1:Destroy()
1750
1751 local function weld(part0, part1)
1752 local attachment0 = Instance.new("Attachment", part0)
1753 if part0 == hat.Handle then
1754 attachment0.Rotation = Vector3.new(0, 0, 0) --Edit if u want custom rotationing
1755 attachment0.Position = Vector3.new(0, 0, 0) --Edit if u want custom positioning
1756 end
1757 local attachment1 = Instance.new("Attachment", part1)
1758 local weldpos = Instance.new("AlignPosition", part0)
1759 weldpos.Attachment0 = attachment0
1760 weldpos.Attachment1 = attachment1
1761 weldpos.RigidityEnabled = false
1762 weldpos.ReactionForceEnabled = false
1763 weldpos.ApplyAtCenterOfMass = false
1764 weldpos.MaxForce = 10000
1765 weldpos.MaxVelocity = 10000
1766 weldpos.Responsiveness = 10000
1767 local weldrot = Instance.new("AlignOrientation", part0)
1768 weldrot.Attachment0 = attachment0
1769 weldrot.Attachment1 = attachment1
1770 weldrot.ReactionTorqueEnabled = true
1771 weldrot.PrimaryAxisOnly = false
1772 weldrot.MaxTorque = 10000
1773 weldrot.MaxAngularVelocity = 10000
1774 weldrot.Responsiveness = 10000
1775 end
1776
1777 local function invweld(part0)
1778 local attachment0 = Instance.new("Attachment", part0)
1779 local attachment1 = InvAtt
1780 local weldpos = Instance.new("AlignPosition", part0)
1781 weldpos.Enabled = false
1782 weldpos.Name = "InvPos"
1783 weldpos.Attachment0 = attachment0
1784 weldpos.Attachment1 = attachment1
1785 weldpos.RigidityEnabled = false
1786 weldpos.ReactionForceEnabled = false
1787 weldpos.ApplyAtCenterOfMass = false
1788 weldpos.MaxForce = 10000
1789 weldpos.MaxVelocity = 10000
1790 weldpos.Responsiveness = 10000
1791 local weldrot = Instance.new("AlignOrientation", part0)
1792 weldrot.Enabled = false
1793 weldrot.Name = "InvRot"
1794 weldrot.Attachment0 = attachment0
1795 weldrot.Attachment1 = attachment1
1796 weldrot.ReactionTorqueEnabled = true
1797 weldrot.PrimaryAxisOnly = false
1798 weldrot.MaxTorque = 10000
1799 weldrot.MaxAngularVelocity = 10000
1800 weldrot.Responsiveness = 10000
1801 end
1802
1803 weld(hat.Handle, script.Gun.Handle)
1804 invweld(hat.Handle)
1805
1806 local w = workspace[game.Players.LocalPlayer.Name].Sniper.Handle.Attachment
1807
1808 w.Position = Vector3.new(-1, -0.5, 0)
1809 w.Rotation = Vector3.new(100, 270, 100)
1810
1811
1812 local AHB = Instance.new("BindableEvent")
1813
1814 local FPS = 30
1815
1816 local TimeFrame = 0
1817
1818 local LastFrame = tick()
1819 local Frame = 1/FPS
1820
1821 game:service'RunService'.Heartbeat:connect(function(s,p)
1822 TimeFrame = TimeFrame + s
1823 if(TimeFrame >= Frame)then
1824 for i = 1,math.floor(TimeFrame/Frame) do
1825 AHB:Fire()
1826 end
1827 LastFrame=tick()
1828 TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
1829 end
1830 end)
1831
1832
1833 function swait(dur)
1834 if(dur == 0 or typeof(dur) ~= 'number')then
1835 AHB.Event:wait()
1836 else
1837 for i = 1, dur*FPS do
1838 AHB.Event:wait()
1839 end
1840 end
1841 end
1842
1843 -- converter by Drahazar
1844
1845 --created by helkern
1846 --some things might be taken from other scripts
1847
1848 if game:GetService("RunService"):IsStudio() then
1849 wait(1)
1850 else
1851 wait(1/60)
1852 end
1853
1854 Player = game:GetService("Players").LocalPlayer
1855 PlayerGui = Player.PlayerGui
1856 Cam = workspace.CurrentCamera
1857 Backpack = Player.Backpack
1858 Character = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
1859 Humanoid = Character.Humanoid
1860 Mouse = Player:GetMouse()
1861 RootPart = Character["HumanoidRootPart"]
1862 Torso = Character["Torso"]
1863 Head = Character["Head"]
1864 RightArm = Character["Right Arm"]
1865 LeftArm = Character["Left Arm"]
1866 RightLeg = Character["Right Leg"]
1867 LeftLeg = Character["Left Leg"]
1868 RootJoint = RootPart["RootJoint"]
1869 Neck = Torso["Neck"]
1870 RightShoulder = Torso["Right Shoulder"]
1871 LeftShoulder = Torso["Left Shoulder"]
1872 RightHip = Torso["Right Hip"]
1873 LeftHip = Torso["Left Hip"]
1874 local sick = Instance.new("Sound",Torso)
1875
1876 IT = Instance.new
1877 CF = CFrame.new
1878 VT = Vector3.new
1879 RAD = math.rad
1880 C3 = Color3.new
1881 UD2 = UDim2.new
1882 BRICKC = BrickColor.new
1883 ANGLES = CFrame.Angles
1884 EULER = CFrame.fromEulerAnglesXYZ
1885 COS = math.cos
1886 ACOS = math.acos
1887 SIN = math.sin
1888 ASIN = math.asin
1889 ABS = math.abs
1890 MRANDOM = math.random
1891 FLOOR = math.floor
1892
1893
1894 Animation_Speed = 3
1895 Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
1896 local Speed = 45
1897 local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1898 local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1899 local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
1900 local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
1901 local DAMAGEMULTIPLIER = 1
1902 local ANIM = "Idle"
1903 local ATTACK = false
1904 local EQUIPPED = false
1905 local HOLD = false
1906 local COMBO = 1
1907 local Rooted = false
1908 local SINE = 0
1909 local KEYHOLD = false
1910 local CHANGE = 2 / Animation_Speed
1911 local WALKINGANIM = false
1912 local VALUE1 = false
1913 local VALUE2 = false
1914 local ROBLOXIDLEANIMATION = IT("Animation")
1915 ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1916 ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1917 --ROBLOXIDLEANIMATION.Parent = Humanoid
1918 local WEAPONGUI = IT("ScreenGui", PlayerGui)
1919 WEAPONGUI.Name = "Weapon GUI"
1920 local Effects = IT("Folder", Character.Parent)
1921 Effects.Name = "Effects"
1922 local ANIMATOR = Humanoid.Animator
1923 local ANIMATE = Character.Animate
1924 ANIMATOR:Destroy()
1925 local UNANCHOR = true
1926 local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
1927
1928 ArtificialHB = Instance.new("BindableEvent")
1929 ArtificialHB.Name = "ArtificialHB"
1930
1931 frame = Frame_Speed
1932 tf = 0
1933 allowframeloss = false
1934 tossremainder = false
1935 lastframe = tick()
1936 ArtificialHB:Fire()
1937
1938 game:GetService("RunService").Heartbeat:connect(function(s, p)
1939 tf = tf + s
1940 if tf >= frame then
1941 if allowframeloss then
1942 ArtificialHB:Fire()
1943 lastframe = tick()
1944 else
1945 for i = 1, math.floor(tf / frame) do
1946 ArtificialHB:Fire()
1947 end
1948 lastframe = tick()
1949 end
1950 if tossremainder then
1951 tf = 0
1952 else
1953 tf = tf - frame * math.floor(tf / frame)
1954 end
1955 end
1956 end)
1957
1958
1959 function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1960 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1961 end
1962
1963 function PositiveAngle(NUMBER)
1964 if NUMBER >= 0 then
1965 NUMBER = 0
1966 end
1967 return NUMBER
1968 end
1969
1970 function NegativeAngle(NUMBER)
1971 if NUMBER <= 0 then
1972 NUMBER = 0
1973 end
1974 return NUMBER
1975 end
1976
1977 function Swait(NUMBER)
1978 if NUMBER == 0 or NUMBER == nil then
1979 ArtificialHB.Event:wait()
1980 else
1981 for i = 1, NUMBER do
1982 ArtificialHB.Event:wait()
1983 end
1984 end
1985 end
1986
1987 function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1988 local NEWMESH = IT(MESH)
1989 if MESH == "SpecialMesh" then
1990 NEWMESH.MeshType = MESHTYPE
1991 if MESHID ~= "nil" and MESHID ~= "" then
1992 NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1993 end
1994 if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1995 NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1996 end
1997 end
1998 NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1999 NEWMESH.Scale = SCALE
2000 NEWMESH.Parent = PARENT
2001 return NEWMESH
2002 end
2003
2004 function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
2005 local NEWPART = IT("Part")
2006 NEWPART.formFactor = FORMFACTOR
2007 NEWPART.Reflectance = REFLECTANCE
2008 NEWPART.Transparency = TRANSPARENCY
2009 NEWPART.CanCollide = false
2010 NEWPART.Locked = true
2011 NEWPART.Anchored = true
2012 if ANCHOR == false then
2013 NEWPART.Anchored = false
2014 end
2015 NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
2016 NEWPART.Name = NAME
2017 NEWPART.Size = SIZE
2018 NEWPART.Position = Torso.Position
2019 NEWPART.Material = MATERIAL
2020 NEWPART:BreakJoints()
2021 NEWPART.Parent = PARENT
2022 return NEWPART
2023 end
2024
2025 local function weldBetween(a, b)
2026 local weldd = Instance.new("ManualWeld")
2027 weldd.Part0 = a
2028 weldd.Part1 = b
2029 weldd.C0 = CFrame.new()
2030 weldd.C1 = b.CFrame:inverse() * a.CFrame
2031 weldd.Parent = a
2032 return weldd
2033 end
2034
2035
2036 function Clerp(a, b, t)
2037 return a:lerp(b,t)
2038 end
2039
2040
2041 function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
2042 local frame = IT("Frame")
2043 frame.BackgroundTransparency = TRANSPARENCY
2044 frame.BorderSizePixel = BORDERSIZEPIXEL
2045 frame.Position = POSITION
2046 frame.Size = SIZE
2047 frame.BackgroundColor3 = COLOR
2048 frame.BorderColor3 = BORDERCOLOR
2049 frame.Name = NAME
2050 frame.Parent = PARENT
2051 return frame
2052 end
2053
2054 function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
2055 local label = IT("TextLabel")
2056 label.BackgroundTransparency = 1
2057 label.Size = UD2(1, 0, 1, 0)
2058 label.Position = UD2(0, 0, 0, 0)
2059 label.TextColor3 = TEXTCOLOR
2060 label.TextStrokeTransparency = STROKETRANSPARENCY
2061 label.TextTransparency = TRANSPARENCY
2062 label.FontSize = TEXTFONTSIZE
2063 label.Font = TEXTFONT
2064 label.BorderSizePixel = BORDERSIZEPIXEL
2065 label.TextScaled = false
2066 label.Text = TEXT
2067 label.Name = NAME
2068 label.Parent = PARENT
2069 return label
2070 end
2071
2072 function NoOutlines(PART)
2073 PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
2074 end
2075
2076 function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
2077 local NEWWELD = IT(TYPE)
2078 NEWWELD.Part0 = PART0
2079 NEWWELD.Part1 = PART1
2080 NEWWELD.C0 = C0
2081 NEWWELD.C1 = C1
2082 NEWWELD.Parent = PARENT
2083 return NEWWELD
2084 end
2085
2086 local S = IT("Sound")
2087 function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
2088 local NEWSOUND = nil
2089 coroutine.resume(coroutine.create(function()
2090 NEWSOUND = S:Clone()
2091 NEWSOUND.EmitterSize = 5*VOLUME
2092 NEWSOUND.Parent = PARENT
2093 NEWSOUND.Volume = VOLUME
2094 NEWSOUND.Pitch = PITCH
2095 NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
2096 NEWSOUND:play()
2097 if DOESLOOP == true then
2098 NEWSOUND.Looped = true
2099 else
2100 repeat wait(1) until NEWSOUND.Playing == false
2101 NEWSOUND:remove()
2102 end
2103 end))
2104 return NEWSOUND
2105 end
2106
2107 function CFrameFromTopBack(at, top, back)
2108 local right = top:Cross(back)
2109 return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
2110 end
2111
2112 --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2113 function WACKYEFFECT(Table)
2114 local TYPE = (Table.EffectType or "Sphere")
2115 local SIZE = (Table.Size or VT(1,1,1))
2116 local ENDSIZE = (Table.Size2 or VT(0,0,0))
2117 local TRANSPARENCY = (Table.Transparency or 0)
2118 local ENDTRANSPARENCY = (Table.Transparency2 or 1)
2119 local CFRAME = (Table.CFrame or Torso.CFrame)
2120 local MOVEDIRECTION = (Table.MoveToPos or nil)
2121 local ROTATION1 = (Table.RotationX or 0)
2122 local ROTATION2 = (Table.RotationY or 0)
2123 local ROTATION3 = (Table.RotationZ or 0)
2124 local MATERIAL = (Table.Material or "Neon")
2125 local COLOR = (Table.Color or C3(1,1,1))
2126 local TIME = (Table.Time or 45)
2127 local SOUNDID = (Table.SoundID or nil)
2128 local SOUNDPITCH = (Table.SoundPitch or nil)
2129 local SOUNDVOLUME = (Table.SoundVolume or nil)
2130 coroutine.resume(coroutine.create(function()
2131 local PLAYSSOUND = false
2132 local SOUND = nil
2133 local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
2134 if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
2135 PLAYSSOUND = true
2136 SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
2137 end
2138 EFFECT.Color = COLOR
2139 local MSH = nil
2140 if TYPE == "Sphere" then
2141 MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
2142 elseif TYPE == "Block" then
2143 MSH = IT("BlockMesh",EFFECT)
2144 MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
2145 elseif TYPE == "Wave" then
2146 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
2147 elseif TYPE == "Ring" then
2148 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
2149 elseif TYPE == "Slash" then
2150 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2151 elseif TYPE == "Round Slash" then
2152 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2153 elseif TYPE == "Swirl" then
2154 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
2155 elseif TYPE == "Skull" then
2156 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
2157 elseif TYPE == "Crystal" then
2158 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
2159 end
2160 if MSH ~= nil then
2161 local MOVESPEED = nil
2162 if MOVEDIRECTION ~= nil then
2163 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
2164 end
2165 local GROWTH = SIZE - ENDSIZE
2166 local TRANS = TRANSPARENCY - ENDTRANSPARENCY
2167 if TYPE == "Block" then
2168 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2169 else
2170 EFFECT.CFrame = CFRAME
2171 end
2172 for LOOP = 1, TIME+1 do
2173 Swait()
2174 MSH.Scale = MSH.Scale - GROWTH/TIME
2175 if TYPE == "Wave" then
2176 MSH.Offset = VT(0,0,-MSH.Scale.X/8)
2177 end
2178 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2179 if TYPE == "Block" then
2180 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2181 else
2182 EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2183 end
2184 if MOVEDIRECTION ~= nil then
2185 local ORI = EFFECT.Orientation
2186 EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
2187 EFFECT.Orientation = ORI
2188 end
2189 end
2190 if PLAYSSOUND == false then
2191 EFFECT:remove()
2192 else
2193 repeat Swait() until SOUND.Playing == false
2194 EFFECT:remove()
2195 end
2196 else
2197 if PLAYSSOUND == false then
2198 EFFECT:remove()
2199 else
2200 repeat Swait() until SOUND.Playing == false
2201 EFFECT:remove()
2202 end
2203 end
2204 end))
2205 end
2206
2207 function WACKYEFFECT2(Table)
2208 local TYPE = (Table.EffectType or "Sphere")
2209 local SIZE = (Table.Size or VT(1,1,1))
2210 local ENDSIZE = (Table.Size2 or VT(0,0,0))
2211 local TRANSPARENCY = (Table.Transparency or 0)
2212 local ENDTRANSPARENCY = (Table.Transparency2 or 1)
2213 local CFRAME = (Table.CFrame or Torso.CFrame)
2214 local MOVEDIRECTION = (Table.MoveToPos or nil)
2215 local ROTATION1 = (Table.RotationX or 0)
2216 local ROTATION2 = (Table.RotationY or 0)
2217 local ROTATION3 = (Table.RotationZ or 0)
2218 local MATERIAL = (Table.Material or "Neon")
2219 local COLOR = (Table.Color or C3(1,1,1))
2220 local TIME = (Table.Time or 45)
2221 local SOUNDID = (Table.SoundID or nil)
2222 local SOUNDPITCH = (Table.SoundPitch or nil)
2223 local SOUNDVOLUME = (Table.SoundVolume or nil)
2224 local ISCHAOS = (Table.Chaos or false)
2225 coroutine.resume(coroutine.create(function()
2226 local PLAYSSOUND = false
2227 local SOUND = nil
2228 local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC"a", "Effect", VT(1,1,1), true)
2229 EFFECT.Color = COLOR
2230 if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
2231 PLAYSSOUND = true
2232 SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
2233 end
2234
2235 local MSH = nil
2236 if TYPE == "Sphere" then
2237 MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
2238 elseif TYPE == "Block" or TYPE == "Box" then
2239 MSH = IT("BlockMesh",EFFECT)
2240 MSH.Scale = SIZE
2241 elseif TYPE == "Wave" then
2242 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
2243 elseif TYPE == "Ring" then
2244 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
2245 elseif TYPE == "Slash" then
2246 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2247 elseif TYPE == "Round Slash" then
2248 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2249 elseif TYPE == "Swirl" then
2250 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
2251 elseif TYPE == "Skull" then
2252 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
2253 elseif TYPE == "Crystal" then
2254 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
2255 end
2256 if MSH ~= nil then
2257 local MOVESPEED = nil
2258 if MOVEDIRECTION ~= nil then
2259 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
2260 end
2261 local GROWTH = SIZE - ENDSIZE
2262 local TRANS = TRANSPARENCY - ENDTRANSPARENCY
2263 if TYPE == "Block" then
2264 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2265 else
2266 EFFECT.CFrame = CFRAME
2267 end
2268 for LOOP = 1, TIME+1 do
2269 Swait()
2270 MSH.Scale = MSH.Scale - GROWTH/TIME
2271 if ISCHAOS == true then
2272 EFFECT.Color = BrickColor.Random().Color
2273 end
2274 if TYPE == "Wave" then
2275 MSH.Offset = VT(0,0,-MSH.Scale.X/8)
2276 end
2277 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2278
2279 if TYPE == "Block" then
2280 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2281 else
2282 EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2283 end
2284 if MOVEDIRECTION ~= nil then
2285 local ORI = EFFECT.Orientation
2286 EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
2287 EFFECT.Orientation = ORI
2288 end
2289 end
2290 if PLAYSSOUND == false then
2291 EFFECT:remove()
2292 else
2293 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
2294 EFFECT:remove()
2295 end
2296 else
2297 if PLAYSSOUND == false then
2298 EFFECT:remove()
2299 else
2300 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
2301 EFFECT:remove()
2302 end
2303 end
2304 end))
2305 end
2306
2307 function WACKYEFFECT2(Table)
2308 local TYPE = (Table.EffectType or "Sphere")
2309 local SIZE = (Table.Size or VT(1,1,1))
2310 local ENDSIZE = (Table.Size2 or VT(0,0,0))
2311 local TRANSPARENCY = (Table.Transparency or 0)
2312 local ENDTRANSPARENCY = (Table.Transparency2 or 1)
2313 local CFRAME = (Table.CFrame or Torso.CFrame)
2314 local MOVEDIRECTION = (Table.MoveToPos or nil)
2315 local ROTATION1 = (Table.RotationX or 0)
2316 local ROTATION2 = (Table.RotationY or 0)
2317 local ROTATION3 = (Table.RotationZ or 0)
2318 local MATERIAL = (Table.Material or "Neon")
2319 local COLOR = (Table.Color or C3(1,1,1))
2320 local TIME = (Table.Time or 45)
2321 local SOUNDID = (Table.SoundID or nil)
2322 local SOUNDPITCH = (Table.SoundPitch or nil)
2323 local SOUNDVOLUME = (Table.SoundVolume or nil)
2324 local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
2325 local BOOMERANG = (Table.Boomerang or 0)
2326 local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
2327 coroutine.resume(coroutine.create(function()
2328 local PLAYSSOUND = false
2329 local SOUND = nil
2330 local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
2331 if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
2332 PLAYSSOUND = true
2333 SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
2334 end
2335 EFFECT.Color = COLOR
2336 local MSH = nil
2337 if TYPE == "Sphere" then
2338 MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
2339 elseif TYPE == "Block" or TYPE == "Box" then
2340 MSH = IT("BlockMesh",EFFECT)
2341 MSH.Scale = SIZE
2342 elseif TYPE == "Wave" then
2343 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
2344 elseif TYPE == "Ring" then
2345 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
2346 elseif TYPE == "Slash" then
2347 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2348 elseif TYPE == "Round Slash" then
2349 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2350 elseif TYPE == "Swirl" then
2351 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
2352 elseif TYPE == "Skull" then
2353 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
2354 elseif TYPE == "Crystal" then
2355 MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
2356 end
2357 if MSH ~= nil then
2358 local BOOMR1 = 1+BOOMERANG/50
2359 local BOOMR2 = 1+SIZEBOOMERANG/50
2360 local MOVESPEED = nil
2361 if MOVEDIRECTION ~= nil then
2362 if USEBOOMERANGMATH == true then
2363 MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
2364 else
2365 MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
2366 end
2367 end
2368 local GROWTH = nil
2369 if USEBOOMERANGMATH == true then
2370 GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
2371 else
2372 GROWTH = (SIZE - ENDSIZE)
2373 end
2374 local TRANS = TRANSPARENCY - ENDTRANSPARENCY
2375 if TYPE == "Block" then
2376 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2377 else
2378 EFFECT.CFrame = CFRAME
2379 end
2380 if USEBOOMERANGMATH == true then
2381 for LOOP = 1, TIME+1 do
2382 Swait()
2383 MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
2384 if TYPE == "Wave" then
2385 MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
2386 end
2387 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2388 if TYPE == "Block" then
2389 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2390 else
2391 EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2392 end
2393 if MOVEDIRECTION ~= nil then
2394 local ORI = EFFECT.Orientation
2395 EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
2396 EFFECT.Orientation = ORI
2397 end
2398 end
2399 else
2400 for LOOP = 1, TIME+1 do
2401 Swait()
2402 MSH.Scale = MSH.Scale - GROWTH/TIME
2403 if TYPE == "Wave" then
2404 MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
2405 end
2406 EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2407 if TYPE == "Block" then
2408 EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2409 else
2410 EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2411 end
2412 if MOVEDIRECTION ~= nil then
2413 local ORI = EFFECT.Orientation
2414 EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
2415 EFFECT.Orientation = ORI
2416 end
2417 end
2418 end
2419 EFFECT.Transparency = 1
2420 if PLAYSSOUND == false then
2421 EFFECT:remove()
2422 else
2423 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
2424 EFFECT:remove()
2425 end
2426 else
2427 if PLAYSSOUND == false then
2428 EFFECT:remove()
2429 else
2430 repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
2431 EFFECT:remove()
2432 end
2433 end
2434 end))
2435 end
2436
2437 function MakeForm(PART,TYPE)
2438 if TYPE == "Cyl" then
2439 local MSH = IT("CylinderMesh",PART)
2440 elseif TYPE == "Ball" then
2441 local MSH = IT("SpecialMesh",PART)
2442 MSH.MeshType = "Sphere"
2443 elseif TYPE == "Wedge" then
2444 local MSH = IT("SpecialMesh",PART)
2445 MSH.MeshType = "Wedge"
2446 end
2447 end
2448
2449 Debris = game:GetService("Debris")
2450
2451 function CastProperRay(StartPos, EndPos, Distance, Ignore)
2452 local DIRECTION = CF(StartPos,EndPos).lookVector
2453 return Raycast(StartPos, DIRECTION, Distance, Ignore)
2454 end
2455
2456 function Gyro(PARENT)
2457 local GYRO = IT("BodyGyro",PARENT)
2458 GYRO.D = 750
2459 GYRO.P = 20000
2460 GYRO.MaxTorque = VT(0,40000000,0)
2461 return GYRO
2462 end
2463
2464 function POSITION(PARENT)
2465 local grav = Instance.new("BodyPosition",PARENT)
2466 grav.D = 15
2467 grav.P = 20000
2468 grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2469 return grav
2470 end
2471
2472 function FacialShadow()
2473 local SHADOWS = {}
2474 for i = 1, 16 do
2475 local FACE = CreatePart(3, Effects, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
2476 FACE.Color = C3(0,0,0)
2477 Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
2478 CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/25,0), CF(0, 0, 0))
2479 table.insert(SHADOWS,FACE)
2480 end
2481 local UNDO = function()
2482 for i = 1, #SHADOWS do
2483 SHADOWS[i]:remove()
2484 end
2485 end
2486 return UNDO
2487 end
2488
2489 function GetRoot(MODEL,ROOT)
2490 if ROOT == true then
2491 return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
2492 else
2493 return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
2494 end
2495 end
2496
2497 function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
2498 if FLOOR ~= nil then
2499 for i = 1, AMOUNT do
2500 local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
2501 DEBREE.Material = FLOOR.Material
2502 DEBREE.Color = FLOOR.Color
2503 DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2504 DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
2505 coroutine.resume(coroutine.create(function()
2506 Swait(15)
2507 DEBREE.Parent = workspace
2508 DEBREE.CanCollide = true
2509 Debris:AddItem(DEBREE,SWAIT)
2510 end))
2511 end
2512 end
2513 end
2514
2515 function SHAKECAM(POSITION,RANGE,INTENSITY,TIME)
2516 local CHILDREN = workspace:GetDescendants()
2517 for index, CHILD in pairs(CHILDREN) do
2518 if CHILD.ClassName == "Model" then
2519 local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2520 if HUM then
2521 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2522 if TORSO then
2523 if (TORSO.Position - POSITION).Magnitude <= RANGE then
2524 local CAMSHAKER = script.CamShake:Clone()
2525 CAMSHAKER.Shake.Value = INTENSITY
2526 CAMSHAKER.Timer.Value = TIME
2527 CAMSHAKER.Parent = CHILD
2528 CAMSHAKER.Disabled = false
2529 end
2530 end
2531 end
2532 end
2533 end
2534 end
2535
2536 --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false})
2537 function Lightning(Table)
2538 local Color = Table.Color or C3(1,1,1)
2539 local StartPos = Table.Start or Torso.Position
2540 local EndPos = Table.End or Mouse.Hit.p
2541 local SegmentLength = Table.SegmentL or 2
2542 local Thickness = Table.Thickness or 0.1
2543 local Dissapear = Table.DoesFade or false
2544 local Parent = Table.Ignore or Character
2545 local MaxDist = Table.MaxDist or 400
2546 local Branches = Table.Branches or false
2547 local Thicken = Table.Thicken or false
2548 local FadeTime = Table.FadeTime or 15
2549 local FadeIn = Table.FadeIn or false
2550 local Material = Table.Material or "Neon"
2551 local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
2552 local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5))
2553 local LIGHTNINGMODEL = IT("Model",Effects)
2554 LIGHTNINGMODEL.Name = "Lightning"
2555 local LastBolt = nil
2556 for E = 1, DISTANCE do
2557 local ExtraSize = 0
2558 if Thicken == true then
2559 ExtraSize = (DISTANCE-E)/15
2560 end
2561 local TRANSPARENCY = 0
2562 if FadeIn == true then
2563 TRANSPARENCY = 1-(E/(DISTANCE/1.5))
2564 if TRANSPARENCY < 0 then
2565 TRANSPARENCY = 0
2566 end
2567 end
2568 local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
2569 PART.Color = Color
2570 --MakeForm(PART,"Cyl")
2571 if LastBolt == nil then
2572 PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
2573 else
2574 PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
2575 end
2576 LastBolt = PART
2577 if Branches == true and E < (DISTANCE-5) then
2578 local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
2579 if CHOICE == 1 then
2580 local LASTBRANCH = nil
2581 for i = 1, MRANDOM(2,5) do
2582 local ExtraSize2 = 0
2583 if Thicken == true then
2584 ExtraSize = ((DISTANCE-E)/25)/i
2585 end
2586 local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
2587 PART.Color = Color
2588 MakeForm(PART,"Cyl")
2589 if LASTBRANCH == nil then
2590 PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
2591 else
2592 PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
2593 end
2594 LASTBRANCH = PART
2595 end
2596 end
2597 end
2598 end
2599 if Dissapear == true then
2600 coroutine.resume(coroutine.create(function()
2601 for i = 1, FadeTime do
2602 Swait()
2603 for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
2604 if c.ClassName == "Part" then
2605 c.Transparency = c.Transparency + (i/FadeTime)/10
2606 end
2607 end
2608 end
2609 LIGHTNINGMODEL:remove()
2610 end))
2611 elseif Dissapear == false then
2612 Debris:AddItem(LIGHTNINGMODEL,0.1)
2613 end
2614 return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
2615 end
2616
2617
2618 --weap
2619 local SONG = 590141342
2620
2621 local shotgunact = false
2622 local gunact = true
2623
2624 for _, c in pairs(Character:GetChildren()) do
2625 if c and c.Parent then
2626 if c.ClassName == "Accessory" then
2627 local ACCESSORY = c
2628 local HANDLE = c.Handle
2629 HANDLE.Parent = Character
2630 if c then
2631 if HANDLE:FindFirstChild("HatAttachment") or HANDLE:FindFirstChild("HairAttachment") then
2632 local WLD = weldBetween(Head,HANDLE)
2633 elseif HANDLE:FindFirstChild("FaceFrontAttachment") then
2634 HANDLE:remove()
2635 else
2636 local WLD = weldBetween(Torso,HANDLE)
2637 end
2638 end
2639 ACCESSORY:remove()
2640 end
2641 end
2642 end
2643
2644 local gun = script.Gun
2645 for i,v in pairs(gun:GetChildren()) do
2646 v.Anchored = false
2647 end
2648 local hole = gun.Hole
2649 local gunw = CreateWeldOrSnapOrMotor("Weld",LeftArm,gun.Handle,LeftArm,CF(0,0,.5) * ANGLES(RAD(90),0,0),CF(0,0,0))
2650 gun.Parent = Character
2651
2652 local shotgun = script.BShot
2653 for i,v in pairs(shotgun:GetChildren()) do
2654 v.Anchored = false
2655 end
2656 local sgw = CreateWeldOrSnapOrMotor("Weld",RightArm,shotgun.Main,RightArm,CF(0,.4,0),CF(0,0,0))
2657 shotgun.Parent = nil
2658
2659 local fshot = script.FShot
2660 for i,v in pairs(fshot:GetChildren()) do
2661 v.Anchored = false
2662 end
2663 local fsw = CreateWeldOrSnapOrMotor("Weld",Torso,fshot.Main,Torso,CF(0,0,0),CF(0,0,0))
2664 fshot.Parent = Character
2665
2666 local mascc = script.Mask
2667 for i,v in pairs(mascc:GetChildren()) do
2668 v.Anchored = false
2669 end
2670 local mw = CreateWeldOrSnapOrMotor("Weld",Head,mascc.Middle,Head,CF(0,0,0),CF(0,0,0))
2671 mascc.Parent = Character
2672
2673 local fgun = script.FakeGun
2674 for i,v in pairs(fgun:GetChildren()) do
2675 v.Anchored = false
2676 end
2677 local fgunw = CreateWeldOrSnapOrMotor("Weld",Torso,fgun.Main,Torso,CF(0,0,0),CF(0,0,0))
2678 fgun.Parent = nil
2679
2680 local hole2 = shotgun.Hole
2681
2682
2683
2684
2685
2686
2687
2688 --dmg
2689
2690 function poop(MODEL)
2691 MODEL:BreakJoints()
2692 for index, CHILD in pairs(MODEL:GetChildren()) do
2693 if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
2694 if CHILD.Name == "Head" then
2695 WACKYEFFECT2({Time = 120, EffectType = "Box", Size = VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z), Size2 = (VT(CHILD.Size.Z,CHILD.Size.Y,CHILD.Size.Z)), Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-30,30)/10,MRANDOM(-30,30)/10,MRANDOM(-30,30)/10), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 35})
2696 elseif CHILD.Name ~= "HumanoidRootPart" then
2697 WACKYEFFECT2({Time = 120, EffectType = "Box", Size = CHILD.Size, Size2 = CHILD.Size, Transparency = CHILD.Transparency, Transparency2 = 1, CFrame = CHILD.CFrame, MoveToPos = CHILD.Position+VT(MRANDOM(-30,30)/10,MRANDOM(-30,30)/10,MRANDOM(-30,30)/10), RotationY = 0, RotationZ = 0 ,Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, SizeBoomerang = 0, Boomerang = 35})
2698 end
2699 if CHILD.Name == "Torso" or CHILD.Name == "UpperTorso" then
2700 WACKYEFFECT2({Time = 60, EffectType = "Sphere", Size = VT(0.2,0.2,0.2)*CHILD.Size.Magnitude, Size2 = VT(6,6,6)*CHILD.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = CF(CHILD.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 301928691, SoundPitch = 2, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
2701 end
2702 CHILD:remove()
2703 end
2704 end
2705 Debris:AddItem(MODEL,6)
2706 end
2707
2708 function ApplyDamage(Humanoid,Damage)
2709 Damage = Damage * DAMAGEMULTIPLIER
2710 if Humanoid.Health < 2000 then
2711 if Humanoid.Health - Damage > 0 then
2712 Humanoid.Health = Humanoid.Health - Damage
2713 else
2714 poop(Humanoid.Parent)
2715 end
2716 else
2717 poop(Humanoid.Parent)
2718 end
2719 end
2720
2721 function ApplyAeO(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
2722 for index, CHILD in pairs(workspace:GetDescendants()) do
2723 if CHILD.ClassName == "Model" and CHILD ~= Character then
2724 local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2725 if HUM then
2726 local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2727 if TORSO then
2728 if (TORSO.Position - POSITION).Magnitude <= RANGE then
2729 if INSTAKILL == true then
2730 poop(CHILD)
2731 else
2732 local DMG = MRANDOM(MINDMG,MAXDMG)
2733 ApplyDamage(HUM,DMG)
2734 end
2735 if FLING > 0 then
2736 for _, c in pairs(CHILD:GetChildren()) do
2737 if c:IsA("BasePart") then
2738 local bv = Instance.new("BodyVelocity")
2739 bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2740 bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
2741 bv.Parent = c
2742 Debris:AddItem(bv,0.05)
2743 end
2744 end
2745 end
2746 end
2747 end
2748 end
2749 end
2750 end
2751 end
2752
2753 --attacks
2754
2755 function cs()
2756 if SONG == 590141342 then
2757 SONG = 212377035
2758 elseif SONG == 212377035 then
2759 SONG = 589973177
2760 elseif SONG == 589973177 then
2761 SONG = 1833183591
2762 elseif SONG == 1833183591 then
2763 SONG = 2982966292
2764 elseif SONG == 2982966292 then
2765 SONG = 616388964
2766 elseif SONG == 616388964 then
2767 SONG = 1342763538
2768 elseif SONG == 1342763538 then
2769 SONG = 886085413
2770 elseif SONG == 886085413 then
2771 SONG = 3704092097
2772 elseif SONG == 3704092097 then
2773 SONG = 1589396874
2774 elseif SONG == 1589396874 then
2775 SONG = 168159280
2776 elseif SONG == 168159280 then
2777 SONG = 296659202
2778 elseif SONG == 296659202 then
2779 SONG = 608671887
2780 elseif SONG == 608671887 then
2781 SONG = 270719635
2782 elseif SONG == 270719635 then
2783 SONG = 3206925146
2784 elseif SONG == 3206925146 then
2785 SONG = 383141805
2786 elseif SONG == 383141805 then
2787 SONG = 590141342
2788 end
2789 end
2790
2791 function swshotg()
2792 ATTACK = true
2793 if shotgunact == false then
2794 for i = 0,20 do
2795 local Alpha = .1
2796 Swait()
2797 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2798 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
2799 RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.5,0.8,0.6)*ANGLES(RAD(57.3),RAD(56.6),RAD(-61.7)),Alpha)
2800 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-104.3- 4 * SIN(SINE/35)),RAD(5.3),RAD(124.5)),Alpha)
2801 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2802 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2803 end
2804 shotgunact = true
2805 else
2806 for i = 0,20 do
2807 local Alpha = .1
2808 Swait()
2809 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2810 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
2811 RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.5,0.8,0.6)*ANGLES(RAD(57.3),RAD(56.6),RAD(-61.7)),Alpha)
2812 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-104.3- 4 * SIN(SINE/35)),RAD(5.3),RAD(124.5)),Alpha)
2813 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2814 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2815 end
2816 shotgunact = false
2817 end
2818 ATTACK = false
2819 end
2820
2821 function swgun()
2822 ATTACK = true
2823 if gunact == true then
2824 for i = 0,20 do
2825 local Alpha = .1
2826 Swait()
2827 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2828 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.8,-0.2)*ANGLES(RAD(-20.1),RAD(-30),RAD(44.7)),Alpha)
2829 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2830 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-139.4)),Alpha)
2831 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2832 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2833 end
2834 gunact = false
2835 else
2836 for i = 0,20 do
2837 local Alpha = .1
2838 Swait()
2839 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2840 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.8,-0.2)*ANGLES(RAD(-20.1),RAD(-30),RAD(44.7)),Alpha)
2841 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2842 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-139.4)),Alpha)
2843 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2844 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2845 end
2846 gunact = true
2847 end
2848 ATTACK = false
2849 end
2850
2851 function gunsh()
2852 ATTACK = true
2853 for i = 0,25 do
2854 Swait()
2855 local Alpha = .1
2856 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2857 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.3,0)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(151.3)),Alpha)
2858 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2859 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2860 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2861 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2862 end
2863 repeat
2864 for i=0, 0.25, 0.1 / Animation_Speed do
2865 Swait()
2866 local Alpha = .1
2867 local Alpha = .1
2868 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2869 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.1,0)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(103)),Alpha)
2870 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2871 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2872 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2873 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2874 end
2875 --coroutine.resume(coroutine.create(function()
2876 local HIT,POS = CastProperRay(hole.Position, Mouse.Hit.p, 500, Character)
2877 local DISTANCE = (POS - hole.Position).Magnitude
2878 if HIT then
2879
2880 WACKYEFFECT2({Time = MRANDOM(90,110), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(7,7,7), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 25})
2881 end
2882 for i = 1,6 do
2883 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Round Slash", Size = Vector3.new(0.01,0.01,0.01) * MRANDOM(.5,1.5), Size2 = Vector3.new(0,0,0), Transparency = 0.3, Transparency2 = 1, CFrame = hole.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(0), RAD(MRANDOM(60,120))) * CF(0,0,0), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Glass", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,8)/10, SoundVolume = 8,UseBoomerangMath = true, SizeBoomerang = 15})
2884 end
2885 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(hole.Position), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
2886 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Box", Size = Vector3.new(0,0,DISTANCE), Size2 = Vector3.new(.6,.6,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(hole.Position,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(1,0,0), SoundID = 419268760, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 8, Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
2887 --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,0,0), Start = hole.Position, End = POS, SegmentL = 2, Thickness = .5, DoesFade = true, Ignore = Character, MaxDist = 5, Branches = true, FadeTime = 150, Thicken = false})
2888 for i=0, 0.2, 0.1 / Animation_Speed do
2889 Swait()
2890 local Alpha = .1
2891 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2892 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-130.8),RAD(-85.3),RAD(160)),Alpha)
2893 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2894 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2895 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2896 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2897 end
2898 if shotgunact == true then break end
2899 until HOLD == false
2900 ATTACK = false
2901 end
2902
2903 function shotgunsh()
2904 ATTACK = true
2905 CreateSound(1498950813,RightArm,5,0.8,false)
2906 for i = 0,26 do
2907 Swait()
2908 local Alpha = .1
2909 sgw.C1 = sgw.C1:lerp(CF(0,-1,.3)*ANGLES(RAD(90),RAD(0),RAD(0)),.1)
2910 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2911 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
2912 RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.4,-0.2)*ANGLES(RAD(-169.7),RAD(83.4),RAD(-105.4)),Alpha)
2913 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2914 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2915 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2916 end
2917 CreateSound(1835530642,RightArm,7,.7,false)
2918 for i = 1,6 do
2919 local p1 = CF(hole2.Position,Mouse.Hit.p)*CF(0,0,-45).p
2920 local ap = CF(hole2.Position,p1) * CF(0,0,-45) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,MRANDOM(5,75)/10).p
2921 local HIT,POS = CastProperRay(hole2.Position,ap,1000,Character)
2922 local DISTANCE = (POS - hole2.Position).Magnitude
2923 if HIT then
2924 -- xd(POS,4,0,0,0,true)
2925 WACKYEFFECT2({Time = MRANDOM(90,110), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(7,7,7), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 25})
2926 end
2927 for i = 1,6 do
2928 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Round Slash", Size = Vector3.new(0.01,0.01,0.01) * MRANDOM(.5,1.5), Size2 = Vector3.new(0,0,0), Transparency = 0.3, Transparency2 = 1, CFrame = hole2.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(0), RAD(MRANDOM(60,120))) * CF(0,0,0), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Glass", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,8)/10, SoundVolume = 8,UseBoomerangMath = true, SizeBoomerang = 15})
2929 end
2930 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Sphere", Size = Vector3.new(0,0,0), Size2 = Vector3.new(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(hole2.Position), MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 1,Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
2931 WACKYEFFECT2({Time = MRANDOM(60,70), EffectType = "Box", Size = Vector3.new(0,0,DISTANCE), Size2 = Vector3.new(.6,.6,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(hole2.Position,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.new(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 8, Chaos = false,UseBoomerangMath = true, SizeBoomerang = 15})
2932 end
2933 for i = 0,35 do
2934 local Alpha = .2
2935 Swait()
2936 sgw.C1 = sgw.C1:lerp(CF(0,-1,.3)*ANGLES(RAD(90),RAD(0),RAD(0)),.1)
2937 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2938 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
2939 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.1,0.3,-0.1)*ANGLES(RAD(-169.7),RAD(83.4),RAD(-55.3)),Alpha)
2940 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
2941 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2942 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2943 end
2944 ATTACK = false
2945 end
2946
2947 function magic1()
2948 ATTACK = true
2949 local a = false
2950 for i = 0,35 do
2951 Swait()
2952 local Alpha = .1
2953 RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2+ 0.5 * COS(SINE/35),0)*ANGLES(RAD(-83.2+ 7 * SIN(SINE/35)),RAD(8.3),RAD(-129.6)),Alpha)
2954 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0)*ANGLES(RAD(-8.3),RAD(-74.4),RAD(-175.8)),Alpha)
2955 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2956 Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(129.1)),Alpha)
2957 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2958 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2959 end
2960 local sp = CreatePart(3,Effects,"Neon",0,0,"Really red","magic lol",VT(7.5,7.5,7.5),true)
2961 MakeForm(sp,"Ball")
2962 sp.CFrame = LeftArm.CFrame * CF(0,-3,0)
2963 WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp.Size.Magnitude, Size2 = VT(15,15,15), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
2964 coroutine.resume(coroutine.create(function()
2965 repeat
2966 Swait()
2967 WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.56,.56,.56), Size2 = Vector3.new(.56,.56,.56), Transparency = 0.3, Transparency2 = 1, CFrame = sp.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
2968 until a == true
2969 end))
2970 --swait(.5)
2971 coroutine.resume(coroutine.create(function()
2972 sp.CFrame = CF(sp.Position,Mouse.Hit.p)
2973 for i = 1,250 do
2974 Swait()
2975 sp.CFrame = sp.CFrame * CF(0,0,-2)
2976 local hit,pos = Raycast(sp.Position,sp.CFrame.lookVector,5,Character)
2977 if hit then break end
2978 end
2979 -- xd(sp.Position,12,0,0,0,true)
2980 for i = 1,15 do
2981 WACKYEFFECT2({Time = MRANDOM(80,90), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(5.5,55,5.5), Transparency = 0, Transparency2 = 1, CFrame = CF(sp.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
2982 end
2983 WACKYEFFECT2({Time = 60, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp.Size.Magnitude, Size2 = VT(5,5,5)*sp.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
2984 sp:Destroy()
2985 a = true
2986 end))
2987 for i = 0,20 do
2988 Swait()
2989 local Alpha = .1
2990 RootJoint.C0 = RootJoint.C0:lerp(CF(0.1,1.2+ 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-82.1+ 7 * SIN(SINE/35)),RAD(-7.2),RAD(137.8)),Alpha)
2991 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.5,0.6,-0.9)*ANGLES(RAD(97.5),RAD(-35.9),RAD(60.9)),Alpha)
2992 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(2.7)),Alpha)
2993 Neck.C0 =Neck.C0:lerp(CF(0.1,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-137.3)),Alpha)
2994 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
2995 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
2996 end
2997 ATTACK = false
2998 end
2999
3000 function magic2()
3001 ATTACK = true
3002 local first = false
3003 local stuck = false
3004 coroutine.resume(coroutine.create(function()
3005 repeat
3006 Swait()
3007 local Alpha = .1
3008 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3009 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.3,-0.2,0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(-84.9)),Alpha)
3010 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.4,-0.2,0.2)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(92.2)),Alpha)
3011 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3012 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
3013 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
3014 until first == true
3015 end))
3016 local sp1 = CreatePart(3,nil,"Neon",0,0,"Really red","magic lol",VT(2.89, 2.89, 2.89),true)
3017 MakeForm(sp1,"Ball")
3018 local sp2 = CreatePart(3,nil,"Neon",0,0,"Really red","magic lol",VT(2.89, 2.89, 2.89),true)
3019 MakeForm(sp2,"Ball")
3020 sp1.CFrame = LeftArm.CFrame * CF(0,-1,0)
3021 sp2.CFrame = RightArm.CFrame * CF(0,-1,0)
3022 WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp1.Size.Magnitude, Size2 = VT(10,10,10), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp1.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 10, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3023 WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sp2.Size.Magnitude, Size2 = VT(10,10,10), Transparency = 0.6, Transparency2 = 1, CFrame = CF(sp2.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3024 swait(.3)
3025 coroutine.resume(coroutine.create(function()
3026 repeat
3027 Swait()
3028 pcall(function()
3029 sp1.Parent = Effects
3030 sp2.Parent = Effects
3031 end)
3032 sp1.CFrame = LeftArm.CFrame * CF(0,-1,0)
3033 sp2.CFrame = RightArm.CFrame * CF(0,-1,0)
3034 WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.2,.2,.2), Size2 = Vector3.new(.2,.2,.2), Transparency = 0.3, Transparency2 = 1, CFrame = sp1.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
3035 WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.2,.2,.2), Size2 = Vector3.new(.2,.2,.2), Transparency = 0.3, Transparency2 = 1, CFrame = sp2.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
3036 until stuck == true
3037 end))
3038 first = true
3039 for i = 0,20 do
3040 Swait()
3041 local Alpha = .1
3042 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.3)*ANGLES(RAD(-64.9+ 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3043 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.3,-0.2,0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(-68.5)),Alpha)
3044 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.4,-0.2,0.3)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(71.5)),Alpha)
3045 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3046 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1.1,-0.1)*ANGLES(RAD(-24.6),RAD(-86.3),RAD(0)),Alpha)
3047 RightHip.C0 = RightHip.C0:lerp(CF(1,-0.2,-0.8)*ANGLES(RAD(-22.1),RAD(84.7),RAD(0)),Alpha)
3048 end
3049 for i = 1,15 do
3050 WACKYEFFECT2({Time = MRANDOM(80,90), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(1.5,15,1.5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * CF(0,0,-2) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
3051 end
3052 WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(.2,.2,.2)*Torso.Size.Magnitude, Size2 = VT(12,12,12), Transparency = 0.6, Transparency2 = 1, CFrame = CF(RootPart.Position) * CF(0,0,-2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
3053 -- xd(sp1.Position,14,0,0,0,true)
3054 sp1:Destroy()
3055 sp2:Destroy()
3056 stuck = true
3057 for i = 0,26 do
3058 Swait()
3059 local Alpha = .2
3060 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.1 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-84.9+ 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3061 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1.4,-0.3,-0.3)*ANGLES(RAD(-101.3),RAD(-1.8),RAD(117.1)),Alpha)
3062 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.5,-0.2,-0.2)*ANGLES(RAD(-97.5),RAD(-1.2),RAD(-120.2)),Alpha)
3063 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7- 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3064 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-0.9,-0.3)*ANGLES(RAD(-4.5),RAD(-86.3),RAD(0)),Alpha)
3065 RightHip.C0 = RightHip.C0:lerp(CF(1,0.2,-0.6)*ANGLES(RAD(-2),RAD(84.7),RAD(0)),Alpha)
3066 end
3067 ATTACK = false
3068 end
3069
3070 function magic3()
3071 ATTACK = true
3072 local b = false
3073 for i = 0,20 do
3074 Swait()
3075 local Alpha = .1
3076 RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2 + 0.5 * COS(SINE/35),0)*ANGLES(RAD(-82.9+ 7 * SIN(SINE/35)),RAD(8),RAD(-131.9)),Alpha)
3077 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,0)*ANGLES(RAD(-3.9),RAD(-78.7),RAD(3.4)),Alpha)
3078 RightShoulder.C0 = RightShoulder.C0:lerp(CF(0.9,0.8,0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(170.3)),Alpha)
3079 Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(131.4)),Alpha)
3080 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(0)),Alpha)
3081 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7),RAD(84.7),RAD(0)),Alpha)
3082 end
3083 local sph = CreatePart(3,Effects,"Neon",0,0,"Really red","magic lol",VT(2.31, 2.31, 2.31)*2,true)
3084 MakeForm(sph,"Ball")
3085 sph.CFrame = RightArm.CFrame * CF(0,-3,0)
3086 WACKYEFFECT2({Time = 90, EffectType = "Sphere", Size = VT(.2,.2,.2)*sph.Size.Magnitude, Size2 = VT(5,5,5)*2, Transparency = 0.6, Transparency2 = 1, CFrame = CF(sph.Position) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 203691785, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3087 coroutine.resume(coroutine.create(function()
3088 repeat
3089 Swait()
3090 sph.CFrame = RightArm.CFrame * CF(0,-3,0)
3091 WACKYEFFECT2({Time = 30, EffectType = "Ring", Size = Vector3.new(.5,.5,.5), Size2 = Vector3.new(.5,.5,.5), Transparency = 0.3, Transparency2 = 1, CFrame = sph.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,0,0), MoveToPos = nil, RotationX = MRANDOM(-60, 60), RotationY = MRANDOM(-50, 50), RotationZ = MRANDOM(-60, 60), Material = "Neon", Color = Color3.fromRGB(255, 0, 0), SoundID = nil, SoundPitch = 1, SoundVolume = 5, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 80})
3092 until b == true
3093 end))
3094 for i = 0,20 do
3095 Swait()
3096 local Alpha = .1
3097 RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,1.2 + 0.5 * COS(SINE/35),0.2)*ANGLES(RAD(-67.2+ 7 * SIN(SINE/35)),RAD(8),RAD(-131.9)),Alpha)
3098 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.5,0)*ANGLES(RAD(-3.9),RAD(-78.7),RAD(3.4)),Alpha)
3099 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.8,-0.2)*ANGLES(RAD(-8.7),RAD(71.8),RAD(-167.5)),Alpha)
3100 Neck.C0 =Neck.C0:lerp(CF(-0.2,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(131.4)),Alpha)
3101 LeftHip.C0 = LeftHip.C0:lerp(CF(-1.1,-0.9,-0.1)*ANGLES(RAD(-88.8),RAD(-77.4),RAD(-68.6)),Alpha)
3102 RightHip.C0 = RightHip.C0:lerp(CF(1.1,-0.4,-0.6)*ANGLES(RAD(49.1),RAD(77.3),RAD(-67.7)),Alpha)
3103 end
3104 for i = 1,15 do
3105 WACKYEFFECT2({Time = MRANDOM(40,50), EffectType = "Sphere", Size = VT(1,10,1), Size2 = VT(1.5,15,1.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame * CF(1,-3,0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
3106 end
3107 WACKYEFFECT2({Time = 40, EffectType = "Sphere", Size = VT(.2,.01,.2)*sph.Size.Magnitude, Size2 = VT(3.5,0.1,3.5)*sph.Size.Magnitude, Transparency = 0.6, Transparency2 = 1, CFrame = RootPart.CFrame * CF(1,-3,0) * ANGLES(RAD(0),RAD(0),RAD(0)) --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3108 sph:Destroy()
3109 b = true
3110 local hf,hp = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 3.7, Character)
3111 if hf then
3112 coroutine.resume(coroutine.create(function()
3113 for i = 0,6 do
3114 local po = RootPart.CFrame*CF(0,0,-i*22)
3115 local hf2,hp2 = Raycast(po.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 3.7, Character)
3116 if hf then
3117 local ab = CF(hp2) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
3118 WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(5,10,5), Size2 = VT(30,50,30), Transparency = 0.6, Transparency2 = 1, CFrame = ab --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 231917970, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3119 WACKYEFFECT2({Time = 120, EffectType = "Sphere", Size = VT(5,10,5), Size2 = VT(15,35,15), Transparency = 0.6, Transparency2 = 1, CFrame = ab --[[* CF(2,-15.3,-3)]], MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.7,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
3120 WACKYEFFECT2({Time = 50, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(20.5,2,20.5), Transparency = 0.25, Transparency2 = 1, CFrame = ab, MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = MRANDOM(9,11)/12, SoundVolume = 2})
3121 -- xd(ab.p,15,0,0,0,true)
3122 swait(.1)
3123 end
3124 end
3125 end))
3126 end
3127 for i = 0,26 do
3128 Swait()
3129 local Alpha = .2
3130 RootJoint.C0 = RootJoint.C0:lerp(CF(-0.1,-1.2,0.3)*ANGLES(RAD(-108.9),RAD(8),RAD(-131.9)),Alpha)
3131 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-0.9,0.1,0.2)*ANGLES(RAD(-84.3),RAD(-48.5),RAD(-59.8)),Alpha)
3132 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1.2,0.1,-0.1)*ANGLES(RAD(-144.2),RAD(53.2),RAD(165.1)),Alpha)
3133 Neck.C0 =Neck.C0:lerp(CF(-0.1,1,0.1)*ANGLES(RAD(-100.7),RAD(0),RAD(144.5)),Alpha)
3134 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,0.1,-0.6)*ANGLES(RAD(-10.2),RAD(-86.3),RAD(-9.5)),Alpha)
3135 RightHip.C0 = RightHip.C0:lerp(CF(1,-1,-0.9)*ANGLES(RAD(-7.7),RAD(84.7),RAD(-85.1)),Alpha)
3136 end
3137 ATTACK = false
3138 end
3139
3140 function tuant()
3141 ATTACK = true
3142 CreateSound(3724749130,Head,8,1,false)
3143 for i = 0,75 do
3144 Swait()
3145 local Alpha = .4
3146 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.07 * COS(SINE/5) + 0.5 * COS(SINE/35),0.3)*ANGLES(RAD(-59.8),RAD(0),RAD(-180)),Alpha)
3147 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.4 + 0.1 * SIN(SINE/5),0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(33.8)),Alpha)
3148 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5+ 0.1 * SIN(SINE/5),0)*ANGLES(RAD(-11.3),RAD(74.8),RAD(-20.1)),Alpha)
3149 Neck.C0 =Neck.C0:lerp(CF(0,1,-0.1)*ANGLES(RAD(-81),RAD(0),RAD(-180)),Alpha)
3150 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1.2,0.1)*ANGLES(RAD(-29.6),RAD(-86.3),RAD(0)),Alpha)
3151 RightHip.C0 = RightHip.C0:lerp(CF(1,-0.4,-0.7)*ANGLES(RAD(-27.1),RAD(84.7),RAD(0)),Alpha)
3152 end
3153 ATTACK = false
3154 end
3155
3156
3157 --keys
3158 function MouseDown(Mouse)
3159 HOLD = true
3160 if ATTACK == false then
3161 if shotgunact == true and gunact == true then
3162 if COMBO == 1 then
3163 gunsh()
3164 COMBO = 2
3165 elseif COMBO == 2 then
3166 shotgunsh()
3167 COMBO = 1
3168 end
3169 elseif shotgunact == true and gunact == false then
3170 shotgunsh()
3171 elseif shotgunact == false and gunact == true then
3172 gunsh()
3173 end
3174 end
3175 end
3176
3177 function MouseUp(Mouse)
3178 HOLD = false
3179 end
3180 local hrpz = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
3181
3182 hrpz.Name = "HumanoidRootPart"
3183 hrpz.Transparency = 0.5
3184 hrpz.Anchored = false
3185 if hrpz:FindFirstChildOfClass("AlignPosition") then
3186 hrpz:FindFirstChildOfClass("AlignPosition"):Destroy()
3187 end
3188 if hrpz:FindFirstChildOfClass("AlignOrientation") then
3189 hrpz:FindFirstChildOfClass("AlignOrientation"):Destroy()
3190 end
3191 local bp = Instance.new("BodyPosition", hrpz)
3192 bp.Position = game:GetService("Players").LocalPlayer.Character.NullwareReanim.HumanoidRootPart.Position
3193 bp.D = 9999999
3194 bp.P = 999999999999999
3195 bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
3196 local flinger = Instance.new("BodyAngularVelocity",hrpz)
3197 flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
3198 flinger.P = 1000000000000000000000000000
3199 flinger.AngularVelocity = Vector3.new(10000,10000,10000)
3200 spawn(function()
3201 while game:GetService("RunService").Heartbeat:Wait() do
3202 if ATTACK == false then
3203 bp.Position = game:GetService("Players").LocalPlayer.Character.NullwareReanim.Torso.Position
3204 else
3205 if (game:GetService("Players").LocalPlayer:GetMouse().Target ~= nil) then
3206 bp.Position = game:GetService("Players").LocalPlayer:GetMouse().Hit.p
3207 end
3208 end
3209 end
3210 end)
3211 function KeyDown(Key)
3212 KEYHOLD = true
3213 if Key == "q" and ATTACK == false then
3214 swshotg()
3215 end
3216
3217 if Key == "e" and ATTACK == false then
3218 print("removed xd")
3219 end
3220
3221 if Key == "z" and ATTACK == false and shotgunact == false and gunact == false then
3222 magic1()
3223 end
3224
3225 if Key == "x" and ATTACK == false and shotgunact == false and gunact == false then
3226 magic2()
3227 end
3228
3229 if Key == "c" and ATTACK == false and shotgunact == false and gunact == false then
3230 magic3()
3231 end
3232
3233 if Key == "t" and ATTACK == false then
3234 tuant()
3235 end
3236
3237 if Key == "m" then
3238 cs()
3239 end
3240
3241 if Key == "]" and ATTACK == false then
3242 if sick.Parent ~= Character then
3243 sick = IT("Sound",Torso)
3244 sick.SoundId = "rbxassetid://"..SONG
3245 end
3246 end
3247 end
3248
3249 function KeyUp(Key)
3250 KEYHOLD = false
3251 end
3252
3253 Mouse.Button1Down:connect(function(NEWKEY)
3254 MouseDown(NEWKEY)
3255 end)
3256 Mouse.Button1Up:connect(function(NEWKEY)
3257 MouseUp(NEWKEY)
3258 end)
3259 Mouse.KeyDown:connect(function(NEWKEY)
3260 KeyDown(NEWKEY)
3261 end)
3262 Mouse.KeyUp:connect(function(NEWKEY)
3263 KeyUp(NEWKEY)
3264 end)
3265
3266 function unanchor()
3267 for _, c in pairs(Character:GetChildren()) do
3268 if c:IsA("BasePart") and c ~= RootPart then
3269 c.Anchored = false
3270 end
3271 end
3272 if UNANCHOR == true then
3273 RootPart.Anchored = false
3274 else
3275 RootPart.Anchored = true
3276 end
3277 end
3278
3279 --if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(0.2),RAD(-84.8),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6,0.1)*ANGLES(RAD(-12.2),RAD(-73.3 ),RAD(-4.7)),.1);end
3280
3281
3282 --loop stuff
3283
3284 Humanoid.Changed:connect(function(Jump)
3285 if Jump == "Jump" and (Disable_Jump == true) then
3286 Humanoid.Jump = false
3287 end
3288 end)
3289
3290 while true do
3291 Swait()
3292 script.Parent = WEAPONGUI
3293 ANIMATE.Parent = nil
3294 for _,v in next, Humanoid:GetPlayingAnimationTracks() do
3295 v:Stop();
3296 end
3297 SINE = SINE + CHANGE*2
3298 local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
3299 local TORSOVERTICALVELOCITY = RootPart.Velocity.y
3300 local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4+Humanoid.HipHeight, Character)
3301 local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16)
3302 if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
3303 ANIM = "Jump"
3304 if ATTACK == false then
3305 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
3306 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
3307 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3308 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3309 RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3310 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3311 end
3312 elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
3313 ANIM = "Fall"
3314 if ATTACK == false then
3315 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
3316 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
3317 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3318 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3319 RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3320 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed)
3321 end
3322 elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
3323 ANIM = "Idle"
3324 if ATTACK == false then
3325 local Alpha = .1
3326 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-79.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3327 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(0.2 + 5 * COS(SINE/35)),RAD(-84.8 + 2 * SIN(SINE/35)),RAD(-167.4)),Alpha);else LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(-12.2 + 5 * COS(SINE/35)),RAD(-73.3 + 2 * SIN(SINE/35)),RAD(-4.7)),.1);end
3328 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.07 * SIN(SINE/35),0)*ANGLES(RAD(-11.3 + 5 * COS(SINE/35)),RAD(74.8 - 2 * SIN(SINE/35)),RAD(2.7)),Alpha)
3329 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-100.7 - 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3330 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2 - 4 * COS(SINE/35)),RAD(-86.3),RAD(0)),Alpha)
3331 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7 - 4 * COS(SINE/35)),RAD(84.7),RAD(0)),Alpha)
3332 end
3333 elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
3334 ANIM = "Walk"
3335 if ATTACK == false then
3336 local Alpha = .1
3337 RootJoint.C0 = RootJoint.C0:lerp(CF(0,1.2 + 0.5 * COS(SINE/35),0.1)*ANGLES(RAD(-149.3 + 7 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3338 if gunact == true then LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(0.2 + 5 * COS(SINE/35)),RAD(-84.8 + 2 * SIN(SINE/35)),RAD(-167.4)),Alpha)
3339 else
3340 LeftShoulder.C0 = LeftShoulder.C0:lerp(CF(-1,0.6 + 0.07 * SIN(SINE/35),0.1)*ANGLES(RAD(-12.2 + 5 * COS(SINE/35)),RAD(-73.3 + 2 * SIN(SINE/35)),RAD(-4.7)),.1)
3341 end
3342 RightShoulder.C0 = RightShoulder.C0:lerp(CF(1,0.5 + 0.07 * SIN(SINE/35),0)*ANGLES(RAD(-11.3 + 5 * COS(SINE/35)),RAD(74.8 - 2 * SIN(SINE/35)),RAD(2.7)),Alpha)
3343 Neck.C0 =Neck.C0:lerp(CF(0,1,0.1)*ANGLES(RAD(-30.7 - 4 * SIN(SINE/35)),RAD(0),RAD(-180)),Alpha)
3344 LeftHip.C0 = LeftHip.C0:lerp(CF(-1,-1,-0.1)*ANGLES(RAD(-10.2 - 4 * COS(SINE/35)),RAD(-86.3),RAD(0)),Alpha)
3345 RightHip.C0 = RightHip.C0:lerp(CF(1,0,-0.6)*ANGLES(RAD(-7.7 - 4 * COS(SINE/35)),RAD(84.7),RAD(0)),Alpha)
3346 end
3347 end
3348 if shotgunact == false then
3349 shotgun.Parent = nil
3350 fshot.Parent = Character
3351 else
3352 shotgun.Parent = Character
3353 fshot.Parent = nil
3354 end
3355
3356 if gunact == false then
3357 gun.Parent = nil
3358 fgun.Parent = Character
3359 else
3360 gun.Parent = Character
3361 fgun.Parent = nil
3362 end
3363 if ATTACK == false then
3364 sgw.C1 = sgw.C1:lerp(CF(0,0,0),.1)
3365 gunw.C1 = gunw.C1:lerp(CF(0,0,0),.1)
3366 end
3367
3368 local CFRAME2 = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(0)) * CF(0, MRANDOM(2,6), MRANDOM(6,10))
3369 local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(3,6),-.6,0).p
3370 local SPHEREFLOOR,SPHEREPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -5, 0))).lookVector, 25, Character)
3371 if MRANDOM(1,15) == 1 then
3372 WACKYEFFECT2({Time = MRANDOM(50,90), EffectType = "Sphere", Size = VT(.7,.7,.7), Size2 = VT(0,.7,0), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHEREPOS-VT(0,0,0))*ANGLES(RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0)),RAD(MRANDOM(0,0))), MoveToPos = SPHEREPOS+VT(0,MRANDOM(15,25)/1.2,0), MRANDOM(-25,25)/12, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0),SoundID = nil, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
3373 end
3374
3375
3376 unanchor()
3377 Humanoid.MaxHealth = 1e4
3378 Humanoid.Health = 1e4
3379 if Rooted == false then
3380 Disable_Jump = false
3381 Humanoid.WalkSpeed = Speed
3382 elseif Rooted == true then
3383 Disable_Jump = true
3384 Humanoid.WalkSpeed = 0
3385 end
3386 sick.SoundId = "rbxassetid://"..SONG
3387 sick.Looped = true
3388 if SONG == 383141805 then
3389 sick.Pitch = .88
3390 else
3391 sick.Pitch = 1
3392 end
3393 sick.Volume = 3
3394 sick.Playing = true
3395 end
3396
3397 --//=================================\\
3398 --\\=================================//
3399
3400
3401
3402
3403
3404 --//====================================================\\--
3405 --|| END OF SCRIPT
3406 --\\====================================================//--
3407end)
3408
3409Gale.Name = "Gale"
3410Gale.Parent = main
3411Gale.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
3412Gale.Position = UDim2.new(0.0199556649, 0, 0.387387365, 0)
3413Gale.Size = UDim2.new(0, 133, 0, 50)
3414Gale.Font = Enum.Font.SourceSansBold
3415Gale.Text = "Gale Fighter"
3416Gale.TextColor3 = Color3.fromRGB(255, 255, 255)
3417Gale.TextScaled = true
3418Gale.TextSize = 14.000
3419Gale.TextWrapped = true
3420Gale.MouseButton1Down:connect(function()
3421 --[[ Options ]]--
3422 _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
3423 _G.GodMode = true --Set to true if you want godmode.
3424 _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
3425 --[[Reanimate]]--
3426 loadstring(game:HttpGet("https://paste.ee/r/uk77k/0"))()
3427 -----------------
3428 repeat wait() until _G.MSG ~= nil
3429 repeat wait() until _G.MSG.Text == ""
3430 -----------------
3431
3432 function LoadLibrary(a)
3433 local t = {}
3434
3435 ------------------------------------------------------------------------------------------------------------------------
3436 ------------------------------------------------------------------------------------------------------------------------
3437 ------------------------------------------------------------------------------------------------------------------------
3438 ------------------------------------------------JSON Functions Begin----------------------------------------------------
3439 ------------------------------------------------------------------------------------------------------------------------
3440 ------------------------------------------------------------------------------------------------------------------------
3441 ------------------------------------------------------------------------------------------------------------------------
3442
3443 --JSON Encoder and Parser for Lua 5.1
3444 --
3445 --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
3446 --All Rights Reserved.
3447
3448 --Permission is hereby granted, free of charge, to any person
3449 --obtaining a copy of this software to deal in the Software without
3450 --restriction, including without limitation the rights to use,
3451 --copy, modify, merge, publish, distribute, sublicense, and/or
3452 --sell copies of the Software, and to permit persons to whom the
3453 --Software is furnished to do so, subject to the following conditions:
3454
3455 --The above copyright notice and this permission notice shall be
3456 --included in all copies or substantial portions of the Software.
3457 --If you find this software useful please give www.chipmunkav.com a mention.
3458
3459 --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
3460 --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
3461 --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
3462 --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
3463 --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
3464 --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3465 --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3466
3467 local string = string
3468 local math = math
3469 local table = table
3470 local error = error
3471 local tonumber = tonumber
3472 local tostring = tostring
3473 local type = type
3474 local setmetatable = setmetatable
3475 local pairs = pairs
3476 local ipairs = ipairs
3477 local assert = assert
3478
3479
3480 local StringBuilder = {
3481 buffer = {}
3482 }
3483
3484 function StringBuilder:New()
3485 local o = {}
3486 setmetatable(o, self)
3487 self.__index = self
3488 o.buffer = {}
3489 return o
3490 end
3491
3492 function StringBuilder:Append(s)
3493 self.buffer[#self.buffer+1] = s
3494 end
3495
3496 function StringBuilder:ToString()
3497 return table.concat(self.buffer)
3498 end
3499
3500 local JsonWriter = {
3501 backslashes = {
3502 ['\b'] = "\\b",
3503 ['\t'] = "\\t",
3504 ['\n'] = "\\n",
3505 ['\f'] = "\\f",
3506 ['\r'] = "\\r",
3507 ['"'] = "\\\"",
3508 ['\\'] = "\\\\",
3509 ['/'] = "\\/"
3510 }
3511 }
3512
3513 function JsonWriter:New()
3514 local o = {}
3515 o.writer = StringBuilder:New()
3516 setmetatable(o, self)
3517 self.__index = self
3518 return o
3519 end
3520
3521 function JsonWriter:Append(s)
3522 self.writer:Append(s)
3523 end
3524
3525 function JsonWriter:ToString()
3526 return self.writer:ToString()
3527 end
3528
3529 function JsonWriter:Write(o)
3530 local t = type(o)
3531 if t == "nil" then
3532 self:WriteNil()
3533 elseif t == "boolean" then
3534 self:WriteString(o)
3535 elseif t == "number" then
3536 self:WriteString(o)
3537 elseif t == "string" then
3538 self:ParseString(o)
3539 elseif t == "table" then
3540 self:WriteTable(o)
3541 elseif t == "function" then
3542 self:WriteFunction(o)
3543 elseif t == "thread" then
3544 self:WriteError(o)
3545 elseif t == "userdata" then
3546 self:WriteError(o)
3547 end
3548 end
3549
3550 function JsonWriter:WriteNil()
3551 self:Append("null")
3552 end
3553
3554 function JsonWriter:WriteString(o)
3555 self:Append(tostring(o))
3556 end
3557
3558 function JsonWriter:ParseString(s)
3559 self:Append('"')
3560 self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
3561 local c = self.backslashes[n]
3562 if c then return c end
3563 return string.format("\\u%.4X", string.byte(n))
3564 end))
3565 self:Append('"')
3566 end
3567
3568 function JsonWriter:IsArray(t)
3569 local count = 0
3570 local isindex = function(k)
3571 if type(k) == "number" and k > 0 then
3572 if math.floor(k) == k then
3573 return true
3574 end
3575 end
3576 return false
3577 end
3578 for k,v in pairs(t) do
3579 if not isindex(k) then
3580 return false, '{', '}'
3581 else
3582 count = math.max(count, k)
3583 end
3584 end
3585 return true, '[', ']', count
3586 end
3587
3588 function JsonWriter:WriteTable(t)
3589 local ba, st, et, n = self:IsArray(t)
3590 self:Append(st)
3591 if ba then
3592 for i = 1, n do
3593 self:Write(t[i])
3594 if i < n then
3595 self:Append(',')
3596 end
3597 end
3598 else
3599 local first = true;
3600 for k, v in pairs(t) do
3601 if not first then
3602 self:Append(',')
3603 end
3604 first = false;
3605 self:ParseString(k)
3606 self:Append(':')
3607 self:Write(v)
3608 end
3609 end
3610 self:Append(et)
3611 end
3612
3613 function JsonWriter:WriteError(o)
3614 error(string.format(
3615 "Encoding of %s unsupported",
3616 tostring(o)))
3617 end
3618
3619 function JsonWriter:WriteFunction(o)
3620 if o == Null then
3621 self:WriteNil()
3622 else
3623 self:WriteError(o)
3624 end
3625 end
3626
3627 local StringReader = {
3628 s = "",
3629 i = 0
3630 }
3631
3632 function StringReader:New(s)
3633 local o = {}
3634 setmetatable(o, self)
3635 self.__index = self
3636 o.s = s or o.s
3637 return o
3638 end
3639
3640 function StringReader:Peek()
3641 local i = self.i + 1
3642 if i <= #self.s then
3643 return string.sub(self.s, i, i)
3644 end
3645 return nil
3646 end
3647
3648 function StringReader:Next()
3649 self.i = self.i+1
3650 if self.i <= #self.s then
3651 return string.sub(self.s, self.i, self.i)
3652 end
3653 return nil
3654 end
3655
3656 function StringReader:All()
3657 return self.s
3658 end
3659
3660 local JsonReader = {
3661 escapes = {
3662 ['t'] = '\t',
3663 ['n'] = '\n',
3664 ['f'] = '\f',
3665 ['r'] = '\r',
3666 ['b'] = '\b',
3667 }
3668 }
3669
3670 function JsonReader:New(s)
3671 local o = {}
3672 o.reader = StringReader:New(s)
3673 setmetatable(o, self)
3674 self.__index = self
3675 return o;
3676 end
3677
3678 function JsonReader:Read()
3679 self:SkipWhiteSpace()
3680 local peek = self:Peek()
3681 if peek == nil then
3682 error(string.format(
3683 "Nil string: '%s'",
3684 self:All()))
3685 elseif peek == '{' then
3686 return self:ReadObject()
3687 elseif peek == '[' then
3688 return self:ReadArray()
3689 elseif peek == '"' then
3690 return self:ReadString()
3691 elseif string.find(peek, "[%+%-%d]") then
3692 return self:ReadNumber()
3693 elseif peek == 't' then
3694 return self:ReadTrue()
3695 elseif peek == 'f' then
3696 return self:ReadFalse()
3697 elseif peek == 'n' then
3698 return self:ReadNull()
3699 elseif peek == '/' then
3700 self:ReadComment()
3701 return self:Read()
3702 else
3703 return nil
3704 end
3705 end
3706
3707 function JsonReader:ReadTrue()
3708 self:TestReservedWord{'t','r','u','e'}
3709 return true
3710 end
3711
3712 function JsonReader:ReadFalse()
3713 self:TestReservedWord{'f','a','l','s','e'}
3714 return false
3715 end
3716
3717 function JsonReader:ReadNull()
3718 self:TestReservedWord{'n','u','l','l'}
3719 return nil
3720 end
3721
3722 function JsonReader:TestReservedWord(t)
3723 for i, v in ipairs(t) do
3724 if self:Next() ~= v then
3725 error(string.format(
3726 "Error reading '%s': %s",
3727 table.concat(t),
3728 self:All()))
3729 end
3730 end
3731 end
3732
3733 function JsonReader:ReadNumber()
3734 local result = self:Next()
3735 local peek = self:Peek()
3736 while peek ~= nil and string.find(
3737 peek,
3738 "[%+%-%d%.eE]") do
3739 result = result .. self:Next()
3740 peek = self:Peek()
3741 end
3742 result = tonumber(result)
3743 if result == nil then
3744 error(string.format(
3745 "Invalid number: '%s'",
3746 result))
3747 else
3748 return result
3749 end
3750 end
3751
3752 function JsonReader:ReadString()
3753 local result = ""
3754 assert(self:Next() == '"')
3755 while self:Peek() ~= '"' do
3756 local ch = self:Next()
3757 if ch == '\\' then
3758 ch = self:Next()
3759 if self.escapes[ch] then
3760 ch = self.escapes[ch]
3761 end
3762 end
3763 result = result .. ch
3764 end
3765 assert(self:Next() == '"')
3766 local fromunicode = function(m)
3767 return string.char(tonumber(m, 16))
3768 end
3769 return string.gsub(
3770 result,
3771 "u%x%x(%x%x)",
3772 fromunicode)
3773 end
3774
3775 function JsonReader:ReadComment()
3776 assert(self:Next() == '/')
3777 local second = self:Next()
3778 if second == '/' then
3779 self:ReadSingleLineComment()
3780 elseif second == '*' then
3781 self:ReadBlockComment()
3782 else
3783 error(string.format(
3784 "Invalid comment: %s",
3785 self:All()))
3786 end
3787 end
3788
3789 function JsonReader:ReadBlockComment()
3790 local done = false
3791 while not done do
3792 local ch = self:Next()
3793 if ch == '*' and self:Peek() == '/' then
3794 done = true
3795 end
3796 if not done and
3797 ch == '/' and
3798 self:Peek() == "*" then
3799 error(string.format(
3800 "Invalid comment: %s, '/*' illegal.",
3801 self:All()))
3802 end
3803 end
3804 self:Next()
3805 end
3806
3807 function JsonReader:ReadSingleLineComment()
3808 local ch = self:Next()
3809 while ch ~= '\r' and ch ~= '\n' do
3810 ch = self:Next()
3811 end
3812 end
3813
3814 function JsonReader:ReadArray()
3815 local result = {}
3816 assert(self:Next() == '[')
3817 local done = false
3818 if self:Peek() == ']' then
3819 done = true;
3820 end
3821 while not done do
3822 local item = self:Read()
3823 result[#result+1] = item
3824 self:SkipWhiteSpace()
3825 if self:Peek() == ']' then
3826 done = true
3827 end
3828 if not done then
3829 local ch = self:Next()
3830 if ch ~= ',' then
3831 error(string.format(
3832 "Invalid array: '%s' due to: '%s'",
3833 self:All(), ch))
3834 end
3835 end
3836 end
3837 assert(']' == self:Next())
3838 return result
3839 end
3840
3841 function JsonReader:ReadObject()
3842 local result = {}
3843 assert(self:Next() == '{')
3844 local done = false
3845 if self:Peek() == '}' then
3846 done = true
3847 end
3848 while not done do
3849 local key = self:Read()
3850 if type(key) ~= "string" then
3851 error(string.format(
3852 "Invalid non-string object key: %s",
3853 key))
3854 end
3855 self:SkipWhiteSpace()
3856 local ch = self:Next()
3857 if ch ~= ':' then
3858 error(string.format(
3859 "Invalid object: '%s' due to: '%s'",
3860 self:All(),
3861 ch))
3862 end
3863 self:SkipWhiteSpace()
3864 local val = self:Read()
3865 result[key] = val
3866 self:SkipWhiteSpace()
3867 if self:Peek() == '}' then
3868 done = true
3869 end
3870 if not done then
3871 ch = self:Next()
3872 if ch ~= ',' then
3873 error(string.format(
3874 "Invalid array: '%s' near: '%s'",
3875 self:All(),
3876 ch))
3877 end
3878 end
3879 end
3880 assert(self:Next() == "}")
3881 return result
3882 end
3883
3884 function JsonReader:SkipWhiteSpace()
3885 local p = self:Peek()
3886 while p ~= nil and string.find(p, "[%s/]") do
3887 if p == '/' then
3888 self:ReadComment()
3889 else
3890 self:Next()
3891 end
3892 p = self:Peek()
3893 end
3894 end
3895
3896 function JsonReader:Peek()
3897 return self.reader:Peek()
3898 end
3899
3900 function JsonReader:Next()
3901 return self.reader:Next()
3902 end
3903
3904 function JsonReader:All()
3905 return self.reader:All()
3906 end
3907
3908 function Encode(o)
3909 local writer = JsonWriter:New()
3910 writer:Write(o)
3911 return writer:ToString()
3912 end
3913
3914 function Decode(s)
3915 local reader = JsonReader:New(s)
3916 return reader:Read()
3917 end
3918
3919 function Null()
3920 return Null
3921 end
3922 -------------------- End JSON Parser ------------------------
3923
3924 t.DecodeJSON = function(jsonString)
3925 pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
3926
3927 if type(jsonString) == "string" then
3928 return Decode(jsonString)
3929 end
3930 print("RbxUtil.DecodeJSON expects string argument!")
3931 return nil
3932 end
3933
3934 t.EncodeJSON = function(jsonTable)
3935 pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
3936 return Encode(jsonTable)
3937 end
3938
3939
3940
3941
3942
3943
3944
3945
3946 ------------------------------------------------------------------------------------------------------------------------
3947 ------------------------------------------------------------------------------------------------------------------------
3948 ------------------------------------------------------------------------------------------------------------------------
3949 --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
3950 ------------------------------------------------------------------------------------------------------------------------
3951 ------------------------------------------------------------------------------------------------------------------------
3952 ------------------------------------------------------------------------------------------------------------------------
3953 --makes a wedge at location x, y, z
3954 --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously w
3955 --returns true if made a wedge, false if the cell remains a block
3956 t.MakeWedge = function(x, y, z, defaultmaterial)
3957 return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
3958 end
3959
3960 t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
3961 local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
3962 if not terrain then return end
3963
3964 assert(regionToSelect)
3965 assert(color)
3966
3967 if not type(regionToSelect) == "Region3" then
3968 error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
3969 end
3970 if not type(color) == "BrickColor" then
3971 error("color (second arg), should be of type BrickColor, but is type",type(color))
3972 end
3973
3974 -- frequently used terrain calls (speeds up call, no lookup necessary)
3975 local GetCell = terrain.GetCell
3976 local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
3977 local CellCenterToWorld = terrain.CellCenterToWorld
3978 local emptyMaterial = Enum.CellMaterial.Empty
3979
3980 -- container for all adornments, passed back to user
3981 local selectionContainer = Instance.new("Model")
3982 selectionContainer.Name = "SelectionContainer"
3983 selectionContainer.Archivable = false
3984 if selectionParent then
3985 selectionContainer.Parent = selectionParent
3986 else
3987 selectionContainer.Parent = game:GetService("Workspace")
3988 end
3989
3990 local updateSelection = nil -- function we return to allow user to update selection
3991 local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
3992 local aliveCounter = 0 -- helper for currentKeepAliveTag
3993 local lastRegion = nil -- used to stop updates that do nothing
3994 local adornments = {} -- contains all adornments
3995 local reusableAdorns = {}
3996
3997 local selectionPart = Instance.new("Part")
3998 selectionPart.Name = "SelectionPart"
3999 selectionPart.Transparency = 1
4000 selectionPart.Anchored = true
4001 selectionPart.Locked = true
4002 selectionPart.CanCollide = false
4003 selectionPart.Size = Vector3.new(4.2,4.2,4.2)
4004
4005 local selectionBox = Instance.new("SelectionBox")
4006
4007 -- srs translation from region3 to region3int16
4008 local function Region3ToRegion3int16(region3)
4009 local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
4010 local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
4011
4012 local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
4013 local highCell = WorldToCellPreferSolid(terrain, theHighVec)
4014
4015 local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
4016 local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
4017
4018 return Region3int16.new(lowIntVec,highIntVec)
4019 end
4020
4021 -- helper function that creates the basis for a selection box
4022 function createAdornment(theColor)
4023 local selectionPartClone = nil
4024 local selectionBoxClone = nil
4025
4026 if #reusableAdorns > 0 then
4027 selectionPartClone = reusableAdorns[1]["part"]
4028 selectionBoxClone = reusableAdorns[1]["box"]
4029 table.remove(reusableAdorns,1)
4030
4031 selectionBoxClone.Visible = true
4032 else
4033 selectionPartClone = selectionPart:Clone()
4034 selectionPartClone.Archivable = false
4035
4036 selectionBoxClone = selectionBox:Clone()
4037 selectionBoxClone.Archivable = false
4038
4039 selectionBoxClone.Adornee = selectionPartClone
4040 selectionBoxClone.Parent = selectionContainer
4041
4042 selectionBoxClone.Adornee = selectionPartClone
4043
4044 selectionBoxClone.Parent = selectionContainer
4045 end
4046
4047 if theColor then
4048 selectionBoxClone.Color = theColor
4049 end
4050
4051 return selectionPartClone, selectionBoxClone
4052 end
4053
4054 -- iterates through all current adornments and deletes any that don't have latest tag
4055 function cleanUpAdornments()
4056 for cellPos, adornTable in pairs(adornments) do
4057
4058 if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
4059 adornTable.SelectionBox.Visible = false
4060 table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
4061 adornments[cellPos] = nil
4062 end
4063 end
4064 end
4065
4066 -- helper function to update tag
4067 function incrementAliveCounter()
4068 aliveCounter = aliveCounter + 1
4069 if aliveCounter > 1000000 then
4070 aliveCounter = 0
4071 end
4072 return aliveCounter
4073 end
4074
4075 -- finds full cells in region and adorns each cell with a box, with the argument color
4076 function adornFullCellsInRegion(region, color)
4077 local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
4078 local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
4079
4080 local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
4081 local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
4082
4083 currentKeepAliveTag = incrementAliveCounter()
4084 for y = cellPosBegin.y, cellPosEnd.y do
4085 for z = cellPosBegin.z, cellPosEnd.z do
4086 for x = cellPosBegin.x, cellPosEnd.x do
4087 local cellMaterial = GetCell(terrain, x, y, z)
4088
4089 if cellMaterial ~= emptyMaterial then
4090 local cframePos = CellCenterToWorld(terrain, x, y, z)
4091 local cellPos = Vector3int16.new(x,y,z)
4092
4093 local updated = false
4094 for cellPosAdorn, adornTable in pairs(adornments) do
4095 if cellPosAdorn == cellPos then
4096 adornTable.KeepAlive = currentKeepAliveTag
4097 if color then
4098 adornTable.SelectionBox.Color = color
4099 end
4100 updated = true
4101 break
4102 end
4103 end
4104
4105 if not updated then
4106 local selectionPart, selectionBox = createAdornment(color)
4107 selectionPart.Size = Vector3.new(4,4,4)
4108 selectionPart.CFrame = CFrame.new(cframePos)
4109 local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
4110 adornments[cellPos] = adornTable
4111 end
4112 end
4113 end
4114 end
4115 end
4116 cleanUpAdornments()
4117 end
4118
4119
4120 ------------------------------------- setup code ------------------------------
4121 lastRegion = regionToSelect
4122
4123 if selectEmptyCells then -- use one big selection to represent the area selected
4124 local selectionPart, selectionBox = createAdornment(color)
4125
4126 selectionPart.Size = regionToSelect.Size
4127 selectionPart.CFrame = regionToSelect.CFrame
4128
4129 adornments.SelectionPart = selectionPart
4130 adornments.SelectionBox = selectionBox
4131
4132 updateSelection =
4133 function (newRegion, color)
4134 if newRegion and newRegion ~= lastRegion then
4135 lastRegion = newRegion
4136 selectionPart.Size = newRegion.Size
4137 selectionPart.CFrame = newRegion.CFrame
4138 end
4139 if color then
4140 selectionBox.Color = color
4141 end
4142 end
4143 else -- use individual cell adorns to represent the area selected
4144 adornFullCellsInRegion(regionToSelect, color)
4145 updateSelection =
4146 function (newRegion, color)
4147 if newRegion and newRegion ~= lastRegion then
4148 lastRegion = newRegion
4149 adornFullCellsInRegion(newRegion, color)
4150 end
4151 end
4152
4153 end
4154
4155 local destroyFunc = function()
4156 updateSelection = nil
4157 if selectionContainer then selectionContainer:Destroy() end
4158 adornments = nil
4159 end
4160
4161 return updateSelection, destroyFunc
4162 end
4163
4164 -----------------------------Terrain Utilities End-----------------------------
4165
4166
4167
4168
4169
4170
4171
4172 ------------------------------------------------------------------------------------------------------------------------
4173 ------------------------------------------------------------------------------------------------------------------------
4174 ------------------------------------------------------------------------------------------------------------------------
4175 ------------------------------------------------Signal class begin------------------------------------------------------
4176 ------------------------------------------------------------------------------------------------------------------------
4177 ------------------------------------------------------------------------------------------------------------------------
4178 ------------------------------------------------------------------------------------------------------------------------
4179--[[
4180A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
4181can be used to create "custom events" for user-made code.
4182API:
4183Method :connect( function handler )
4184Arguments: The function to connect to.
4185Returns: A new connection object which can be used to disconnect the connection
4186Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
4187the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
4188connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
4189NOT mean that the first will be called before the second as a result of a call to |fire|.
4190
4191Method :disconnect()
4192Arguments: None
4193Returns: None
4194Description: Disconnects all of the functions connected to this signal.
4195
4196Method :fire( ... )
4197Arguments: Any arguments are accepted
4198Returns: None
4199Description: Calls all of the currently connected functions with the given arguments.
4200
4201Method :wait()
4202Arguments: None
4203Returns: The arguments given to fire
4204Description: This call blocks until
4205]]
4206
4207 function t.CreateSignal()
4208 local this = {}
4209
4210 local mBindableEvent = Instance.new('BindableEvent')
4211 local mAllCns = {} --all connection objects returned by mBindableEvent::connect
4212
4213 --main functions
4214 function this:connect(func)
4215 if self ~= this then error("connect must be called with `:`, not `.`", 2) end
4216 if type(func) ~= 'function' then
4217 error("Argument #1 of connect must be a function, got a "..type(func), 2)
4218 end
4219 local cn = mBindableEvent.Event:Connect(func)
4220 mAllCns[cn] = true
4221 local pubCn = {}
4222 function pubCn:disconnect()
4223 cn:Disconnect()
4224 mAllCns[cn] = nil
4225 end
4226 pubCn.Disconnect = pubCn.disconnect
4227
4228 return pubCn
4229 end
4230
4231 function this:disconnect()
4232 if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
4233 for cn, _ in pairs(mAllCns) do
4234 cn:Disconnect()
4235 mAllCns[cn] = nil
4236 end
4237 end
4238
4239 function this:wait()
4240 if self ~= this then error("wait must be called with `:`, not `.`", 2) end
4241 return mBindableEvent.Event:Wait()
4242 end
4243
4244 function this:fire(...)
4245 if self ~= this then error("fire must be called with `:`, not `.`", 2) end
4246 mBindableEvent:Fire(...)
4247 end
4248
4249 this.Connect = this.connect
4250 this.Disconnect = this.disconnect
4251 this.Wait = this.wait
4252 this.Fire = this.fire
4253
4254 return this
4255 end
4256
4257 ------------------------------------------------- Sigal class End ------------------------------------------------------
4258
4259
4260
4261
4262 ------------------------------------------------------------------------------------------------------------------------
4263 ------------------------------------------------------------------------------------------------------------------------
4264 ------------------------------------------------------------------------------------------------------------------------
4265 -----------------------------------------------Create Function Begins---------------------------------------------------
4266 ------------------------------------------------------------------------------------------------------------------------
4267 ------------------------------------------------------------------------------------------------------------------------
4268 ------------------------------------------------------------------------------------------------------------------------
4269--[[
4270A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
4271the object to be created. The function then returns another function which either accepts accepts no arguments, in
4272which case it simply creates an object of the given type, or a table argument that may contain several types of data,
4273in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
4274type of data and what operation each will perform:
42751) A string key mapping to some value:
4276Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
4277ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
4278|Create| call's body.
4279
42802) An integral key mapping to another Instance:
4281Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
4282parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
4283need for temporary variables to store references to those objects.
4284
42853) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
4286The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
4287for those who really want such a functionality. The name of the event whose name is passed to
4288Create.E( string )
4289
42904) A key which is the Create function itself, and a value which is a function
4291The function will be run with the argument of the object itself after all other initialization of the object is
4292done by create. This provides a way to do arbitrary things involving the object from withing the create
4293hierarchy.
4294Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
4295it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
4296constructor callback function is possible, it is probably not a good design choice.
4297Note: Since the constructor function is called after all other initialization, a Create block cannot have two
4298constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
4299
4300
4301Some example usages:
4302
4303A simple example which uses the Create function to create a model object and assign two of it's properties.
4304local model = Create'Model'{
4305Name = 'A New model',
4306Parent = game.Workspace,
4307}
4308
4309
4310An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
4311Model_Container
4312|-ObjectValue
4313| |
4314| `-BoolValueChild
4315`-IntValue
4316
4317local model = Create'Model'{
4318Name = 'Model_Container',
4319Create'ObjectValue'{
4320Create'BoolValue'{
4321Name = 'BoolValueChild',
4322},
4323},
4324Create'IntValue'{},
4325}
4326
4327
4328An example using the event syntax:
4329
4330local part = Create'Part'{
4331[Create.E'Touched'] = function(part)
4332print("I was touched by "..part.Name)
4333end,
4334}
4335
4336
4337An example using the general constructor syntax:
4338
4339local model = Create'Part'{
4340[Create] = function(this)
4341print("Constructor running!")
4342this.Name = GetGlobalFoosAndBars(this)
4343end,
4344}
4345
4346
4347Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
4348any unexpected behavior. EG:
4349local partCreatingFunction = Create'Part'
4350local part = partCreatingFunction()
4351]]
4352
4353 --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
4354 --will be created in several steps rather than as a single function declaration.
4355 local function Create_PrivImpl(objectType)
4356 if type(objectType) ~= 'string' then
4357 error("Argument of Create must be a string", 2)
4358 end
4359 --return the proxy function that gives us the nice Create'string'{data} syntax
4360 --The first function call is a function call using Lua's single-string-argument syntax
4361 --The second function call is using Lua's single-table-argument syntax
4362 --Both can be chained together for the nice effect.
4363 return function(dat)
4364 --default to nothing, to handle the no argument given case
4365 dat = dat or {}
4366
4367 --make the object to mutate
4368 local obj = Instance.new(objectType)
4369 local parent = nil
4370
4371 --stored constructor function to be called after other initialization
4372 local ctor = nil
4373
4374 for k, v in pairs(dat) do
4375 --add property
4376 if type(k) == 'string' then
4377 if k == 'Parent' then
4378 -- Parent should always be set last, setting the Parent of a new object
4379 -- immediately makes performance worse for all subsequent property updates.
4380 parent = v
4381 else
4382 obj[k] = v
4383 end
4384
4385
4386 --add child
4387 elseif type(k) == 'number' then
4388 if type(v) ~= 'userdata' then
4389 error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
4390 end
4391 v.Parent = obj
4392
4393
4394 --event connect
4395 elseif type(k) == 'table' and k.__eventname then
4396 if type(v) ~= 'function' then
4397 error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
4398got: "..tostring(v), 2)
4399 end
4400 obj[k.__eventname]:connect(v)
4401
4402
4403 --define constructor function
4404 elseif k == t.Create then
4405 if type(v) ~= 'function' then
4406 error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
4407got: "..tostring(v), 2)
4408 elseif ctor then
4409 --ctor already exists, only one allowed
4410 error("Bad entry in Create body: Only one constructor function is allowed", 2)
4411 end
4412 ctor = v
4413
4414
4415 else
4416 error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
4417 end
4418 end
4419
4420 --apply constructor function if it exists
4421 if ctor then
4422 ctor(obj)
4423 end
4424
4425 if parent then
4426 obj.Parent = parent
4427 end
4428
4429 --return the completed object
4430 return obj
4431 end
4432 end
4433
4434 --now, create the functor:
4435 t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
4436
4437 --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
4438 --function can recognize as special.
4439 t.Create.E = function(eventName)
4440 return {__eventname = eventName}
4441 end
4442
4443 -------------------------------------------------Create function End----------------------------------------------------
4444
4445
4446
4447
4448 ------------------------------------------------------------------------------------------------------------------------
4449 ------------------------------------------------------------------------------------------------------------------------
4450 ------------------------------------------------------------------------------------------------------------------------
4451 ------------------------------------------------Documentation Begin-----------------------------------------------------
4452 ------------------------------------------------------------------------------------------------------------------------
4453 ------------------------------------------------------------------------------------------------------------------------
4454 ------------------------------------------------------------------------------------------------------------------------
4455
4456 t.Help =
4457 function(funcNameOrFunc)
4458 --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
4459 if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
4460 return "Function DecodeJSON. " ..
4461 "Arguments: (string). " ..
4462 "Side effect: returns a table with all parsed JSON values"
4463 end
4464 if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
4465 return "Function EncodeJSON. " ..
4466 "Arguments: (table). " ..
4467 "Side effect: returns a string composed of argument table in JSON data format"
4468 end
4469 if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
4470 return "Function MakeWedge. " ..
4471 "Arguments: (x, y, z, [default material]). " ..
4472 "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
4473 "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
4474 "Returns true if made a wedge, false if the cell remains a block "
4475 end
4476 if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
4477 return "Function SelectTerrainRegion. " ..
4478 "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
4479 "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
4480 "(this should be a region3 value). The selection box color is detemined by the color argument " ..
4481 "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
4482 "SelectEmptyCells is bool, when true will select all cells in the " ..
4483 "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
4484 "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
4485 "Also returns a second function that takes no arguments and destroys the selection"
4486 end
4487 if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
4488 return "Function CreateSignal. "..
4489 "Arguments: None. "..
4490 "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
4491 "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
4492 "Lua code. "..
4493 "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
4494 "For more info you can pass the method name to the Help function, or view the wiki page "..
4495 "for this library. EG: Help('Signal:connect')."
4496 end
4497 if funcNameOrFunc == "Signal:connect" then
4498 return "Method Signal:connect. "..
4499 "Arguments: (function handler). "..
4500 "Return: A connection object which can be used to disconnect the connection to this handler. "..
4501 "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
4502 "handler function will be called with the arguments passed to |fire|."
4503 end
4504 if funcNameOrFunc == "Signal:wait" then
4505 return "Method Signal:wait. "..
4506 "Arguments: None. "..
4507 "Returns: The arguments passed to the next call to |fire|. "..
4508 "Description: This call does not return until the next call to |fire| is made, at which point it "..
4509 "will return the values which were passed as arguments to that |fire| call."
4510 end
4511 if funcNameOrFunc == "Signal:fire" then
4512 return "Method Signal:fire. "..
4513 "Arguments: Any number of arguments of any type. "..
4514 "Returns: None. "..
4515 "Description: This call will invoke any connected handler functions, and notify any waiting code "..
4516 "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
4517 "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
4518 "it takes the connected handler functions to complete."
4519 end
4520 if funcNameOrFunc == "Signal:disconnect" then
4521 return "Method Signal:disconnect. "..
4522 "Arguments: None. "..
4523 "Returns: None. "..
4524 "Description: This call disconnects all handlers attacched to this function, note however, it "..
4525 "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
4526 "can also be called on the connection object which is returned from Signal:connect to only "..
4527 "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
4528 end
4529 if funcNameOrFunc == "Create" then
4530 return "Function Create. "..
4531 "Arguments: A table containing information about how to construct a collection of objects. "..
4532 "Returns: The constructed objects. "..
4533 "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
4534 "is best described via example, please see the wiki page for a description of how to use it."
4535 end
4536 end
4537
4538 --------------------------------------------Documentation Ends----------------------------------------------------------
4539
4540 return t
4541 end
4542
4543 --[[ Name : Gale Fighter ]]--
4544 -------------------------------------------------------
4545 --A Collaboration Between makhail07 and KillerDarkness0105
4546
4547 --Base Animaion by makhail07, attacks by KillerDarkness0105
4548 -------------------------------------------------------
4549
4550
4551 local FavIDs = {
4552 340106355, --Nefl Crystals
4553 927529620, --Dimension
4554 876981900, --Fantasy
4555 398987889, --Ordinary Days
4556 1117396305, --Oh wait, it's you.
4557 885996042, --Action Winter Journey
4558 919231299, --Sprawling Idiot Effigy
4559 743466274, --Good Day Sunshine
4560 727411183, --Knife Fight
4561 1402748531, --The Earth Is Counting On You!
4562 595230126 --Robot Language
4563 }
4564
4565
4566
4567 --The reality of my life isn't real but a Universe -makhail07
4568 wait(0.2)
4569 local plr = game:GetService("Players").LocalPlayer
4570 print('Local User is '..plr.Name)
4571 print('Gale Fighter Loaded')
4572 print('The Fighter that is as fast as wind, a true Fighter')
4573 local char = plr.Character.NullwareReanim
4574 local hum = char.Humanoid
4575 local hed = char.Head
4576 local root = char.HumanoidRootPart
4577 local rootj = root.RootJoint
4578 local tors = char.Torso
4579 local ra = char["Right Arm"]
4580 local la = char["Left Arm"]
4581 local rl = char["Right Leg"]
4582 local ll = char["Left Leg"]
4583 local neck = tors["Neck"]
4584 local mouse = plr:GetMouse()
4585 local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
4586 local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
4587 local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
4588 local maincolor = BrickColor.new("Institutional white")
4589 hum.MaxHealth = 200
4590 hum.Health = 200
4591
4592 local hrp = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
4593
4594 hrp.Name = "HumanoidRootPart"
4595 hrp.Transparency = 0.5
4596 hrp.Anchored = false
4597 if hrp:FindFirstChildOfClass("AlignPosition") then
4598 hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
4599 end
4600 if hrp:FindFirstChildOfClass("AlignOrientation") then
4601 hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
4602 end
4603 local bp = Instance.new("BodyPosition", hrp)
4604 bp.Position = hrp.Position
4605 bp.D = 9999999
4606 bp.P = 999999999999999
4607 bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
4608 local flinger = Instance.new("BodyAngularVelocity",hrp)
4609 flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
4610 flinger.P = 1000000000000000000000000000
4611 flinger.AngularVelocity = Vector3.new(10000,10000,10000)
4612
4613 spawn(function()
4614 while game:GetService("RunService").Heartbeat:Wait() do
4615 bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].Torso.Position
4616 end
4617 end)
4618
4619 -------------------------------------------------------
4620 --Start Good Stuff--
4621 -------------------------------------------------------
4622 cam = game.Workspace.CurrentCamera
4623 CF = CFrame.new
4624 angles = CFrame.Angles
4625 attack = false
4626 Euler = CFrame.fromEulerAnglesXYZ
4627 Rad = math.rad
4628 IT = Instance.new
4629 BrickC = BrickColor.new
4630 Cos = math.cos
4631 Acos = math.acos
4632 Sin = math.sin
4633 Asin = math.asin
4634 Abs = math.abs
4635 Mrandom = math.random
4636 Floor = math.floor
4637 -------------------------------------------------------
4638 --End Good Stuff--
4639 -------------------------------------------------------
4640 necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
4641 RSH, LSH = nil, nil
4642 RW = Instance.new("Weld")
4643 LW = Instance.new("Weld")
4644 RH = tors["Right Hip"]
4645 LH = tors["Left Hip"]
4646 RSH = tors["Right Shoulder"]
4647 LSH = tors["Left Shoulder"]
4648 RSH.Parent = nil
4649 LSH.Parent = nil
4650 RW.Name = "RW"
4651 RW.Part0 = tors
4652 RW.C0 = CF(1.5, 0.5, 0)
4653 RW.C1 = CF(0, 0.5, 0)
4654 RW.Part1 = ra
4655 RW.Parent = tors
4656 LW.Name = "LW"
4657 LW.Part0 = tors
4658 LW.C0 = CF(-1.5, 0.5, 0)
4659 LW.C1 = CF(0, 0.5, 0)
4660 LW.Part1 = la
4661 LW.Parent = tors
4662 vt = Vector3.new
4663 Effects = {}
4664 -------------------------------------------------------
4665 --Start HeartBeat--
4666 -------------------------------------------------------
4667 ArtificialHB = Instance.new("BindableEvent", script)
4668 ArtificialHB.Name = "Heartbeat"
4669 script:WaitForChild("Heartbeat")
4670
4671 frame = 1 / 90
4672 tf = 0
4673 allowframeloss = false
4674 tossremainder = false
4675
4676
4677 lastframe = tick()
4678 script.Heartbeat:Fire()
4679
4680
4681 game:GetService("RunService").Heartbeat:connect(function(s, p)
4682 tf = tf + s
4683 if tf >= frame then
4684 if allowframeloss then
4685 script.Heartbeat:Fire()
4686 lastframe = tick()
4687 else
4688 for i = 1, math.floor(tf / frame) do
4689 script.Heartbeat:Fire()
4690 end
4691 lastframe = tick()
4692 end
4693 if tossremainder then
4694 tf = 0
4695 else
4696 tf = tf - frame * math.floor(tf / frame)
4697 end
4698 end
4699 end)
4700 -------------------------------------------------------
4701 --End HeartBeat--
4702 -------------------------------------------------------
4703
4704
4705
4706 -------------------------------------------------------
4707 --Start Combo Function--
4708 -------------------------------------------------------
4709 local comboing = false
4710 local combohits = 0
4711 local combotime = 0
4712 local maxtime = 65
4713
4714
4715
4716 function sandbox(var,func)
4717 local env = getfenv(func)
4718 local newenv = setmetatable({},{
4719 __index = function(self,k)
4720 if k=="script" then
4721 return var
4722 else
4723 return env[k]
4724 end
4725 end,
4726 })
4727 setfenv(func,newenv)
4728 return func
4729 end
4730 cors = {}
4731 mas = Instance.new("Model",game:GetService("Lighting"))
4732 comboframe = Instance.new("ScreenGui")
4733 Frame1 = Instance.new("Frame")
4734 Frame2 = Instance.new("Frame")
4735 TextLabel3 = Instance.new("TextLabel")
4736 comboframe.Name = "combinserter"
4737 comboframe.Parent = mas
4738 Frame1.Name = "combtimegui"
4739 Frame1.Parent = comboframe
4740 Frame1.Size = UDim2.new(0, 300, 0, 14)
4741 Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
4742 Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
4743 Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
4744 Frame1.BorderSizePixel = 5
4745 Frame2.Name = "combtimeoverlay"
4746 Frame2.Parent = Frame1
4747 Frame2.Size = UDim2.new(0, 0, 0, 14)
4748 Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
4749 Frame2.ZIndex = 2
4750 TextLabel3.Parent = Frame2
4751 TextLabel3.Transparency = 0
4752 TextLabel3.Size = UDim2.new(0, 300, 0, 50)
4753 TextLabel3.Text ="Hits: "..combohits
4754 TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
4755 TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
4756 TextLabel3.BackgroundTransparency = 1
4757 TextLabel3.Font = Enum.Font.Bodoni
4758 TextLabel3.FontSize = Enum.FontSize.Size60
4759 TextLabel3.TextColor3 = Color3.new(0, 1, 0)
4760 TextLabel3.TextStrokeTransparency = 0
4761 gui = game:GetService("Players").LocalPlayer.PlayerGui
4762 for i,v in pairs(mas:GetChildren()) do
4763 v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
4764 pcall(function() v:MakeJoints() end)
4765 end
4766 mas:Destroy()
4767 for i,v in pairs(cors) do
4768 spawn(function()
4769 pcall(v)
4770 end)
4771 end
4772
4773
4774
4775
4776
4777 coroutine.resume(coroutine.create(function()
4778 while true do
4779 wait()
4780
4781
4782 if combotime>65 then
4783 combotime = 65
4784 end
4785
4786
4787
4788
4789
4790 if combotime>.1 and comboing == true then
4791 TextLabel3.Transparency = 0
4792 TextLabel3.TextStrokeTransparency = 0
4793 TextLabel3.BackgroundTransparency = 1
4794 Frame1.Transparency = 0
4795 Frame2.Transparency = 0
4796 TextLabel3.Text ="Hits: "..combohits
4797 combotime = combotime - .34
4798 Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
4799 end
4800
4801
4802
4803
4804 if combotime<.1 then
4805 TextLabel3.BackgroundTransparency = 1
4806 TextLabel3.Transparency = 1
4807 TextLabel3.TextStrokeTransparency = 1
4808
4809 Frame2.Size = UDim2.new(0, 0, 0, 14)
4810 combotime = 0
4811 comboing = false
4812 Frame1.Transparency = 1
4813 Frame2.Transparency = 1
4814 combohits = 0
4815
4816 end
4817 end
4818 end))
4819
4820
4821
4822 -------------------------------------------------------
4823 --End Combo Function--
4824 -------------------------------------------------------
4825
4826 -------------------------------------------------------
4827 --Start Important Functions--
4828 -------------------------------------------------------
4829 function swait(num)
4830 if num == 0 or num == nil then
4831 game:service("RunService").Stepped:wait(0)
4832 else
4833 for i = 0, num do
4834 game:service("RunService").Stepped:wait(0)
4835 end
4836 end
4837 end
4838 function thread(f)
4839 coroutine.resume(coroutine.create(f))
4840 end
4841 function clerp(a, b, t)
4842 local qa = {
4843 QuaternionFromCFrame(a)
4844 }
4845 local qb = {
4846 QuaternionFromCFrame(b)
4847 }
4848 local ax, ay, az = a.x, a.y, a.z
4849 local bx, by, bz = b.x, b.y, b.z
4850 local _t = 1 - t
4851 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
4852 end
4853 function QuaternionFromCFrame(cf)
4854 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
4855 local trace = m00 + m11 + m22
4856 if trace > 0 then
4857 local s = math.sqrt(1 + trace)
4858 local recip = 0.5 / s
4859 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
4860 else
4861 local i = 0
4862 if m00 < m11 then
4863 i = 1
4864 end
4865 if m22 > (i == 0 and m00 or m11) then
4866 i = 2
4867 end
4868 if i == 0 then
4869 local s = math.sqrt(m00 - m11 - m22 + 1)
4870 local recip = 0.5 / s
4871 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
4872 elseif i == 1 then
4873 local s = math.sqrt(m11 - m22 - m00 + 1)
4874 local recip = 0.5 / s
4875 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
4876 elseif i == 2 then
4877 local s = math.sqrt(m22 - m00 - m11 + 1)
4878 local recip = 0.5 / s
4879 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
4880 end
4881 end
4882 end
4883 function QuaternionToCFrame(px, py, pz, x, y, z, w)
4884 local xs, ys, zs = x + x, y + y, z + z
4885 local wx, wy, wz = w * xs, w * ys, w * zs
4886 local xx = x * xs
4887 local xy = x * ys
4888 local xz = x * zs
4889 local yy = y * ys
4890 local yz = y * zs
4891 local zz = z * zs
4892 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))
4893 end
4894 function QuaternionSlerp(a, b, t)
4895 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
4896 local startInterp, finishInterp
4897 if cosTheta >= 1.0E-4 then
4898 if 1 - cosTheta > 1.0E-4 then
4899 local theta = math.acos(cosTheta)
4900 local invSinTheta = 1 / Sin(theta)
4901 startInterp = Sin((1 - t) * theta) * invSinTheta
4902 finishInterp = Sin(t * theta) * invSinTheta
4903 else
4904 startInterp = 1 - t
4905 finishInterp = t
4906 end
4907 elseif 1 + cosTheta > 1.0E-4 then
4908 local theta = math.acos(-cosTheta)
4909 local invSinTheta = 1 / Sin(theta)
4910 startInterp = Sin((t - 1) * theta) * invSinTheta
4911 finishInterp = Sin(t * theta) * invSinTheta
4912 else
4913 startInterp = t - 1
4914 finishInterp = t
4915 end
4916 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
4917 end
4918 function rayCast(Position, Direction, Range, Ignore)
4919 return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
4920 end
4921 local RbxUtility = LoadLibrary("RbxUtility")
4922 local Create = RbxUtility.Create
4923
4924 -------------------------------------------------------
4925 --Start Damage Function--
4926 -------------------------------------------------------
4927
4928 -------------------------------------------------------
4929 --End Damage Function--
4930 -------------------------------------------------------
4931
4932 -------------------------------------------------------
4933 --Start Damage Function Customization--
4934 -------------------------------------------------------
4935 function ShowDamage(Pos, Text, Time, Color)
4936 local Rate = (1 / 30)
4937 local Pos = (Pos or Vector3.new(0, 0, 0))
4938 local Text = (Text or "")
4939 local Time = (Time or 2)
4940 local Color = (Color or Color3.new(1, 0, 1))
4941 local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
4942 EffectPart.Anchored = true
4943 local BillboardGui = Create("BillboardGui"){
4944 Size = UDim2.new(3, 0, 3, 0),
4945 Adornee = EffectPart,
4946 Parent = EffectPart,
4947 }
4948 local TextLabel = Create("TextLabel"){
4949 BackgroundTransparency = 1,
4950 Size = UDim2.new(1, 0, 1, 0),
4951 Text = Text,
4952 Font = "Bodoni",
4953 TextColor3 = Color,
4954 TextScaled = true,
4955 TextStrokeColor3 = Color3.fromRGB(0,0,0),
4956 Parent = BillboardGui,
4957 }
4958 game.Debris:AddItem(EffectPart, (Time))
4959 EffectPart.Parent = game:GetService("Workspace")
4960 delay(0, function()
4961 local Frames = (Time / Rate)
4962 for Frame = 1, Frames do
4963 wait(Rate)
4964 local Percent = (Frame / Frames)
4965 EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
4966 TextLabel.TextTransparency = Percent
4967 end
4968 if EffectPart and EffectPart.Parent then
4969 EffectPart:Destroy()
4970 end
4971 end)
4972 end
4973 -------------------------------------------------------
4974 --End Damage Function Customization--
4975 -------------------------------------------------------
4976
4977 CFuncs = {
4978 Part = {
4979 Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
4980 local Part = Create("Part")({
4981 Parent = Parent,
4982 Reflectance = Reflectance,
4983 Transparency = Transparency,
4984 CanCollide = false,
4985 Locked = true,
4986 BrickColor = BrickColor.new(tostring(BColor)),
4987 Name = Name,
4988 Size = Size,
4989 Material = Material
4990 })
4991 RemoveOutlines(Part)
4992 return Part
4993 end
4994 },
4995 Mesh = {
4996 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
4997 local Msh = Create(Mesh)({
4998 Parent = Part,
4999 Offset = OffSet,
5000 Scale = Scale
5001 })
5002 if Mesh == "SpecialMesh" then
5003 Msh.MeshType = MeshType
5004 Msh.MeshId = MeshId
5005 end
5006 return Msh
5007 end
5008 },
5009 Mesh = {
5010 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
5011 local Msh = Create(Mesh)({
5012 Parent = Part,
5013 Offset = OffSet,
5014 Scale = Scale
5015 })
5016 if Mesh == "SpecialMesh" then
5017 Msh.MeshType = MeshType
5018 Msh.MeshId = MeshId
5019 end
5020 return Msh
5021 end
5022 },
5023 Weld = {
5024 Create = function(Parent, Part0, Part1, C0, C1)
5025 local Weld = Create("Weld")({
5026 Parent = Parent,
5027 Part0 = Part0,
5028 Part1 = Part1,
5029 C0 = C0,
5030 C1 = C1
5031 })
5032 return Weld
5033 end
5034 },
5035 Sound = {
5036 Create = function(id, par, vol, pit)
5037 coroutine.resume(coroutine.create(function()
5038 local S = Create("Sound")({
5039 Volume = vol,
5040 Pitch = pit or 1,
5041 SoundId = id,
5042 Parent = par or workspace
5043 })
5044 wait()
5045 S:play()
5046 game:GetService("Debris"):AddItem(S, 6)
5047 end))
5048 end
5049 },
5050 ParticleEmitter = {
5051 Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
5052 local fp = Create("ParticleEmitter")({
5053 Parent = Parent,
5054 Color = ColorSequence.new(Color1, Color2),
5055 LightEmission = LightEmission,
5056 Size = Size,
5057 Texture = Texture,
5058 Transparency = Transparency,
5059 ZOffset = ZOffset,
5060 Acceleration = Accel,
5061 Drag = Drag,
5062 LockedToPart = LockedToPart,
5063 VelocityInheritance = VelocityInheritance,
5064 EmissionDirection = EmissionDirection,
5065 Enabled = Enabled,
5066 Lifetime = LifeTime,
5067 Rate = Rate,
5068 Rotation = Rotation,
5069 RotSpeed = RotSpeed,
5070 Speed = Speed,
5071 VelocitySpread = VelocitySpread
5072 })
5073 return fp
5074 end
5075 }
5076 }
5077 function RemoveOutlines(part)
5078 part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
5079 end
5080 function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
5081 local Part = Create("Part")({
5082 formFactor = FormFactor,
5083 Parent = Parent,
5084 Reflectance = Reflectance,
5085 Transparency = Transparency,
5086 CanCollide = false,
5087 Locked = true,
5088 BrickColor = BrickColor.new(tostring(BColor)),
5089 Name = Name,
5090 Size = Size,
5091 Material = Material
5092 })
5093 RemoveOutlines(Part)
5094 return Part
5095 end
5096 function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
5097 local Msh = Create(Mesh)({
5098 Parent = Part,
5099 Offset = OffSet,
5100 Scale = Scale
5101 })
5102 if Mesh == "SpecialMesh" then
5103 Msh.MeshType = MeshType
5104 Msh.MeshId = MeshId
5105 end
5106 return Msh
5107 end
5108 function CreateWeld(Parent, Part0, Part1, C0, C1)
5109 local Weld = Create("Weld")({
5110 Parent = Parent,
5111 Part0 = Part0,
5112 Part1 = Part1,
5113 C0 = C0,
5114 C1 = C1
5115 })
5116 return Weld
5117 end
5118
5119
5120 -------------------------------------------------------
5121 --Start Effect Function--
5122 -------------------------------------------------------
5123 EffectModel = Instance.new("Model", char)
5124 Effects = {
5125 Block = {
5126 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
5127 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5128 prt.Anchored = true
5129 prt.CFrame = cframe
5130 local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5131 game:GetService("Debris"):AddItem(prt, 10)
5132 if Type == 1 or Type == nil then
5133 table.insert(Effects, {
5134 prt,
5135 "Block1",
5136 delay,
5137 x3,
5138 y3,
5139 z3,
5140 msh
5141 })
5142 elseif Type == 2 then
5143 table.insert(Effects, {
5144 prt,
5145 "Block2",
5146 delay,
5147 x3,
5148 y3,
5149 z3,
5150 msh
5151 })
5152 else
5153 table.insert(Effects, {
5154 prt,
5155 "Block3",
5156 delay,
5157 x3,
5158 y3,
5159 z3,
5160 msh
5161 })
5162 end
5163 end
5164 },
5165 Sphere = {
5166 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5167 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5168 prt.Anchored = true
5169 prt.CFrame = cframe
5170 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5171 game:GetService("Debris"):AddItem(prt, 10)
5172 table.insert(Effects, {
5173 prt,
5174 "Cylinder",
5175 delay,
5176 x3,
5177 y3,
5178 z3,
5179 msh
5180 })
5181 end
5182 },
5183 Cylinder = {
5184 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5185 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5186 prt.Anchored = true
5187 prt.CFrame = cframe
5188 local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5189 game:GetService("Debris"):AddItem(prt, 10)
5190 table.insert(Effects, {
5191 prt,
5192 "Cylinder",
5193 delay,
5194 x3,
5195 y3,
5196 z3,
5197 msh
5198 })
5199 end
5200 },
5201 Wave = {
5202 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5203 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5204 prt.Anchored = true
5205 prt.CFrame = cframe
5206 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
5207 game:GetService("Debris"):AddItem(prt, 10)
5208 table.insert(Effects, {
5209 prt,
5210 "Cylinder",
5211 delay,
5212 x3 / 60,
5213 y3 / 60,
5214 z3 / 60,
5215 msh
5216 })
5217 end
5218 },
5219 Ring = {
5220 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5221 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5222 prt.Anchored = true
5223 prt.CFrame = cframe
5224 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5225 game:GetService("Debris"):AddItem(prt, 10)
5226 table.insert(Effects, {
5227 prt,
5228 "Cylinder",
5229 delay,
5230 x3,
5231 y3,
5232 z3,
5233 msh
5234 })
5235 end
5236 },
5237 Break = {
5238 Create = function(brickcolor, cframe, x1, y1, z1)
5239 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
5240 prt.Anchored = true
5241 prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
5242 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5243 local num = math.random(10, 50) / 1000
5244 game:GetService("Debris"):AddItem(prt, 10)
5245 table.insert(Effects, {
5246 prt,
5247 "Shatter",
5248 num,
5249 prt.CFrame,
5250 math.random() - math.random(),
5251 0,
5252 math.random(50, 100) / 100
5253 })
5254 end
5255 },
5256 Spiral = {
5257 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5258 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5259 prt.Anchored = true
5260 prt.CFrame = cframe
5261 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5262 game:GetService("Debris"):AddItem(prt, 10)
5263 table.insert(Effects, {
5264 prt,
5265 "Cylinder",
5266 delay,
5267 x3,
5268 y3,
5269 z3,
5270 msh
5271 })
5272 end
5273 },
5274 Push = {
5275 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5276 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5277 prt.Anchored = true
5278 prt.CFrame = cframe
5279 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5280 game:GetService("Debris"):AddItem(prt, 10)
5281 table.insert(Effects, {
5282 prt,
5283 "Cylinder",
5284 delay,
5285 x3,
5286 y3,
5287 z3,
5288 msh
5289 })
5290 end
5291 }
5292 }
5293 function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
5294 local fp = IT("Part")
5295 fp.formFactor = formfactor
5296 fp.Parent = parent
5297 fp.Reflectance = reflectance
5298 fp.Transparency = transparency
5299 fp.CanCollide = false
5300 fp.Locked = true
5301 fp.BrickColor = brickcolor
5302 fp.Name = name
5303 fp.Size = size
5304 fp.Position = tors.Position
5305 RemoveOutlines(fp)
5306 fp.Material = "SmoothPlastic"
5307 fp:BreakJoints()
5308 return fp
5309 end
5310
5311 function mesh(Mesh,part,meshtype,meshid,offset,scale)
5312 local mesh = IT(Mesh)
5313 mesh.Parent = part
5314 if Mesh == "SpecialMesh" then
5315 mesh.MeshType = meshtype
5316 if meshid ~= "nil" then
5317 mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
5318 end
5319 end
5320 mesh.Offset = offset
5321 mesh.Scale = scale
5322 return mesh
5323 end
5324
5325 function Magic(bonuspeed, type, pos, scale, value, color, MType)
5326 local type = type
5327 local rng = Instance.new("Part", char)
5328 rng.Anchored = true
5329 rng.BrickColor = color
5330 rng.CanCollide = false
5331 rng.FormFactor = 3
5332 rng.Name = "Ring"
5333 rng.Material = "Neon"
5334 rng.Size = Vector3.new(1, 1, 1)
5335 rng.Transparency = 0
5336 rng.TopSurface = 0
5337 rng.BottomSurface = 0
5338 rng.CFrame = pos
5339 local rngm = Instance.new("SpecialMesh", rng)
5340 rngm.MeshType = MType
5341 rngm.Scale = scale
5342 local scaler2 = 1
5343 if type == "Add" then
5344 scaler2 = 1 * value
5345 elseif type == "Divide" then
5346 scaler2 = 1 / value
5347 end
5348 coroutine.resume(coroutine.create(function()
5349 for i = 0, 10 / bonuspeed, 0.1 do
5350 swait()
5351 if type == "Add" then
5352 scaler2 = scaler2 - 0.01 * value / bonuspeed
5353 elseif type == "Divide" then
5354 scaler2 = scaler2 - 0.01 / value * bonuspeed
5355 end
5356 rng.Transparency = rng.Transparency + 0.01 * bonuspeed
5357 rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
5358 end
5359 rng:Destroy()
5360 end))
5361 end
5362
5363 function Eviscerate(dude)
5364 if dude.Name ~= char then
5365 local bgf = IT("BodyGyro", dude.Head)
5366 bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
5367 local val = IT("BoolValue", dude)
5368 val.Name = "IsHit"
5369 local ds = coroutine.wrap(function()
5370 dude:WaitForChild("Head"):BreakJoints()
5371 wait(0.5)
5372 target = nil
5373 coroutine.resume(coroutine.create(function()
5374 for i, v in pairs(dude:GetChildren()) do
5375 if v:IsA("Accessory") then
5376 v:Destroy()
5377 end
5378 if v:IsA("Humanoid") then
5379 v:Destroy()
5380 end
5381 if v:IsA("CharacterMesh") then
5382 v:Destroy()
5383 end
5384 if v:IsA("Model") then
5385 v:Destroy()
5386 end
5387 if v:IsA("Part") or v:IsA("MeshPart") then
5388 for x, o in pairs(v:GetChildren()) do
5389 if o:IsA("Decal") then
5390 o:Destroy()
5391 end
5392 end
5393 coroutine.resume(coroutine.create(function()
5394 v.Material = "Neon"
5395 v.CanCollide = false
5396 local PartEmmit1 = IT("ParticleEmitter", v)
5397 PartEmmit1.LightEmission = 1
5398 PartEmmit1.Texture = "rbxassetid://284205403"
5399 PartEmmit1.Color = ColorSequence.new(maincolor.Color)
5400 PartEmmit1.Rate = 150
5401 PartEmmit1.Lifetime = NumberRange.new(1)
5402 PartEmmit1.Size = NumberSequence.new({
5403 NumberSequenceKeypoint.new(0, 0.75, 0),
5404 NumberSequenceKeypoint.new(1, 0, 0)
5405 })
5406 PartEmmit1.Transparency = NumberSequence.new({
5407 NumberSequenceKeypoint.new(0, 0, 0),
5408 NumberSequenceKeypoint.new(1, 1, 0)
5409 })
5410 PartEmmit1.Speed = NumberRange.new(0, 0)
5411 PartEmmit1.VelocitySpread = 30000
5412 PartEmmit1.Rotation = NumberRange.new(-500, 500)
5413 PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
5414 local BodPoss = IT("BodyPosition", v)
5415 BodPoss.P = 3000
5416 BodPoss.D = 1000
5417 BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
5418 BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
5419 v.Color = maincolor.Color
5420 coroutine.resume(coroutine.create(function()
5421 for i = 0, 49 do
5422 swait(1)
5423 v.Transparency = v.Transparency + 0.08
5424 end
5425 wait(0.5)
5426 PartEmmit1.Enabled = false
5427 wait(3)
5428 v:Destroy()
5429 dude:Destroy()
5430 end))
5431 end))
5432 end
5433 end
5434 end))
5435 end)
5436 ds()
5437 end
5438 end
5439
5440 function FindNearestHead(Position, Distance, SinglePlayer)
5441 if SinglePlayer then
5442 return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
5443 end
5444 local List = {}
5445 for i, v in pairs(workspace:GetChildren()) do
5446 if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
5447 table.insert(List, v)
5448 end
5449 end
5450 return List
5451 end
5452
5453 function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
5454 local type = type
5455 local rng = Instance.new("Part", char)
5456 rng.Anchored = true
5457 rng.BrickColor = color
5458 rng.CanCollide = false
5459 rng.FormFactor = 3
5460 rng.Name = "Ring"
5461 rng.Material = "Neon"
5462 rng.Size = Vector3.new(1, 1, 1)
5463 rng.Transparency = 0
5464 rng.TopSurface = 0
5465 rng.BottomSurface = 0
5466 rng.CFrame = pos
5467 rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
5468 local rngm = Instance.new("SpecialMesh", rng)
5469 rngm.MeshType = MType
5470 rngm.Scale = Vector3.new(x1, y1, z1)
5471 local scaler2 = 1
5472 local speeder = FastSpeed
5473 if type == "Add" then
5474 scaler2 = 1 * value
5475 elseif type == "Divide" then
5476 scaler2 = 1 / value
5477 end
5478 coroutine.resume(coroutine.create(function()
5479 for i = 0, 10 / bonuspeed, 0.1 do
5480 swait()
5481 if type == "Add" then
5482 scaler2 = scaler2 - 0.01 * value / bonuspeed
5483 elseif type == "Divide" then
5484 scaler2 = scaler2 - 0.01 / value * bonuspeed
5485 end
5486 speeder = speeder - 0.01 * FastSpeed * bonuspeed
5487 rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
5488 rng.Transparency = rng.Transparency + 0.01 * bonuspeed
5489 rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
5490 end
5491 rng:Destroy()
5492 end))
5493 end
5494
5495 function SoulSteal(dude)
5496 if dude.Name ~= char then
5497 local bgf = IT("BodyGyro", dude.Head)
5498 bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
5499 local val = IT("BoolValue", dude)
5500 val.Name = "IsHit"
5501 local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
5502 local soulst = coroutine.wrap(function()
5503 local soul = Instance.new("Part",dude)
5504 soul.Size = Vector3.new(1,1,1)
5505 soul.CanCollide = false
5506 soul.Anchored = false
5507 soul.Position = torso.Position
5508 soul.Transparency = 1
5509 local PartEmmit1 = IT("ParticleEmitter", soul)
5510 PartEmmit1.LightEmission = 1
5511 PartEmmit1.Texture = "rbxassetid://569507414"
5512 PartEmmit1.Color = ColorSequence.new(maincolor.Color)
5513 PartEmmit1.Rate = 250
5514 PartEmmit1.Lifetime = NumberRange.new(1.6)
5515 PartEmmit1.Size = NumberSequence.new({
5516 NumberSequenceKeypoint.new(0, 1, 0),
5517 NumberSequenceKeypoint.new(1, 0, 0)
5518 })
5519 PartEmmit1.Transparency = NumberSequence.new({
5520 NumberSequenceKeypoint.new(0, 0, 0),
5521 NumberSequenceKeypoint.new(1, 1, 0)
5522 })
5523 PartEmmit1.Speed = NumberRange.new(0, 0)
5524 PartEmmit1.VelocitySpread = 30000
5525 PartEmmit1.Rotation = NumberRange.new(-360, 360)
5526 PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
5527 local BodPoss = IT("BodyPosition", soul)
5528 BodPoss.P = 3000
5529 BodPoss.D = 1000
5530 BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
5531 BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
5532 wait(1.6)
5533 soul.Touched:connect(function(hit)
5534 if hit.Parent == char then
5535 soul:Destroy()
5536 end
5537 end)
5538 wait(1.2)
5539 while soul do
5540 swait()
5541 PartEmmit1.Color = ColorSequence.new(maincolor.Color)
5542 BodPoss.Position = tors.Position
5543 end
5544 end)
5545 soulst()
5546 end
5547 end
5548
5549
5550
5551
5552 --killer's effects
5553
5554
5555
5556
5557
5558 function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
5559 local Part = Create("Part"){
5560 Parent = Parent,
5561 Reflectance = Reflectance,
5562 Transparency = Transparency,
5563 CanCollide = false,
5564 Locked = true,
5565 BrickColor = BrickColor.new(tostring(BColor)),
5566 Name = Name,
5567 Size = Size,
5568 Material = Material,
5569 }
5570 RemoveOutlines(Part)
5571 return Part
5572 end
5573
5574 function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
5575 local Msh = Create(Mesh){
5576 Parent = Part,
5577 Offset = OffSet,
5578 Scale = Scale,
5579 }
5580 if Mesh == "SpecialMesh" then
5581 Msh.MeshType = MeshType
5582 Msh.MeshId = MeshId
5583 end
5584 return Msh
5585 end
5586
5587
5588
5589 function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
5590 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5591 prt.Anchored = true
5592 prt.CFrame = cframe
5593 local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5594 game:GetService("Debris"):AddItem(prt, 10)
5595 if Type == 1 or Type == nil then
5596 table.insert(Effects, {
5597 prt,
5598 "Block1",
5599 delay,
5600 x3,
5601 y3,
5602 z3,
5603 msh
5604 })
5605 elseif Type == 2 then
5606 table.insert(Effects, {
5607 prt,
5608 "Block2",
5609 delay,
5610 x3,
5611 y3,
5612 z3,
5613 msh
5614 })
5615 end
5616 end
5617
5618 function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5619 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5620 prt.Anchored = true
5621 prt.CFrame = cframe
5622 local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5623 game:GetService("Debris"):AddItem(prt, 10)
5624 table.insert(Effects, {
5625 prt,
5626 "Cylinder",
5627 delay,
5628 x3,
5629 y3,
5630 z3,
5631 msh
5632 })
5633 end
5634
5635 function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5636 local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
5637 prt.Anchored=true
5638 prt.CFrame=cframe
5639 msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
5640 game:GetService("Debris"):AddItem(prt,2)
5641 coroutine.resume(coroutine.create(function(Part,Mesh,num)
5642 for i=0,1,delay do
5643 swait()
5644 Part.Transparency=i
5645 Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
5646 end
5647 Part.Parent=nil
5648 end),prt,msh,(math.random(0,1)+math.random())/5)
5649 end
5650
5651 function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5652 local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
5653 prt.Anchored = true
5654 prt.CFrame = cframe
5655 local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5656 game:GetService("Debris"):AddItem(prt, 10)
5657 table.insert(Effects, {
5658 prt,
5659 "Cylinder",
5660 delay,
5661 x3,
5662 y3,
5663 z3,
5664 msh
5665 })
5666 end
5667
5668 function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5669 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5670 prt.Anchored = true
5671 prt.CFrame = cframe
5672 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5673 game:GetService("Debris"):AddItem(prt, 10)
5674 table.insert(Effects, {
5675 prt,
5676 "Cylinder",
5677 delay,
5678 x3,
5679 y3,
5680 z3,
5681 msh
5682 })
5683 end
5684
5685 function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5686 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5687 prt.Anchored = true
5688 prt.CFrame = cframe
5689 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5690 game:GetService("Debris"):AddItem(prt, 10)
5691 table.insert(Effects, {
5692 prt,
5693 "Cylinder",
5694 delay,
5695 x3,
5696 y3,
5697 z3,
5698 msh
5699 })
5700 end
5701
5702
5703 function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5704 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5705 prt.Anchored = true
5706 prt.CFrame = cframe
5707 local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5708 game:GetService("Debris"):AddItem(prt, 10)
5709 table.insert(Effects, {
5710 prt,
5711 "Cylinder",
5712 delay,
5713 x3,
5714 y3,
5715 z3,
5716 msh
5717 })
5718 end
5719
5720 function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
5721 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
5722 prt.Anchored = true
5723 prt.CFrame = cframe
5724 local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5725 game:GetService("Debris"):AddItem(prt, 10)
5726 table.insert(Effects, {
5727 prt,
5728 "Cylinder",
5729 delay,
5730 x3,
5731 y3,
5732 z3,
5733 msh
5734 })
5735 end
5736
5737 function BreakEffect(brickcolor, cframe, x1, y1, z1)
5738 local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
5739 prt.Anchored = true
5740 prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
5741 local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
5742 local num = math.random(10, 50) / 1000
5743 game:GetService("Debris"):AddItem(prt, 10)
5744 table.insert(Effects, {
5745 prt,
5746 "Shatter",
5747 num,
5748 prt.CFrame,
5749 math.random() - math.random(),
5750 0,
5751 math.random(50, 100) / 100
5752 })
5753 end
5754
5755
5756
5757
5758
5759 so = function(id,par,vol,pit)
5760 coroutine.resume(coroutine.create(function()
5761 local sou = Instance.new("Sound",par or workspace)
5762 sou.Volume=vol
5763 sou.Pitch=pit or 1
5764 sou.SoundId=id
5765 sou:play()
5766 game:GetService("Debris"):AddItem(sou,8)
5767 end))
5768 end
5769
5770
5771 --end of killer's effects
5772
5773
5774 function FaceMouse()
5775 local Cam = workspace.CurrentCamera
5776 return {
5777 CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
5778 Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
5779 }
5780 end
5781 -------------------------------------------------------
5782 --End Effect Function--
5783 -------------------------------------------------------
5784 function Cso(ID, PARENT, VOLUME, PITCH)
5785 local NSound = nil
5786 coroutine.resume(coroutine.create(function()
5787 NSound = IT("Sound", PARENT)
5788 NSound.Volume = VOLUME
5789 NSound.Pitch = PITCH
5790 NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
5791 swait()
5792 NSound:play()
5793 game:GetService("Debris"):AddItem(NSound, 10)
5794 end))
5795 return NSound
5796 end
5797 function CameraEnshaking(Length, Intensity)
5798 coroutine.resume(coroutine.create(function()
5799 local intensity = 1 * Intensity
5800 local rotM = 0.01 * Intensity
5801 for i = 0, Length, 0.1 do
5802 swait()
5803 intensity = intensity - 0.05 * Intensity / Length
5804 rotM = rotM - 5.0E-4 * Intensity / Length
5805 hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
5806 cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
5807 end
5808 hum.CameraOffset = Vector3.new(0, 0, 0)
5809 end))
5810 end
5811 -------------------------------------------------------
5812 --End Important Functions--
5813 -------------------------------------------------------
5814
5815
5816 -------------------------------------------------------
5817 --Start Customization--
5818 -------------------------------------------------------
5819 local Player_Size = 1
5820 if Player_Size ~= 1 then
5821 root.Size = root.Size * Player_Size
5822 tors.Size = tors.Size * Player_Size
5823 hed.Size = hed.Size * Player_Size
5824 ra.Size = ra.Size * Player_Size
5825 la.Size = la.Size * Player_Size
5826 rl.Size = rl.Size * Player_Size
5827 ll.Size = ll.Size * Player_Size
5828 ----------------------------------------------------------------------------------
5829 rootj.Parent = root
5830 neck.Parent = tors
5831 RW.Parent = tors
5832 LW.Parent = tors
5833 RH.Parent = tors
5834 LH.Parent = tors
5835 ----------------------------------------------------------------------------------
5836 rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
5837 rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
5838 neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
5839 neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
5840 RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
5841 LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
5842 ----------------------------------------------------------------------------------
5843 RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
5844 LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
5845 RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
5846 LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
5847 --hat.Parent = Character
5848 end
5849 ----------------------------------------------------------------------------------
5850 local SONG = 900817147 --900817147
5851 local SONG2 = 0
5852 local Music = Instance.new("Sound",tors)
5853 Music.Volume = 0.7
5854 Music.Looped = true
5855 Music.Pitch = 1 --Pitcher
5856 ----------------------------------------------------------------------------------
5857 local equipped = false
5858 local idle = 0
5859 local change = 1
5860 local val = 0
5861 local toim = 0
5862 local idleanim = 0.4
5863 local sine = 0
5864 local Sit = 1
5865 local attacktype = 1
5866 local attackdebounce = false
5867 local euler = CFrame.fromEulerAnglesXYZ
5868 local cankick = false
5869 ----------------------------------------------------------------------------------
5870 hum.WalkSpeed = 8
5871 hum.JumpPower = 57
5872--[[
5873local ROBLOXIDLEANIMATION = IT("Animation")
5874ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
5875ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
5876]]
5877 local ANIMATOR = hum.Animator
5878 local ANIMATE = char.Animate
5879 ANIMATE.Parent = nil
5880 ANIMATOR.Parent = nil
5881 -------------------------------------------------------
5882 --End Customization--
5883 -------------------------------------------------------
5884
5885
5886 -------------------------------------------------------
5887 --Start Attacks N Stuff--
5888 -------------------------------------------------------
5889
5890 --pls be proud mak i did my best
5891
5892
5893
5894 function attackone()
5895
5896 attack = true
5897
5898 for i = 0, 1.35, 0.1 do
5899 swait()
5900 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4-2*i), math.rad(4+2*i), math.rad(-40-11*i)), 0.2)
5901 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
5902 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.2) * angles(math.rad(90+4*i), math.rad(-43), math.rad(16+6*i)), 0.3)
5903 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
5904 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
5905 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
5906 end
5907
5908 so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
5909
5910
5911 con5=ra.Touched:connect(function(hit)
5912 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5913 if attackdebounce == false then
5914 attackdebounce = true
5915
5916 so("http://roblox.com/asset/?id=636494529",ra,2,1)
5917
5918 RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
5919 RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
5920 SphereEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
5921
5922
5923 coroutine.resume(coroutine.create(function()
5924 for i = 0,1,0.1 do
5925 swait()
5926 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
5927 end
5928 end))
5929
5930
5931 wait(0.34)
5932 attackdebounce = false
5933
5934 end
5935 end
5936 end)
5937 for i = 0, 1.12, 0.1 do
5938 swait()
5939 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
5940 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
5941 RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4)
5942 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35)
5943 RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
5944 LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
5945 end
5946
5947 con5:Disconnect()
5948 attack = false
5949
5950 end
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963 function attacktwo()
5964
5965 attack = true
5966
5967 for i = 0, 1.35, 0.1 do
5968 swait()
5969 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
5970 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
5971 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
5972 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3)
5973 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
5974 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
5975 end
5976
5977 so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
5978
5979
5980 con5=la.Touched:connect(function(hit)
5981 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5982 if attackdebounce == false then
5983 attackdebounce = true
5984
5985 so("http://roblox.com/asset/?id=636494529",la,2,1)
5986
5987 RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
5988 RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
5989 SphereEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
5990
5991
5992 coroutine.resume(coroutine.create(function()
5993 for i = 0,1,0.1 do
5994 swait()
5995 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
5996 end
5997 end))
5998
5999
6000 wait(0.34)
6001 attackdebounce = false
6002
6003 end
6004 end
6005 end)
6006
6007
6008
6009
6010 for i = 0, 1.12, 0.1 do
6011 swait()
6012 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
6013 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
6014 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4)
6015 LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35)
6016 RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
6017 LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
6018 end
6019
6020 con5:Disconnect()
6021 attack = false
6022
6023 end
6024
6025
6026
6027
6028
6029 function attackthree()
6030
6031 attack = true
6032
6033
6034 for i = 0, 1.14, 0.1 do
6035 swait()
6036 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
6037 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
6038 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
6039 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3)
6040 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
6041 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
6042 end
6043
6044 con5=hum.Touched:connect(function(hit)
6045 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6046 if attackdebounce == false then
6047 attackdebounce = true
6048
6049 so("http://roblox.com/asset/?id=636494529",ll,2,1)
6050
6051 RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6052 RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6053 SphereEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6054
6055
6056 coroutine.resume(coroutine.create(function()
6057 for i = 0,1,0.1 do
6058 swait()
6059 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
6060 end
6061 end))
6062
6063
6064 wait(0.34)
6065 attackdebounce = false
6066
6067 end
6068 end
6069 end)
6070
6071 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6072 for i = 0, 9.14, 0.3 do
6073 swait()
6074 BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6075 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-54*i)), 0.35)
6076 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6077 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6078 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6079 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
6080 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
6081 end
6082 attack = false
6083 con5:disconnect()
6084 end
6085
6086
6087
6088 function attackfour()
6089
6090 attack = true
6091 so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
6092 WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
6093 for i = 0, 5.14, 0.1 do
6094 swait()
6095 SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6096 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24+4*i), math.rad(0), math.rad(0)), 0.2)
6097 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
6098 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(36+4*i)), 0.3)
6099 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(-36-4*i)), 0.3)
6100 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28+4*i)), 0.2)
6101 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34-4*i)), 0.2)
6102 end
6103 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6104 local velo=Instance.new("BodyVelocity")
6105 velo.velocity=vt(0,25,0)
6106 velo.P=8000
6107 velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
6108 velo.Parent=root
6109 game:GetService("Debris"):AddItem(velo,0.7)
6110
6111
6112
6113 con5=hum.Touched:connect(function(hit)
6114 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6115 if attackdebounce == false then
6116 attackdebounce = true
6117 coroutine.resume(coroutine.create(function()
6118 for i = 0,1.5,0.1 do
6119 swait()
6120 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
6121 end
6122 end))
6123 so("http://roblox.com/asset/?id=636494529",rl,2,1)
6124 RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6125 RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6126 SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6127
6128
6129
6130 coroutine.resume(coroutine.create(function()
6131 for i = 0,1,0.1 do
6132 swait()
6133 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8)),0.44)
6134 end
6135 end))
6136
6137
6138 wait(0.14)
6139 attackdebounce = false
6140 end
6141 end
6142 end)
6143
6144 for i = 0, 5.11, 0.15 do
6145 swait()
6146 BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6147 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.2*i) * angles(math.rad(-10-80*i), math.rad(0), math.rad(0)), 0.42)
6148 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
6149 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
6150 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
6151 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
6152 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
6153 end
6154
6155
6156 attack = false
6157 con5:disconnect()
6158 end
6159
6160
6161
6162
6163
6164 local cooldown = false
6165 function quickkick()
6166 attack = true
6167
6168
6169 con5=hum.Touched:connect(function(hit)
6170 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6171 if attackdebounce == false then
6172 attackdebounce = true
6173
6174 coroutine.resume(coroutine.create(function()
6175 for i = 0,1.5,0.1 do
6176 swait()
6177 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
6178 end
6179 end))
6180
6181 so("http://roblox.com/asset/?id=636494529",rl,2,1)
6182 RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6183 RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6184 SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6185
6186
6187
6188 coroutine.resume(coroutine.create(function()
6189 for i = 0,1,0.1 do
6190 swait()
6191 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8)),0.44)
6192 end
6193 end))
6194
6195
6196 wait(0.08)
6197 attackdebounce = false
6198 end
6199 end
6200 end)
6201
6202 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6203 for i = 0, 11.14, 0.3 do
6204 swait()
6205 root.Velocity = root.CFrame.lookVector * 30
6206 BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6207 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-90*i)), 0.35)
6208 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6209 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6210 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6211 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
6212 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
6213 end
6214 attack = false
6215 con5:disconnect()
6216 end
6217
6218
6219
6220
6221
6222
6223
6224
6225 function Taunt()
6226 attack = true
6227 hum.WalkSpeed = 0
6228 Cso("1535995570", hed, 8.45, 1)
6229 for i = 0, 8.2, 0.1 do
6230 swait()
6231 hum.WalkSpeed = 0
6232 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
6233 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2)
6234 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
6235 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
6236 RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1)
6237 LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1)
6238 end
6239 attack = false
6240 hum.WalkSpeed = 8
6241 end
6242
6243
6244
6245
6246
6247
6248
6249 function Hyperkickcombo()
6250
6251 attack = true
6252 so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
6253 WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
6254 for i = 0, 7.14, 0.1 do
6255 swait()
6256 SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6257 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
6258 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
6259 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
6260 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
6261 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
6262 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
6263 end
6264 local Cracking = Cso("292536356", tors, 10, 1)
6265 for i = 0, 7.14, 0.1 do
6266 swait()
6267 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6268 Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Lime green", 0, "Sphere")
6269 WaveEffect(BrickColor.new("Lime green"), root.CFrame * CFrame.new(0, -6, 0) * euler(0, math.random(-25, 25), 0), 1, 1, 1, 1, 0.2, 1, 0.05)
6270 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6271 SphereEffect(BrickColor.new("Lime green"),ll.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6272 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
6273 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
6274 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
6275 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
6276 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
6277 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
6278 end
6279 Cracking.Playing = false
6280 so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
6281 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6282 SphereEffect(BrickColor.new("Lime green"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
6283 local velo=Instance.new("BodyVelocity")
6284 velo.velocity=vt(0,27,0)
6285 velo.P=11000
6286 velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
6287 velo.Parent=root
6288 game:GetService("Debris"):AddItem(velo,1.24)
6289
6290
6291
6292 con5=hum.Touched:connect(function(hit)
6293 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6294 if attackdebounce == false then
6295 attackdebounce = true
6296 coroutine.resume(coroutine.create(function()
6297 for i = 0,1.5,0.1 do
6298 swait()
6299 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
6300 end
6301 end))
6302 so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
6303 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6304 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6305 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6306
6307
6308
6309 coroutine.resume(coroutine.create(function()
6310 for i = 0,1,0.1 do
6311 swait()
6312 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6313 end
6314 end))
6315
6316
6317 wait(0.09)
6318 attackdebounce = false
6319 end
6320 end
6321 end)
6322
6323 for i = 0, 9.11, 0.2 do
6324 swait()
6325 BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6326 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.12*i) * angles(math.rad(-10-95*i), math.rad(0), math.rad(0)), 0.42)
6327 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
6328 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
6329 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
6330 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
6331 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
6332 end
6333
6334
6335
6336
6337 con5:disconnect()
6338
6339
6340
6341
6342
6343
6344 con5=hum.Touched:connect(function(hit)
6345 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6346 if attackdebounce == false then
6347 attackdebounce = true
6348 coroutine.resume(coroutine.create(function()
6349 for i = 0,1.5,0.1 do
6350 swait()
6351 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
6352 end
6353 end))
6354 so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
6355 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6356 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6357 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6358
6359
6360
6361 coroutine.resume(coroutine.create(function()
6362 for i = 0,1,0.1 do
6363 swait()
6364 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6365 end
6366 end))
6367
6368
6369 wait(0.08)
6370 attackdebounce = false
6371 end
6372 end
6373 end)
6374
6375
6376
6377 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6378 for i = 0, 9.14, 0.3 do
6379 swait()
6380 root.Velocity = root.CFrame.lookVector * 20
6381 BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6382 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(53), math.rad(8), math.rad(0-54*i)), 0.35)
6383 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6384 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6385 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6386 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
6387 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
6388 end
6389
6390
6391
6392 con5:disconnect()
6393
6394
6395
6396 con5=hum.Touched:connect(function(hit)
6397 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6398 if attackdebounce == false then
6399 attackdebounce = true
6400 coroutine.resume(coroutine.create(function()
6401 for i = 0,1.5,0.1 do
6402 swait()
6403 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
6404 end
6405 end))
6406 so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
6407 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6408 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6409 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6410
6411
6412
6413 coroutine.resume(coroutine.create(function()
6414 for i = 0,1,0.1 do
6415 swait()
6416 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6417 end
6418 end))
6419
6420
6421 wait(0.05)
6422 attackdebounce = false
6423 end
6424 end
6425 end)
6426
6427
6428 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6429 for i = 0, 15.14, 0.32 do
6430 swait()
6431 root.Velocity = root.CFrame.lookVector * 20
6432 BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6433 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-50*i), math.rad(8+20*i), math.rad(0-90*i)), 0.35)
6434 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6435 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6436 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6437 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
6438 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-4*i)), 0.35)
6439 end
6440
6441 attack = false
6442 con5:disconnect()
6443
6444 end
6445
6446
6447
6448
6449
6450 local ultra = false
6451
6452 function Galekicks()
6453
6454 attack = true
6455 so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
6456 for i = 0, 1.65, 0.1 do
6457 swait()
6458 root.Velocity = root.CFrame.lookVector * 0
6459 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6460 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6461 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6462 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6463 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6464 RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
6465 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6466 end
6467
6468
6469 for i = 1, 17 do
6470
6471 con5=hum.Touched:connect(function(hit)
6472 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6473 if attackdebounce == false then
6474 attackdebounce = true
6475 coroutine.resume(coroutine.create(function()
6476 for i = 0,1.5,0.1 do
6477 swait()
6478 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
6479 end
6480 end))
6481 so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
6482 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6483 RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6484 SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6485
6486
6487
6488 coroutine.resume(coroutine.create(function()
6489 for i = 0,1,0.1 do
6490 swait()
6491 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6492 end
6493 end))
6494
6495
6496 wait(0.05)
6497 attackdebounce = false
6498 end
6499 end
6500 end)
6501
6502 for i = 0, .1, 0.2 do
6503 swait()
6504 BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
6505 root.Velocity = root.CFrame.lookVector * 10
6506 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
6507 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
6508 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
6509 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
6510 RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
6511 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
6512 end
6513
6514 so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
6515
6516 for i = 0, 0.4, 0.2 do
6517 swait()
6518 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6519 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6520 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6521 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6522 RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
6523 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6524 end
6525 con5:disconnect()
6526 end
6527
6528
6529 u = mouse.KeyDown:connect(function(key)
6530 if key == 'r' and combohits >= 150 then
6531 ultra = true
6532 SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,15,15,15,0.04)
6533 end
6534 end)
6535 wait(0.3)
6536 if ultra == true then
6537 combohits = 0
6538 wait(0.1)
6539 for i = 0, 1.65, 0.1 do
6540 swait()
6541 root.Velocity = root.CFrame.lookVector * 0
6542 SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6543 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6544 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6545 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6546 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6547 RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
6548 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6549 end
6550
6551
6552 so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
6553
6554 for i = 1, 65 do
6555 --Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Really red", 0, "Brick")
6556 con5=hum.Touched:connect(function(hit)
6557 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6558 if attackdebounce == false then
6559 attackdebounce = true
6560 coroutine.resume(coroutine.create(function()
6561 for i = 0,1.5,0.1 do
6562 swait()
6563 hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
6564 end
6565 end))
6566 so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
6567 RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6568 RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6569 SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6570
6571
6572
6573 coroutine.resume(coroutine.create(function()
6574 for i = 0,1,0.1 do
6575 swait()
6576 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6577 end
6578 end))
6579
6580
6581 wait(0.05)
6582 attackdebounce = false
6583 end
6584 end
6585 end)
6586
6587 for i = 0, .03, 0.1 do
6588 swait()
6589 BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
6590 root.Velocity = root.CFrame.lookVector * 10
6591 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
6592 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
6593 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
6594 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
6595 RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
6596 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
6597 end
6598
6599 so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
6600
6601 for i = 0, 0.07, 0.1 do
6602 swait()
6603 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6604 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6605 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6606 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6607 RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
6608 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6609 end
6610 con5:disconnect()
6611 end
6612
6613 for i = 0, 1.65, 0.1 do
6614 swait()
6615 root.Velocity = root.CFrame.lookVector * 0
6616 SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
6617 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6618 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6619 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6620 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6621 RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
6622 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6623 end
6624
6625 con5=hum.Touched:connect(function(hit)
6626 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6627 if attackdebounce == false then
6628 attackdebounce = true
6629 coroutine.resume(coroutine.create(function()
6630 for i = 0,1.5,0.1 do
6631 swait()
6632 --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
6633 end
6634 end))
6635 so("http://roblox.com/asset/?id=636494529",rl,2,.63)
6636 RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6637 RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
6638 SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
6639
6640
6641 coroutine.resume(coroutine.create(function()
6642 for i = 0,1,0.1 do
6643 swait()
6644 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
6645 end
6646 end))
6647
6648
6649 wait(0.05)
6650 attackdebounce = false
6651 end
6652 end
6653 end)
6654
6655 so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
6656 SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
6657
6658 for i = 0, 2, 0.1 do
6659 swait()
6660 --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
6661 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
6662 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
6663 RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
6664 LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
6665 RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
6666 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
6667 end
6668 SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
6669
6670 wait(0.25)
6671 con5:Disconnect()
6672
6673
6674
6675
6676 con5=hum.Touched:connect(function(hit)
6677 if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6678 if attackdebounce == false then
6679 attackdebounce = true
6680
6681 so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
6682
6683 RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
6684 RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
6685 SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
6686 SpecialEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
6687 SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,5,18,5,0.04)
6688 WaveEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,1.5,16,1.5,0.04)
6689
6690 coroutine.resume(coroutine.create(function()
6691 for i = 0,1,0.1 do
6692 swait()
6693 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
6694 end
6695 end))
6696
6697 wait(0.06)
6698 attackdebounce = false
6699
6700 end
6701 end
6702 end)
6703
6704 coroutine.resume(coroutine.create(function()
6705 while ultra == true do
6706 swait()
6707 root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
6708 end
6709 end))
6710
6711
6712 so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
6713 for i = 1,3 do
6714 for i = 0, 9.14, 0.45 do
6715 swait()
6716 root.Velocity = root.CFrame.lookVector * 30
6717 BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6718 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-94*i)), 0.35)
6719 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6720 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6721 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6722 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
6723 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
6724 end
6725 end
6726
6727
6728 for i = 1,3 do
6729 for i = 0, 11.14, 0.45 do
6730 swait()
6731 root.Velocity = root.CFrame.lookVector * 30
6732 BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
6733 rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-110*i)), 0.35)
6734 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
6735 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
6736 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
6737 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35)
6738 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-34-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
6739 end
6740
6741
6742
6743 end
6744 so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
6745 con5:disconnect()
6746
6747
6748 end -- combo hit end
6749 attack = false
6750 ultra = false
6751 u:disconnect()
6752
6753 end
6754
6755
6756
6757
6758 -------------------------------------------------------
6759 --End Attacks N Stuff--
6760 -------------------------------------------------------
6761 mouse.KeyDown:connect(function(key)
6762 if string.byte(key) == 48 then
6763 Swing = 2
6764 hum.WalkSpeed = 24.82
6765 end
6766 end)
6767 mouse.KeyUp:connect(function(key)
6768 if string.byte(key) == 48 then
6769 Swing = 1
6770 hum.WalkSpeed = 8
6771 end
6772 end)
6773
6774
6775
6776
6777
6778
6779
6780 mouse.Button1Down:connect(function()
6781 if attack==false then
6782 if attacktype==1 then
6783 attack=true
6784 attacktype=2
6785 attackone()
6786 elseif attacktype==2 then
6787 attack=true
6788 attacktype=3
6789 attacktwo()
6790 elseif attacktype==3 then
6791 attack=true
6792 attacktype=4
6793 attackthree()
6794 elseif attacktype==4 then
6795 attack=true
6796 attacktype=1
6797 attackfour()
6798 end
6799 end
6800 end)
6801
6802
6803
6804
6805 mouse.KeyDown:connect(function(key)
6806 if key == 'e' and attack == false and cankick == true and cooldown == false then
6807 quickkick()
6808 cooldown = true
6809
6810 coroutine.resume(coroutine.create(function()
6811 wait(2)
6812 cooldown = false
6813 end))
6814
6815
6816
6817 end
6818 end)
6819
6820
6821
6822
6823
6824
6825
6826
6827 mouse.KeyDown:connect(function(key)
6828 if attack == false then
6829 if key == 't' then
6830 Taunt()
6831 elseif key == 'f' then
6832 Hyperkickcombo()
6833 elseif key == 'r' then
6834 Galekicks()
6835 end
6836 end
6837 end)
6838
6839 -------------------------------------------------------
6840 --Start Animations--
6841 -------------------------------------------------------
6842 print("By Makhail07 and KillerDarkness0105")
6843 print("Basic Animations by Makhail07")
6844 print("Attack Animations by KillerDarkness0105")
6845 print("This is pretty much our final script together")
6846 print("--------------------------------")
6847 print("Attacks")
6848 print("E in air: Quick Kicks")
6849 print("Left Mouse: 4 click combo")
6850 print("F: Hyper Kicks")
6851 print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
6852 print("--------------------------------")
6853 while true do
6854 swait()
6855 sine = sine + change
6856 local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
6857 local velderp = root.Velocity.y
6858 hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
6859
6860 if hitfloor == nil then
6861 cankick = true
6862 else
6863 cankick = false
6864 end
6865
6866
6867 if equipped == true or equipped == false then
6868 if attack == false then
6869 idle = idle + 1
6870 else
6871 idle = 0
6872 end
6873 if 1 < root.Velocity.y and hitfloor == nil then
6874 Anim = "Jump"
6875 if attack == false then
6876 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
6877 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
6878 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
6879 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
6880 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
6881 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
6882 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
6883 end
6884 elseif -1 > root.Velocity.y and hitfloor == nil then
6885 Anim = "Fall"
6886 if attack == false then
6887 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
6888 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
6889 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
6890 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
6891 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
6892 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
6893 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
6894 end
6895 elseif torvel < 1 and hitfloor ~= nil then
6896 Anim = "Idle"
6897 change = 1
6898 if attack == false then
6899 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
6900 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.1)
6901 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1)
6902 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1)
6903 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1)
6904 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
6905 LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
6906 end
6907 elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
6908 Anim = "Walk"
6909 change = 1
6910 if attack == false then
6911 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
6912 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
6913 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
6914 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
6915 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
6916 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
6917 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
6918 end
6919 elseif torvel >= 22 and hitfloor ~= nil then
6920 Anim = "Sprint"
6921 change = 1.35
6922 if attack == false then
6923 hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
6924 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
6925 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
6926 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
6927 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
6928 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
6929 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
6930 end
6931 end
6932 end
6933 Music.SoundId = "rbxassetid://"..SONG
6934 Music.Looped = true
6935 Music.Pitch = 1
6936 Music.Volume = 0.7
6937 Music.Parent = tors
6938 Music:Resume()
6939 if 0 < #Effects then
6940 for e = 1, #Effects do
6941 if Effects[e] ~= nil then
6942 local Thing = Effects[e]
6943 if Thing ~= nil then
6944 local Part = Thing[1]
6945 local Mode = Thing[2]
6946 local Delay = Thing[3]
6947 local IncX = Thing[4]
6948 local IncY = Thing[5]
6949 local IncZ = Thing[6]
6950 if 1 >= Thing[1].Transparency then
6951 if Thing[2] == "Block1" then
6952 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
6953 local Mesh = Thing[1].Mesh
6954 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
6955 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6956 elseif Thing[2] == "Block2" then
6957 Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
6958 local Mesh = Thing[7]
6959 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
6960 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6961 elseif Thing[2] == "Block3" then
6962 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
6963 local Mesh = Thing[7]
6964 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
6965 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6966 elseif Thing[2] == "Cylinder" then
6967 local Mesh = Thing[1].Mesh
6968 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
6969 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6970 elseif Thing[2] == "Blood" then
6971 local Mesh = Thing[7]
6972 Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
6973 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
6974 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6975 elseif Thing[2] == "Elec" then
6976 local Mesh = Thing[1].Mesh
6977 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
6978 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6979 elseif Thing[2] == "Disappear" then
6980 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6981 elseif Thing[2] == "Shatter" then
6982 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
6983 Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
6984 Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
6985 Thing[6] = Thing[6] + Thing[5]
6986 end
6987 else
6988 Part.Parent = nil
6989 table.remove(Effects, e)
6990 end
6991 end
6992 end
6993 end
6994 end
6995 end
6996 -------------------------------------------------------
6997 --End Animations And Script--
6998 -------------------------------------------------------
6999end)
7000
7001OwlHub.Name = "OwlHub"
7002OwlHub.Parent = main
7003OwlHub.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
7004OwlHub.Position = UDim2.new(0.363636374, 0, 0.684684634, 0)
7005OwlHub.Size = UDim2.new(0, 133, 0, 50)
7006OwlHub.Font = Enum.Font.SourceSansBold
7007OwlHub.Text = "Owl Hub"
7008OwlHub.TextColor3 = Color3.fromRGB(255, 255, 255)
7009OwlHub.TextScaled = true
7010OwlHub.TextSize = 14.000
7011OwlHub.TextWrapped = true
7012OwlHub.MouseButton1Down:connect(function()
7013 loadstring(game:HttpGet("https://pastebin.com/raw/GtudyLtE"))();
7014end)
7015
7016OrHub.Name = "OrHub"
7017OrHub.Parent = main
7018OrHub.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
7019OrHub.Position = UDim2.new(0.685144126, 0, 0.684684634, 0)
7020OrHub.Size = UDim2.new(0, 133, 0, 50)
7021OrHub.Font = Enum.Font.SourceSansBold
7022OrHub.Text = "OrHub"
7023OrHub.TextColor3 = Color3.fromRGB(255, 255, 255)
7024OrHub.TextScaled = true
7025OrHub.TextSize = 14.000
7026OrHub.TextWrapped = true
7027OrHub.MouseButton1Down:connect(function()
7028 game.StarterGui:SetCore("SendNotification", {
7029 Title = "Drag Fixed";
7030 Text = "You are able to drag now";
7031 Icon = "";
7032 Duration = 2;
7033 })
7034 wait(.6)
7035 local RobloxGui = Instance.new("ScreenGui")
7036 local Main = Instance.new("Frame")
7037 local Top = Instance.new("Frame")
7038 local Icon = Instance.new("TextLabel")
7039 local UICorner = Instance.new("UICorner")
7040 local Icon_2 = Instance.new("TextLabel")
7041 local Holder = Instance.new("Frame")
7042 local HomeBTN = Instance.new("TextButton")
7043 local ScriptsBTN = Instance.new("TextButton")
7044 local CreditsBTN = Instance.new("TextButton")
7045 local HomePage = Instance.new("Frame")
7046 local Text = Instance.new("TextLabel")
7047 local Text_2 = Instance.new("TextLabel")
7048 local Text_3 = Instance.new("TextLabel")
7049 local Text_4 = Instance.new("TextLabel")
7050 local Text_5 = Instance.new("TextLabel")
7051 local Text_6 = Instance.new("TextLabel")
7052 local ScriptsPage = Instance.new("Frame")
7053 local KillbotV3 = Instance.new("TextButton")
7054 local SmugDance = Instance.new("TextButton")
7055 local OrbitHats = Instance.new("TextButton")
7056 local RetardDance = Instance.new("TextButton")
7057 local IPloggerTroll = Instance.new("TextButton")
7058 local CarsonDance = Instance.new("TextButton")
7059 local CarDrift = Instance.new("TextButton")
7060 local Cop = Instance.new("TextButton")
7061 local OrangeJustice = Instance.new("TextButton")
7062 local Spider = Instance.new("TextButton")
7063 local Stand = Instance.new("TextButton")
7064 local AntiAFK = Instance.new("TextButton")
7065 local HenryDance = Instance.new("TextButton")
7066 local Nameless = Instance.new("TextButton")
7067 local CreditsPage = Instance.new("Frame")
7068 local Text_7 = Instance.new("TextLabel")
7069 local Text_8 = Instance.new("TextLabel")
7070 local Text_9 = Instance.new("TextLabel")
7071 local Text_10 = Instance.new("TextLabel")
7072 local Text_11 = Instance.new("TextLabel")
7073 local HDroblox = Instance.new("TextButton")
7074
7075 --Properties:
7076
7077 RobloxGui.Name = "RobloxGui"
7078 RobloxGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
7079 RobloxGui.ResetOnSpawn = false
7080
7081 Main.Name = "Main"
7082 Main.Parent = RobloxGui
7083 Main.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
7084 Main.BorderSizePixel = 0
7085 Main.Position = UDim2.new(0.290410727, 0, 0.296096802, 0)
7086 Main.Size = UDim2.new(0, 416, 0, 257)
7087 Main.Visible = false
7088 wait(1.2)
7089 game.StarterGui:SetCore("SendNotification", {
7090 Title = "OrPlayz Hub V3";
7091 Text = "Whitelisted!";
7092 Icon = "";
7093 Duration = 2;
7094 })
7095 Main.Visible = true
7096
7097 Top.Name = "Top"
7098 Top.Parent = Main
7099 Top.BackgroundColor3 = Color3.fromRGB(0, 156, 156)
7100 Top.BorderSizePixel = 0
7101 Top.Position = UDim2.new(-0.00054154027, 0, 0, 0)
7102 Top.Size = UDim2.new(0, 416, 0, 38)
7103
7104 Icon.Name = "Icon"
7105 Icon.Parent = Main
7106 Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7107 Icon.Position = UDim2.new(0.027279973, 0, 0.0194552392, 0)
7108 Icon.Size = UDim2.new(0, 46, 0, 28)
7109 Icon.Font = Enum.Font.GothamBlack
7110 Icon.Text = "Or"
7111 Icon.TextColor3 = Color3.fromRGB(0, 156, 156)
7112 Icon.TextSize = 18.000
7113
7114 UICorner.CornerRadius = UDim.new(0.300000012, 0)
7115 UICorner.Parent = Icon
7116
7117 Icon_2.Name = "Icon"
7118 Icon_2.Parent = Icon
7119 Icon_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7120 Icon_2.BackgroundTransparency = 1.000
7121 Icon_2.Position = UDim2.new(1.14361012, 0, 0.133999959, 0)
7122 Icon_2.Size = UDim2.new(0, 29, 0, 20)
7123 Icon_2.Font = Enum.Font.GothamBlack
7124 Icon_2.Text = "Hub"
7125 Icon_2.TextColor3 = Color3.fromRGB(255, 255, 255)
7126 Icon_2.TextSize = 18.000
7127
7128 Holder.Name = "Holder"
7129 Holder.Parent = Main
7130 Holder.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
7131 Holder.BorderSizePixel = 0
7132 Holder.Position = UDim2.new(0.021634616, 0, 0.182879373, 0)
7133 Holder.Size = UDim2.new(0, 397, 0, 200)
7134
7135 HomeBTN.Name = "HomeBTN"
7136 HomeBTN.Parent = Holder
7137 HomeBTN.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7138 HomeBTN.BorderSizePixel = 0
7139 HomeBTN.Position = UDim2.new(0.00503778318, 0, 0, 0)
7140 HomeBTN.Size = UDim2.new(0, 128, 0, 25)
7141 HomeBTN.Font = Enum.Font.GothamSemibold
7142 HomeBTN.Text = "Home"
7143 HomeBTN.TextColor3 = Color3.fromRGB(255, 255, 255)
7144 HomeBTN.TextSize = 14.000
7145
7146 ScriptsBTN.Name = "ScriptsBTN"
7147 ScriptsBTN.Parent = Holder
7148 ScriptsBTN.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7149 ScriptsBTN.BorderSizePixel = 0
7150 ScriptsBTN.Position = UDim2.new(0.337531477, 0, 0, 0)
7151 ScriptsBTN.Size = UDim2.new(0, 128, 0, 25)
7152 ScriptsBTN.Font = Enum.Font.GothamSemibold
7153 ScriptsBTN.Text = "Scripts"
7154 ScriptsBTN.TextColor3 = Color3.fromRGB(255, 255, 255)
7155 ScriptsBTN.TextSize = 14.000
7156
7157 CreditsBTN.Name = "CreditsBTN"
7158 CreditsBTN.Parent = Holder
7159 CreditsBTN.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7160 CreditsBTN.BorderSizePixel = 0
7161 CreditsBTN.Position = UDim2.new(0.677581906, 0, 0, 0)
7162 CreditsBTN.Size = UDim2.new(0, 128, 0, 25)
7163 CreditsBTN.Font = Enum.Font.GothamSemibold
7164 CreditsBTN.Text = "Credits"
7165 CreditsBTN.TextColor3 = Color3.fromRGB(255, 255, 255)
7166 CreditsBTN.TextSize = 14.000
7167
7168 HomePage.Name = "HomePage"
7169 HomePage.Parent = Holder
7170 HomePage.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
7171 HomePage.BackgroundTransparency = 1.000
7172 HomePage.BorderSizePixel = 0
7173 HomePage.Position = UDim2.new(0.00400233828, 0, 0, 0)
7174 HomePage.Size = UDim2.new(0, 397, 0, 202)
7175 HomePage.Visible = false
7176
7177 Text.Name = "Text"
7178 Text.Parent = HomePage
7179 Text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7180 Text.BackgroundTransparency = 1.000
7181 Text.BorderSizePixel = 0
7182 Text.Position = UDim2.new(0.0251889173, 0, 0.17326732, 0)
7183 Text.Size = UDim2.new(0, 200, 0, 17)
7184 Text.Font = Enum.Font.GothamSemibold
7185 Text.Text = "OrHub Version 3.0"
7186 Text.TextColor3 = Color3.fromRGB(255, 255, 255)
7187 Text.TextSize = 14.000
7188 Text.TextXAlignment = Enum.TextXAlignment.Left
7189
7190 Text_2.Name = "Text"
7191 Text_2.Parent = HomePage
7192 Text_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7193 Text_2.BackgroundTransparency = 1.000
7194 Text_2.BorderSizePixel = 0
7195 Text_2.Position = UDim2.new(0.0251889173, 0, 0.257425755, 0)
7196 Text_2.Size = UDim2.new(0, 368, 0, 17)
7197 Text_2.Font = Enum.Font.GothamSemibold
7198 Text_2.Text = "Number of scripts: null123"
7199 Text_2.TextColor3 = Color3.fromRGB(255, 255, 255)
7200 Text_2.TextSize = 14.000
7201 Text_2.TextXAlignment = Enum.TextXAlignment.Left
7202
7203 Text_3.Name = "Text"
7204 Text_3.Parent = HomePage
7205 Text_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7206 Text_3.BackgroundTransparency = 1.000
7207 Text_3.BorderSizePixel = 0
7208 Text_3.Position = UDim2.new(0.0327455923, 0, 0.866336703, 0)
7209 Text_3.Size = UDim2.new(0, 368, 0, 17)
7210 Text_3.Font = Enum.Font.GothamSemibold
7211 Text_3.Text = "Thanks for buying OrHub!"
7212 Text_3.TextColor3 = Color3.fromRGB(255, 255, 255)
7213 Text_3.TextSize = 14.000
7214 Text_3.TextWrapped = true
7215
7216 Text_4.Name = "Text"
7217 Text_4.Parent = HomePage
7218 Text_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7219 Text_4.BackgroundTransparency = 1.000
7220 Text_4.BorderSizePixel = 0
7221 Text_4.Position = UDim2.new(0.0251889173, 0, 0.341584206, 0)
7222 Text_4.Size = UDim2.new(0, 368, 0, 17)
7223 Text_4.Font = Enum.Font.GothamSemibold
7224 Text_4.Text = "Discord: discord.gg/66A6VVepex"
7225 Text_4.TextColor3 = Color3.fromRGB(255, 255, 255)
7226 Text_4.TextSize = 14.000
7227 Text_4.TextWrapped = true
7228 Text_4.TextXAlignment = Enum.TextXAlignment.Left
7229
7230 Text_5.Name = "Text"
7231 Text_5.Parent = HomePage
7232 Text_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7233 Text_5.BackgroundTransparency = 1.000
7234 Text_5.BorderSizePixel = 0
7235 Text_5.Position = UDim2.new(0.0251889173, 0, 0.425742626, 0)
7236 Text_5.Size = UDim2.new(0, 368, 0, 17)
7237 Text_5.Font = Enum.Font.GothamSemibold
7238 Text_5.Text = "Bugs & Glitches: None (For Now)"
7239 Text_5.TextColor3 = Color3.fromRGB(255, 255, 255)
7240 Text_5.TextSize = 14.000
7241 Text_5.TextWrapped = true
7242 Text_5.TextXAlignment = Enum.TextXAlignment.Left
7243
7244 Text_6.Name = "Text"
7245 Text_6.Parent = HomePage
7246 Text_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7247 Text_6.BackgroundTransparency = 1.000
7248 Text_6.BorderSizePixel = 0
7249 Text_6.Position = UDim2.new(0.0251889173, 0, 0.509900987, 0)
7250 Text_6.Size = UDim2.new(0, 371, 0, 17)
7251 Text_6.Font = Enum.Font.GothamSemibold
7252 Text_6.Text = "Exploits Supported: Any that can execute PSU obfuscated scripts"
7253 Text_6.TextColor3 = Color3.fromRGB(255, 255, 255)
7254 Text_6.TextScaled = true
7255 Text_6.TextSize = 14.000
7256 Text_6.TextWrapped = true
7257 Text_6.TextXAlignment = Enum.TextXAlignment.Left
7258
7259 ScriptsPage.Name = "ScriptsPage"
7260 ScriptsPage.Parent = Holder
7261 ScriptsPage.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
7262 ScriptsPage.BackgroundTransparency = 1.000
7263 ScriptsPage.BorderSizePixel = 0
7264 ScriptsPage.Position = UDim2.new(0.00400233828, 0, 0, 0)
7265 ScriptsPage.Size = UDim2.new(0, 397, 0, 202)
7266
7267 KillbotV3.Name = "Killbot V3"
7268 KillbotV3.Parent = ScriptsPage
7269 KillbotV3.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7270 KillbotV3.BorderSizePixel = 0
7271 KillbotV3.Position = UDim2.new(0.345088154, 0, 0.188118815, 0)
7272 KillbotV3.Size = UDim2.new(0, 122, 0, 25)
7273 KillbotV3.Font = Enum.Font.GothamSemibold
7274 KillbotV3.Text = "Killbot V3"
7275 KillbotV3.TextColor3 = Color3.fromRGB(255, 255, 255)
7276 KillbotV3.TextSize = 14.000
7277 KillbotV3.MouseButton1Click:Connect(function()
7278 loadstring(game:HttpGet('https://pastebin.com/raw/RZmLVe7N'))
7279 end)
7280 OrbitHats.Name = "Orbit Hats"
7281 OrbitHats.Parent = ScriptsPage
7282 OrbitHats.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7283 OrbitHats.BorderSizePixel = 0
7284 OrbitHats.Position = UDim2.new(0.67002517, 0, 0.341584146, 0)
7285 OrbitHats.Size = UDim2.new(0, 122, 0, 25)
7286 OrbitHats.Font = Enum.Font.GothamSemibold
7287 OrbitHats.Text = "Orbit Hats"
7288 OrbitHats.TextColor3 = Color3.fromRGB(255, 255, 255)
7289 OrbitHats.TextSize = 14.000
7290 OrbitHats.MouseButton1Click:Connect(function()
7291 loadstring(game:HttpGet("https://pastebin.com/raw/4B4fktPS", true))()
7292 end)
7293
7294 RetardDance.Name = "Retard Dance"
7295 RetardDance.Parent = ScriptsPage
7296 RetardDance.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7297 RetardDance.BorderSizePixel = 0
7298 RetardDance.Position = UDim2.new(0.0125944586, 0, 0.341584146, 0)
7299 RetardDance.Size = UDim2.new(0, 122, 0, 25)
7300 RetardDance.Font = Enum.Font.GothamSemibold
7301 RetardDance.Text = "Retard Dance"
7302 RetardDance.TextColor3 = Color3.fromRGB(255, 255, 255)
7303 RetardDance.TextSize = 14.000
7304 RetardDance.MouseButton1Click:Connect(function()
7305 loadstring(game:HttpGet('https://pastebin.com/raw/9XZfbKtG'))
7306 end)
7307
7308 IPloggerTroll.Name = "IP logger Troll"
7309 IPloggerTroll.Parent = ScriptsPage
7310 IPloggerTroll.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7311 IPloggerTroll.BorderSizePixel = 0
7312 IPloggerTroll.Position = UDim2.new(0.67002517, 0, 0.504950523, 0)
7313 IPloggerTroll.Size = UDim2.new(0, 122, 0, 25)
7314 IPloggerTroll.Font = Enum.Font.GothamSemibold
7315 IPloggerTroll.Text = "Troll IP Logger"
7316 IPloggerTroll.TextColor3 = Color3.fromRGB(255, 255, 255)
7317 IPloggerTroll.TextSize = 14.000
7318 IPloggerTroll.MouseButton1Click:Connect(function()
7319 loadstring(game:HttpGet('https://pastebin.com/rawjeGChNZJ'))()
7320 end)
7321
7322 CarsonDance.Name = "Carson Dance"
7323 CarsonDance.Parent = ScriptsPage
7324 CarsonDance.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7325 CarsonDance.BorderSizePixel = 0
7326 CarsonDance.Position = UDim2.new(0.345088154, 0, 0.504950523, 0)
7327 CarsonDance.Size = UDim2.new(0, 122, 0, 25)
7328 CarsonDance.Font = Enum.Font.GothamSemibold
7329 CarsonDance.Text = "Carson Dance"
7330 CarsonDance.TextColor3 = Color3.fromRGB(255, 255, 255)
7331 CarsonDance.TextSize = 14.000
7332 CarsonDance.MouseButton1Click:Connect(function()
7333 loadstring(game:HttpGet(("https://pastebin.com/raw/yCrBkPaY"), true))()
7334 end)
7335
7336 CarDrift.Name = "Car Drift"
7337 CarDrift.Parent = ScriptsPage
7338 CarDrift.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7339 CarDrift.BorderSizePixel = 0
7340 CarDrift.Position = UDim2.new(0.0125944596, 0, 0.504950523, 0)
7341 CarDrift.Size = UDim2.new(0, 122, 0, 25)
7342 CarDrift.Font = Enum.Font.GothamSemibold
7343 CarDrift.Text = "Car Drift"
7344 CarDrift.TextColor3 = Color3.fromRGB(255, 255, 255)
7345 CarDrift.TextSize = 14.000
7346 CarDrift.MouseButton1Click:Connect(function()
7347 loadstring(game:HttpGet('https://raw.githubusercontent.com/MonkoTubeYT/carscript/master/!carscript.lua',true))()
7348 end)
7349
7350 Cop.Name = "Cop"
7351 Cop.Parent = ScriptsPage
7352 Cop.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7353 Cop.BorderSizePixel = 0
7354 Cop.Position = UDim2.new(0.664987385, 0, 0.668316841, 0)
7355 Cop.Size = UDim2.new(0, 122, 0, 25)
7356 Cop.Font = Enum.Font.GothamSemibold
7357 Cop.Text = "Cop"
7358 Cop.TextColor3 = Color3.fromRGB(255, 255, 255)
7359 Cop.TextSize = 14.000
7360 Cop.MouseButton1Click:Connect(function()
7361 loadstring(game:HttpGet('https://pastebin.com/raw/KVsAcKPS'))()
7362 end)
7363
7364 OrangeJustice.Name = "Orange Justice"
7365 OrangeJustice.Parent = ScriptsPage
7366 OrangeJustice.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7367 OrangeJustice.BorderSizePixel = 0
7368 OrangeJustice.Position = UDim2.new(0.00755667547, 0, 0.668316841, 0)
7369 OrangeJustice.Size = UDim2.new(0, 122, 0, 25)
7370 OrangeJustice.Font = Enum.Font.GothamSemibold
7371 OrangeJustice.Text = "Orange Justice"
7372 OrangeJustice.TextColor3 = Color3.fromRGB(255, 255, 255)
7373 OrangeJustice.TextSize = 14.000
7374 OrangeJustice.MouseButton1Click:Connect(function()
7375 loadstring(game:HttpGet(("https://pastebin.com/raw/yCrBkPaY"), true))()
7376 end)
7377
7378 Spider.Name = "Spider"
7379 Spider.Parent = ScriptsPage
7380 Spider.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7381 Spider.BorderSizePixel = 0
7382 Spider.Position = UDim2.new(0.664987385, 0, 0.821782172, 0)
7383 Spider.Size = UDim2.new(0, 122, 0, 25)
7384 Spider.Font = Enum.Font.GothamSemibold
7385 Spider.Text = "Spider"
7386 Spider.TextColor3 = Color3.fromRGB(255, 255, 255)
7387 Spider.TextSize = 14.000
7388 Spider.MouseButton1Click:Connect(function()
7389 loadstring(game:HttpGet('https://pastebin.com/raw/3ZuT57Wb'))()
7390 end)
7391
7392 AntiAFK.Name = "Anti-AFK"
7393 AntiAFK.Parent = ScriptsPage
7394 AntiAFK.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7395 AntiAFK.BorderSizePixel = 0
7396 AntiAFK.Position = UDim2.new(0.00755667547, 0, 0.821782172, 0)
7397 AntiAFK.Size = UDim2.new(0, 122, 0, 25)
7398 AntiAFK.Font = Enum.Font.GothamSemibold
7399 AntiAFK.Text = "Anti Afk"
7400 AntiAFK.TextColor3 = Color3.fromRGB(255, 255, 255)
7401 AntiAFK.TextSize = 14.000
7402 AntiAFK.MouseButton1Click:Connect(function()
7403 local VirtualUser=game:service'VirtualUser'
7404 game:service'Players'.LocalPlayer.Idled:connect(function()
7405 VirtualUser:CaptureController()
7406 VirtualUser:ClickButton2(Vector2.new())
7407 end)
7408
7409 warn("Anti-Afk has Loaded")
7410 end)
7411
7412 HenryDance.Name = "Henry Dance"
7413 HenryDance.Parent = ScriptsPage
7414 HenryDance.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7415 HenryDance.BorderSizePixel = 0
7416 HenryDance.Position = UDim2.new(0.345088154, 0, 0.341584146, 0)
7417 HenryDance.Size = UDim2.new(0, 122, 0, 25)
7418 HenryDance.Font = Enum.Font.GothamSemibold
7419 HenryDance.Text = "Henry Dance"
7420 HenryDance.TextColor3 = Color3.fromRGB(255, 255, 255)
7421 HenryDance.TextSize = 14.000
7422 HenryDance.MouseButton1Click:Connect(function()
7423 loadstring(game:HttpGet('https://pastebin.com/raw/JNhkAEmJ'))()
7424 end)
7425
7426 Nameless.Name = "Nameless"
7427 Nameless.Parent = ScriptsPage
7428 Nameless.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7429 Nameless.BorderSizePixel = 0
7430 Nameless.Position = UDim2.new(0.34005037, 0, 0.668316841, 0)
7431 Nameless.Size = UDim2.new(0, 122, 0, 25)
7432 Nameless.Font = Enum.Font.GothamSemibold
7433 Nameless.Text = "Nameless"
7434 Nameless.TextColor3 = Color3.fromRGB(255, 255, 255)
7435 Nameless.TextSize = 14.000
7436 Nameless.MouseButton1Click:Connect(function()
7437 loadstring(game:GetObjects("rbxassetid://5688101100")[1].Source)()
7438 end)
7439
7440 CreditsPage.Name = "CreditsPage"
7441 CreditsPage.Parent = Holder
7442 CreditsPage.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
7443 CreditsPage.BackgroundTransparency = 1.000
7444 CreditsPage.BorderSizePixel = 0
7445 CreditsPage.Position = UDim2.new(0.00400233828, 0, 0, 0)
7446 CreditsPage.Size = UDim2.new(0, 397, 0, 202)
7447 CreditsPage.Visible = false
7448
7449 Text_7.Name = "Text"
7450 Text_7.Parent = CreditsPage
7451 Text_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7452 Text_7.BackgroundTransparency = 1.000
7453 Text_7.BorderSizePixel = 0
7454 Text_7.Position = UDim2.new(0.0327455923, 0, 0.866336703, 0)
7455 Text_7.Size = UDim2.new(0, 368, 0, 17)
7456 Text_7.Font = Enum.Font.GothamSemibold
7457 Text_7.Text = "Thanks for buying OrHub!"
7458 Text_7.TextColor3 = Color3.fromRGB(255, 255, 255)
7459 Text_7.TextSize = 14.000
7460 Text_7.TextWrapped = true
7461
7462 Text_8.Name = "Text"
7463 Text_8.Parent = CreditsPage
7464 Text_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7465 Text_8.BackgroundTransparency = 1.000
7466 Text_8.BorderSizePixel = 0
7467 Text_8.Position = UDim2.new(0.0251889173, 0, 0.17326732, 0)
7468 Text_8.Size = UDim2.new(0, 200, 0, 17)
7469 Text_8.Font = Enum.Font.GothamSemibold
7470 Text_8.Text = "OrHub Version 3.0 (Credits)"
7471 Text_8.TextColor3 = Color3.fromRGB(255, 255, 255)
7472 Text_8.TextSize = 14.000
7473 Text_8.TextXAlignment = Enum.TextXAlignment.Left
7474
7475 Text_9.Name = "Text"
7476 Text_9.Parent = CreditsPage
7477 Text_9.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7478 Text_9.BackgroundTransparency = 1.000
7479 Text_9.BorderSizePixel = 0
7480 Text_9.Position = UDim2.new(0.0251889173, 0, 0.257425725, 0)
7481 Text_9.Size = UDim2.new(0, 200, 0, 17)
7482 Text_9.Font = Enum.Font.GothamSemibold
7483 Text_9.Text = "Skreet - UI Maker I"
7484 Text_9.TextColor3 = Color3.fromRGB(255, 255, 255)
7485 Text_9.TextSize = 14.000
7486 Text_9.TextXAlignment = Enum.TextXAlignment.Left
7487
7488 Text_10.Name = "Text"
7489 Text_10.Parent = CreditsPage
7490 Text_10.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7491 Text_10.BackgroundTransparency = 1.000
7492 Text_10.BorderSizePixel = 0
7493 Text_10.Position = UDim2.new(0.0251889173, 0, 0.341584146, 0)
7494 Text_10.Size = UDim2.new(0, 200, 0, 17)
7495 Text_10.Font = Enum.Font.GothamSemibold
7496 Text_10.Text = "OrPlayz - UI Maker II"
7497 Text_10.TextColor3 = Color3.fromRGB(255, 255, 255)
7498 Text_10.TextSize = 14.000
7499 Text_10.TextXAlignment = Enum.TextXAlignment.Left
7500
7501 Text_11.Name = "Text"
7502 Text_11.Parent = CreditsPage
7503 Text_11.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
7504 Text_11.BackgroundTransparency = 1.000
7505 Text_11.BorderSizePixel = 0
7506 Text_11.Position = UDim2.new(0.0251889173, 0, 0.425742567, 0)
7507 Text_11.Size = UDim2.new(0, 200, 0, 17)
7508 Text_11.Font = Enum.Font.GothamSemibold
7509 Text_11.Text = "Skreet - Scripter"
7510 Text_11.TextColor3 = Color3.fromRGB(255, 255, 255)
7511 Text_11.TextSize = 14.000
7512 Text_11.TextXAlignment = Enum.TextXAlignment.Left
7513
7514 HDroblox.Name = "HD roblox"
7515 HDroblox.Parent = Holder
7516 HDroblox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
7517 HDroblox.BorderSizePixel = 0
7518 HDroblox.Position = UDim2.new(0.0125944586, 0, 0.188118815, 0)
7519 HDroblox.Size = UDim2.new(0, 122, 0, 25)
7520 HDroblox.Font = Enum.Font.GothamSemibold
7521 HDroblox.Text = "HD roblox"
7522 HDroblox.TextColor3 = Color3.fromRGB(255, 255, 255)
7523 HDroblox.TextSize = 14.000
7524 HDroblox.MouseButton1Click:Connect(function()
7525 loadstring(game:HttpGet('https://pastebin.com/raw/qMANTs3Z'))()
7526 end)
7527
7528 HomeBTN.MouseButton1Click:Connect(function()
7529 HomePage.Visible = true
7530 ScriptsPage.Visible = false
7531 CreditsPage.Visible = false
7532 HDroblox.Visible = false
7533 end)
7534
7535 ScriptsBTN.MouseButton1Click:Connect(function()
7536 HomePage.Visible = false
7537 ScriptsPage.Visible = true
7538 CreditsPage.Visible = false
7539 HDroblox.Visible = true
7540 end)
7541
7542 CreditsBTN.MouseButton1Click:Connect(function()
7543 HomePage.Visible = false
7544 ScriptsPage.Visible = false
7545 CreditsPage.Visible = true
7546 HDroblox.Visible = false
7547 end)
7548
7549 local UIS = game:GetService("UserInputService")
7550 function dragify(Frame)
7551 dragToggle = nil
7552 local dragSpeed = 0.50
7553 dragInput = nil
7554 dragStart = nil
7555 local dragPos = nil
7556 function updateInput(input)
7557 local Delta = input.Position - dragStart
7558 local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
7559 game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.30), {Position = Position}):Play()
7560 end
7561 Frame.InputBegan:Connect(function(input)
7562 if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
7563 dragToggle = true
7564 dragStart = input.Position
7565 startPos = Frame.Position
7566 input.Changed:Connect(function()
7567 if input.UserInputState == Enum.UserInputState.End then
7568 dragToggle = false
7569 end
7570 end)
7571 end
7572 end)
7573 Frame.InputChanged:Connect(function(input)
7574 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
7575 dragInput = input
7576 end
7577 end)
7578 game:GetService("UserInputService").InputChanged:Connect(function(input)
7579 if input == dragInput and dragToggle then
7580 updateInput(input)
7581 end
7582 end)
7583 end
7584 loadstring(game:HttpGet(('https://pastebin.com/raw/QJaQ8L8G'),true))()
7585 dragify(Main)
7586end)
7587
7588FECop.Name = "FE Cop"
7589FECop.Parent = main
7590FECop.BackgroundColor3 = Color3.fromRGB(112, 112, 112)
7591FECop.Position = UDim2.new(0.0199556351, 0, 0.684684634, 0)
7592FECop.Size = UDim2.new(0, 133, 0, 50)
7593FECop.Font = Enum.Font.SourceSansBold
7594FECop.Text = "FE Cop"
7595FECop.TextColor3 = Color3.fromRGB(255, 255, 255)
7596FECop.TextScaled = true
7597FECop.TextSize = 14.000
7598FECop.TextWrapped = true
7599FECop.MouseButton1Down:connect(function()
7600 --[[ Make sure to be wearing both of these hats in order to use the script
7601https://www.roblox.com/catalog/4776608503/Miami-Sunshine-Slugger
7602https://www.roblox.com/catalog/4933294084/Type-37-Pulse-Rifle
7603]]--
7604 --[[ Options ]]--
7605 _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
7606 _G.GodMode = true --Set to true if you want godmode.
7607 _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
7608 --[[Reanimate]]--
7609 loadstring(game:HttpGet("https://paste.ee/r/uk77k/0"))()
7610 -----------------
7611 repeat wait() until _G.MSG ~= nil
7612 repeat wait() until _G.MSG.Text == ""
7613 -----------------
7614 getgenv().LoadLibrary = function(a)
7615 local t = {}
7616
7617 ------------------------------------------------------------------------------------------------------------------------
7618 ------------------------------------------------------------------------------------------------------------------------
7619 ------------------------------------------------------------------------------------------------------------------------
7620 ------------------------------------------------JSON Functions Begin----------------------------------------------------
7621 ------------------------------------------------------------------------------------------------------------------------
7622 ------------------------------------------------------------------------------------------------------------------------
7623 ------------------------------------------------------------------------------------------------------------------------
7624
7625 --JSON Encoder and Parser for Lua 5.1
7626 --
7627 --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
7628 --All Rights Reserved.
7629
7630 --Permission is hereby granted, free of charge, to any person
7631 --obtaining a copy of this software to deal in the Software without
7632 --restriction, including without limitation the rights to use,
7633 --copy, modify, merge, publish, distribute, sublicense, and/or
7634 --sell copies of the Software, and to permit persons to whom the
7635 --Software is furnished to do so, subject to the following conditions:
7636
7637 --The above copyright notice and this permission notice shall be
7638 --included in all copies or substantial portions of the Software.
7639 --If you find this software useful please give www.chipmunkav.com a mention.
7640
7641 --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
7642 --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
7643 --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
7644 --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
7645 --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
7646 --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
7647 --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7648
7649 local string = string
7650 local math = math
7651 local table = table
7652 local error = error
7653 local tonumber = tonumber
7654 local tostring = tostring
7655 local type = type
7656 local setmetatable = setmetatable
7657 local pairs = pairs
7658 local ipairs = ipairs
7659 local assert = assert
7660
7661
7662 local StringBuilder = {
7663 buffer = {}
7664 }
7665
7666 function StringBuilder:New()
7667 local o = {}
7668 setmetatable(o, self)
7669 self.__index = self
7670 o.buffer = {}
7671 return o
7672 end
7673
7674 function StringBuilder:Append(s)
7675 self.buffer[#self.buffer+1] = s
7676 end
7677
7678 function StringBuilder:ToString()
7679 return table.concat(self.buffer)
7680 end
7681
7682 local JsonWriter = {
7683 backslashes = {
7684 ['\b'] = "\\b",
7685 ['\t'] = "\\t",
7686 ['\n'] = "\\n",
7687 ['\f'] = "\\f",
7688 ['\r'] = "\\r",
7689 ['"'] = "\\\"",
7690 ['\\'] = "\\\\",
7691 ['/'] = "\\/"
7692 }
7693 }
7694
7695 function JsonWriter:New()
7696 local o = {}
7697 o.writer = StringBuilder:New()
7698 setmetatable(o, self)
7699 self.__index = self
7700 return o
7701 end
7702
7703 function JsonWriter:Append(s)
7704 self.writer:Append(s)
7705 end
7706
7707 function JsonWriter:ToString()
7708 return self.writer:ToString()
7709 end
7710
7711 function JsonWriter:Write(o)
7712 local t = type(o)
7713 if t == "nil" then
7714 self:WriteNil()
7715 elseif t == "boolean" then
7716 self:WriteString(o)
7717 elseif t == "number" then
7718 self:WriteString(o)
7719 elseif t == "string" then
7720 self:ParseString(o)
7721 elseif t == "table" then
7722 self:WriteTable(o)
7723 elseif t == "function" then
7724 self:WriteFunction(o)
7725 elseif t == "thread" then
7726 self:WriteError(o)
7727 elseif t == "userdata" then
7728 self:WriteError(o)
7729 end
7730 end
7731
7732 function JsonWriter:WriteNil()
7733 self:Append("null")
7734 end
7735
7736 function JsonWriter:WriteString(o)
7737 self:Append(tostring(o))
7738 end
7739
7740 function JsonWriter:ParseString(s)
7741 self:Append('"')
7742 self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
7743 local c = self.backslashes[n]
7744 if c then return c end
7745 return string.format("\\u%.4X", string.byte(n))
7746 end))
7747 self:Append('"')
7748 end
7749
7750 function JsonWriter:IsArray(t)
7751 local count = 0
7752 local isindex = function(k)
7753 if type(k) == "number" and k > 0 then
7754 if math.floor(k) == k then
7755 return true
7756 end
7757 end
7758 return false
7759 end
7760 for k,v in pairs(t) do
7761 if not isindex(k) then
7762 return false, '{', '}'
7763 else
7764 count = math.max(count, k)
7765 end
7766 end
7767 return true, '[', ']', count
7768 end
7769
7770 function JsonWriter:WriteTable(t)
7771 local ba, st, et, n = self:IsArray(t)
7772 self:Append(st)
7773 if ba then
7774 for i = 1, n do
7775 self:Write(t[i])
7776 if i < n then
7777 self:Append(',')
7778 end
7779 end
7780 else
7781 local first = true;
7782 for k, v in pairs(t) do
7783 if not first then
7784 self:Append(',')
7785 end
7786 first = false;
7787 self:ParseString(k)
7788 self:Append(':')
7789 self:Write(v)
7790 end
7791 end
7792 self:Append(et)
7793 end
7794
7795 function JsonWriter:WriteError(o)
7796 error(string.format(
7797 "Encoding of %s unsupported",
7798 tostring(o)))
7799 end
7800
7801 function JsonWriter:WriteFunction(o)
7802 if o == Null then
7803 self:WriteNil()
7804 else
7805 self:WriteError(o)
7806 end
7807 end
7808
7809 local StringReader = {
7810 s = "",
7811 i = 0
7812 }
7813
7814 function StringReader:New(s)
7815 local o = {}
7816 setmetatable(o, self)
7817 self.__index = self
7818 o.s = s or o.s
7819 return o
7820 end
7821
7822 function StringReader:Peek()
7823 local i = self.i + 1
7824 if i <= #self.s then
7825 return string.sub(self.s, i, i)
7826 end
7827 return nil
7828 end
7829
7830 function StringReader:Next()
7831 self.i = self.i+1
7832 if self.i <= #self.s then
7833 return string.sub(self.s, self.i, self.i)
7834 end
7835 return nil
7836 end
7837
7838 function StringReader:All()
7839 return self.s
7840 end
7841
7842 local JsonReader = {
7843 escapes = {
7844 ['t'] = '\t',
7845 ['n'] = '\n',
7846 ['f'] = '\f',
7847 ['r'] = '\r',
7848 ['b'] = '\b',
7849 }
7850 }
7851
7852 function JsonReader:New(s)
7853 local o = {}
7854 o.reader = StringReader:New(s)
7855 setmetatable(o, self)
7856 self.__index = self
7857 return o;
7858 end
7859
7860 function JsonReader:Read()
7861 self:SkipWhiteSpace()
7862 local peek = self:Peek()
7863 if peek == nil then
7864 error(string.format(
7865 "Nil string: '%s'",
7866 self:All()))
7867 elseif peek == '{' then
7868 return self:ReadObject()
7869 elseif peek == '[' then
7870 return self:ReadArray()
7871 elseif peek == '"' then
7872 return self:ReadString()
7873 elseif string.find(peek, "[%+%-%d]") then
7874 return self:ReadNumber()
7875 elseif peek == 't' then
7876 return self:ReadTrue()
7877 elseif peek == 'f' then
7878 return self:ReadFalse()
7879 elseif peek == 'n' then
7880 return self:ReadNull()
7881 elseif peek == '/' then
7882 self:ReadComment()
7883 return self:Read()
7884 else
7885 return nil
7886 end
7887 end
7888
7889 function JsonReader:ReadTrue()
7890 self:TestReservedWord{'t','r','u','e'}
7891 return true
7892 end
7893
7894 function JsonReader:ReadFalse()
7895 self:TestReservedWord{'f','a','l','s','e'}
7896 return false
7897 end
7898
7899 function JsonReader:ReadNull()
7900 self:TestReservedWord{'n','u','l','l'}
7901 return nil
7902 end
7903
7904 function JsonReader:TestReservedWord(t)
7905 for i, v in ipairs(t) do
7906 if self:Next() ~= v then
7907 error(string.format(
7908 "Error reading '%s': %s",
7909 table.concat(t),
7910 self:All()))
7911 end
7912 end
7913 end
7914
7915 function JsonReader:ReadNumber()
7916 local result = self:Next()
7917 local peek = self:Peek()
7918 while peek ~= nil and string.find(
7919 peek,
7920 "[%+%-%d%.eE]") do
7921 result = result .. self:Next()
7922 peek = self:Peek()
7923 end
7924 result = tonumber(result)
7925 if result == nil then
7926 error(string.format(
7927 "Invalid number: '%s'",
7928 result))
7929 else
7930 return result
7931 end
7932 end
7933
7934 function JsonReader:ReadString()
7935 local result = ""
7936 assert(self:Next() == '"')
7937 while self:Peek() ~= '"' do
7938 local ch = self:Next()
7939 if ch == '\\' then
7940 ch = self:Next()
7941 if self.escapes[ch] then
7942 ch = self.escapes[ch]
7943 end
7944 end
7945 result = result .. ch
7946 end
7947 assert(self:Next() == '"')
7948 local fromunicode = function(m)
7949 return string.char(tonumber(m, 16))
7950 end
7951 return string.gsub(
7952 result,
7953 "u%x%x(%x%x)",
7954 fromunicode)
7955 end
7956
7957 function JsonReader:ReadComment()
7958 assert(self:Next() == '/')
7959 local second = self:Next()
7960 if second == '/' then
7961 self:ReadSingleLineComment()
7962 elseif second == '*' then
7963 self:ReadBlockComment()
7964 else
7965 error(string.format(
7966 "Invalid comment: %s",
7967 self:All()))
7968 end
7969 end
7970
7971 function JsonReader:ReadBlockComment()
7972 local done = false
7973 while not done do
7974 local ch = self:Next()
7975 if ch == '*' and self:Peek() == '/' then
7976 done = true
7977 end
7978 if not done and
7979 ch == '/' and
7980 self:Peek() == "*" then
7981 error(string.format(
7982 "Invalid comment: %s, '/*' illegal.",
7983 self:All()))
7984 end
7985 end
7986 self:Next()
7987 end
7988
7989 function JsonReader:ReadSingleLineComment()
7990 local ch = self:Next()
7991 while ch ~= '\r' and ch ~= '\n' do
7992 ch = self:Next()
7993 end
7994 end
7995
7996 function JsonReader:ReadArray()
7997 local result = {}
7998 assert(self:Next() == '[')
7999 local done = false
8000 if self:Peek() == ']' then
8001 done = true;
8002 end
8003 while not done do
8004 local item = self:Read()
8005 result[#result+1] = item
8006 self:SkipWhiteSpace()
8007 if self:Peek() == ']' then
8008 done = true
8009 end
8010 if not done then
8011 local ch = self:Next()
8012 if ch ~= ',' then
8013 error(string.format(
8014 "Invalid array: '%s' due to: '%s'",
8015 self:All(), ch))
8016 end
8017 end
8018 end
8019 assert(']' == self:Next())
8020 return result
8021 end
8022
8023 function JsonReader:ReadObject()
8024 local result = {}
8025 assert(self:Next() == '{')
8026 local done = false
8027 if self:Peek() == '}' then
8028 done = true
8029 end
8030 while not done do
8031 local key = self:Read()
8032 if type(key) ~= "string" then
8033 error(string.format(
8034 "Invalid non-string object key: %s",
8035 key))
8036 end
8037 self:SkipWhiteSpace()
8038 local ch = self:Next()
8039 if ch ~= ':' then
8040 error(string.format(
8041 "Invalid object: '%s' due to: '%s'",
8042 self:All(),
8043 ch))
8044 end
8045 self:SkipWhiteSpace()
8046 local val = self:Read()
8047 result[key] = val
8048 self:SkipWhiteSpace()
8049 if self:Peek() == '}' then
8050 done = true
8051 end
8052 if not done then
8053 ch = self:Next()
8054 if ch ~= ',' then
8055 error(string.format(
8056 "Invalid array: '%s' near: '%s'",
8057 self:All(),
8058 ch))
8059 end
8060 end
8061 end
8062 assert(self:Next() == "}")
8063 return result
8064 end
8065
8066 function JsonReader:SkipWhiteSpace()
8067 local p = self:Peek()
8068 while p ~= nil and string.find(p, "[%s/]") do
8069 if p == '/' then
8070 self:ReadComment()
8071 else
8072 self:Next()
8073 end
8074 p = self:Peek()
8075 end
8076 end
8077
8078 function JsonReader:Peek()
8079 return self.reader:Peek()
8080 end
8081
8082 function JsonReader:Next()
8083 return self.reader:Next()
8084 end
8085
8086 function JsonReader:All()
8087 return self.reader:All()
8088 end
8089
8090 function Encode(o)
8091 local writer = JsonWriter:New()
8092 writer:Write(o)
8093 return writer:ToString()
8094 end
8095
8096 function Decode(s)
8097 local reader = JsonReader:New(s)
8098 return reader:Read()
8099 end
8100
8101 function Null()
8102 return Null
8103 end
8104 -------------------- End JSON Parser ------------------------
8105
8106 t.DecodeJSON = function(jsonString)
8107 pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
8108
8109 if type(jsonString) == "string" then
8110 return Decode(jsonString)
8111 end
8112 print("RbxUtil.DecodeJSON expects string argument!")
8113 return nil
8114 end
8115
8116 t.EncodeJSON = function(jsonTable)
8117 pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
8118 return Encode(jsonTable)
8119 end
8120
8121
8122
8123
8124
8125
8126
8127
8128 ------------------------------------------------------------------------------------------------------------------------
8129 ------------------------------------------------------------------------------------------------------------------------
8130 ------------------------------------------------------------------------------------------------------------------------
8131 --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
8132 ------------------------------------------------------------------------------------------------------------------------
8133 ------------------------------------------------------------------------------------------------------------------------
8134 ------------------------------------------------------------------------------------------------------------------------
8135 --makes a wedge at location x, y, z
8136 --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously w
8137 --returns true if made a wedge, false if the cell remains a block
8138 t.MakeWedge = function(x, y, z, defaultmaterial)
8139 return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
8140 end
8141
8142 t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
8143 local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
8144 if not terrain then return end
8145
8146 assert(regionToSelect)
8147 assert(color)
8148
8149 if not type(regionToSelect) == "Region3" then
8150 error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
8151 end
8152 if not type(color) == "BrickColor" then
8153 error("color (second arg), should be of type BrickColor, but is type",type(color))
8154 end
8155
8156 -- frequently used terrain calls (speeds up call, no lookup necessary)
8157 local GetCell = terrain.GetCell
8158 local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
8159 local CellCenterToWorld = terrain.CellCenterToWorld
8160 local emptyMaterial = Enum.CellMaterial.Empty
8161
8162 -- container for all adornments, passed back to user
8163 local selectionContainer = Instance.new("Model")
8164 selectionContainer.Name = "SelectionContainer"
8165 selectionContainer.Archivable = false
8166 if selectionParent then
8167 selectionContainer.Parent = selectionParent
8168 else
8169 selectionContainer.Parent = game:GetService("Workspace")
8170 end
8171
8172 local updateSelection = nil -- function we return to allow user to update selection
8173 local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
8174 local aliveCounter = 0 -- helper for currentKeepAliveTag
8175 local lastRegion = nil -- used to stop updates that do nothing
8176 local adornments = {} -- contains all adornments
8177 local reusableAdorns = {}
8178
8179 local selectionPart = Instance.new("Part")
8180 selectionPart.Name = "SelectionPart"
8181 selectionPart.Transparency = 1
8182 selectionPart.Anchored = true
8183 selectionPart.Locked = true
8184 selectionPart.CanCollide = false
8185 selectionPart.Size = Vector3.new(4.2,4.2,4.2)
8186
8187 local selectionBox = Instance.new("SelectionBox")
8188
8189 -- srs translation from region3 to region3int16
8190 local function Region3ToRegion3int16(region3)
8191 local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
8192 local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
8193
8194 local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
8195 local highCell = WorldToCellPreferSolid(terrain, theHighVec)
8196
8197 local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
8198 local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
8199
8200 return Region3int16.new(lowIntVec,highIntVec)
8201 end
8202
8203 -- helper function that creates the basis for a selection box
8204 function createAdornment(theColor)
8205 local selectionPartClone = nil
8206 local selectionBoxClone = nil
8207
8208 if #reusableAdorns > 0 then
8209 selectionPartClone = reusableAdorns[1]["part"]
8210 selectionBoxClone = reusableAdorns[1]["box"]
8211 table.remove(reusableAdorns,1)
8212
8213 selectionBoxClone.Visible = true
8214 else
8215 selectionPartClone = selectionPart:Clone()
8216 selectionPartClone.Archivable = false
8217
8218 selectionBoxClone = selectionBox:Clone()
8219 selectionBoxClone.Archivable = false
8220
8221 selectionBoxClone.Adornee = selectionPartClone
8222 selectionBoxClone.Parent = selectionContainer
8223
8224 selectionBoxClone.Adornee = selectionPartClone
8225
8226 selectionBoxClone.Parent = selectionContainer
8227 end
8228
8229 if theColor then
8230 selectionBoxClone.Color = theColor
8231 end
8232
8233 return selectionPartClone, selectionBoxClone
8234 end
8235
8236 -- iterates through all current adornments and deletes any that don't have latest tag
8237 function cleanUpAdornments()
8238 for cellPos, adornTable in pairs(adornments) do
8239
8240 if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
8241 adornTable.SelectionBox.Visible = false
8242 table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
8243 adornments[cellPos] = nil
8244 end
8245 end
8246 end
8247
8248 -- helper function to update tag
8249 function incrementAliveCounter()
8250 aliveCounter = aliveCounter + 1
8251 if aliveCounter > 1000000 then
8252 aliveCounter = 0
8253 end
8254 return aliveCounter
8255 end
8256
8257 -- finds full cells in region and adorns each cell with a box, with the argument color
8258 function adornFullCellsInRegion(region, color)
8259 local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
8260 local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
8261
8262 local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
8263 local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
8264
8265 currentKeepAliveTag = incrementAliveCounter()
8266 for y = cellPosBegin.y, cellPosEnd.y do
8267 for z = cellPosBegin.z, cellPosEnd.z do
8268 for x = cellPosBegin.x, cellPosEnd.x do
8269 local cellMaterial = GetCell(terrain, x, y, z)
8270
8271 if cellMaterial ~= emptyMaterial then
8272 local cframePos = CellCenterToWorld(terrain, x, y, z)
8273 local cellPos = Vector3int16.new(x,y,z)
8274
8275 local updated = false
8276 for cellPosAdorn, adornTable in pairs(adornments) do
8277 if cellPosAdorn == cellPos then
8278 adornTable.KeepAlive = currentKeepAliveTag
8279 if color then
8280 adornTable.SelectionBox.Color = color
8281 end
8282 updated = true
8283 break
8284 end
8285 end
8286
8287 if not updated then
8288 local selectionPart, selectionBox = createAdornment(color)
8289 selectionPart.Size = Vector3.new(4,4,4)
8290 selectionPart.CFrame = CFrame.new(cframePos)
8291 local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
8292 adornments[cellPos] = adornTable
8293 end
8294 end
8295 end
8296 end
8297 end
8298 cleanUpAdornments()
8299 end
8300
8301
8302 ------------------------------------- setup code ------------------------------
8303 lastRegion = regionToSelect
8304
8305 if selectEmptyCells then -- use one big selection to represent the area selected
8306 local selectionPart, selectionBox = createAdornment(color)
8307
8308 selectionPart.Size = regionToSelect.Size
8309 selectionPart.CFrame = regionToSelect.CFrame
8310
8311 adornments.SelectionPart = selectionPart
8312 adornments.SelectionBox = selectionBox
8313
8314 updateSelection =
8315 function (newRegion, color)
8316 if newRegion and newRegion ~= lastRegion then
8317 lastRegion = newRegion
8318 selectionPart.Size = newRegion.Size
8319 selectionPart.CFrame = newRegion.CFrame
8320 end
8321 if color then
8322 selectionBox.Color = color
8323 end
8324 end
8325 else -- use individual cell adorns to represent the area selected
8326 adornFullCellsInRegion(regionToSelect, color)
8327 updateSelection =
8328 function (newRegion, color)
8329 if newRegion and newRegion ~= lastRegion then
8330 lastRegion = newRegion
8331 adornFullCellsInRegion(newRegion, color)
8332 end
8333 end
8334
8335 end
8336
8337 local destroyFunc = function()
8338 updateSelection = nil
8339 if selectionContainer then selectionContainer:Destroy() end
8340 adornments = nil
8341 end
8342
8343 return updateSelection, destroyFunc
8344 end
8345
8346 -----------------------------Terrain Utilities End-----------------------------
8347
8348
8349
8350
8351
8352
8353
8354 ------------------------------------------------------------------------------------------------------------------------
8355 ------------------------------------------------------------------------------------------------------------------------
8356 ------------------------------------------------------------------------------------------------------------------------
8357 ------------------------------------------------Signal class begin------------------------------------------------------
8358 ------------------------------------------------------------------------------------------------------------------------
8359 ------------------------------------------------------------------------------------------------------------------------
8360 ------------------------------------------------------------------------------------------------------------------------
8361--[[
8362A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
8363can be used to create "custom events" for user-made code.
8364API:
8365Method :connect( function handler )
8366Arguments: The function to connect to.
8367Returns: A new connection object which can be used to disconnect the connection
8368Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
8369the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
8370connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
8371NOT mean that the first will be called before the second as a result of a call to |fire|.
8372
8373Method :disconnect()
8374Arguments: None
8375Returns: None
8376Description: Disconnects all of the functions connected to this signal.
8377
8378Method :fire( ... )
8379Arguments: Any arguments are accepted
8380Returns: None
8381Description: Calls all of the currently connected functions with the given arguments.
8382
8383Method :wait()
8384Arguments: None
8385Returns: The arguments given to fire
8386Description: This call blocks until
8387]]
8388
8389 function t.CreateSignal()
8390 local this = {}
8391
8392 local mBindableEvent = Instance.new('BindableEvent')
8393 local mAllCns = {} --all connection objects returned by mBindableEvent::connect
8394
8395 --main functions
8396 function this:connect(func)
8397 if self ~= this then error("connect must be called with `:`, not `.`", 2) end
8398 if type(func) ~= 'function' then
8399 error("Argument #1 of connect must be a function, got a "..type(func), 2)
8400 end
8401 local cn = mBindableEvent.Event:Connect(func)
8402 mAllCns[cn] = true
8403 local pubCn = {}
8404 function pubCn:disconnect()
8405 cn:Disconnect()
8406 mAllCns[cn] = nil
8407 end
8408 pubCn.Disconnect = pubCn.disconnect
8409
8410 return pubCn
8411 end
8412
8413 function this:disconnect()
8414 if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
8415 for cn, _ in pairs(mAllCns) do
8416 cn:Disconnect()
8417 mAllCns[cn] = nil
8418 end
8419 end
8420
8421 function this:wait()
8422 if self ~= this then error("wait must be called with `:`, not `.`", 2) end
8423 return mBindableEvent.Event:Wait()
8424 end
8425
8426 function this:fire(...)
8427 if self ~= this then error("fire must be called with `:`, not `.`", 2) end
8428 mBindableEvent:Fire(...)
8429 end
8430
8431 this.Connect = this.connect
8432 this.Disconnect = this.disconnect
8433 this.Wait = this.wait
8434 this.Fire = this.fire
8435
8436 return this
8437 end
8438
8439 ------------------------------------------------- Sigal class End ------------------------------------------------------
8440
8441
8442
8443
8444 ------------------------------------------------------------------------------------------------------------------------
8445 ------------------------------------------------------------------------------------------------------------------------
8446 ------------------------------------------------------------------------------------------------------------------------
8447 -----------------------------------------------Create Function Begins---------------------------------------------------
8448 ------------------------------------------------------------------------------------------------------------------------
8449 ------------------------------------------------------------------------------------------------------------------------
8450 ------------------------------------------------------------------------------------------------------------------------
8451--[[
8452A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
8453the object to be created. The function then returns another function which either accepts accepts no arguments, in
8454which case it simply creates an object of the given type, or a table argument that may contain several types of data,
8455in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
8456type of data and what operation each will perform:
84571) A string key mapping to some value:
8458Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
8459ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
8460|Create| call's body.
8461
84622) An integral key mapping to another Instance:
8463Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
8464parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
8465need for temporary variables to store references to those objects.
8466
84673) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
8468The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
8469for those who really want such a functionality. The name of the event whose name is passed to
8470Create.E( string )
8471
84724) A key which is the Create function itself, and a value which is a function
8473The function will be run with the argument of the object itself after all other initialization of the object is
8474done by create. This provides a way to do arbitrary things involving the object from withing the create
8475hierarchy.
8476Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
8477it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
8478constructor callback function is possible, it is probably not a good design choice.
8479Note: Since the constructor function is called after all other initialization, a Create block cannot have two
8480constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
8481
8482
8483Some example usages:
8484
8485A simple example which uses the Create function to create a model object and assign two of it's properties.
8486local model = Create'Model'{
8487Name = 'A New model',
8488Parent = game.Workspace,
8489}
8490
8491
8492An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
8493Model_Container
8494|-ObjectValue
8495| |
8496| `-BoolValueChild
8497`-IntValue
8498
8499local model = Create'Model'{
8500Name = 'Model_Container',
8501Create'ObjectValue'{
8502Create'BoolValue'{
8503Name = 'BoolValueChild',
8504},
8505},
8506Create'IntValue'{},
8507}
8508
8509
8510An example using the event syntax:
8511
8512local part = Create'Part'{
8513[Create.E'Touched'] = function(part)
8514print("I was touched by "..part.Name)
8515end,
8516}
8517
8518
8519An example using the general constructor syntax:
8520
8521local model = Create'Part'{
8522[Create] = function(this)
8523print("Constructor running!")
8524this.Name = GetGlobalFoosAndBars(this)
8525end,
8526}
8527
8528
8529Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
8530any unexpected behavior. EG:
8531local partCreatingFunction = Create'Part'
8532local part = partCreatingFunction()
8533]]
8534
8535 --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
8536 --will be created in several steps rather than as a single function declaration.
8537 local function Create_PrivImpl(objectType)
8538 if type(objectType) ~= 'string' then
8539 error("Argument of Create must be a string", 2)
8540 end
8541 --return the proxy function that gives us the nice Create'string'{data} syntax
8542 --The first function call is a function call using Lua's single-string-argument syntax
8543 --The second function call is using Lua's single-table-argument syntax
8544 --Both can be chained together for the nice effect.
8545 return function(dat)
8546 --default to nothing, to handle the no argument given case
8547 dat = dat or {}
8548
8549 --make the object to mutate
8550 local obj = Instance.new(objectType)
8551 local parent = nil
8552
8553 --stored constructor function to be called after other initialization
8554 local ctor = nil
8555
8556 for k, v in pairs(dat) do
8557 --add property
8558 if type(k) == 'string' then
8559 if k == 'Parent' then
8560 -- Parent should always be set last, setting the Parent of a new object
8561 -- immediately makes performance worse for all subsequent property updates.
8562 parent = v
8563 else
8564 obj[k] = v
8565 end
8566
8567
8568 --add child
8569 elseif type(k) == 'number' then
8570 if type(v) ~= 'userdata' then
8571 error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
8572 end
8573 v.Parent = obj
8574
8575
8576 --event connect
8577 elseif type(k) == 'table' and k.__eventname then
8578 if type(v) ~= 'function' then
8579 error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
8580got: "..tostring(v), 2)
8581 end
8582 obj[k.__eventname]:connect(v)
8583
8584
8585 --define constructor function
8586 elseif k == t.Create then
8587 if type(v) ~= 'function' then
8588 error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
8589got: "..tostring(v), 2)
8590 elseif ctor then
8591 --ctor already exists, only one allowed
8592 error("Bad entry in Create body: Only one constructor function is allowed", 2)
8593 end
8594 ctor = v
8595
8596
8597 else
8598 error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
8599 end
8600 end
8601
8602 --apply constructor function if it exists
8603 if ctor then
8604 ctor(obj)
8605 end
8606
8607 if parent then
8608 obj.Parent = parent
8609 end
8610
8611 --return the completed object
8612 return obj
8613 end
8614 end
8615
8616 --now, create the functor:
8617 t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
8618
8619 --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
8620 --function can recognize as special.
8621 t.Create.E = function(eventName)
8622 return {__eventname = eventName}
8623 end
8624
8625 -------------------------------------------------Create function End----------------------------------------------------
8626
8627
8628
8629
8630 ------------------------------------------------------------------------------------------------------------------------
8631 ------------------------------------------------------------------------------------------------------------------------
8632 ------------------------------------------------------------------------------------------------------------------------
8633 ------------------------------------------------Documentation Begin-----------------------------------------------------
8634 ------------------------------------------------------------------------------------------------------------------------
8635 ------------------------------------------------------------------------------------------------------------------------
8636 ------------------------------------------------------------------------------------------------------------------------
8637
8638 t.Help =
8639 function(funcNameOrFunc)
8640 --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
8641 if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
8642 return "Function DecodeJSON. " ..
8643 "Arguments: (string). " ..
8644 "Side effect: returns a table with all parsed JSON values"
8645 end
8646 if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
8647 return "Function EncodeJSON. " ..
8648 "Arguments: (table). " ..
8649 "Side effect: returns a string composed of argument table in JSON data format"
8650 end
8651 if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
8652 return "Function MakeWedge. " ..
8653 "Arguments: (x, y, z, [default material]). " ..
8654 "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
8655 "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
8656 "Returns true if made a wedge, false if the cell remains a block "
8657 end
8658 if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
8659 return "Function SelectTerrainRegion. " ..
8660 "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
8661 "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
8662 "(this should be a region3 value). The selection box color is detemined by the color argument " ..
8663 "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
8664 "SelectEmptyCells is bool, when true will select all cells in the " ..
8665 "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
8666 "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
8667 "Also returns a second function that takes no arguments and destroys the selection"
8668 end
8669 if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
8670 return "Function CreateSignal. "..
8671 "Arguments: None. "..
8672 "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
8673 "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
8674 "Lua code. "..
8675 "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
8676 "For more info you can pass the method name to the Help function, or view the wiki page "..
8677 "for this library. EG: Help('Signal:connect')."
8678 end
8679 if funcNameOrFunc == "Signal:connect" then
8680 return "Method Signal:connect. "..
8681 "Arguments: (function handler). "..
8682 "Return: A connection object which can be used to disconnect the connection to this handler. "..
8683 "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
8684 "handler function will be called with the arguments passed to |fire|."
8685 end
8686 if funcNameOrFunc == "Signal:wait" then
8687 return "Method Signal:wait. "..
8688 "Arguments: None. "..
8689 "Returns: The arguments passed to the next call to |fire|. "..
8690 "Description: This call does not return until the next call to |fire| is made, at which point it "..
8691 "will return the values which were passed as arguments to that |fire| call."
8692 end
8693 if funcNameOrFunc == "Signal:fire" then
8694 return "Method Signal:fire. "..
8695 "Arguments: Any number of arguments of any type. "..
8696 "Returns: None. "..
8697 "Description: This call will invoke any connected handler functions, and notify any waiting code "..
8698 "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
8699 "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
8700 "it takes the connected handler functions to complete."
8701 end
8702 if funcNameOrFunc == "Signal:disconnect" then
8703 return "Method Signal:disconnect. "..
8704 "Arguments: None. "..
8705 "Returns: None. "..
8706 "Description: This call disconnects all handlers attacched to this function, note however, it "..
8707 "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
8708 "can also be called on the connection object which is returned from Signal:connect to only "..
8709 "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
8710 end
8711 if funcNameOrFunc == "Create" then
8712 return "Function Create. "..
8713 "Arguments: A table containing information about how to construct a collection of objects. "..
8714 "Returns: The constructed objects. "..
8715 "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
8716 "is best described via example, please see the wiki page for a description of how to use it."
8717 end
8718 end
8719
8720 --------------------------------------------Documentation Ends----------------------------------------------------------
8721
8722 return t
8723 end
8724
8725 local pistol = game:GetService("Players").LocalPlayer.Character["Black Type-37 Pulse Rifle"]
8726 pistol.Handle.CustomAtt0:Destroy()
8727 pistol.Handle.CustomAtt1:Destroy()
8728
8729 local bat = game:GetService("Players").LocalPlayer.Character["Jackette's SluggerAccessory"]
8730 bat.Handle.CustomAtt0:Destroy()
8731 bat.Handle.CustomAtt1:Destroy()
8732
8733 local function weld(part0, part1)
8734 local attachment0 = Instance.new("Attachment", part0)
8735 if part0 == pistol.Handle then
8736 attachment0.Rotation = Vector3.new(-90, -60, -270)
8737 elseif part0 == bat.Handle then
8738 attachment0.Position = Vector3.new(0, 0.5, 0)
8739 attachment0.Rotation = Vector3.new(0, -90, 0)
8740 end
8741 local attachment1 = Instance.new("Attachment", part1)
8742 local weldpos = Instance.new("AlignPosition", part0)
8743 weldpos.Attachment0 = attachment0
8744 weldpos.Attachment1 = attachment1
8745 weldpos.RigidityEnabled = false
8746 weldpos.ReactionForceEnabled = false
8747 weldpos.ApplyAtCenterOfMass = false
8748 weldpos.MaxForce = 10000
8749 weldpos.MaxVelocity = 10000
8750 weldpos.Responsiveness = 10000
8751 local weldrot = Instance.new("AlignOrientation", part0)
8752 weldrot.Attachment0 = attachment0
8753 weldrot.Attachment1 = attachment1
8754 weldrot.ReactionTorqueEnabled = true
8755 weldrot.PrimaryAxisOnly = false
8756 weldrot.MaxTorque = 10000
8757 weldrot.MaxAngularVelocity = 10000
8758 weldrot.Responsiveness = 10000
8759 end
8760
8761 ----------------------------------------------------------------
8762 --WATCH OUT HERE COMES THE COPPAS--
8763 ----------------------------------------------------------------
8764 --By CKbackup (Sugarie Saffron) --
8765 --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
8766 --Discord: Sugarie Saffron#4705 --
8767 ----------------------------------------------------------------
8768
8769 print([[
8770--Script Cop--
8771By CKbackup (Sugarie Saffron)
8772YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
8773Discord: Sugarie Saffron#4705
8774--------------------------------
8775As I've been demoted from my SB
8776Mod rank in VSB, I don't see the
8777need to hold this back any longer.
8778
8779Also, if the anims look weird or
8780the weapon looks out of place,
8781it's because it's actually modeled
8782off a scaled rig with a package.
8783It looks better with the Boy
8784package.
8785--------------------------------
8786(Keys)
8787M - Mute/Play Music
8788
8789(Hold) Q - Run
8790
8791Click - Baton Swing
8792Z - Pistol Shoot (You can also hold)
8793]])
8794
8795 wait(1/60)
8796 Effects = { }
8797 local attackm = nil
8798 local Player = game:service'Players'.localPlayer
8799 local chara = game:GetService("Players").LocalPlayer.Character["NullwareReanim"]
8800 local Humanoid = chara:FindFirstChildOfClass("Humanoid")
8801 local Mouse = Player:GetMouse()
8802 local LeftArm = chara["Left Arm"]
8803 local RightArm = chara["Right Arm"]
8804 local LeftLeg = chara["Left Leg"]
8805 local RightLeg = chara["Right Leg"]
8806 local Head = chara.Head
8807 local Torso = chara.Torso
8808 local RootPart = chara.HumanoidRootPart
8809 local RootJoint = RootPart.RootJoint
8810 local attack = false
8811 local Anim = 'Idle'
8812 local attacktype = 1
8813 local delays = false
8814 local play = true
8815 local targetted = nil
8816 local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
8817 local velocity = RootPart.Velocity.y
8818 local sine = 0
8819 local change = 1
8820 local doe = 0
8821 local Create = LoadLibrary("RbxUtility").Create
8822
8823 local plrs = game:GetService("Players")
8824 local plr = plrs.LocalPlayer
8825 local char = plr.Character
8826 local hrp = char.HumanoidRootPart
8827
8828 hrp.Name = "HumanoidRootPart"
8829 hrp.Transparency = 0.5
8830 hrp.Anchored = false
8831 if hrp:FindFirstChildOfClass("AlignPosition") then
8832 hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
8833 end
8834 if hrp:FindFirstChildOfClass("AlignOrientation") then
8835 hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
8836 end
8837 local bp = Instance.new("BodyPosition", hrp)
8838 bp.Position = hrp.Position
8839 bp.D = 9999999
8840 bp.P = 999999999999999
8841 bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
8842 local flinger = Instance.new("BodyAngularVelocity",hrp)
8843 flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
8844 flinger.P = 1000000000000000000000000000
8845 flinger.AngularVelocity = Vector3.new(10000,10000,10000)
8846
8847 spawn(function()
8848 while game:GetService("RunService").Heartbeat:Wait() do
8849 if attack == false then
8850 bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].HumanoidRootPart.Position
8851 end
8852 end
8853 end)
8854
8855 plr:GetMouse().Button1Down:Connect(function()
8856 repeat wait() until attack == true
8857 repeat
8858 game:GetService("RunService").Heartbeat:Wait()
8859 if attackm == "baton" then
8860 bp.Position = bat.Handle.Position
8861 end
8862 until attack == false
8863 end)
8864
8865 plr:GetMouse().KeyDown:Connect(function(key)
8866 if key == "z" then
8867 repeat wait() until attack == true
8868 repeat
8869 game:GetService("RunService").Heartbeat:Wait()
8870 if attackm == "gun" then
8871 if plr:GetMouse().Target ~= nil then
8872 bp.Position = plr:GetMouse().Hit.p
8873 end
8874 end
8875 until attack == false
8876 end
8877 end)
8878
8879 Humanoid.WalkSpeed = 16
8880
8881 Humanoid.Animator.Parent = nil
8882 chara.Animate.Parent = nil
8883
8884 local pos = Vector3.new(0,0,-50)
8885
8886 local newMotor = function(part0, part1, c0, c1)
8887 local w = Create('Motor'){
8888 Parent = part0,
8889 Part0 = part0,
8890 Part1 = part1,
8891 C0 = c0,
8892 C1 = c1,
8893 }
8894 return w
8895 end
8896
8897 function clerp(a, b, t)
8898 return a:lerp(b, t)
8899 end
8900
8901 RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
8902 NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
8903
8904 local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
8905 local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
8906 local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
8907 local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
8908 RootJoint.C1 = CFrame.new(0, 0, 0)
8909 RootJoint.C0 = CFrame.new(0, 0, 0)
8910 Torso.Neck.C1 = CFrame.new(0, 0, 0)
8911 Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
8912
8913
8914 local rarmc1 = RW.C1
8915 local larmc1 = LW.C1
8916 local rlegc1 = RH.C1
8917 local llegc1 = LH.C1
8918
8919 local resetc1 = false
8920
8921 function PlayAnimationFromTable(table, speed, bool)
8922 RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
8923 Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
8924 RW.C0 = clerp(RW.C0, table[3], speed)
8925 LW.C0 = clerp(LW.C0, table[4], speed)
8926 RH.C0 = clerp(RH.C0, table[5], speed)
8927 LH.C0 = clerp(LH.C0, table[6], speed)
8928 if bool == true then
8929 if resetc1 == false then
8930 resetc1 = true
8931 RootJoint.C1 = RootJoint.C1
8932 Torso.Neck.C1 = Torso.Neck.C1
8933 RW.C1 = rarmc1
8934 LW.C1 = larmc1
8935 RH.C1 = rlegc1
8936 LH.C1 = llegc1
8937 end
8938 end
8939 end
8940
8941
8942 frame = 0.03333333333333
8943 tf = 0
8944 allowframeloss = false
8945 tossremainder = false
8946 lastframe = tick()
8947 game:GetService("RunService").Heartbeat:connect(function(s, p)
8948 tf = tf + s
8949 if tf >= frame then
8950 if allowframeloss then
8951 lastframe = tick()
8952 else
8953 lastframe = tick()
8954 end
8955 if tossremainder then
8956 tf = 0
8957 else
8958 tf = tf - frame * math.floor(tf / frame)
8959 end
8960 end
8961 end)
8962 function swait(num)
8963 if num == 0 or num == nil then
8964 game:GetService("RunService").Heartbeat:Wait()
8965 else
8966 for i = 0, num do
8967 game:GetService("RunService").Heartbeat:Wait()
8968 end
8969 end
8970 end
8971
8972 function RemoveOutlines(part)
8973 part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
8974 end
8975
8976
8977 CFuncs = {
8978 ["Part"] = {
8979 Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
8980 local Part = Create("Part"){
8981 Parent = Parent,
8982 Reflectance = Reflectance,
8983 Transparency = Transparency,
8984 CanCollide = false,
8985 Locked = true,
8986 BrickColor = BrickColor.new(tostring(BColor)),
8987 Name = Name,
8988 Size = Size,
8989 Material = Material,
8990 }
8991 RemoveOutlines(Part)
8992 return Part
8993 end;
8994 };
8995
8996 ["Mesh"] = {
8997 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
8998 local Msh = Create(Mesh){
8999 Parent = Part,
9000 Offset = OffSet,
9001 Scale = Scale,
9002 }
9003 if Mesh == "SpecialMesh" then
9004 Msh.MeshType = MeshType
9005 Msh.MeshId = MeshId
9006 end
9007 return Msh
9008 end;
9009 };
9010
9011 ["Mesh"] = {
9012 Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
9013 local Msh = Create(Mesh){
9014 Parent = Part,
9015 Offset = OffSet,
9016 Scale = Scale,
9017 }
9018 if Mesh == "SpecialMesh" then
9019 Msh.MeshType = MeshType
9020 Msh.MeshId = MeshId
9021 end
9022 return Msh
9023 end;
9024 };
9025
9026 ["Weld"] = {
9027 Create = function(Parent, Part0, Part1, C0, C1)
9028 local Weld = Create("Weld"){
9029 Parent = Parent,
9030 Part0 = Part0,
9031 Part1 = Part1,
9032 C0 = C0,
9033 C1 = C1,
9034 }
9035 return Weld
9036 end;
9037 };
9038
9039 ["ParticleEmitter"] = {
9040 Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
9041 local fp = Create("ParticleEmitter"){
9042 Parent = Parent,
9043 Color = ColorSequence.new(Color1, Color2),
9044 LightEmission = LightEmission,
9045 Size = Size,
9046 Texture = Texture,
9047 Transparency = Transparency,
9048 ZOffset = ZOffset,
9049 Acceleration = Accel,
9050 Drag = Drag,
9051 LockedToPart = LockedToPart,
9052 VelocityInheritance = VelocityInheritance,
9053 EmissionDirection = EmissionDirection,
9054 Enabled = Enabled,
9055 Lifetime = LifeTime,
9056 Rate = Rate,
9057 Rotation = Rotation,
9058 RotSpeed = RotSpeed,
9059 Speed = Speed,
9060 VelocitySpread = VelocitySpread,
9061 }
9062 return fp
9063 end;
9064 };
9065
9066 CreateTemplate = {
9067
9068 };
9069 }
9070
9071
9072 function so(id,par,pit,vol)
9073 local sou = Instance.new("Sound", par or workspace)
9074 if par == chara then
9075 sou.Parent = chara.Torso
9076 end
9077 sou.Volume = vol
9078 sou.Pitch = pit or 1
9079 sou.SoundId = "rbxassetid://" .. id
9080 sou.PlayOnRemove = true
9081 sou:Destroy()
9082 end
9083
9084 local mus = Instance.new("Sound",Head)
9085 mus.Name = "mus"
9086 mus.SoundId = "rbxassetid://345868687"
9087 mus.Looped = true
9088 mus.Volume = 1
9089 mus:Play()
9090
9091 New = function(Object, Parent, Name, Data)
9092 local Object = Instance.new(Object)
9093 for Index, Value in pairs(Data or {}) do
9094 Object[Index] = Value
9095 end
9096 Object.Parent = Parent
9097 Object.Name = Name
9098 return Object
9099 end
9100
9101 local PoliceHat = New("Part",chara,"PoliceHat",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.400000006, 1),CFrame = CFrame.new(18.3999939, 1.20000005, -23.1000061, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
9102 local Mesh = New("SpecialMesh",PoliceHat,"Mesh",{Scale = Vector3.new(1.10000002, 1.20000005, 1.10000002),MeshId = "rbxassetid://1028788",TextureId = "rbxassetid://152240477",MeshType = Enum.MeshType.FileMesh,})
9103 local Weld = New("ManualWeld",PoliceHat,"Weld",{Part0 = PoliceHat,Part1 = Head,C1 = CFrame.new(0, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
9104 for i, v in pairs(chara:children()) do
9105 if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
9106 v:Destroy()
9107 elseif v.Name == "FakeHeadM" then
9108 v.Ahoge.Mesh.Scale = Vector3.new()
9109 elseif v.Name == "Chest" then
9110 for a, b in pairs(v:children()) do
9111 if b.Name ~= "Tail" then
9112 b.Transparency = 1
9113 end
9114 end
9115 end
9116 end
9117 local sh = Instance.new("Shirt",chara)
9118 local pn = Instance.new("Pants",chara)
9119 sh.ShirtTemplate = "rbxassetid://133284214"
9120 pn.PantsTemplate = "rbxassetid://15224239"
9121
9122
9123 bdefc0 = CFrame.new(.8,-1,0)*CFrame.Angles(math.rad(30),0,0)
9124 gdefc0 = CFrame.new(-.8,-1,0)*CFrame.Angles(math.rad(130),0,0)
9125
9126 local baton = Instance.new("Part",chara)
9127 baton.Name = "Baton"
9128 baton.Size = Vector3.new(.2,.2,3.2)
9129 baton.BrickColor = BrickColor.new("Really black")
9130 baton.CanCollide = false
9131 CFuncs.Mesh.Create("SpecialMesh", baton, "FileMesh", "rbxassetid://11820238", Vector3.new(), Vector3.new(1.5,1.5,1.5))
9132
9133 local bweld = Instance.new("Weld",baton)
9134 bweld.Part0 = Torso
9135 bweld.Part1 = baton
9136 bweld.C0 = bdefc0
9137
9138 local gun = Instance.new("Part", chara)
9139 gun.Name = "Gun"
9140 gun.Size = Vector3.new(.2,.2,.2)
9141 gun.BrickColor = BrickColor.new("Really black")
9142 gun.CanCollide = false
9143 CFuncs.Mesh.Create("SpecialMesh", gun, "FileMesh", "rbxassetid://72012879", Vector3.new(), Vector3.new(2,2,2))
9144
9145 local gweld = Instance.new("Weld", gun)
9146 gweld.Part0 = Torso
9147 gweld.Part1 = gun
9148 gweld.C0 = gdefc0
9149
9150 weld(pistol.Handle, gun)
9151 weld(bat.Handle, baton)
9152
9153 local att1 = Instance.new("Attachment",baton)
9154 att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2)
9155 local att2 = Instance.new("Attachment",baton)
9156 att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2)
9157 local tr1 = Instance.new("Trail",baton)
9158 tr1.Color = ColorSequence.new(Color3.new(1,1,1))
9159 tr1.Transparency = NumberSequence.new(0,1)
9160 tr1.Lifetime = .5
9161 tr1.Enabled = false
9162 tr1.LightEmission = 1
9163 tr1.Attachment0 = att1
9164 tr1.Attachment1 = att2
9165 local att3 = Instance.new("Attachment",RightLeg)
9166 att3.Position = Vector3.new(0,1,0)
9167 local att4 = Instance.new("Attachment",RightLeg)
9168 att4.Position = Vector3.new(0,-1,0)
9169 local tr2 = Instance.new("Trail",RightLeg)
9170 tr2.Color = ColorSequence.new(Color3.new(1,1,1))
9171 tr2.Transparency = NumberSequence.new(0,1)
9172 tr2.Lifetime = .5
9173 tr2.Enabled = false
9174 tr2.LightEmission = 1
9175 tr2.Attachment0 = att3
9176 tr2.Attachment1 = att4
9177
9178 function rayCast(Position, Direction, Range, Ignore)
9179 return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
9180 end
9181
9182 function mdmg(Part, Magnitude, HitType)
9183 for _, c in pairs(workspace:GetDescendants()) do
9184 local hum = c:FindFirstChildOfClass("Humanoid")
9185 if hum ~= nil then
9186 local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
9187 if head ~= nil then
9188 local targ = head.Position - Part.Position
9189 local mag = targ.magnitude
9190 if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
9191 if c.Name ~= chara then
9192 if c.Name ~= "CKbackup" or c.Name ~= "Nebula_Zorua" or c.Name ~= "Salvo_Starly" then
9193 local val = Instance.new("BoolValue",c)
9194 val.Name = "MagDmgd"
9195 local asd = Instance.new("ParticleEmitter",head)
9196 asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
9197 asd.LightEmission = .1
9198 asd.Size = NumberSequence.new(0.2)
9199 asd.Texture = "rbxassetid://771221224"
9200 aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
9201 bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
9202 asd.Transparency = bbb
9203 asd.Size = aaa
9204 asd.ZOffset = .9
9205 asd.Acceleration = Vector3.new(0, -5, 0)
9206 asd.LockedToPart = false
9207 asd.EmissionDirection = "Back"
9208 asd.Lifetime = NumberRange.new(1, 2)
9209 asd.Rate = 1000
9210 asd.Rotation = NumberRange.new(-100, 100)
9211 asd.RotSpeed = NumberRange.new(-100, 100)
9212 asd.Speed = NumberRange.new(6)
9213 asd.VelocitySpread = 10000
9214 asd.Enabled = false
9215 asd:Emit(20)
9216 game:service'Debris':AddItem(asd,3)
9217 --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
9218 if HitType == "Blunt" then
9219 so(386946017,head,.95,3)
9220 game:service'Debris':AddItem(val,1)
9221 elseif HitType == "Shot" then
9222 so(144884872,head,.9,3)
9223 game:service'Debris':AddItem(val,.05)
9224 end
9225 local soaa = Instance.new("Sound",c.Head)
9226 soaa.Volume = .5
9227 local cho = math.random(1,5)
9228 if cho == 1 then
9229 soaa.SoundId = "rbxassetid://111896685"
9230 elseif cho == 2 then
9231 soaa.SoundId = "rbxassetid://535528169"
9232 elseif cho == 3 then
9233 soaa.SoundId = "rbxassetid://1080363252"
9234 elseif cho == 4 then
9235 soaa.SoundId = "rbxassetid://147758746"
9236 elseif cho == 5 then
9237 soaa.SoundId = "rbxassetid://626777433"
9238 soaa.Volume = .2
9239 soaa.TimePosition = 1
9240 end
9241 game:service'Debris':AddItem(soaa,6)
9242 soaa:Play()
9243 for i,v in pairs(c:children()) do
9244 if v:IsA("LocalScript") or v:IsA("Tool") then
9245 v:Destroy()
9246 end
9247 end
9248 hum.PlatformStand = true
9249 head.Velocity = RootPart.CFrame.lookVector*50
9250 head.RotVelocity = Vector3.new(10,0,0)
9251 chatfunc("Let that be a warning!")
9252 coroutine.wrap(function()
9253 swait(5)
9254 c:BreakJoints() end)()
9255 else
9256 end
9257 end
9258 end
9259 end
9260 end
9261 end
9262 end
9263
9264--[[FindNearestTorso = function(pos)
9265local list = (game.workspace:GetDescendants())
9266local torso = nil
9267local dist = 1000
9268local temp, human, temp2 = nil, nil, nil
9269for x = 1, #list do
9270temp2 = list[x]
9271if temp2.className == "Model" and temp2.Name ~= chara.Name then
9272temp = temp2:findFirstChild("Torso")
9273human = temp2:FindFirstChildOfClass("Humanoid")
9274if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
9275local dohit = true
9276if dohit == true then
9277torso = temp
9278dist = (temp.Position - pos).magnitude
9279end
9280end
9281end
9282end
9283return torso, dist
9284end]]
9285
9286
9287 function FindNearestTorso(Position, Distance, SinglePlayer)
9288 if SinglePlayer then
9289 return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
9290 end
9291 local List = {}
9292 for i, v in pairs(workspace:GetDescendants()) do
9293 if v:IsA("Model") then
9294 if v:findFirstChild("Head") then
9295 if v ~= chara then
9296 if (v.Head.Position - Position).magnitude <= Distance then
9297 table.insert(List, v)
9298 end
9299 end
9300 end
9301 end
9302 end
9303 return List
9304 end
9305
9306
9307 --Chat Function--
9308 function chatfunc(text)
9309 coroutine.wrap(function()
9310 if chara:FindFirstChild("TalkingBillBoard")~= nil then
9311 chara:FindFirstChild("TalkingBillBoard"):destroy()
9312 end
9313 local naeeym2 = Instance.new("BillboardGui",chara)
9314 naeeym2.Size = UDim2.new(0,100,0,40)
9315 naeeym2.StudsOffset = Vector3.new(0,3,0)
9316 naeeym2.Adornee = chara.Head
9317 naeeym2.Name = "TalkingBillBoard"
9318 local tecks2 = Instance.new("TextLabel",naeeym2)
9319 tecks2.BackgroundTransparency = 1
9320 tecks2.BorderSizePixel = 0
9321 tecks2.Text = ""
9322 tecks2.Font = "Fantasy"
9323 tecks2.FontSize = "Size24"
9324 tecks2.TextStrokeTransparency = 0
9325 tecks2.TextColor3 = Color3.new(1,1,1)
9326 tecks2.TextStrokeColor3 = Color3.new(0,0,0)
9327 tecks2.Size = UDim2.new(1,0,0.5,0)
9328 for i = 1,string.len(text),1 do
9329 tecks2.Text = string.sub(text,1,i)
9330 swait()
9331 end
9332 swait(30)
9333 for i = 1, 5 do
9334 swait()
9335 tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
9336 tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
9337 tecks2.TextTransparency = tecks2.TextTransparency + .2
9338 end
9339 naeeym2:Destroy()
9340 end)()
9341 end
9342
9343
9344
9345 EffectModel = Create("Model"){
9346 Parent = chara,
9347 Name = "Effects",
9348 }
9349
9350
9351 Effects = {
9352 Block = {
9353 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
9354 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
9355 prt.Anchored = true
9356 prt.CFrame = cframe
9357 local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9358 game:GetService("Debris"):AddItem(prt, 10)
9359 if Type == 1 or Type == nil then
9360 table.insert(Effects, {
9361 prt,
9362 "Block1",
9363 delay,
9364 x3,
9365 y3,
9366 z3,
9367 msh
9368 })
9369 elseif Type == 2 then
9370 table.insert(Effects, {
9371 prt,
9372 "Block2",
9373 delay,
9374 x3,
9375 y3,
9376 z3,
9377 msh
9378 })
9379 end
9380 end;
9381 };
9382
9383 Cylinder = {
9384 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
9385 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
9386 prt.Anchored = true
9387 prt.CFrame = cframe
9388 local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9389 game:GetService("Debris"):AddItem(prt, 10)
9390 table.insert(Effects, {
9391 prt,
9392 "Cylinder",
9393 delay,
9394 x3,
9395 y3,
9396 z3,
9397 msh
9398 })
9399 end;
9400 };
9401 Head = {
9402 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
9403 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
9404 prt.Anchored = true
9405 prt.CFrame = cframe
9406 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9407 game:GetService("Debris"):AddItem(prt, 10)
9408 table.insert(Effects, {
9409 prt,
9410 "Cylinder",
9411 delay,
9412 x3,
9413 y3,
9414 z3,
9415 msh
9416 })
9417 end;
9418 };
9419
9420 Sphere = {
9421 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
9422 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
9423 prt.Anchored = true
9424 prt.CFrame = cframe
9425 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9426 game:GetService("Debris"):AddItem(prt, 10)
9427 table.insert(Effects, {
9428 prt,
9429 "Cylinder",
9430 delay,
9431 x3,
9432 y3,
9433 z3,
9434 msh
9435 })
9436 end;
9437 };
9438
9439 Elect = {
9440 Create = function(cff, x, y, z)
9441 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
9442 prt.Anchored = true
9443 prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
9444 prt.CFrame = CFrame.new(prt.Position)
9445 game:GetService("Debris"):AddItem(prt, 2)
9446 local xval = math.random() / 2
9447 local yval = math.random() / 2
9448 local zval = math.random() / 2
9449 local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
9450 table.insert(Effects, {
9451 prt,
9452 "Elec",
9453 0.1,
9454 x,
9455 y,
9456 z,
9457 xval,
9458 yval,
9459 zval
9460 })
9461 end;
9462
9463 };
9464
9465 Ring = {
9466 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
9467 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
9468 prt.Anchored = true
9469 prt.CFrame = cframe
9470 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9471 game:GetService("Debris"):AddItem(prt, 10)
9472 table.insert(Effects, {
9473 prt,
9474 "Cylinder",
9475 delay,
9476 x3,
9477 y3,
9478 z3,
9479 msh
9480 })
9481 end;
9482 };
9483
9484
9485 Wave = {
9486 Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
9487 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
9488 prt.Anchored = true
9489 prt.CFrame = cframe
9490 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9491 game:GetService("Debris"):AddItem(prt, 10)
9492 table.insert(Effects, {
9493 prt,
9494 "Cylinder",
9495 delay,
9496 x3,
9497 y3,
9498 z3,
9499 msh
9500 })
9501 end;
9502 };
9503
9504 Break = {
9505 Create = function(brickcolor, cframe, x1, y1, z1)
9506 local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
9507 prt.Anchored = true
9508 prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
9509 local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9510 local num = math.random(10, 50) / 1000
9511 game:GetService("Debris"):AddItem(prt, 10)
9512 table.insert(Effects, {
9513 prt,
9514 "Shatter",
9515 num,
9516 prt.CFrame,
9517 math.random() - math.random(),
9518 0,
9519 math.random(50, 100) / 100
9520 })
9521 end;
9522 };
9523
9524 Fire = {
9525 Create = function(brickcolor, cframe, x1, y1, z1, delay)
9526 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
9527 prt.Anchored = true
9528 prt.CFrame = cframe
9529 msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9530 game:GetService("Debris"):AddItem(prt, 10)
9531 table.insert(Effects, {
9532 prt,
9533 "Fire",
9534 delay,
9535 1,
9536 1,
9537 1,
9538 msh
9539 })
9540 end;
9541 };
9542
9543 FireWave = {
9544 Create = function(brickcolor, cframe, x1, y1, z1)
9545 local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
9546 prt.Anchored = true
9547 prt.CFrame = cframe
9548 msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
9549 local d = Create("Decal"){
9550 Parent = prt,
9551 Texture = "rbxassetid://26356434",
9552 Face = "Top",
9553 }
9554 local d = Create("Decal"){
9555 Parent = prt,
9556 Texture = "rbxassetid://26356434",
9557 Face = "Bottom",
9558 }
9559 game:GetService("Debris"):AddItem(prt, 10)
9560 table.insert(Effects, {
9561 prt,
9562 "FireWave",
9563 1,
9564 30,
9565 math.random(400, 600) / 100,
9566 msh
9567 })
9568 end;
9569 };
9570
9571 Lightning = {
9572 Create = function(p0, p1, tym, ofs, col, th, tra, last)
9573 local magz = (p0 - p1).magnitude
9574 local curpos = p0
9575 local trz = {
9576 -ofs,
9577 ofs
9578 }
9579 for i = 1, tym do
9580 local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
9581 local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
9582 local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
9583 li.Material = "Neon"
9584 if tym == i then
9585 local magz2 = (curpos - p1).magnitude
9586 li.Size = Vector3.new(th, th, magz2)
9587 li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
9588 table.insert(Effects, {
9589 li,
9590 "Disappear",
9591 last
9592 })
9593 else
9594 do
9595 do
9596 li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
9597 curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
9598 game.Debris:AddItem(li, 10)
9599 table.insert(Effects, {
9600 li,
9601 "Disappear",
9602 last
9603 })
9604 end
9605 end
9606 end
9607 end
9608 end
9609 };
9610
9611 EffectTemplate = {
9612
9613 };
9614 }
9615
9616
9617 function smek()
9618 attack = true
9619 bweld.Part0 = RightArm
9620 bweld.C0 = CFrame.new(-.2,-2,.4)*CFrame.Angles(math.rad(90),0,math.rad(180))
9621 Humanoid.WalkSpeed = 40
9622 for i=0,1,.2 do
9623 swait()
9624 PlayAnimationFromTable({
9625 CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
9626 CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
9627 CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1),
9628 CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012),
9629 CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616),
9630 CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
9631 }, .3, false)
9632 end
9633 Humanoid.WalkSpeed = 2
9634 tr1.Enabled = true
9635 so(536642316,baton,1,1)
9636 for i=0,1,.1 do
9637 swait()
9638 PlayAnimationFromTable({
9639 CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992),
9640 CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992),
9641 CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854),
9642 CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1),
9643 CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438),
9644 CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511),
9645 }, .3, false)
9646 chatfunc("Let that be a warning!")
9647 end
9648 swait(5)
9649 bweld.Part0 = Torso
9650 bweld.C0 = bdefc0
9651 Humanoid.WalkSpeed = 16
9652 tr1.Enabled = false
9653 attack = false
9654 end
9655
9656 function asmek()
9657 attack = true
9658 --local par
9659 --coroutine.wrap(function()
9660 --repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0
9661 --tr2.Enabled = false
9662 --attack = false
9663 --end)()
9664 --for i=0,1,.2 do
9665 --swait()
9666 --PlayAnimationFromTable({
9667 --CFrame.new(0, -0.0460019112, -0.0689063296, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
9668 --CFrame.new(0, 1.52556431, -0.222140759, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
9669 --CFrame.new(1.59158015, 0.575856388, 6.13234874e-07, 0.642787039, -0.766044974, -4.38231467e-07, 0.766045034, 0.642787039, 1.78813934e-07, 1.63912773e-07, -4.39584255e-07, 1.00000012),
9670 --CFrame.new(-1.59158027, 0.575856209, 6.13234988e-07, 0.642787039, 0.766044974, 4.38231467e-07, -0.766045034, 0.642787039, 1.78813934e-07, -1.63912773e-07, -4.39584255e-07, 1.00000012),
9671 --CFrame.new(0.499998927, -1.99999928, 3.81469772e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
9672 --CFrame.new(-0.5, -1.41182017, 0.232474089, 1, 0, 0, 0, 0.642786622, 0.766045392, 0, -0.766045392, 0.642786622),
9673 --}, .3, false)
9674 --end
9675 tr2.Enabled = true
9676 so(536642316,RightLeg,1,1)
9677 for i=0,1.5,.1 do
9678 swait()
9679 PlayAnimationFromTable({
9680 CFrame.new(0, -0.11843279, 0.00109164417, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414)*CFrame.Angles(math.rad(-360*i),0,0),
9681 CFrame.new(0, 1.36002374, -0.491580963, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
9682 CFrame.new(1.59157825, 0.575854659, 4.30346518e-06, 0.64278698, -0.766045034, -1.0103544e-07, 0.766045094, 0.64278698, -5.36441803e-07, 5.06639481e-07, 2.98023224e-07, 1.00000012),
9683 CFrame.new(-1.59158015, 0.575855613, 2.39611677e-06, 0.64278698, 0.766045034, 1.0103544e-07, -0.766045094, 0.64278698, -5.36441803e-07, -5.06639481e-07, 2.98023224e-07, 1.00000012),
9684 CFrame.new(0.399999022, -1.92074621, -0.716740668, 1, 0, 0, 0, 0.766044736, -0.642787457, 0, 0.642787457, 0.766044736),
9685 CFrame.new(-0.5, -1.41181993, 0.232477784, 1, 0, 0, 0, 0.642787457, 0.766044736, 0, -0.766044736, 0.642787457),
9686 }, .3, false)
9687 if i >= .4 then
9688 chatfunc("Let that be a warning!")
9689 end
9690 end
9691 tr2.Enabled = false
9692 attack = false
9693 end
9694
9695 local shots = 7
9696 zhold = true
9697 function shoot()
9698 attackm = "gun"
9699 attack = true
9700 so(169799883,gun,1,1)
9701 for i=0,1,.1 do
9702 swait()
9703 PlayAnimationFromTable({
9704 CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
9705 CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
9706 CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
9707 CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
9708 CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
9709 CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
9710 }, .3, false)
9711 end
9712 Humanoid.WalkSpeed = 2
9713 local ref = Instance.new("Part",chara)
9714 ref.Size = Vector3.new(0,0,0)
9715 ref.Anchored = true
9716 ref.CanCollide = false
9717 ref.Transparency = 1
9718 gweld.Part0 = RightArm
9719 gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
9720 chatfunc("Let that be a warning!")
9721 for i=0,1,.1 do
9722 swait()
9723 PlayAnimationFromTable({
9724 CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9725 CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9726 CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
9727 CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
9728 CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9729 CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9730 }, .3, false)
9731 end
9732 swait(5)
9733 repeat
9734 so(470245800,gun,1,1)
9735 ref.CFrame = Mouse.Hit
9736 local hitpt = Instance.new("Part",EffectModel)
9737 hitpt.Size = Vector3.new(0,0,.3)
9738 local bf = Instance.new("BodyVelocity",hitpt)
9739 bf.P = 10000
9740 bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
9741 game:service'Debris':AddItem(bf,.1)
9742 hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
9743 bf.Velocity = Vector3.new(0,5,0) + RootPart.CFrame.rightVector*10
9744 local hitm = Instance.new("SpecialMesh",hitpt)
9745 hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
9746 hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
9747 hitm.Scale = Vector3.new(3,3,3.5)
9748 coroutine.wrap(function()
9749 swait(120)
9750 for i = 0,1.1 do
9751 swait()
9752 hitpt.Transparency = i
9753 end
9754 hitpt:Destroy()
9755 end)()
9756 Effects.Block.Create(BrickColor.new("Bright yellow"), gun.CFrame*CFrame.new(0,.6,.3), 0,0,0,1,1,1, 0.05)
9757 shots = shots - 1
9758 for i=0,1,.2 do
9759 swait()
9760 PlayAnimationFromTable({
9761 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9762 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9763 CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
9764 CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
9765 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9766 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9767 }, .3, false)
9768 end
9769 for i=0,1,.2 do
9770 swait()
9771 PlayAnimationFromTable({
9772 CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9773 CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9774 CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
9775 CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
9776 CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9777 CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9778 }, .3, false)
9779 end
9780 if shots == 0 then
9781 so(147323220,gun,1,1)
9782 for i=0,1.3,.1 do
9783 swait()
9784 PlayAnimationFromTable({
9785 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9786 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9787 CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
9788 CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
9789 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9790 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9791 }, .3, false)
9792 end
9793 local MagPartt = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000033, 0.399999976, 1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
9794 MagPartt.CFrame = gun.CFrame * CFrame.new(0,-.5,-.5) * CFrame.Angles(0,0,0)
9795 coroutine.wrap(function()
9796 swait(5)
9797 MagPartt.CanCollide = true
9798 swait(120)
9799 for i = 0,1.1 do
9800 swait()
9801 MagPartt.Transparency = i
9802 end
9803 MagPartt:Destroy()
9804 end)()
9805 swait(10)
9806 local MagPart = New("Part",chara,"MagPart",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(.2,.4,1),CFrame = CFrame.new(-9.29999638, 0.700002313, -0.200002074, 1, 0, 0, 0, 0, 1, 0, -1, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
9807 local Weld = New("ManualWeld",MagPart,"Weld",{Part0 = MagPart,Part1 = chara["Left Arm"],C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(0)),C1 = CFrame.new(0.200001717, -1.20000005, -0.200000286, 1, 0, 0, 0, 0, 1, 0, -1, 0),})
9808 for i=0,1.4,.2 do
9809 swait()
9810 PlayAnimationFromTable({
9811 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9812 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9813 CFrame.new(0.973445654, 1.13885617, -0.660623372, 0.766044199, 0.642787933, 5.27496837e-08, 0.413175672, -0.492403269, -0.766045034, -0.492404401, 0.586824477, -0.64278698),
9814 CFrame.new(-0.516991675, 0.65931946, -0.711421967, 0, -0.499999166, 0.866025925, 0.766044796, -0.556670487, -0.321393073, 0.642787218, 0.663414717, 0.383021772),
9815 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9816 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9817 }, .3, false)
9818 end
9819 MagPart:Destroy()
9820 swait(5)
9821 for i=0,1,.2 do
9822 swait()
9823 PlayAnimationFromTable({
9824 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9825 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9826 CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
9827 CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
9828 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9829 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9830 }, .3, false)
9831 end
9832 so(506273075,gun,1,1)
9833 for i=0,1,.2 do
9834 swait()
9835 PlayAnimationFromTable({
9836 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9837 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9838 CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
9839 CFrame.new(-0.629361629, 0.793605626, -0.495871037, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
9840 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9841 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9842 }, .3, false)
9843 end
9844 for i=0,1,.2 do
9845 swait()
9846 PlayAnimationFromTable({
9847 CFrame.new(0, -0.0301530343, -0.171007201, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9848 CFrame.new(0.0984815434, 1.48289728, -0.00301322341, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9849 CFrame.new(1.16020393, 0.666379213, -0.905047119, 0.76604414, 0.604023218, 0.219846413, 0.219846308, 0.0751920938, -0.972632408, -0.604023278, 0.793411791, -0.0751917362),
9850 CFrame.new(-0.629211903, 0.930547178, -0.87133497, 0.262002915, -0.642787874, -0.71984607, -0.958213985, -0.262002975, -0.114805877, -0.114805937, 0.71984601, -0.684573948),
9851 CFrame.new(0.499999523, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9852 CFrame.new(-0.500000954, -1.99999809, -1.84774399e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9853 }, .3, false)
9854 end
9855 shots = 7
9856 swait(10)
9857 for i=0,1,.2 do
9858 swait()
9859 PlayAnimationFromTable({
9860 CFrame.new(0, -0.0301527902, -0.171009317, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
9861 CFrame.new(0.0984806046, 1.48289788, -0.00301507115, 0.984807849, 0.173648134, -3.13053391e-07, -0.171010122, 0.969846427, -0.173647895, -0.0301533248, 0.171009824, 0.984807849),
9862 CFrame.new(0.9734447, 0.943128467, -1.04116416, 0.76604414, 0.642788053, 0, 0.219846308, -0.262002349, -0.939692736, -0.604023278, 0.719846129, -0.342019886),
9863 CFrame.new(-0.516993761, 0.475136518, -0.924885869, 0, -0.499998987, 0.866025984, 0.939692736, -0.29619813, -0.171009615, 0.342019886, 0.813798308, 0.469845414),
9864 CFrame.new(0.5, -1.72638702, -0.751741886, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9865 CFrame.new(-0.500000238, -1.99999905, 5.96046164e-08, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
9866 }, .3, false)
9867 end
9868 end
9869 until zhold == false
9870 swait(5)
9871 ref:Destroy()
9872 so(211134014,gun,1,1)
9873 for i=0,1,.1 do
9874 swait()
9875 PlayAnimationFromTable({
9876 CFrame.new(0.0524868444, 0, -0.0110093001, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
9877 CFrame.new(-0.0421711877, 1.49999738, -0.0331315249, 0.852868021, -0.0612752885, -0.518518507, 0.17364794, 0.969846606, 0.171008661, 0.492404759, -0.235887513, 0.837791562),
9878 CFrame.new(0.611007333, -0.00932076573, -0.639356554, 0.653100669, 0.696805716, -0.296515375, -0.748181939, 0.533255994, -0.394793421, -0.116975725, 0.479687244, 0.869607329),
9879 CFrame.new(-1.29161143, -0.030067116, -0.0939707607, 0.98480773, -0.163176328, 0.0593894422, 0.173647985, 0.925416648, -0.336824149, 1.78813934e-06, 0.342019945, 0.939692736),
9880 CFrame.new(0.499998003, -2.00000095, 3.84449959e-06, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
9881 CFrame.new(-0.499998897, -2.00000095, 1.59442425e-06, 0.98480767, 0, 0.173648536, 0, 1, 0, -0.173648536, 0, 0.98480767),
9882 }, .3, false)
9883 end
9884 gweld.Part0 = Torso
9885 gweld.C0 = gdefc0
9886 Humanoid.WalkSpeed = 16
9887 attack = false
9888 end
9889
9890 qhold = false
9891 justsprinted = false
9892 function sprint()
9893 attack = true
9894 --print("supurinto?")
9895 --justsprinted = true
9896 --coroutine.wrap(function()
9897 --swait(10)
9898 --justsprinted = false
9899 --end)()
9900 repeat
9901 swait()
9902 PlayAnimationFromTable({
9903 CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
9904 CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
9905 CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, -.6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
9906 CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
9907 CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
9908 CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
9909 }, .3, false)
9910 Humanoid.WalkSpeed = 40
9911 until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
9912 --print'sutoppu'
9913 Humanoid.WalkSpeed = 16
9914 attack = false
9915 end
9916
9917 Mouse.Button1Down:connect(function()
9918 if attack == false then
9919 attackm = "baton"
9920 if Anim == "Jump" or Anim == "Fall" then
9921 asmek()
9922 else
9923 smek()
9924 end
9925 end
9926 end)
9927
9928 local sprintt = 0
9929
9930
9931 Mouse.KeyDown:connect(function(k)
9932 k = k:lower()
9933 if k=='m' then
9934 if mus.IsPlaying == true then
9935 mus:Stop()
9936 elseif mus.IsPaused == true then
9937 mus:Play()
9938 end
9939 end
9940 if attack == false then
9941 if k == 'q' then
9942 qhold = true
9943 sprint()
9944 elseif k == 'z' then
9945 zhold = true
9946 shoot()
9947 end
9948 end
9949 end)
9950
9951
9952 Mouse.KeyUp:connect(function(k)
9953 k = k:lower()
9954 if k == 'q' then
9955 qhold = false
9956 elseif k == 'z' then
9957 zhold = false
9958 end
9959 end)
9960
9961
9962 coroutine.wrap(function()
9963 while 1 do
9964 swait()
9965 if doe <= 360 then
9966 doe = doe + 2
9967 else
9968 doe = 0
9969 end
9970 end
9971 end)()
9972 while true do
9973 swait()
9974 for i, v in pairs(chara:GetChildren()) do
9975 if v:IsA("Part") then
9976 v.Material = "SmoothPlastic"
9977 elseif v:IsA("Accessory") then
9978 v:WaitForChild("Handle").Material = "SmoothPlastic"
9979 end
9980 end
9981 while true do
9982 swait()
9983 if sprintt >= 1 then
9984 sprintt = sprintt - 1
9985 end
9986
9987 if Head:FindFirstChild("mus")==nil then
9988 mus = Instance.new("Sound",Head)
9989 mus.Name = "mus"
9990 mus.SoundId = "rbxassetid://345868687"
9991 mus.Looped = true
9992 mus.Volume = 1
9993 mus:Play()
9994 end
9995 Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
9996 velocity = RootPart.Velocity.y
9997 sine = sine + change
9998 local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
9999 if RootPart.Velocity.y > 1 and hit == nil then
10000 Anim = "Jump"
10001 if attack == false then
10002 PlayAnimationFromTable({
10003 CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
10004 CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
10005 CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
10006 CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
10007 CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
10008 CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
10009 }, .3, false)
10010 end
10011 elseif RootPart.Velocity.y < -1 and hit == nil then
10012 Anim = "Fall"
10013 if attack == false then
10014 PlayAnimationFromTable({
10015 CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
10016 CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
10017 CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
10018 CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
10019 CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
10020 CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
10021 }, .3, false)
10022 end
10023 elseif Torsovelocity < 1 and hit ~= nil then
10024 Anim = "Idle"
10025 if attack == false then
10026 change = 1
10027 PlayAnimationFromTable({
10028 CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
10029 CFrame.new(0, 1.49999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
10030 CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
10031 CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
10032 CFrame.new(0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
10033 CFrame.new(-0.5, -1.99999893, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
10034 }, .3, false)
10035 end
10036 elseif Torsovelocity > 2 and hit ~= nil then
10037 Anim = "Walk"
10038 if attack == false then
10039 PlayAnimationFromTable({
10040 CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0),
10041 CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
10042 CFrame.new(0.89930898, -0.180769742, 0.30436784, 0.766043901, 0.642788172, 8.56792951e-07, -0.556670964, 0.663412929, 0.500000715, 0.321393967, -0.383022994, 0.866024971),
10043 CFrame.new(-0.899309754, -0.180769712, 0.304367989, 0.766043901, -0.642788172, -8.56792951e-07, 0.556670964, 0.663412929, 0.500000715, -0.321393967, -0.383022994, 0.866024971),
10044 CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
10045 CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
10046 }, .3, false)
10047 end
10048 end
10049 if 0 < #Effects then
10050 for e = 1, #Effects do
10051 if Effects[e] ~= nil then
10052 local Thing = Effects[e]
10053 if Thing ~= nil then
10054 local Part = Thing[1]
10055 local Mode = Thing[2]
10056 local Delay = Thing[3]
10057 local IncX = Thing[4]
10058 local IncY = Thing[5]
10059 local IncZ = Thing[6]
10060 if Thing[2] == "Shoot" then
10061 local Look = Thing[1]
10062 local move = 30
10063 if Thing[8] == 3 then
10064 move = 10
10065 end
10066 local hit, pos = rayCast(Thing[4], Thing[1], move, m)
10067 if Thing[10] ~= nil then
10068 da = pos
10069 cf2 = CFrame.new(Thing[4], Thing[10].Position)
10070 cfa = CFrame.new(Thing[4], pos)
10071 tehCF = cfa:lerp(cf2, 0.2)
10072 Thing[1] = tehCF.lookVector
10073 end
10074 local mag = (Thing[4] - pos).magnitude
10075 Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
10076 if Thing[8] == 2 then
10077 Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
10078 end
10079 Thing[4] = Thing[4] + Look * move
10080 Thing[3] = Thing[3] - 1
10081 if 2 < Thing[5] then
10082 Thing[5] = Thing[5] - 0.3
10083 Thing[6] = Thing[6] - 0.3
10084 end
10085 if hit ~= nil then
10086 Thing[3] = 0
10087 if Thing[8] == 1 or Thing[8] == 3 then
10088 Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
10089 else
10090 if Thing[8] == 2 then
10091 Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
10092 if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
10093 ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
10094 ref.Anchored = true
10095 ref.CFrame = CFrame.new(pos)
10096 CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
10097 game:GetService("Debris"):AddItem(ref, 0.2)
10098 Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
10099 Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
10100 MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
10101 end
10102 end
10103 end
10104 ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
10105 ref.Anchored = true
10106 ref.CFrame = CFrame.new(pos)
10107 Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
10108 game:GetService("Debris"):AddItem(ref, 1)
10109 end
10110 if Thing[3] <= 0 then
10111 table.remove(Effects, e)
10112 end
10113 end
10114 do
10115 do
10116 if Thing[2] == "FireWave" then
10117 if Thing[3] <= Thing[4] then
10118 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
10119 Thing[3] = Thing[3] + 1
10120 Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
10121 else
10122 Part.Parent = nil
10123 table.remove(Effects, e)
10124 end
10125 end
10126 if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
10127 if Thing[1].Transparency <= 1 then
10128 if Thing[2] == "Block1" then
10129 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
10130 Mesh = Thing[7]
10131 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
10132 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10133 else
10134 if Thing[2] == "Block2" then
10135 Thing[1].CFrame = Thing[1].CFrame
10136 Mesh = Thing[7]
10137 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
10138 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10139 else
10140 if Thing[2] == "Fire" then
10141 Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
10142 Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
10143 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10144 else
10145 if Thing[2] == "Cylinder" then
10146 Mesh = Thing[7]
10147 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
10148 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10149 else
10150 if Thing[2] == "Blood" then
10151 Mesh = Thing[7]
10152 Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
10153 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
10154 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10155 else
10156 if Thing[2] == "Elec" then
10157 Mesh = Thing[10]
10158 Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
10159 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10160 else
10161 if Thing[2] == "Disappear" then
10162 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10163 else
10164 if Thing[2] == "Shatter" then
10165 Thing[1].Transparency = Thing[1].Transparency + Thing[3]
10166 Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
10167 Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
10168 Thing[6] = Thing[6] + Thing[5]
10169 end
10170 end
10171 end
10172 end
10173 end
10174 end
10175 end
10176 end
10177 else
10178 Part.Parent = nil
10179 table.remove(Effects, e)
10180 end
10181 end
10182 end
10183 end
10184 end
10185 end
10186 end
10187 end
10188 end
10189 end
10190end)
10191
10192TextLabel_3.Parent = main
10193TextLabel_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
10194TextLabel_3.Position = UDim2.new(0, 0, 1, 0)
10195TextLabel_3.Size = UDim2.new(0, 451, 0, 40)
10196TextLabel_3.Font = Enum.Font.SourceSansBold
10197TextLabel_3.Text = "Thanks to app#9846 for making this hub."
10198TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
10199TextLabel_3.TextScaled = true
10200TextLabel_3.TextSize = 14.000
10201TextLabel_3.TextWrapped = true