SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Lightning Cannon (FE Version) | |
3 | Edit by NGC4637 | |
4 | you should use this hat (not required): https://www.roblox.com/catalog/4623059912/Starslayer-Railgun | |
5 | ]]-- | |
6 | ||
7 | --usage | |
8 | ||
9 | local FEService = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/WhyGitHubb/FEService/main/main.lua"))() | |
10 | ||
11 | ||
12 | FEService:FullNetwork() | |
13 | ||
14 | print(game.Players.LocalPlayer.SimulationRadius) | |
15 | ||
16 | local PS = game:GetService("Players") | |
17 | local RnS = game:GetService("RunService") | |
18 | local DB = game:GetService("Debris") | |
19 | local TS = game:GetService("TweenService") | |
20 | ||
21 | local plr = PS.LocalPlayer | |
22 | local frame = 1/60 | |
23 | local frame1260 = 12/60 | |
24 | local frame30 = 1/30 | |
25 | ||
26 | local stopeverything = false | |
27 | ||
28 | if _G.ResetBind then | |
29 | _G.ResetBind:Fire() | |
30 | plr.CharacterAdded:Wait() | |
31 | task.wait(1) | |
32 | - | local aeeve |
32 | + | |
33 | - | aeeve = RnS.Heartbeat:Connect(function() |
33 | + | |
34 | - | if stopeverything then aeeve:Disconnect() end |
34 | + | |
35 | - | for _, v in ipairs(plr.Character:GetDescendants()) do |
35 | + | |
36 | - | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then |
36 | + | |
37 | - | v.Velocity = Vector3.new(0, 30, 0) |
37 | + | |
38 | Bypass = "death" | |
39 | loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)() | |
40 | ||
41 | ||
42 | local dti = TweenInfo.new(frame, Enum.EasingStyle.Linear) | |
43 | - | plr.CharacterRemoving:Wait() |
43 | + | |
44 | - | aeeve:Disconnect() |
44 | + | |
45 | local function tweenc(w, cf) | |
46 | pcall(function() TS:Create(w, dti, {C0 = cf}):Play() end) | |
47 | end | |
48 | ||
49 | local function tweenc2(w, cf) | |
50 | pcall(function() TS:Create(w, dti2, {C0 = cf}):Play() end) | |
51 | end | |
52 | ||
53 | local function tweenc1(w, cf) | |
54 | pcall(function() TS:Create(w, dti, {C1 = cf}):Play() end) | |
55 | end | |
56 | ||
57 | local function tween(p, props) | |
58 | pcall(function() TS:Create(p, dti, props):Play() end) | |
59 | end | |
60 | ||
61 | local function tfind(t, val) | |
62 | for i, v in ipairs(t) do | |
63 | if val == v then | |
64 | return i | |
65 | end | |
66 | end | |
67 | end | |
68 | ||
69 | local chr = plr.Character | |
70 | local m = plr:GetMouse() | |
71 | local larm = chr:WaitForChild("Left Arm") | |
72 | local rarm = chr:WaitForChild("Right Arm") | |
73 | local lleg = chr:WaitForChild("Left Leg") | |
74 | local rleg = chr:WaitForChild("Right Leg") | |
75 | local h = chr:WaitForChild("Head") | |
76 | local tor = chr:WaitForChild("Torso") | |
77 | local hum = chr:WaitForChild("Humanoid") | |
78 | local root = chr:WaitForChild("HumanoidRootPart") | |
79 | local cam = workspace.CurrentCamera | |
80 | ||
81 | local nophys = PhysicalProperties.new(0, 0, 0, 0, 0) | |
82 | ||
83 | for _, v in ipairs(chr:GetChildren()) do | |
84 | if v:IsA("Accessory") then | |
85 | local h = v.Handle | |
86 | h.Massless = true | |
87 | h.CustomPhysicalProperties = nophys | |
88 | end | |
89 | end | |
90 | ||
91 | local function netl(p) | |
92 | pcall(function() p.Massless = true end) | |
93 | pcall(function() p.CustomPhysicalProperties = nophys end) | |
94 | end | |
95 | ||
96 | netl(h) | |
97 | netl(tor) | |
98 | netl(rarm) | |
99 | netl(larm) | |
100 | netl(rleg) | |
101 | netl(lleg) | |
102 | netl(root) | |
103 | ||
104 | warn("Netless Activated!") | |
105 | ||
106 | local bullet = workspace[plr.Name].HumanoidRootPart | |
107 | bullet.Transparency = 0.8 | |
108 | bhandle = bullet | |
109 | bullet.Massless = true | |
110 | ||
111 | local lt = true | |
112 | local ltt = false | |
113 | ||
114 | local function firstperson() | |
115 | return (h.CFrame.Position - cam.CFrame.Position).Magnitude < 1 | |
116 | end | |
117 | ||
118 | local function create(cls, par, props) | |
119 | local ins = Instance.new(cls) | |
120 | local p = par | |
121 | ||
122 | for i, v in pairs(props) do | |
123 | if tostring(i) == "Parent" and not p then | |
124 | p = v | |
125 | else | |
126 | pcall(function() ins[i] = v end) | |
127 | end | |
128 | end | |
129 | ||
130 | if p then ins.Parent = p end | |
131 | return ins | |
132 | end | |
133 | ||
134 | local function swait(num) | |
135 | task.wait((num and math.clamp(num, 0, math.huge) or 1)/60) | |
136 | end | |
137 | ||
138 | local function Clerp(ae, be, te) | |
139 | return ae:Lerp(be, math.clamp(te, 0, 1)) | |
140 | end | |
141 | ||
142 | local bbv = create("BodyPosition", bhandle, {Position = tor.CFrame.Position}) | |
143 | local attackingwithhrp = false | |
144 | ||
145 | create("BodyAngularVelocity", bhandle, {Name = "lmaoaoaoaoaoa", MaxTorque = Vector3.new(math.huge, math.huge, math.huge), P = 1000000000000000000000000000, AngularVelocity = Vector3.new(10^26, 10^26, 10^26)}) | |
146 | ||
147 | m.Button1Down:Connect(function() | |
148 | attackingwithhrp = true | |
149 | ||
150 | local qeuiqwioeoqweuoiqw | |
151 | qeuiqwioeoqweuoiqw = RnS.Heartbeat:Connect(function() | |
152 | if not qeuiqwioeoqweuoiqw.Connected then return end | |
153 | if not attackingwithhrp or stopeverything then qeuiqwioeoqweuoiqw:Disconnect() return end | |
154 | ||
155 | if m.Target then | |
156 | bullet.Position = m.Hit.Position | |
157 | end | |
158 | end) | |
159 | ||
160 | lt = false | |
161 | ltt = false | |
162 | ||
163 | if not m.Target then return end | |
164 | ||
165 | local targ = m.Target | |
166 | if PS:GetPlayerFromCharacter(targ.Parent) then | |
167 | if targ.Parent.Name == chr.Name or m.Target.Parent.Name == "non" then return end | |
168 | if not targ.Parent:FindFirstChild("HumanoidRootPart") then return end | |
169 | local pos = CFrame.new(targ.Parent.HumanoidRootPart.CFrame.Position, tor.CFrame.Position).Position | |
170 | RnS.RenderStepped:Wait() | |
171 | bhandle.Position = pos | |
172 | task.wait(1) | |
173 | elseif targ.Parent.Parent and PS:GetPlayerFromCharacter(targ.Parent.Parent) then | |
174 | if targ.Parent.Name == chr.Name or m.Target.Parent.Name == "non" then return end | |
175 | if not targ.Parent.Parent:FindFirstChild("HumanoidRootPart") then return end | |
176 | local pos = CFrame.new(targ.Parent.Parent.HumanoidRootPart.CFrame.Position, tor.CFrame.Position).Position | |
177 | RnS.RenderStepped:Wait() | |
178 | bhandle.Position = pos | |
179 | task.wait(1) | |
180 | else | |
181 | RnS.RenderStepped:Wait() | |
182 | task.wait(1) | |
183 | end | |
184 | task.wait(frame30) | |
185 | lt = true | |
186 | end) | |
187 | ||
188 | m.Button1Up:Connect(function() | |
189 | attackingwithhrp = false | |
190 | end) | |
191 | ||
192 | local qweoqweqeoqioqw | |
193 | qweoqweqeoqioqw = RnS.Heartbeat:Connect(function() | |
194 | if not qweoqweqeoqioqw.Connected then return end | |
195 | if not bullet.Parent or stopeverything then qweoqweqeoqioqw:Disconnect() return end | |
196 | bullet.Velocity = Vector3.new(0, 26, 0) | |
197 | end) | |
198 | ||
199 | local LoadLibrary = game:GetObjects("rbxassetid://8299466510")[1] | |
200 | ||
201 | warn("NOTICE | THIS SCRIPT WASNT CONVERTED ALL BY ME, ALL CREDITS GOTO ALSOO3 FOR CONVERTING IT AND GIVING ME ACCESS. I FIXED FUNCTIONS AND REMOVED BROKEN THINGS") | |
202 | ||
203 | local function Align(Part0, Part1, Position, Angle) | |
204 | if Part0:FindFirstChild("Attachment") then | |
205 | Part0:FindFirstChild("Attachment"):Destroy() | |
206 | end | |
207 | ||
208 | local atc1 = create("Attachment", Part0, {}) | |
209 | local atc2 = create("Attachment", Part1, {Position = Position or Vector3.zero, Orientation = Angle or Vector3.zero}) | |
210 | ||
211 | local alp = create("AlignPosition", Part0, {Attachment0 = atc1, Attachment1 = atc2, MaxForce = math.huge, MaxVelocity = math.huge, ReactionForceEnabled = false, Responsiveness = 200, ApplyAtCenterOfMass = true, RigidityEnabled = true}) | |
212 | local alo = create("AlignOrientation", Part0, {Attachment0 = atc1, Attachment1 = atc2, MaxTorque = math.huge, MaxAngularVelocity = math.huge, PrimaryAxisOnly = false, Responsiveness = 200, RigidityEnabled = false, ReactionTorqueEnabled = false}) | |
213 | ||
214 | local qowieuioqweuiq | |
215 | qowieuioqweuiq = RnS.Heartbeat:Connect(function() | |
216 | if not qowieuioqweuiq.Connected then return end | |
217 | if not Part0.Parent or stopeverything then qowieuioqweuiq:Disconnect() return end | |
218 | ||
219 | Part0.Velocity = Vector3.new(-29.99, 0, 0) | |
220 | end) | |
221 | ||
222 | if Part0.Parent:IsA("Accessory") then | |
223 | Part0:BreakJoints() | |
224 | end | |
225 | end | |
226 | ||
227 | stupidaudios = {6136889498,6292270197,5127063380,5747795632,6231908115,1845756489,5971920694,35930009,2681542649,290182215,3223632353,6332608471,4568024466,6174456295,844654533,2740998756,6372483829,1431922590,853707984,227499602,1245089023,272106829,169803200,3208758673,4538419460,3337479905,2952541965,516046413,328792905,4218637880,3237542680} | |
228 | ||
229 | local function randomstring() | |
230 | local txt = "" | |
231 | for i = 1, math.random(10, 20) do | |
232 | txt ..= string.char(math.random(14, 126)) | |
233 | end | |
234 | return txt | |
235 | end | |
236 | local function otherrandomstring(length) | |
237 | local txt = "" | |
238 | for i = 1, length do | |
239 | txt ..= string.char(math.random(14, 255)) | |
240 | end | |
241 | return txt | |
242 | end | |
243 | local function otherrandomstring2(length,randmin,randmax) | |
244 | local txt = "" | |
245 | for i = 1, length do | |
246 | txt ..= string.char(math.random(randmin, randmax)) | |
247 | end | |
248 | return txt | |
249 | end | |
250 | local function minutes(num) | |
251 | return num*60 | |
252 | end | |
253 | local plr = game:GetService("Players").LocalPlayer | |
254 | local sine = 0 | |
255 | local NeckSnap = false | |
256 | local USERNAME = plr.Name | |
257 | local peoplez = {1191576743,1823895019,87867914,1308783007,112192467,732341111,115130006,1710676584,1442214824,1615916525,1442218084,1673231425,1310685079,1087181414,984151503,1442167487,1587587028,1441994738,1129585258,1129586211,275036820,1087264812,1087241085,1318469264,1622394251,663322373,1664828681,930999813,1442217078,1442208195,1340979865,1444403544,1664860157,1442285617,1442213697,1442218738,1442229346,1442213021,1124518548,1129587486,1186716325} | |
258 | local owner = {0,1823895019,0,1308783007,0,0,0,1710676584,1442214824,1615916525,1442218084,1673231425,1310685079,1087181414,984151503,1442167487,1587587028,1441994738,1129585258,1129586211,275036820,1087264812,1087241085,1318469264,1622394251,663322373,1664828681,930999813,1442217078,1442208195,1340979865,1444403544,1664860157,1442285617,1442213697,1442218738,1442229346,1442213021,1124518548,1129587486,1186716325} | |
259 | local isowner = false | |
260 | local rickrolling = false | |
261 | local USERID = plr.UserId | |
262 | local taunt = {Value = "None"} | |
263 | local songid = {Value = "rbxassetid://3247404955"} | |
264 | local attack = false | |
265 | local walkspeed = 50 | |
266 | local TauntRemote = {} | |
267 | local SongSync = {Value = 0} | |
268 | local ISFLYING = false | |
269 | local antivoid = nil | |
270 | ||
271 | local char = workspace.non | |
272 | local character = plr.Character | |
273 | local Mouse, mouse, MOUSE, M = m, m, m, m | |
274 | ||
275 | local S = 1 | |
276 | local eeeblock = Instance.new("Part") | |
277 | local Humanoid = char.Humanoid | |
278 | Humanoid.Animator:Destroy() | |
279 | --Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead,false) | |
280 | local LeftArm = char["Left Arm"] | |
281 | local RightArm = char["Right Arm"] | |
282 | local LeftLeg = char["Left Leg"] | |
283 | local RightLeg = char["Right Leg"] | |
284 | local Head = char.Head | |
285 | local Torso = char.Torso | |
286 | local RootPart = char.HumanoidRootPart | |
287 | local RootJoint = RootPart.RootJoint | |
288 | local Neck = Torso["Neck"] | |
289 | local RightShoulder = Torso["Right Shoulder"] | |
290 | local LeftShoulder = Torso["Left Shoulder"] | |
291 | local RightHip = Torso["Right Hip"] | |
292 | local LeftHip = Torso["Left Hip"] | |
293 | local Effects = nil | |
294 | local Eyes = nil | |
295 | local Replica = game:GetObjects("rbxassetid://7921736307")[1] | |
296 | local GUN = Replica.MegaGunnModel | |
297 | GUN.Parent = char | |
298 | local GJ = GUN.Joint | |
299 | local GunJoint = GJ.Weld | |
300 | GunJoint.Part0 = RightArm | |
301 | task.spawn(pcall, function() Align(character["Starslayer Railgun"].Handle, GUN.Base, Vector3.new(1.2, 0.5, 0), Vector3.new(-0, -180, 3)) end) | |
302 | ||
303 | for _, v in ipairs(GUN:GetChildren()) do | |
304 | v.CustomPhysicalProperties = nophys | |
305 | end | |
306 | ||
307 | local Hole = GUN.Hole | |
308 | local Holetwo = GUN.Hole2 | |
309 | local shade = Color3.new(1, 1, 1) | |
310 | local alreadyfixing = false | |
311 | local Effects = Instance.new("Folder") | |
312 | Effects.Parent = char | |
313 | local eeeblock = Instance.new("Part") | |
314 | eeeblock.Name = randomstring() | |
315 | eeeblock.CanCollide = false | |
316 | eeeblock.Transparency = 1 | |
317 | eeeblock.CFrame = Torso.CFrame | |
318 | eeeblock.Parent = char | |
319 | local eee = Instance.new("Sound",eeeblock) | |
320 | eee.Volume = 1 | |
321 | eee.Pitch = 1 | |
322 | eee.SoundId = songid.Value | |
323 | eee:Play() | |
324 | eee.Name = randomstring() | |
325 | eee.Looped = true | |
326 | eee.TimePosition = SongSync.Value | |
327 | eee.DescendantAdded:Connect(function(v) | |
328 | if stopeverything then return end | |
329 | if v:IsA("SoundEffect") then | |
330 | v.Enabled = false | |
331 | v:GetPropertyChangedSignal("Enabled"):Connect(function() | |
332 | if stopeverything then return end | |
333 | if v.Enabled ~= false then | |
334 | v.Enabled = false | |
335 | end | |
336 | end) | |
337 | end | |
338 | DB:AddItem(v,.01) | |
339 | end) | |
340 | function TauntRemote:FireServer(Name, ID) | |
341 | taunt.Value = Name | |
342 | if songid.Value ~= "rbxassetid://"..ID then | |
343 | songid.Value = "rbxassetid://"..ID | |
344 | SongSync.Value = 0 | |
345 | eee.Volume = ID ~= 9057254499 and 1 or 3 | |
346 | eee.Pitch = 1 | |
347 | eee.SoundId = songid.Value | |
348 | eee.TimePosition = SongSync.Value | |
349 | end | |
350 | end | |
351 | local function chatfunc(textt,glitchy) | |
352 | local text = string.gsub(textt, "", "") | |
353 | task.spawn(function() | |
354 | local oldthing = eeeblock:FindFirstChild("TalkingBillBoard") | |
355 | if oldthing then | |
356 | oldthing:Destroy() | |
357 | end | |
358 | local sayingstuff = create("BillboardGui", eeeblock, {Size = UDim2.new(0, 9999, 2, 0), StudsOffset = Vector3.new(0, 5, 0), Name = "TalkingBillBoard"}) | |
359 | local sayingstuff2 = create("TextLabel", sayingstuff, {BackgroundTransparency = 1, BorderSizePixel = 0, Font = "Code", TextScaled = true, TextStrokeTransparency = 0, TextStrokeColor3 = shade, Size = UDim2.fromScale(1, 1)}) | |
360 | task.spawn(function() | |
361 | while not stopeverything do | |
362 | local hBRUH, sBRUH, vBRUH = GUN.NeonParts.Color:ToHSV() | |
363 | sayingstuff2.TextColor3 = Color3.fromHSV(hBRUH, sBRUH, vBRUH/2) | |
364 | task.wait(frame) | |
365 | end | |
366 | end) | |
367 | local sayingstuff3 = create("TextLabel", sayingstuff, {BackgroundTransparency = 1, BorderSizePixel = 0, Text = "", Font = Enum.Font.Code, TextScaled = true, TextStrokeTransparency = 0, TextStrokeColor3 = shade, Size = UDim2.fromScale(1, 1)}) | |
368 | local sayingstuff3 = Instance.new("TextLabel",sayingstuff) | |
369 | task.spawn(function() | |
370 | while not stopeverything do | |
371 | sayingstuff3.TextColor3 = GUN.NeonParts.Color | |
372 | task.wait(frame) | |
373 | end | |
374 | end) | |
375 | task.spawn(function() | |
376 | while not stopeverything and sayingstuff ~= nil do | |
377 | task.wait(frame) | |
378 | if glitchy then | |
379 | local fonts = {"Antique","Arcade","Arial","ArialBold","Bodoni","Cartoon","Code","Fantasy","Garamond","Gotham","GothamBlack","GothamBold","GothamSemibold","Highway","SciFi","SourceSans","SourceSansBold","SourceSansItalic","SourceSansLight","SourceSansSemibold"} | |
380 | local randomfont = fonts[math.random(1,#fonts)] | |
381 | sayingstuff2.Font = randomfont | |
382 | sayingstuff3.Font = randomfont | |
383 | end | |
384 | sayingstuff2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
385 | sayingstuff3.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
386 | end | |
387 | end) | |
388 | for i = 1,string.len(text) do | |
389 | task.wait(frame30) | |
390 | sayingstuff2.Text = string.sub(text,1,i) | |
391 | sayingstuff3.Text = string.sub(text,1,i) | |
392 | end | |
393 | task.wait(2) | |
394 | for i = 1, 50 do | |
395 | task.wait(frame) | |
396 | sayingstuff2.Position = sayingstuff2.Position - UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
397 | sayingstuff3.Position = sayingstuff2.Position - UDim2.new(0,math.random(-3,3),0,math.random(-3,3)) | |
398 | sayingstuff2.Rotation = sayingstuff2.Rotation + math.random(-2,2) | |
399 | sayingstuff3.Rotation = sayingstuff3.Rotation + math.random(-2,2) | |
400 | sayingstuff2.TextStrokeTransparency = i/50 | |
401 | sayingstuff2.TextTransparency = sayingstuff2.TextStrokeTransparency | |
402 | sayingstuff3.TextStrokeTransparency = sayingstuff2.TextStrokeTransparency | |
403 | sayingstuff3.TextTransparency = sayingstuff2.TextStrokeTransparency | |
404 | end | |
405 | sayingstuff:Destroy() | |
406 | end) | |
407 | end | |
408 | plr.Chatted:Connect(chatfunc) | |
409 | local ROOTC0 = CFrame.new(0,0,0) * CFrame.Angles(-1.5707963267949,0,math.pi) | |
410 | local NECKC0 = CFrame.new(0,1,0) * CFrame.Angles(-1.5707963267949,0,math.pi) | |
411 | local RIGHTSHOULDERC0 = CFrame.new(-0.5,0,0) * CFrame.Angles(0,1.5707963267949,0) | |
412 | local LEFTSHOULDERC0 = CFrame.new(0.5,0,0) * CFrame.Angles(0,-1.5707963267949,0) | |
413 | local BG = nil | |
414 | local BV = nil | |
415 | local soundfixing = false | |
416 | local fixinggui = false | |
417 | local gui = nil | |
418 | local exitbutton = nil | |
419 | local restartingscript = false | |
420 | local Anim = "Idle" | |
421 | local attacktype = 1 | |
422 | local delays = false | |
423 | local play = true | |
424 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude | |
425 | local doe = 0 | |
426 | Humanoid.WalkSpeed = walkspeed | |
427 | local rc0 = CFrame.new() * CFrame.Angles(-1.5707963267949,0,math.pi) | |
428 | local nc0 = CFrame.new(0,1,0) * CFrame.Angles(-1.5707963267949,0,math.pi) | |
429 | local rscp = CFrame.new(-.5,0,0) * CFrame.Angles(0,1.5707963267949,0) | |
430 | local lscp = CFrame.new(.5,0,0) * CFrame.Angles(0,-1.5707963267949,0) | |
431 | ||
432 | local olp = OverlapParams.new() | |
433 | olp.FilterType = Enum.RaycastFilterType.Blacklist | |
434 | olp.FilterDescendantsInstances = {character, char} | |
435 | ||
436 | local function mdmg(pos, size) | |
437 | bullet.Position = pos | |
438 | end | |
439 | ||
440 | local function CreateMesh(MESH,PARENT,MESHTYPE,MESHID,TEXTUREID,SCALE,OFFSET) | |
441 | local NEWMESH = Instance.new(MESH) | |
442 | if MESH == "SpecialMesh" then | |
443 | NEWMESH.MeshType = MESHTYPE | |
444 | if MESHID ~= "nil" and MESHID ~= "" and tonumber(MESHID) ~= nil then | |
445 | NEWMESH.MeshId = "rbxassetid://"..MESHID | |
446 | elseif MESHID ~= "nil" and MESHID ~= "" then | |
447 | NEWMESH.MeshId = MESHID | |
448 | end | |
449 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
450 | NEWMESH.TextureId = "rbxassetid://"..TEXTUREID | |
451 | end | |
452 | end | |
453 | NEWMESH.Offset = OFFSET or Vector3.new() | |
454 | NEWMESH.Scale = SCALE | |
455 | NEWMESH.Parent = PARENT | |
456 | return NEWMESH | |
457 | end | |
458 | ||
459 | local function CreatePart(FORMFACTOR,PARENT,MATERIAL,REFLECTANCE,TRANSPARENCY,BRICKCOLOR,NAME,SIZE,ANCHOR) | |
460 | local NEWPART = Instance.new("Part") | |
461 | NEWPART.Massless = true | |
462 | NEWPART.formFactor = FORMFACTOR | |
463 | NEWPART.Reflectance = REFLECTANCE | |
464 | NEWPART.Transparency = TRANSPARENCY | |
465 | NEWPART.CanCollide = false | |
466 | NEWPART.Locked = true | |
467 | NEWPART.Anchored = true | |
468 | if ANCHOR == false then | |
469 | NEWPART.Anchored = false | |
470 | end | |
471 | NEWPART.Color = BRICKCOLOR | |
472 | NEWPART.Name = randomstring() | |
473 | NEWPART.Size = SIZE | |
474 | NEWPART.Position = Torso.Position | |
475 | NEWPART.Material = MATERIAL | |
476 | NEWPART:BreakJoints() | |
477 | NEWPART.Parent = PARENT | |
478 | return NEWPART | |
479 | end | |
480 | ||
481 | local S = Instance.new("Sound") | |
482 | local function CreateSound(ID,PARENT,VOLUME,PITCH,DOESLOOP) | |
483 | local NEWSOUND = nil | |
484 | task.spawn(function() | |
485 | NEWSOUND = S:Clone() | |
486 | NEWSOUND.Parent = PARENT | |
487 | NEWSOUND.Volume = VOLUME | |
488 | NEWSOUND.Pitch = PITCH | |
489 | NEWSOUND.SoundId = "rbxassetid://"..ID | |
490 | NEWSOUND:play() | |
491 | if DOESLOOP == true then | |
492 | NEWSOUND.Looped = true | |
493 | else | |
494 | task.spawn(function() | |
495 | pcall(function() | |
496 | repeat if stopeverything then return end swait() until NEWSOUND.Playing == false | |
497 | NEWSOUND:Destroy() | |
498 | end) | |
499 | end) | |
500 | end | |
501 | end) | |
502 | return NEWSOUND | |
503 | end | |
504 | ||
505 | local function weldBetween(a,b) | |
506 | local weldd = Instance.new("Weld") | |
507 | weldd.Part0 = a | |
508 | weldd.Part1 = b | |
509 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
510 | weldd.Parent = b | |
511 | return weldd | |
512 | end | |
513 | local function rayCast(Position,Direction,Range,Ignore) | |
514 | local ray = Ray.new(Position, Direction.Unit * (Range or 999.999)) | |
515 | if type(Ignore) == "table" then | |
516 | return workspace:FindPartOnRayWithIgnoreList(ray, Ignore) | |
517 | else | |
518 | return workspace:FindPartOnRay(ray, Ignore) | |
519 | end | |
520 | end | |
521 | ||
522 | local function Effect(Table) | |
523 | local TYPE = (Table.EffectType or "Sphere") | |
524 | local SIZE = (Table.Size or Vector3.one) | |
525 | local ENDSIZE = (Table.Size2 or Vector3.new()) | |
526 | local TRANSPARENCY = (Table.Transparency or 0) | |
527 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
528 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
529 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
530 | local ROTATION1 = (Table.RotationX or 0) | |
531 | local ROTATION2 = (Table.RotationY or 0) | |
532 | local ROTATION3 = (Table.RotationZ or 0) | |
533 | local MATERIAL = (Table.Material or "Neon") | |
534 | local COLOR = (Table.Color or shade) | |
535 | local hOK,sOK,vOK = COLOR:ToHSV() | |
536 | local RAINBOWPART = false | |
537 | if sOK > .1 then | |
538 | RAINBOWPART = true | |
539 | end | |
540 | local TIME = (Table.Time or 45) | |
541 | local SOUNDID = (Table.SoundID or nil) | |
542 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
543 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
544 | local USEBOOMERANGMATH = (Table.UseBoomerangMath or false) | |
545 | local BOOMERANG = (Table.Boomerang or 0) | |
546 | local SIZEBOOMERANG = (Table.SizeBoomerang or 0) | |
547 | task.spawn(pcall, function() | |
548 | local PLAYSSOUND = false | |
549 | local SOUND = nil | |
550 | local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,shade,"Effect",Vector3.one,true) | |
551 | if RAINBOWPART then | |
552 | task.spawn(function() | |
553 | while not stopeverything do | |
554 | pcall(function() EFFECT.Color = GUN.NeonParts.Color end) | |
555 | task.wait(frame) | |
556 | end | |
557 | end) | |
558 | end | |
559 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
560 | PLAYSSOUND = true | |
561 | SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false) | |
562 | end | |
563 | EFFECT.Color = COLOR | |
564 | local MSH = nil | |
565 | if TYPE == "Sphere" then | |
566 | MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new()) | |
567 | elseif TYPE == "Block" or TYPE == "Box" then | |
568 | MSH = Instance.new("BlockMesh",EFFECT) | |
569 | MSH.Scale = SIZE | |
570 | elseif TYPE == "Wave" then | |
571 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8)) | |
572 | elseif TYPE == "Ring" then | |
573 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,0.1),Vector3.new()) | |
574 | elseif TYPE == "Slash" then | |
575 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new()) | |
576 | elseif TYPE == "Round Slash" then | |
577 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new()) | |
578 | elseif TYPE == "Swirl" then | |
579 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","168892432","",SIZE,Vector3.new()) | |
580 | elseif TYPE == "Skull" then | |
581 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new()) | |
582 | elseif TYPE == "Crystal" then | |
583 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new()) | |
584 | end | |
585 | if MSH ~= nil then | |
586 | local BOOMR1 = 1+BOOMERANG/50 | |
587 | local BOOMR2 = 1+SIZEBOOMERANG/50 | |
588 | local MOVESPEED = nil | |
589 | if MOVEDIRECTION ~= nil then | |
590 | if USEBOOMERANGMATH == true then | |
591 | MOVESPEED = ((CFRAME.Position - MOVEDIRECTION).Magnitude/TIME)*BOOMR1 | |
592 | else | |
593 | MOVESPEED = ((CFRAME.Position - MOVEDIRECTION).Magnitude/TIME) | |
594 | end | |
595 | end | |
596 | local GROWTH = nil | |
597 | if USEBOOMERANGMATH == true then | |
598 | GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1) | |
599 | else | |
600 | GROWTH = (SIZE - ENDSIZE) | |
601 | end | |
602 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
603 | if TYPE == "Block" then | |
604 | EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
605 | else | |
606 | EFFECT.CFrame = CFRAME | |
607 | end | |
608 | if USEBOOMERANGMATH == true then | |
609 | for LOOP = 1,TIME+1 do | |
610 | task.wait(frame) | |
611 | MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME | |
612 | if TYPE == "Wave" then | |
613 | MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8) | |
614 | end | |
615 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
616 | if TYPE == "Block" then | |
617 | EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
618 | else | |
619 | EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3)) | |
620 | end | |
621 | if MOVEDIRECTION ~= nil then | |
622 | local ORI = EFFECT.Orientation | |
623 | EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1))) | |
624 | EFFECT.Orientation = ORI | |
625 | end | |
626 | end | |
627 | else | |
628 | for LOOP = 1,TIME+1 do | |
629 | task.wait(frame) | |
630 | MSH.Scale -= GROWTH/TIME | |
631 | if TYPE == "Wave" then | |
632 | MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8) | |
633 | end | |
634 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
635 | if TYPE == "Block" then | |
636 | EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
637 | else | |
638 | EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3)) | |
639 | end | |
640 | if MOVEDIRECTION ~= nil then | |
641 | local ORI = EFFECT.Orientation | |
642 | EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED) | |
643 | EFFECT.Orientation = ORI | |
644 | end | |
645 | end | |
646 | end | |
647 | EFFECT.Transparency = 1 | |
648 | if PLAYSSOUND == false then | |
649 | EFFECT:Destroy() | |
650 | else | |
651 | repeat if stopeverything then return end task.wait(frame) until EFFECT:FindFirstChildOfClass("Sound") == nil | |
652 | EFFECT:Destroy() | |
653 | end | |
654 | else | |
655 | if PLAYSSOUND == false then | |
656 | EFFECT:Destroy() | |
657 | else | |
658 | repeat if stopeverything then return end task.wait(frame) until EFFECT:FindFirstChildOfClass("Sound") == nil | |
659 | EFFECT:Destroy() | |
660 | end | |
661 | end | |
662 | end) | |
663 | end | |
664 | ||
665 | local function Lightning(Part0,Part1,Timess,Offset,Color,Timer,sSize,eSize,Trans,Boomer,sBoomer,Trans2) | |
666 | local magz = (Part0 - Part1).Magnitude | |
667 | local Times = math.floor(math.clamp(magz/10, 1, 20)) | |
668 | local curpos = Part0 | |
669 | local trz = { | |
670 | -Offset, | |
671 | Offset | |
672 | } | |
673 | for i = 1, Times do | |
674 | local li = create("Part", Effects, {Name = randomstring(), TopSurface = 0, Material = Enum.Material.Neon, BottomSurface = 0, Anchored = true, Transparency = 0, Color = Color, FormFactor = Enum.FormFactor.Custom, CanCollide = false, Size = Vector3.new(0.1, 0.1, magz / Times)}) | |
675 | local Offzet = Vector3.new(trz[math.random(1,2)], trz[math.random(1,2)], trz[math.random(1,2)]) | |
676 | local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz/Times).Position + Offzet | |
677 | if Times == i then | |
678 | local magz2 = (curpos - Part1).Magnitude | |
679 | li.Size = Vector3.new(0.1, 0.1, magz2) | |
680 | li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2/2) | |
681 | else | |
682 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz/Times/2) | |
683 | end | |
684 | curpos = li.CFrame * CFrame.new(0, 0, magz/Times/2).Position | |
685 | li:Destroy() | |
686 | Effect({Time = Timer, EffectType = "Box", Size = Vector3.new(sSize,sSize,li.Size.Z), Size2 = Vector3.new(eSize, eSize, li.Size.Z), Transparency = Trans, Transparency2 = Trans2 or 1, CFrame = li.CFrame, MoveToPos = nil, RotationX = nil, RotationY = nil, RotationZ = nil, Material = Enum.Material.Neon, Color = li.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = Boomer, Boomerang = 0, SizeBoomerang = sBoomer}) | |
687 | end | |
688 | end | |
689 | ||
690 | local function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
691 | if not DoesCourontine then | |
692 | local Direction = CFrame.new(Part.Position,ToLocation) | |
693 | local Distance = (Part.Position - ToLocation).Magnitude | |
694 | for i = 1,AmountOfTime do | |
695 | task.wait(frame) | |
696 | Part.CFrame = Direction*CFrame.new(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
697 | Direction = Part.CFrame | |
698 | end | |
699 | else | |
700 | task.spawn(function() | |
701 | local Direction = CFrame.new(Part.Position, ToLocation) | |
702 | local Distance = (Part.Position - ToLocation).Magnitude | |
703 | for i = 1,AmountOfTime do | |
704 | task.wait(frame) | |
705 | Part.CFrame = Direction*CFrame.new(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
706 | Direction = Part.CFrame | |
707 | end | |
708 | end) | |
709 | end | |
710 | end | |
711 | ||
712 | local function MakeForm(PART,TYPE) | |
713 | if TYPE == "Cyl" then | |
714 | local MSH = Instance.new("CylinderMesh",PART) | |
715 | elseif TYPE == "Ball" then | |
716 | local MSH = Instance.new("SpecialMesh",PART) | |
717 | MSH.MeshType = "Sphere" | |
718 | elseif TYPE == "Wedge" then | |
719 | local MSH = Instance.new("SpecialMesh",PART) | |
720 | MSH.MeshType = "Wedge" | |
721 | end | |
722 | end | |
723 | ||
724 | local function AttackGyro() | |
725 | local GYRO = Instance.new("BodyGyro",RootPart) | |
726 | GYRO.D = 25 | |
727 | GYRO.P = 20000 | |
728 | GYRO.MaxTorque = Vector3.new(0,4000000,0) | |
729 | GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.Position) | |
730 | task.spawn(function() | |
731 | repeat if stopeverything then return end | |
732 | task.wait(frame) | |
733 | GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.Position) | |
734 | until attack == false | |
735 | GYRO:Destroy() | |
736 | end) | |
737 | end | |
738 | task.spawn(function() | |
739 | while not stopeverything do | |
740 | for i = 0,1,(1/60) do | |
741 | task.wait(frame) | |
742 | if not alreadyfixing and GUN:FindFirstChild("NeonParts") then | |
743 | GUN.NeonParts.Color = Color3.fromHSV(i,1,1) | |
744 | if taunt.Value == "iNSaNiTY" then | |
745 | GUN.NeonParts.Color = BrickColor.Random().Color | |
746 | elseif taunt.Value == "Err0r" then | |
747 | GUN.NeonParts.Color = Color3.fromRGB(0,255,0) | |
748 | elseif taunt.Value == "FAST BOIII" then | |
749 | GUN.NeonParts.Color = Color3.fromRGB(0,0,math.clamp(eee.PlaybackLoudness-191,0,255)) | |
750 | elseif taunt.Value == "Glitch" then | |
751 | GUN.NeonParts.Color = Color3.fromHSV(i,1,math.clamp((eee.PlaybackLoudness/255)-.5,0,1)) | |
752 | elseif taunt.Value == "Alastor" then | |
753 | GUN.NeonParts.Color = Color3.fromRGB(255,0,0) | |
754 | elseif taunt.Value == "kArmA" then | |
755 | GUN.NeonParts.Color = Color3.new(1,1,1) | |
756 | elseif taunt.Value == "petfroge" then | |
757 | GUN.NeonParts.Color = BrickColor.Random().Color | |
758 | elseif taunt.Value == "TheEnd" then | |
759 | local a = Color3.fromRGB(72, 0, 56) | |
760 | local b = Color3.fromRGB(255, 0, 89) | |
761 | GUN.NeonParts.Color = a:Lerp(b, math.clamp(math.sin(sine/3), 0, 1)) | |
762 | end | |
763 | end | |
764 | end | |
765 | end | |
766 | end) | |
767 | ||
768 | function WACKYEFFECT(Table) | |
769 | local TYPE = (Table.EffectType or "Sphere") | |
770 | local SIZE = (Table.Size or Vector3.one) | |
771 | local ENDSIZE = (Table.Size2 or Vector3.zero) | |
772 | local TRANSPARENCY = (Table.Transparency or 0) | |
773 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
774 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
775 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
776 | local ROTATION1 = (Table.RotationX or 0) | |
777 | local ROTATION2 = (Table.RotationY or 0) | |
778 | local ROTATION3 = (Table.RotationZ or 0) | |
779 | local MATERIAL = (Table.Material or "Neon") | |
780 | local COLOR = (Table.Color or shade) | |
781 | local hOK,sOK,vOK = COLOR:ToHSV() | |
782 | local RAINBOWPART = false | |
783 | if sOK > .1 then | |
784 | RAINBOWPART = true | |
785 | end | |
786 | local TIME = (Table.Time or 45) | |
787 | local SOUNDID = (Table.SoundID or nil) | |
788 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
789 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
790 | task.spawn(function() | |
791 | local PLAYSSOUND = false | |
792 | local SOUND = nil | |
793 | local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,shade,"Effect",Vector3.one,true) | |
794 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
795 | PLAYSSOUND = true | |
796 | SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false) | |
797 | end | |
798 | EFFECT.Color = COLOR | |
799 | if RAINBOWPART then | |
800 | task.spawn(function() | |
801 | while not stopeverything do | |
802 | EFFECT.Color = GUN.NeonParts.Color | |
803 | task.wait(frame) | |
804 | end | |
805 | end) | |
806 | end | |
807 | local MSH = nil | |
808 | if TYPE == "Sphere" then | |
809 | MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.zero) | |
810 | elseif TYPE == "Block" then | |
811 | MSH = Instance.new("BlockMesh",EFFECT) | |
812 | MSH.Scale = Vector3.new(SIZE.X,SIZE.Y,SIZE.Z) | |
813 | elseif TYPE == "Wave" then | |
814 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8)) | |
815 | elseif TYPE == "Ring" then | |
816 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,0.1),Vector3.zero) | |
817 | elseif TYPE == "Slash" then | |
818 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.zero) | |
819 | elseif TYPE == "Round Slash" then | |
820 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.zero) | |
821 | elseif TYPE == "Swirl" then | |
822 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","1051557","",SIZE,Vector3.zero) | |
823 | elseif TYPE == "Skull" then | |
824 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.zero) | |
825 | elseif TYPE == "Crystal" then | |
826 | MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.zero) | |
827 | end | |
828 | if MSH ~= nil then | |
829 | local MOVESPEED = nil | |
830 | if MOVEDIRECTION ~= nil then | |
831 | MOVESPEED = (CFRAME.Position - MOVEDIRECTION).Magnitude/TIME | |
832 | end | |
833 | local GROWTH = SIZE - ENDSIZE | |
834 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
835 | EFFECT.CFrame = CFRAME | |
836 | for LOOP = 1,TIME+1 do | |
837 | task.wait(frame) | |
838 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
839 | if TYPE == "Wave" then | |
840 | MSH.Offset = Vector3.new(0,0,-MSH.Scale.X/8) | |
841 | end | |
842 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
843 | EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3)) | |
844 | if MOVEDIRECTION ~= nil then | |
845 | local ORI = EFFECT.Orientation | |
846 | EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED) | |
847 | EFFECT.Orientation = ORI | |
848 | end | |
849 | end | |
850 | if PLAYSSOUND == false then | |
851 | EFFECT:Destroy() | |
852 | else | |
853 | repeat if stopeverything then return end task.wait(frame) until SOUND.Playing == false | |
854 | EFFECT:Destroy() | |
855 | end | |
856 | else | |
857 | if PLAYSSOUND == false then | |
858 | EFFECT:Destroy() | |
859 | else | |
860 | repeat if stopeverything then return end task.wait(frame) until SOUND.Playing == false | |
861 | EFFECT:Destroy() | |
862 | end | |
863 | end | |
864 | end) | |
865 | end | |
866 | ||
867 | local function Ka_Boom() | |
868 | attack = true | |
869 | walkspeed = 0 | |
870 | local die = CreateSound(1566051529,RootPart,3,1) | |
871 | die.EmitterSize = 100 | |
872 | swait(5) | |
873 | for i = 1,3 do | |
874 | for i = 0,1.5,0.1 do | |
875 | task.wait(frame) | |
876 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-5)),0.7/3)) | |
877 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(15),0,math.rad(-5)),1/3)) | |
878 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(175),math.rad(-10),math.rad(10)) * rscp,1/3)) | |
879 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(-5)) * lscp,1/3)) | |
880 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
881 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
882 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
883 | end | |
884 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = 0.45,SoundVolume = 6,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
885 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
886 | local skypos = Holetwo.CFrame * CFrame.new(-400,0,0) | |
887 | local DISTANCE = (Holetwo.Position - skypos.Position).Magnitude | |
888 | local killbeam = CreatePart(3,Effects,"Neon",0,0,shade,"Kill Beam",Vector3.new(1,DISTANCE,1)) | |
889 | killbeam.CFrame = CFrame.new(Holetwo.Position,skypos.Position) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(1.5707963267949,0,0) | |
890 | MakeForm(killbeam,"Cyl") | |
891 | TS:Create(killbeam, TweenInfo.new(0.42, Enum.EasingStyle.Linear), {Transparency = 1}):Play() | |
892 | DB:AddItem(killbeam, 0.42) | |
893 | for _ = 1, 5 do | |
894 | Lightning(Holetwo.Position,m.Hit.Position,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55) | |
895 | end | |
896 | for i = 0,2 do | |
897 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
898 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
899 | end | |
900 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = skypos,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 192410089,SoundPitch = .55,SoundVolume = 8,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
901 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = skypos,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
902 | for i = 0,2 do | |
903 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = skypos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
904 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = skypos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
905 | end | |
906 | local ti = TweenInfo.new(0.7) | |
907 | TS:Create(RootJoint, ti, {C0 = ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - 0.5 * math.sin(sine/50))}):Play() | |
908 | TS:Create(Neck, ti, {C0 = NECKC0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(20),0,0)}):Play() | |
909 | TS:Create(RightShoulder, ti, {C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135 + 8.5 * math.cos(sine/50)),0,math.rad(25)) * RIGHTSHOULDERC0}):Play() | |
910 | TS:Create(LeftShoulder, ti, {C0 = CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(25 + 8.5 * math.cos(sine/50)),0,math.rad(-25 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0}):Play() | |
911 | TS:Create(RightHip, ti, {C0 = CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0)}):Play() | |
912 | TS:Create(LeftHip, ti, {C0 = CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0)}):Play() | |
913 | TS:Create(GunJoint, ti, {C0 = CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0)}) | |
914 | task.wait(0.7) | |
915 | end | |
916 | local ti = TweenInfo.new(0.25) | |
917 | TS:Create(RootJoint, ti, {C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)), 0.98)}):Play() | |
918 | TS:Create(Neck, ti, {C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(20),0,0), 0.98)}):Play() | |
919 | TS:Create(RightShoulder, ti, {C0 = Clerp(RightShoulder.C0, CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135 + 8.5 * math.cos(sine/50)),0,math.rad(25)) * RIGHTSHOULDERC0, 0.98)}):Play() | |
920 | TS:Create(LeftShoulder, ti, {C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(25 + 8.5 * math.cos(sine/50)),0,math.rad(-25 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0, 0.98)}):Play() | |
921 | TS:Create(RightHip, ti, {C0 = Clerp(RightHip.C0, CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0), 0.98)}):Play() | |
922 | TS:Create(LeftHip, ti, {C0 = Clerp(LeftHip.C0, CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0), 0.98)}):Play() | |
923 | TS:Create(GunJoint, ti, {C0 = CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0)}):Play() | |
924 | task.wait(0.25) | |
925 | ||
926 | local BEAM = CreatePart(3,Effects,"Neon",0,0,Color3.new(0,0,1),"Beam",Vector3.new()) | |
927 | local BEAM2 = CreatePart(3,Effects,"Neon",0,0,Color3.new(0,0,1),"Beam",Vector3.new()) | |
928 | MakeForm(BEAM,"Ball") | |
929 | MakeForm(BEAM2,"Ball") | |
930 | BEAM.CFrame = CFrame.new(RootPart.Position) | |
931 | BEAM2.CFrame = CFrame.new(RootPart.Position) | |
932 | local boooom = CreateSound(415700134,RootPart,10,1,false) | |
933 | boooom.EmitterSize = 100 | |
934 | local weqweqeuio = TweenInfo.new(frame * 140, Enum.EasingStyle.Linear) | |
935 | TS:Create(BEAM, weqweqeuio, {Size = BEAM.Size + Vector3.new(98, 1120, 98)}):Play() | |
936 | TS:Create(BEAM2, weqweqeuio, {Size = BEAM2.Size + Vector3.new(280, 280, 280)}):Play() | |
937 | for i=1,140 do | |
938 | task.wait(frame) | |
939 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)),0.7/3)) | |
940 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(20),0,0),0.7/3)) | |
941 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135 + 8.5 * math.cos(sine/50)),0,math.rad(25)) * RIGHTSHOULDERC0,0.7/3)) | |
942 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(25 + 8.5 * math.cos(sine/50)),0,math.rad(-25 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0,0.7/3)) | |
943 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
944 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
945 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
946 | BEAM.Color = GUN.NeonParts.Color | |
947 | BEAM2.Color = GUN.NeonParts.Color | |
948 | BEAM.CFrame = CFrame.new(RootPart.Position) | |
949 | BEAM2.CFrame = CFrame.new(RootPart.Position) | |
950 | WACKYEFFECT({TIME = 5+i,EffectType = "Swirl",Size = BEAM2.Size*1.15,Size2 = Vector3.new(0,BEAM.Size.Y,0),Transparency = 0.8,Transparency2 = 1,CFrame = BEAM.CFrame * CFrame.Angles(0,math.rad(i*5),0),MoveToPos = nil,RotationX = 0,RotationY = i/8,RotationZ = 0,Material = "Neon",Color = GUN.NeonParts.Color,SoundID = nil,SoundPitch = nil,SoundVolume = nil}) | |
951 | end | |
952 | mdmg(RootPart.Position,BEAM2.Size.Y/2) | |
953 | Effect({TIME = 75,EffectType = "Sphere",Size = BEAM.Size,Size2 = Vector3.new(0,BEAM.Size.Y,0),Transparency = 0,Transparency2 = 0,CFrame = BEAM.CFrame,MoveToPos = nil,RotationX = 0,RotationY = 0,RotationZ = 0,Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil}) | |
954 | Effect({TIME = 75,EffectType = "Sphere",Size = BEAM2.Size,Size2 = Vector3.zero,Transparency = 0,Transparency2 = 0.6,CFrame = BEAM2.CFrame,MoveToPos = nil,RotationX = 0,RotationY = 0,RotationZ = 0,Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil}) | |
955 | for _, v in ipairs(Effects:GetChildren()) do | |
956 | v.Color = shade | |
957 | v:GetPropertyChangedSignal("Color"):Connect(function() | |
958 | if stopeverything then return end | |
959 | v.Color = shade | |
960 | end) | |
961 | end | |
962 | BEAM2:Destroy() | |
963 | BEAM:Destroy() | |
964 | attack = false | |
965 | walkspeed = 50 | |
966 | end | |
967 | ||
968 | local function attackone() | |
969 | attack = true | |
970 | walkspeed = 16 | |
971 | AttackGyro() | |
972 | for i = 0,0.5,0.05 do | |
973 | task.wait(frame) | |
974 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(30)),0.7/3)) | |
975 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(15),0,math.rad(-30)),1/3)) | |
976 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(1.5707963267949,0,math.rad(30)) * rscp,1/3)) | |
977 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(30),0,0) * lscp,1/3)) | |
978 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
979 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
980 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
981 | end | |
982 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = 0.45,SoundVolume = 6,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
983 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
984 | local _, hpos = rayCast(Mouse.UnitRay.Origin, Mouse.UnitRay.Direction, 999.999, {char, character}) | |
985 | local DISTANCE = (Holetwo.Position - hpos).Magnitude | |
986 | local killbeam = CreatePart(3,Effects,"Neon",0,0,shade,"Kill Beam",Vector3.new(1,DISTANCE,1)) | |
987 | killbeam.CFrame = CFrame.new(Holetwo.Position,hpos) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(1.5707963267949,0,0) | |
988 | MakeForm(killbeam,"Cyl") | |
989 | TS:Create(killbeam, TweenInfo.new(0.42, Enum.EasingStyle.Linear), {Transparency = 1}):Play() | |
990 | DB:AddItem(killbeam, 0.42) | |
991 | for _ = 1, 5 do | |
992 | Lightning(Holetwo.Position,hpos,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55) | |
993 | end | |
994 | for i = 0,2 do | |
995 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
996 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
997 | end | |
998 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(hpos),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 192410089,SoundPitch = .55,SoundVolume = 8,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
999 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(hpos),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1000 | for i = 0,2 do | |
1001 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(hpos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1002 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(hpos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1003 | end | |
1004 | mdmg(hpos,10) | |
1005 | for i = 0,0.5,0.075 do | |
1006 | task.wait(frame) | |
1007 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(30)),0.7/3)) | |
1008 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(10),0,math.rad(-60)),1/3)) | |
1009 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(160),math.rad(-20),math.rad(60)) * rscp,1/3)) | |
1010 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(40),math.rad(5),math.rad(5)) * lscp,1/3)) | |
1011 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1012 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1013 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1014 | end | |
1015 | walkspeed = 50 | |
1016 | attack = false | |
1017 | end | |
1018 | ||
1019 | local function attacktwo() | |
1020 | attack = true | |
1021 | walkspeed = 0 | |
1022 | AttackGyro() | |
1023 | local gBullet = CreatePart(3,Effects,"Neon",0,0,Color3.new(0,0,1),"BullyFuck",Vector3.new()) | |
1024 | MakeForm(gBullet,"Ball") | |
1025 | gBullet.CFrame = LeftArm.CFrame*CFrame.new(0,-1.5,0) | |
1026 | CreateSound(2785493,gBullet,2,0.8) | |
1027 | for i = 0, 1.25, 0.025 do | |
1028 | task.wait(frame) | |
1029 | Effect({Time = math.random(35,55),EffectType = "Sphere",Size = Vector3.new(0.5,0.5,0.5),Size2 = Vector3.one,Transparency = 0,Transparency2 = 1,CFrame = LeftArm.CFrame*CFrame.new(0,-1.5,0),MoveToPos = LeftArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)).Position,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 50,SizeBoomerang = 50}) | |
1030 | gBullet.Size *= 1.085 | |
1031 | gBullet.CFrame = LeftArm.CFrame * CFrame.new(0,-1.5,0) | |
1032 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-30)),0.7/3)) | |
1033 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(-5 - 3 * math.cos(sine/12)),0,math.rad(30)),1/3)) | |
1034 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135 + 8.5 * math.cos(sine/49)),0,math.rad(25)) * RIGHTSHOULDERC0,0.7/3)) | |
1035 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5 + 0.1 * math.cos(sine/12),-0) * CFrame.Angles(math.rad(85 - 1.5 * math.cos(sine/12)),math.rad(0 - 6 * math.cos(sine/12)),math.rad(-30 - 6 * math.cos(sine/12))) * lscp,1/3)) | |
1036 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1037 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1038 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1039 | end | |
1040 | local bullets = {} | |
1041 | for i = 1,math.random(27,41) do | |
1042 | task.wait(frame) | |
1043 | local Bullet = CreatePart(3,Effects,"Neon",0,0,Color3.new(0,0,1),"BulletFuck",Vector3.new(0.6,0.6,0.6)) | |
1044 | MakeForm(Bullet,"Ball") | |
1045 | Bullet.CFrame = gBullet.CFrame | |
1046 | Effect({Time = math.random(5,20),EffectType = "Sphere",Size = Vector3.new(3,3,3)*math.random(-3,2),Size2 = Vector3.new(6,6,6)*math.random(-3,2),Transparency = 0.4,Transparency2 = 1,CFrame = Bullet.CFrame,MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 25}) | |
1047 | table.insert(bullets,Bullet) | |
1048 | end | |
1049 | local oofing = false | |
1050 | for b = 1,#bullets do | |
1051 | task.wait(frame) | |
1052 | local part, pos = rayCast(LeftArm.CFrame*CFrame.new(0,-1.5,0).Position,((Mouse.Hit.Position+Vector3.new(math.random(-15,15),math.random(-7,7),math.random(-15,15))) - LeftArm.CFrame*CFrame.new(0,-1.5,0).Position),500,char) | |
1053 | task.spawn(function() | |
1054 | FireArc(bullets[b],pos,math.random(17,31),math.random(9,15),false) | |
1055 | Effect({Time = math.random(25,35),EffectType = "Sphere",Size = Vector3.new(0.6,0.6,0.6),Size2 = Vector3.new(1.6,1.6,1.6),Transparency = 0,Transparency2 = 1,CFrame = bullets[b].CFrame,MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 25}) | |
1056 | swait(math.random(55,65)) | |
1057 | for i = 1,3 do | |
1058 | Effect({Time = math.random(45,65),EffectType = "Sphere",Size = Vector3.new(0.6,6,0.6)*math.random(-1.05,1.25),Size2 = Vector3.new(1.6,10,1.6)*math.random(-1.05,1.25),Transparency = 0,Transparency2 = 1,CFrame = bullets[b].CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 20,SizeBoomerang = 35}) | |
1059 | end | |
1060 | for i = 0,10 do | |
1061 | task.wait(frame) | |
1062 | bullets[b].Transparency = bullets[b].Transparency + 0.1 | |
1063 | end | |
1064 | oofing = not oofing | |
1065 | if oofing then | |
1066 | mdmg(bullets[b].Position,10) | |
1067 | end | |
1068 | local EEEBRUHEEE = CreateSound(168513088,bullets[b],3.5,1.1,false) | |
1069 | bullets[b].Transparency = 1 | |
1070 | EEEBRUHEEE.Ended:Connect(function() | |
1071 | if stopeverything then return end | |
1072 | bullets[b]:Destroy() | |
1073 | end) | |
1074 | end) | |
1075 | end | |
1076 | TS:Create(gBullet, TweenInfo.new(1/6, Enum.EasingStyle.Linear), {Transparency = 1}):Play() | |
1077 | DB:AddItem(gBullet, 1/6) | |
1078 | walkspeed = 50 | |
1079 | attack = false | |
1080 | end | |
1081 | ||
1082 | local function hedshoot() | |
1083 | attack = true | |
1084 | walkspeed = 16 | |
1085 | CreateSound(235097614,RootPart,6,1.5,false) | |
1086 | for i = 0,0.5,0.05 do | |
1087 | task.wait(frame) | |
1088 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-60)),0.7/3)) | |
1089 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(0,0,math.rad(60)),1/3)) | |
1090 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.25,0.5,-.25) * CFrame.Angles(1.5707963267949,0,math.rad(-60)) * rscp,1/3)) | |
1091 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.25,0.5,-.25) * CFrame.Angles(math.rad(95),0,math.rad(10)) * lscp,1/3)) | |
1092 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1093 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1094 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0,-.5,0) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1095 | end | |
1096 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(2,2,2),Size2 = Vector3.new(5,5,5),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = 0.45,SoundVolume = 6,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1097 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(2,2,2),Size2 = Vector3.new(5,5,5),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1098 | Effect({Time = math.random(25,45),EffectType = "Sphere",Size = Vector3.new(2,100,2),Size2 = Vector3.new(6,100,6),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),-50)*CFrame.Angles(math.rad(math.random(89,91)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 45}) | |
1099 | Effect({Time = math.random(25,45),EffectType = "Sphere",Size = Vector3.new(3,100,3),Size2 = Vector3.new(9,100,9),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),-50)*CFrame.Angles(math.rad(math.random(89,91)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 45}) | |
1100 | mdmg(RootPart.Position,14) | |
1101 | for i = 1,4 do | |
1102 | RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,-25) | |
1103 | mdmg(RootPart.Position,14) | |
1104 | Lightning(RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).Position,RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).Position,6,25,shade,math.random(30,45),0.5,1.5,0,true,60) Lightning(RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).Position,RootPart.CFrame*CFrame.new(math.random(-2.5,2.5),math.random(-5,5),math.random(-15,15)).Position,6,25,Color3.new(0,0,1),math.random(30,45),0.5,1.5,0,true,60) | |
1105 | end | |
1106 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(2,2,2),Size2 = Vector3.new(5,5,5),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1107 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(2,2,2),Size2 = Vector3.new(5,5,5),Transparency = 0,Transparency2 = 1,CFrame = RootPart.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1108 | for i = 0,0.5,0.1 do | |
1109 | task.wait(frame) | |
1110 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,1.5707963267949),0.7/3)) | |
1111 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(0,0,-1.5707963267949),1/3)) | |
1112 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(1.5707963267949,0,1.5707963267949) * rscp,1/3)) | |
1113 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(40),math.rad(5),math.rad(5)) * lscp,1/3)) | |
1114 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1115 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1116 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1117 | end | |
1118 | attack = false | |
1119 | walkspeed = 50 | |
1120 | end | |
1121 | ||
1122 | function painlessrain() | |
1123 | attack = true | |
1124 | walkspeed = 16 | |
1125 | task.spawn(function() | |
1126 | for i = 0, 2 do | |
1127 | swait(12) | |
1128 | CreateSound(199145095,GJ,10,1) | |
1129 | end | |
1130 | end) | |
1131 | for i = 0,2,0.1 do | |
1132 | task.wait(frame) | |
1133 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-10)),0.7/3)) | |
1134 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(25),0,math.rad(-20)),1/3)) | |
1135 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(35),math.rad(-35),math.rad(20)) * rscp,1/3)) | |
1136 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-20),math.rad(-5),math.rad(-10)) * lscp,1/3)) | |
1137 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1138 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1139 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(math.rad(doe * 22),0,0),1/2)) | |
1140 | end | |
1141 | for i = 0,1.5,0.1 do | |
1142 | task.wait(frame) | |
1143 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-5)),0.7/3)) | |
1144 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(15),0,math.rad(-5)),1/3)) | |
1145 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(175),math.rad(-10),math.rad(10)) * rscp,1/3)) | |
1146 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-10),math.rad(-10),math.rad(-5)) * lscp,1/3)) | |
1147 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1148 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1149 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1150 | end | |
1151 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = 0.45,SoundVolume = 6,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1152 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1153 | local skypos = Holetwo.CFrame * CFrame.new(-400,0,0) | |
1154 | local DISTANCE = (Holetwo.Position - skypos.Position).Magnitude | |
1155 | local killbeam = CreatePart(3,Effects,"Neon",0,0,shade,"Kill Beam",Vector3.new(1,DISTANCE,1)) | |
1156 | killbeam.CFrame = CFrame.new(Holetwo.Position,skypos.Position) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(1.5707963267949,0,0) | |
1157 | MakeForm(killbeam,"Cyl") | |
1158 | TS:Create(killbeam, TweenInfo.new(0.42, Enum.EasingStyle.Linear), {Transparency = 1}):Play() | |
1159 | DB:AddItem(killbeam, 0.42) | |
1160 | for _ = 1, 5 do | |
1161 | Lightning(Holetwo.Position,m.Hit.Position,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55) | |
1162 | end | |
1163 | for i = 0,2 do | |
1164 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1165 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1166 | end | |
1167 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = skypos,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 192410089,SoundPitch = .55,SoundVolume = 8,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1168 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = skypos,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1169 | for i = 0,2 do | |
1170 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = skypos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1171 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = skypos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1172 | end | |
1173 | for i = 0,.5,0.1 do | |
1174 | task.wait(frame) | |
1175 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-5)),0.7/3)) | |
1176 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(15),0,math.rad(-5)),1/3)) | |
1177 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(225),math.rad(-20),math.rad(20)) * rscp,1/3)) | |
1178 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-5),math.rad(-5),0) * lscp,1/3)) | |
1179 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1180 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1181 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1182 | end | |
1183 | for i = 0,.5,0.1 do | |
1184 | task.wait(frame) | |
1185 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-5)),0.7/3)) | |
1186 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(0,0,0 + ((1) - 1)) * CFrame.Angles(math.rad(15),0,math.rad(-5)),1/3)) | |
1187 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(175),math.rad(-10),math.rad(10)) * rscp,1/3)) | |
1188 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-5),math.rad(-5),0) * lscp,1/3)) | |
1189 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1190 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1191 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1192 | end | |
1193 | attack = false | |
1194 | walkspeed = 50 | |
1195 | swait(36) | |
1196 | local onethirdattack = 0 | |
1197 | for i = 1,5 do | |
1198 | onethirdattack = onethirdattack + 1 | |
1199 | if onethirdattack >= 4 then | |
1200 | onethirdattack = 1 | |
1201 | end | |
1202 | local Sky = RootPart.CFrame*CFrame.new(0,500,0) | |
1203 | local MoPos = (Mouse.Hit*CFrame.new(math.random(-18,18),0,math.random(-18,18))).Position | |
1204 | local DISTANCE = (Sky.Position - MoPos).Magnitude | |
1205 | for _ = 1, 5 do | |
1206 | Lightning(Sky.Position,MoPos,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55) | |
1207 | end | |
1208 | local killbeam = CreatePart(3,Effects,"Neon",0,0,shade,"Kill Beam",Vector3.new(1,DISTANCE,1)) | |
1209 | killbeam.CFrame = CFrame.new(Sky.Position,MoPos) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(1.5707963267949,0,0) | |
1210 | MakeForm(killbeam,"Cyl") | |
1211 | TS:Create(killbeam, TweenInfo.new(0.42, Enum.EasingStyle.Linear), {Transparency = 1}):Play() | |
1212 | DB:AddItem(killbeam, 0.42) | |
1213 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(MoPos),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 192410089,SoundPitch = .55,SoundVolume = 8,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1214 | Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(MoPos),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1215 | for i = 0,2 do | |
1216 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(MoPos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1217 | Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = CFrame.new(MoPos)*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1218 | end | |
1219 | if onethirdattack == 3 then | |
1220 | mdmg(MoPos,12) | |
1221 | end | |
1222 | swait(15) | |
1223 | end | |
1224 | end | |
1225 | function SingularityBeam() | |
1226 | attack = true | |
1227 | walkspeed = 0 | |
1228 | AttackGyro() | |
1229 | for i = 0,0.5,0.05 do | |
1230 | task.wait(frame) | |
1231 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0,0,math.rad(-60)),0.7/3)) | |
1232 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(0,0,math.rad(60)),1/3)) | |
1233 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.25,0.5,-.25) * CFrame.Angles(1.5707963267949,0,math.rad(-60)) * rscp,1/3)) | |
1234 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.25,0.5,-.25) * CFrame.Angles(math.rad(95),0,math.rad(10)) * lscp,1/3)) | |
1235 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
1236 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
1237 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0,-.5,0) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
1238 | end | |
1239 | local HoleDist = (Hole.Position - Holetwo.Position).Magnitude | |
1240 | local chargebeam = CreatePart(3,Effects,"Neon",0,0,shade,"Charge Beam",Vector3.new(.25,HoleDist,.25),false) | |
1241 | MakeForm(chargebeam,"Cyl") | |
1242 | chargebeam.CFrame = CFrame.new(Hole.Position,Holetwo.Position) * CFrame.new(0,0,-HoleDist/2) * CFrame.Angles(1.5707963267949,0,0) | |
1243 | local chargeweld = weldBetween(GJ,chargebeam) | |
1244 | local chargeball = CreatePart(3,Effects,"Neon",0,0,shade,"Charge Ball",Vector3.new(.5,.5,.5),false) | |
1245 | chargeball.Shape = "Ball" | |
1246 | chargeball.CFrame = Holetwo.CFrame | |
1247 | weldBetween(Holetwo,chargeball) | |
1248 | CreateSound(342793847,Hole,10,1,false) | |
1249 | local bigball = TS:Create(chargeball, TweenInfo.new(3.86, Enum.EasingStyle.Linear),{Size = Vector3.new(2.5,2.5,2.5)}) | |
1250 | bigball:Play() | |
1251 | bigball.Completed:Wait() | |
1252 | chargebeam:Destroy() | |
1253 | local KillDist = (Holetwo.Position - Mouse.Hit.Position).Magnitude | |
1254 | task.spawn(function() | |
1255 | repeat if stopeverything then return end KillDist = (Holetwo.Position - Mouse.Hit.Position).Magnitude task.wait(frame) until attack == false | |
1256 | end) | |
1257 | local killbeam = CreatePart(3,Effects,"Neon",0,0,shade,"Kill Beam",Vector3.new(2.5,KillDist,2.5)) | |
1258 | MakeForm(killbeam,"Cyl") | |
1259 | task.spawn(function() | |
1260 | while not stopeverything and attack do | |
1261 | mdmg(Mouse.Hit.Position,5) | |
1262 | swait(6) | |
1263 | end | |
1264 | end) | |
1265 | task.spawn(function() | |
1266 | local isdoingathing = false | |
1267 | while not stopeverything and attack do | |
1268 | isdoingathing = not isdoingathing | |
1269 | if plr.Name == USERNAME then | |
1270 | RootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,.1) | |
1271 | end | |
1272 | killbeam.Size = Vector3.new(2.5,KillDist,2.5) | |
1273 | killbeam.CFrame = CFrame.new(Holetwo.Position,Mouse.Hit.Position) * CFrame.new(0,0,-KillDist/2) * CFrame.Angles(1.5707963267949,0,0) | |
1274 | if isdoingathing then | |
1275 | Lightning(Holetwo.Position,Mouse.Hit.Position,15,3,Color3.new(0,0,1),10,0,1,0,true,55) | |
1276 | Effect({Time = 10,EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1277 | Effect({Time = 10,EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Holetwo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1278 | Effect({Time = 10,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Mouse.Hit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1279 | Effect({Time = 10,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = Mouse.Hit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50}) | |
1280 | Effect({Time = 10,EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1281 | Effect({Time = 10,EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = Mouse.Hit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15}) | |
1282 | end | |
1283 | task.wait(frame) | |
1284 | end | |
1285 | end) | |
1286 | CreateSound(138677306,Holetwo,10,1,false) | |
1287 | CreateSound(415700134,Holetwo,10,1,false) | |
1288 | swait(150) | |
1289 | CreateSound(3264923,Holetwo,10,1,false) | |
1290 | swait(30) | |
1291 | chargeball:Destroy() | |
1292 | killbeam:Destroy() | |
1293 | walkspeed = 50 | |
1294 | attack = false | |
1295 | end | |
1296 | ||
1297 | local FLYING = false | |
1298 | iyflyspeed = 1 | |
1299 | function sFLY() | |
1300 | if not ISFLYING then | |
1301 | FLYING = false | |
1302 | if BG then BG:Destroy() end | |
1303 | if BV then BV:Destroy() end | |
1304 | else | |
1305 | local CONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0} | |
1306 | local lCONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0} | |
1307 | local SPEED = 0 | |
1308 | local function FLY() | |
1309 | FLYING = true | |
1310 | BG = Instance.new('BodyGyro',RootPart) | |
1311 | BV = Instance.new('BodyVelocity',RootPart) | |
1312 | BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
1313 | BG.P = 1e4 | |
1314 | BG.CFrame = RootPart.CFrame | |
1315 | BV.Velocity = Vector3.zero | |
1316 | BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1317 | ||
1318 | local qwoieqwioeukjs | |
1319 | local cam = workspace.CurrentCamera | |
1320 | qwoieqwioeukjs = RnS.RenderStepped:Connect(function() | |
1321 | if not qwoieqwioeukjs.Connected then return end | |
1322 | if not FLYING or stopeverything then qwoieqwioeukjs:Disconnect() return end | |
1323 | ||
1324 | if not alreadyfixing then | |
1325 | if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then | |
1326 | SPEED = 50 | |
1327 | elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then | |
1328 | SPEED = 0 | |
1329 | end | |
1330 | if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then | |
1331 | BV.Velocity = ((cam.CoordinateFrame.LookVector * (CONTROL.F + CONTROL.B)) + ((cam.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R,(CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2,0).Position) - cam.CoordinateFrame.Position)) * SPEED | |
1332 | lCONTROL = {F = CONTROL.F,B = CONTROL.B,L = CONTROL.L,R = CONTROL.R} | |
1333 | elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then | |
1334 | BV.Velocity = ((cam.CoordinateFrame.LookVector * (lCONTROL.F + lCONTROL.B)) + ((cam.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R,(lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2,0).Position) - cam.CoordinateFrame.Position)) * SPEED | |
1335 | else | |
1336 | BV.Velocity = Vector3.zero | |
1337 | end | |
1338 | BG.CFrame = cam.CoordinateFrame | |
1339 | end | |
1340 | end) | |
1341 | end | |
1342 | m.KeyDown:Connect(function(KEY) | |
1343 | if stopeverything then return end | |
1344 | KEY = string.lower(KEY) | |
1345 | if KEY == 'w' then | |
1346 | CONTROL.F = iyflyspeed | |
1347 | elseif KEY == 's' then | |
1348 | CONTROL.B = - iyflyspeed | |
1349 | elseif KEY == 'a' then | |
1350 | CONTROL.L = - iyflyspeed | |
1351 | elseif KEY == 'd' then | |
1352 | CONTROL.R = iyflyspeed | |
1353 | elseif KEY == 'e' then | |
1354 | CONTROL.Q = iyflyspeed*2 | |
1355 | elseif KEY == 'q' then | |
1356 | CONTROL.E = -iyflyspeed*2 | |
1357 | end | |
1358 | end) | |
1359 | m.KeyUp:Connect(function(KEY) | |
1360 | if stopeverything then return end | |
1361 | KEY = string.lower(KEY) | |
1362 | if KEY == 'w' then | |
1363 | CONTROL.F = 0 | |
1364 | elseif KEY == 's' then | |
1365 | CONTROL.B = 0 | |
1366 | elseif KEY == 'a' then | |
1367 | CONTROL.L = 0 | |
1368 | elseif KEY == 'd' then | |
1369 | CONTROL.R = 0 | |
1370 | elseif KEY == 'e' then | |
1371 | CONTROL.Q = 0 | |
1372 | elseif KEY == 'q' then | |
1373 | CONTROL.E = 0 | |
1374 | end | |
1375 | end) | |
1376 | FLY() | |
1377 | end | |
1378 | end | |
1379 | local function sphere(bonuspeed,typee,pos,scale,value,color) | |
1380 | local type = typee | |
1381 | local rng = Instance.new("Part") | |
1382 | rng.Anchored = true | |
1383 | rng.BrickColor = color | |
1384 | rng.CanCollide = false | |
1385 | rng.FormFactor = 3 | |
1386 | rng.Name = "Ring" | |
1387 | rng.Material = "Neon" | |
1388 | rng.Size = Vector3.one | |
1389 | rng.Transparency = 0 | |
1390 | rng.TopSurface = 0 | |
1391 | rng.BottomSurface = 0 | |
1392 | rng.CFrame = pos | |
1393 | local rngm = Instance.new("SpecialMesh",rng) | |
1394 | rngm.MeshType = "Sphere" | |
1395 | rngm.Scale = scale | |
1396 | rng.Parent = Effects | |
1397 | local scaler2 = 1 | |
1398 | if type == "Add" then | |
1399 | scaler2 = 1*value | |
1400 | elseif type == "Divide" then | |
1401 | scaler2 = 1/value | |
1402 | end | |
1403 | task.spawn(function() | |
1404 | local ti = TweenInfo.new(10/bonuspeed*10 + frame, Enum.EasingStyle.Linear) | |
1405 | TS:Create(rng, ti, {Transparency = 1}):Play() | |
1406 | for i = 0,10/bonuspeed,0.1 do | |
1407 | task.wait(frame) | |
1408 | if type == "Add" then | |
1409 | scaler2 -= 0.01*value/bonuspeed | |
1410 | elseif type == "Divide" then | |
1411 | scaler2 -= 0.01/value*bonuspeed | |
1412 | end | |
1413 | rng.BrickColor = BrickColor.random() | |
1414 | rngm.Scale += Vector3.new(scaler2*bonuspeed,scaler2*bonuspeed,scaler2*bonuspeed) | |
1415 | end | |
1416 | rng:Destroy() | |
1417 | end) | |
1418 | end | |
1419 | ||
1420 | local function sphere2(bonuspeed,typee,pos,scale,value,value2,value3,color) | |
1421 | local type = typee | |
1422 | local rng = Instance.new("Part") | |
1423 | rng.Anchored = true | |
1424 | rng.BrickColor = color | |
1425 | rng.CanCollide = false | |
1426 | rng.FormFactor = 3 | |
1427 | rng.Name = "Ring" | |
1428 | rng.Material = "Neon" | |
1429 | rng.Size = Vector3.one | |
1430 | rng.Transparency = 0 | |
1431 | rng.TopSurface = 0 | |
1432 | rng.BottomSurface = 0 | |
1433 | rng.CFrame = pos | |
1434 | local rngm = Instance.new("SpecialMesh",rng) | |
1435 | rngm.MeshType = "Sphere" | |
1436 | rngm.Scale = scale | |
1437 | rng.Parent = Effects | |
1438 | local scaler2 = 1 | |
1439 | local scaler2b = 1 | |
1440 | local scaler2c = 1 | |
1441 | if type == "Add" then | |
1442 | scaler2 = 1*value | |
1443 | scaler2b = 1*value2 | |
1444 | scaler2c = 1*value3 | |
1445 | elseif type == "Divide" then | |
1446 | scaler2 = 1/value | |
1447 | scaler2b = 1/value2 | |
1448 | scaler2c = 1/value3 | |
1449 | end | |
1450 | task.spawn(function() | |
1451 | local ti = TweenInfo.new(10/bonuspeed*10 + frame, Enum.EasingStyle.Linear) | |
1452 | TS:Create(rng, ti, {Transparency = 1}):Play() | |
1453 | for i = 0,10/bonuspeed,0.1 do | |
1454 | task.wait(frame) | |
1455 | if type == "Add" then | |
1456 | scaler2 -= 0.01*value/bonuspeed | |
1457 | scaler2b -= 0.01*value/bonuspeed | |
1458 | scaler2c -= 0.01*value/bonuspeed | |
1459 | elseif type == "Divide" then | |
1460 | scaler2 -= 0.01/value*bonuspeed | |
1461 | scaler2b -= 0.01/value*bonuspeed | |
1462 | scaler2c -= 0.01/value*bonuspeed | |
1463 | end | |
1464 | rngm.Scale += Vector3.new(scaler2*bonuspeed,scaler2b*bonuspeed,scaler2c*bonuspeed) | |
1465 | end | |
1466 | rng:Destroy() | |
1467 | end) | |
1468 | end | |
1469 | ||
1470 | local function PixelBlockX(bonuspeed,FastSpeed,typee,pos,x1,y1,z1,value,color,outerpos) | |
1471 | local type = typee | |
1472 | local rng = Instance.new("Part") | |
1473 | rng.Anchored = true | |
1474 | rng.BrickColor = color | |
1475 | rng.CanCollide = false | |
1476 | rng.FormFactor = 3 | |
1477 | rng.Name = "Ring" | |
1478 | rng.Material = "Neon" | |
1479 | rng.Size = Vector3.one | |
1480 | rng.Transparency = 0 | |
1481 | rng.TopSurface = 0 | |
1482 | rng.BottomSurface = 0 | |
1483 | rng.CFrame = pos + rng.CFrame.LookVector*outerpos | |
1484 | local rngm = Instance.new("SpecialMesh",rng) | |
1485 | rngm.MeshType = "Brick" | |
1486 | rngm.Scale = Vector3.new(x1,y1,z1) | |
1487 | rng.Parent = Effects | |
1488 | local scaler2 = 1 | |
1489 | local speeder = FastSpeed/10 | |
1490 | if type == "Add" then | |
1491 | scaler2 = 1*value | |
1492 | elseif type == "Divide" then | |
1493 | scaler2 = 1/value | |
1494 | end | |
1495 | task.spawn(function() | |
1496 | local ti = TweenInfo.new(10/bonuspeed*10 + frame, Enum.EasingStyle.Linear) | |
1497 | TS:Create(rng, ti, {Transparency = 1}):Play() | |
1498 | for i = 0,10/bonuspeed,0.1 do | |
1499 | task.wait(frame) | |
1500 | if type == "Add" then | |
1501 | scaler2 -= 0.01*value/bonuspeed | |
1502 | elseif type == "Divide" then | |
1503 | scaler2 -= 0.01/value*bonuspeed | |
1504 | end | |
1505 | rng.BrickColor = BrickColor.random() | |
1506 | speeder -= 0.01*FastSpeed*bonuspeed/10 | |
1507 | rng.CFrame += rng.CFrame.LookVector*speeder*bonuspeed | |
1508 | rngm.Scale -= Vector3.new(scaler2*bonuspeed,scaler2*bonuspeed,scaler2*bonuspeed) | |
1509 | end | |
1510 | rng:Destroy() | |
1511 | end) | |
1512 | end | |
1513 | ||
1514 | local function sphereMK(bonuspeed,FastSpeed,typee,pos,x1,y1,z1,value,color,outerpos) | |
1515 | local type = typee | |
1516 | local rng = Instance.new("Part") | |
1517 | rng.Anchored = true | |
1518 | rng.BrickColor = color | |
1519 | rng.CanCollide = false | |
1520 | rng.FormFactor = 3 | |
1521 | rng.Name = "Ring" | |
1522 | rng.Material = "Neon" | |
1523 | rng.Size = Vector3.one | |
1524 | rng.Transparency = 0 | |
1525 | rng.TopSurface = 0 | |
1526 | rng.BottomSurface = 0 | |
1527 | rng.CFrame = pos + rng.CFrame.LookVector*outerpos | |
1528 | local rngm = Instance.new("SpecialMesh",rng) | |
1529 | rngm.MeshType = "Sphere" | |
1530 | rngm.Scale = Vector3.new(x1,y1,z1) | |
1531 | rng.Parent = Effects | |
1532 | local scaler2 = 1 | |
1533 | local speeder = FastSpeed | |
1534 | if type == "Add" then | |
1535 | scaler2 = 1*value | |
1536 | elseif type == "Divide" then | |
1537 | scaler2 = 1/value | |
1538 | end | |
1539 | task.spawn(function() | |
1540 | local ti = TweenInfo.new(10/bonuspeed*10 + frame, Enum.EasingStyle.Linear) | |
1541 | TS:Create(rng, ti, {Transparency = 1}):Play() | |
1542 | for i = 0,10/bonuspeed,0.1 do | |
1543 | task.wait(frame) | |
1544 | if type == "Add" then | |
1545 | scaler2 -= 0.01*value/bonuspeed | |
1546 | elseif type == "Divide" then | |
1547 | scaler2 -= 0.01/value*bonuspeed | |
1548 | end | |
1549 | rng.BrickColor = BrickColor.random() | |
1550 | speeder -= 0.01*FastSpeed*bonuspeed | |
1551 | rng.CFrame += rng.CFrame.LookVector*speeder*bonuspeed | |
1552 | rngm.Scale += Vector3.new(scaler2*bonuspeed,scaler2*bonuspeed,0) | |
1553 | end | |
1554 | rng:Destroy() | |
1555 | end) | |
1556 | end | |
1557 | ||
1558 | local function slash(bonuspeed,rotspeed,rotatingop,typeofshape,typee,typeoftrans,pos,scale,value,color) | |
1559 | local type = typee | |
1560 | local rotenable = rotatingop | |
1561 | local rng = Instance.new("Part") | |
1562 | rng.Anchored = true | |
1563 | rng.BrickColor = color | |
1564 | rng.CanCollide = false | |
1565 | rng.FormFactor = 3 | |
1566 | rng.Name = "Ring" | |
1567 | rng.Material = "Neon" | |
1568 | rng.Size = Vector3.one | |
1569 | rng.Transparency = 0 | |
1570 | if typeoftrans == "In" then | |
1571 | rng.Transparency = 1 | |
1572 | end | |
1573 | rng.TopSurface = 0 | |
1574 | rng.BottomSurface = 0 | |
1575 | rng.CFrame = pos | |
1576 | local rngm = Instance.new("SpecialMesh",rng) | |
1577 | rngm.MeshType = "FileMesh" | |
1578 | if typeofshape == "Normal" then | |
1579 | rngm.MeshId = "rbxassetid://662586858" | |
1580 | elseif typeofshape == "Round" then | |
1581 | rngm.MeshId = "rbxassetid://662585058" | |
1582 | end | |
1583 | rngm.Scale = scale | |
1584 | rng.Parent = Effects | |
1585 | local scaler2 = 1/10 | |
1586 | if type == "Add" then | |
1587 | scaler2 = 1*value/10 | |
1588 | elseif type == "Divide" then | |
1589 | scaler2 = 1/value/10 | |
1590 | end | |
1591 | local randomrot = math.random(1,2) | |
1592 | task.spawn(function() | |
1593 | for i = 0,10/bonuspeed,0.1 do | |
1594 | task.wait(frame) | |
1595 | if type == "Add" then | |
1596 | scaler2 -= 0.01*value/bonuspeed/10 | |
1597 | elseif type == "Divide" then | |
1598 | scaler2 -= 0.01/value*bonuspeed/10 | |
1599 | end | |
1600 | if rotenable then | |
1601 | if randomrot == 1 then | |
1602 | rng.CFrame *= CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
1603 | else | |
1604 | rng.CFrame *= CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
1605 | end | |
1606 | end | |
1607 | if typeoftrans == "Out" then | |
1608 | rng.Transparency += 0.01*bonuspeed | |
1609 | else | |
1610 | rng.Transparency -= 0.01*bonuspeed | |
1611 | end | |
1612 | rngm.Scale += Vector3.new(scaler2*bonuspeed/10,0,scaler2*bonuspeed/10) | |
1613 | end | |
1614 | rng:Destroy() | |
1615 | end) | |
1616 | end | |
1617 | ||
1618 | local taunts = {"None", "None", "sAnIty", "Err0r", "iNSaNiTY", "FAST BOIII", "Glitch", "Alastor", "TheEnd"} | |
1619 | local sounds = {3247404955, 5315171837, 262950484, 481104377, 262950484, 2297862957, 2297862957, 5460732000, 9057254499} | |
1620 | ||
1621 | local ae = 1 | |
1622 | ||
1623 | Mouse.KeyDown:Connect(function(k) | |
1624 | if stopeverything then return end | |
1625 | k = k:lower() | |
1626 | if k == "m" then | |
1627 | ae = (ae + 1) % (#taunts + 1) | |
1628 | if ae == 0 then ae = 1 end | |
1629 | local taunt = taunts[ae] | |
1630 | local sound = sounds[ae] | |
1631 | TauntRemote:FireServer(taunt, sound) | |
1632 | if taunt == "sAnIty" then | |
1633 | repeat if stopeverything then return end | |
1634 | RnS.RenderStepped:Wait() | |
1635 | until SongSync.Value >= 24 or songid.Value ~= "rbxassetid://262950484" | |
1636 | if songid.Value == "rbxassetid://262950484" then | |
1637 | --chatfunc(" ") | |
1638 | sphere(1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),Vector3.new(1,100000,1),0.6,BrickColor.new("Really black")) | |
1639 | sphere2(math.random(1,4),"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Vector3.new(5,1,5),-0.005,math.random(25,100)/25,-0.005,BrickColor.new("Institutional white")) | |
1640 | sphere(1,"Add",Torso.CFrame,Vector3.one,0.8,BrickColor.new("Really black")) | |
1641 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,5,5),0.5,0.5,0.5,BrickColor.new("Institutional white")) | |
1642 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,5,5),0.75,0.75,0.75,BrickColor.new("Institutional white")) | |
1643 | sphere2(3,"Add",Torso.CFrame,Vector3.new(5,5,5),1,1,1,BrickColor.new("Institutional white")) | |
1644 | sphere2(3,"Add",Torso.CFrame,Vector3.new(5,5,5),1.25,1.25,1.25,BrickColor.new("Institutional white")) | |
1645 | sphere2(1,"Add",Torso.CFrame,Vector3.new(5,10000,5),0.5,0.5,0.5,BrickColor.new("Institutional white")) | |
1646 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,10000,5),0.6,0.6,0.6,BrickColor.new("Institutional white")) | |
1647 | for i = 0,49 do | |
1648 | PixelBlockX(1,math.random(1,20),"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Really black"),0) | |
1649 | sphereMK(2.5,-1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,BrickColor.new("Really black"),0) | |
1650 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-40,40))),Vector3.new(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Really black")) | |
1651 | end | |
1652 | CreateSound(239000203,Torso,10,false) | |
1653 | CreateSound(1042716828,Torso,10,false) | |
1654 | TauntRemote:FireServer("iNSaNiTY",262950484) | |
1655 | end | |
1656 | end | |
1657 | --[[ | |
1658 | if songid.Value ~= "rbxassetid://3247404955" and songid.Value ~= "rbxassetid://6190635423" and songid.Value ~= "rbxassetid://2371543268" and songid.Value ~= "rbxassetid://5315171837" and songid ~= "rbxassetid://5089636816" and songid.Value ~= "rbxassetid://6768783121" and songid.Value ~= "rbxassetid://4835535512" and songid.Value ~= "rbxassetid://5089636816" and songid.Value ~= "rbxassetid://1280010741" and songid.Value ~= "rbxassetid://5355210927" and songid.Value ~="rbxassetid://2581112923" and songid.Value ~= "rbxassetid://262950484" and songid.Value ~= "rbxassetid://481104377" and songid.Value ~= "rbxassetid://2920078671" and songid.Value ~= "rbxassetid://2297862957" and songid.Value ~= "rbxassetid://1338971957" and songid.Value ~= "rbxassetid://5460732000" and songid.Value ~= "rbxassetid://4557673096" and songid.Value ~= "rbxassetid://348832364" and songid.Value ~= "rbxassetid://1143392568" then | |
1659 | TauntRemote:FireServer("None",3247404955) | |
1660 | elseif songid.Value == "rbxassetid://3247404955" then | |
1661 | TauntRemote:FireServer("None",5315171837) | |
1662 | elseif songid.Value == "rbxassetid://5315171837" then | |
1663 | TauntRemote:FireServer("sAnIty",262950484) | |
1664 | songid.Value = "rbxassetid://262950484" | |
1665 | repeat if stopeverything then return end | |
1666 | RnS.RenderStepped:Wait() | |
1667 | until SongSync.Value >= 24 or songid.Value ~= "rbxassetid://262950484" | |
1668 | if songid.Value == "rbxassetid://262950484" then | |
1669 | --chatfunc(" ") | |
1670 | sphere(1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),Vector3.new(1,100000,1),0.6,BrickColor.new("Really black")) | |
1671 | sphere2(math.random(1,4),"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),Vector3.new(5,1,5),-0.005,math.random(25,100)/25,-0.005,BrickColor.new("Institutional white")) | |
1672 | sphere(1,"Add",Torso.CFrame,Vector3.one,0.8,BrickColor.new("Really black")) | |
1673 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,5,5),0.5,0.5,0.5,BrickColor.new("Institutional white")) | |
1674 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,5,5),0.75,0.75,0.75,BrickColor.new("Institutional white")) | |
1675 | sphere2(3,"Add",Torso.CFrame,Vector3.new(5,5,5),1,1,1,BrickColor.new("Institutional white")) | |
1676 | sphere2(3,"Add",Torso.CFrame,Vector3.new(5,5,5),1.25,1.25,1.25,BrickColor.new("Institutional white")) | |
1677 | sphere2(1,"Add",Torso.CFrame,Vector3.new(5,10000,5),0.5,0.5,0.5,BrickColor.new("Institutional white")) | |
1678 | sphere2(2,"Add",Torso.CFrame,Vector3.new(5,10000,5),0.6,0.6,0.6,BrickColor.new("Institutional white")) | |
1679 | for i = 0,49 do | |
1680 | PixelBlockX(1,math.random(1,20),"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Really black"),0) | |
1681 | sphereMK(2.5,-1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,BrickColor.new("Really black"),0) | |
1682 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",Torso.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-40,40))),Vector3.new(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Really black")) | |
1683 | end | |
1684 | CreateSound(239000203,Torso,10,false) | |
1685 | CreateSound(1042716828,Torso,10,false) | |
1686 | TauntRemote:FireServer("iNSaNiTY",262950484) | |
1687 | end | |
1688 | elseif songid.Value == "rbxassetid://262950484" then | |
1689 | TauntRemote:FireServer("Err0r",481104377) | |
1690 | elseif songid.Value == "rbxassetid://262950484" then | |
1691 | TauntRemote:FireServer("iNSaNiTY",262950484) | |
1692 | elseif songid.Value == "rbxassetid://481104377" then | |
1693 | TauntRemote:FireServer("FAST BOIII",2920078671) | |
1694 | elseif songid.Value == "rbxassetid://2920078671" then | |
1695 | TauntRemote:FireServer("Glitch",2297862957) | |
1696 | elseif songid.Value == "rbxassetid://2297862957" then | |
1697 | TauntRemote:FireServer("None",3247404955) | |
1698 | elseif songid.Value == "rbxassetid://2297862957" then | |
1699 | TauntRemote:FireServer("Chill",1338971957) | |
1700 | elseif songid.Value == "rbxassetid://1338971957" then | |
1701 | TauntRemote:FireServer("Alastor",5460732000) | |
1702 | elseif songid.Value == "rbxassetid://5460732000" then | |
1703 | TauntRemote:FireServer("kArmA",4557673096) | |
1704 | elseif songid.Value == "rbxassetid://4557673096" then | |
1705 | TauntRemote:FireServer("V1",2581112923) | |
1706 | elseif songid.Value == "rbxassetid://2581112923" then | |
1707 | TauntRemote:FireServer("caverns",5355210927) | |
1708 | elseif songid.Value == "rbxassetid://5355210927" then | |
1709 | TauntRemote:FireServer("funk",1280010741) | |
1710 | elseif songid.Value == "rbxassetid://1280010741" then | |
1711 | TauntRemote:FireServer("sussyhoney",5089636816) | |
1712 | elseif songid.Value == "rbxassetid://5089636816" then | |
1713 | TauntRemote:FireServer("hi",4835535512) | |
1714 | elseif songid.Value == "rbxassetid://4835535512" then | |
1715 | TauntRemote:FireServer("Lord",2371543268) | |
1716 | elseif songid.Value == "rbxassetid://2371543268" then | |
1717 | TauntRemote:FireServer("MaddoxLC",6768783121) | |
1718 | elseif songid.Value == "rbxassetid://6768783121" then | |
1719 | TauntRemote:FireServer("friday",6190635423) | |
1720 | elseif songid.Value == "rbxassetid://6190635423" then | |
1721 | TauntRemote:FireServer("SolidLC",348832364) | |
1722 | elseif songid.Value == "rbxassetid://348832364" then | |
1723 | TauntRemote:FireServer("HoneyLC",1143392568) | |
1724 | elseif songid.Value == "rbxassetid://1143392568" then | |
1725 | TauntRemote:FireServer("None",3247404955) | |
1726 | elseif songid.Value == "rbxassetid://3247404955" then | |
1727 | TauntRemote:FireServer("None",5315171837) | |
1728 | end | |
1729 | ]]-- | |
1730 | elseif k == "y" then | |
1731 | if taunt.Value ~= "Fave" then | |
1732 | TauntRemote:FireServer("Fave",290182215) | |
1733 | else | |
1734 | TauntRemote:FireServer("None",3247404955) | |
1735 | end | |
1736 | elseif k == "t" then | |
1737 | if taunt.Value ~= "Krump" then | |
1738 | TauntRemote:FireServer("Krump",1511734302) | |
1739 | else | |
1740 | TauntRemote:FireServer("None",3247404955) | |
1741 | end | |
1742 | elseif k == "u" then | |
1743 | if taunt.Value ~= "OOOOO" then | |
1744 | TauntRemote:FireServer("OOOOO",2681542649) | |
1745 | else | |
1746 | TauntRemote:FireServer("None",3247404955) | |
1747 | end | |
1748 | elseif k == "f" then | |
1749 | ISFLYING = not ISFLYING | |
1750 | if plr.Name == USERNAME then | |
1751 | sFLY() | |
1752 | end | |
1753 | elseif k == "z" and attack == false and tfind(taunts, taunt.Value) then | |
1754 | hedshoot() | |
1755 | elseif k == "x" and attack == false and tfind(taunts, taunt.Value) then | |
1756 | SingularityBeam() | |
1757 | elseif k == "c" and attack == false and tfind(taunts, taunt.Value) then | |
1758 | painlessrain() | |
1759 | elseif k == "v" and attack == false and tfind(taunts, taunt.Value) then | |
1760 | attacktwo() | |
1761 | elseif k == "b" and attack == false and tfind(taunts, taunt.Value) then | |
1762 | Ka_Boom() | |
1763 | end | |
1764 | end) | |
1765 | ||
1766 | Mouse.Button1Down:Connect(function() | |
1767 | if stopeverything then return end | |
1768 | if attack == false and tfind(taunts, taunt.Value) then | |
1769 | attackone() | |
1770 | end | |
1771 | end) | |
1772 | ||
1773 | task.spawn(function() | |
1774 | while not stopeverything do | |
1775 | task.wait(frame) | |
1776 | if doe < 360 then | |
1777 | doe += 2 | |
1778 | else | |
1779 | doe = 0 | |
1780 | end | |
1781 | end | |
1782 | end) | |
1783 | antivoid = create("Part", nil, {Name = randomstring(), Size = Vector3.new(400, 10, 400), Anchored = true, Transparency = 1, Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)}) | |
1784 | task.spawn(function() | |
1785 | while not stopeverything do | |
1786 | task.wait(frame) | |
1787 | if not alreadyfixing then | |
1788 | if antivoid:IsDescendantOf(workspace) then | |
1789 | antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z) | |
1790 | else | |
1791 | pcall(function() | |
1792 | antivoid:Destroy() | |
1793 | end) | |
1794 | create("Part", nil, {Name = randomstring(), Size = Vector3.new(400, 10, 400), Anchored = true, Transparency = 1, Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)}) | |
1795 | end | |
1796 | end | |
1797 | end | |
1798 | end) | |
1799 | ||
1800 | function fly() | |
1801 | local function weld(p0,p1,c0,c1,par) | |
1802 | return create("Weld", p0 or par, {Part0 = p0, Part1 = p1, C0 = c0 or CFrame.new(), C1 = c1 or CFrame.new()}) | |
1803 | end | |
1804 | local motors = {} | |
1805 | local function motor(p0,p1,c0,c1,des,vel,par) | |
1806 | return create("Motor6D", p0 or par, {Part0 = p0, Part1 = p1, C0 = c0 or CFrame.new(), C1 = c1 or CFrame.new(), MaxVelocity = tonumber(vel) or 0.05, DesiredAngle = tonumber(des) or 0}) | |
1807 | end | |
1808 | local function lerp(a,b,c) | |
1809 | return a+((b-a)*c) | |
1810 | end | |
1811 | local function clerp(c1,c2,alBRUH) | |
1812 | local al = .05 | |
1813 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
1814 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
1815 | for i,v in pairs(com1) do | |
1816 | com1[i] = lerp(v,com2[i],al) | |
1817 | end | |
1818 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
1819 | end | |
1820 | local function ccomplerp(c1,c2,alBRUH) | |
1821 | local al = 0.05 | |
1822 | local com1 = {c1:GetComponents()} | |
1823 | local com2 = {c2:GetComponents()} | |
1824 | for i,v in pairs(com1) do | |
1825 | com1[i] = lerp(v,com2[i],al) | |
1826 | end | |
1827 | return CFrame.new(unpack(com1)) | |
1828 | end | |
1829 | local function tickwave(time,length,offset) | |
1830 | return 0.2*math.sin(sine/20) | |
1831 | end | |
1832 | local function invcol(c) | |
1833 | c = c.Color | |
1834 | return BrickColor.new(shade) | |
1835 | end | |
1836 | local function oc(...) return ... end | |
1837 | local mod = create("Folder", char, {Name = "Wings"}) | |
1838 | local qwioeuqwieqwioeqwoe | |
1839 | qwioeuqwieqwioeqwoe = mod.ChildAdded:Connect(function(v) | |
1840 | if not qwioeuqwieqwioeqwoe.Connected then return end | |
1841 | if stopeverything then qwioeuqwieqwioeqwoe:Disconnect() return end | |
1842 | if v.Name == "Part" and not v:FindFirstChild("WingTrail") then | |
1843 | v.CanCollide = false | |
1844 | v.Massless = false | |
1845 | v.CustomPhysicalProperties = nophys | |
1846 | task.wait(frame) | |
1847 | local meesh = v:FindFirstChildOfClass("SpecialMesh") | |
1848 | if meesh then | |
1849 | meesh.Scale = v.Size | |
1850 | end | |
1851 | local top = create("Attachment", v, {Name = "Top", Position = Vector3.new(0, v.Size.Y/2, 0)}) | |
1852 | local bottom = create("Attachment", v, {Name = "Top", Position = Vector3.new(0, -(v.Size.Y/2), 0)}) | |
1853 | local vtrail = create("Trail", v, {Name = "WingTrail", Attachment0 = top, Attachment1 = bottom, Lifetime = 0.3, MinLength = 0, LightEmission = 0, LightInfluence = 0, Color = ColorSequence.new(shade), Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)}}) | |
1854 | end | |
1855 | end) | |
1856 | local tor = Torso | |
1857 | local hum = Humanoid | |
1858 | local special = { | |
1859 | } | |
1860 | local topcolor = invcol(char.Torso.BrickColor) | |
1861 | local feacolor = topcolor | |
1862 | local ptrans = 0 | |
1863 | local pref = 0 | |
1864 | local fire = false | |
1865 | local fmcol = Color3.new() | |
1866 | local fscol = Color3.new() | |
1867 | local part = create("Part", nil, {FormFactor = Enum.FormFactor.Custom, Size = Vector3.new(0.2, 0.2, 0.2), TopSurface = 0, BottomSurface = 0, CanCollide = false, BrickColor = topcolor, Transparency = 1, Reflectance = pref}) | |
1868 | local ef = create("Fire", fire and part or nil, {Heat = 0, Size = 0.15, Color = fmcol or Color3.new(), SecondaryColor = fscol or Color3.new()}) | |
1869 | pcall(part.BreakJoints, part) | |
1870 | local function newpart() | |
1871 | local clone = part:Clone() | |
1872 | clone.Parent = mod | |
1873 | clone:BreakJoints() | |
1874 | return clone | |
1875 | end | |
1876 | local feath = newpart() | |
1877 | feath.BrickColor = feacolor | |
1878 | feath.Transparency = 0 | |
1879 | create("SpecialMesh", feath, {MeshType = Enum.MeshType.Sphere}) | |
1880 | local function newfeather() | |
1881 | local clone = feath:Clone() | |
1882 | clone.Parent = mod | |
1883 | clone:BreakJoints() | |
1884 | return clone | |
1885 | end | |
1886 | local r1 = newpart() | |
1887 | r1.Size = Vector3.new(.3,1.5,.3)*1.2 | |
1888 | local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1) | |
1889 | local r2 = newpart() | |
1890 | r2.Size = Vector3.new(.4,1.5,.4)*1.2 | |
1891 | local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1) | |
1892 | local r3 = newpart() | |
1893 | r3.Size = Vector3.new(.3,2,.3)*1.2 | |
1894 | local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1) | |
1895 | local r4 = newpart() | |
1896 | r4.Size = Vector3.new(.25,1.2,.25)*1.2 | |
1897 | local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1) | |
1898 | local feather = newfeather() | |
1899 | feather.Mesh.Scale = Vector3.one | |
1900 | feather.Size = Vector3.new(.4,3,.3) | |
1901 | weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) | |
1902 | feather = newfeather() | |
1903 | feather.Mesh.Scale = Vector3.one | |
1904 | feather.Size = Vector3.new(.4,2.3,.3) | |
1905 | weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) | |
1906 | feather = newfeather() | |
1907 | feather.Mesh.Scale = Vector3.one | |
1908 | feather.Size = Vector3.new(.35,2.2,.25) | |
1909 | weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) | |
1910 | local rf3 = {} | |
1911 | for i = 0,7 do | |
1912 | feather = newfeather() | |
1913 | feather.Mesh.Scale = Vector3.one | |
1914 | feather.Size = Vector3.new(.45,2.2,.35) | |
1915 | table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1916 | end | |
1917 | local rf2 = {} | |
1918 | for i = 0,6 do | |
1919 | feather = newfeather() | |
1920 | feather.Mesh.Scale = Vector3.one | |
1921 | feather.Size = Vector3.new(.45,2.2-i*.08,.3) | |
1922 | table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1923 | end | |
1924 | local rf1 = {} | |
1925 | for i = 0,6 do | |
1926 | feather = newfeather() | |
1927 | feather.Mesh.Scale = Vector3.one | |
1928 | feather.Size = Vector3.new(.37,1.65-i*.06,.25) | |
1929 | table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1930 | end | |
1931 | local l1 = newpart() | |
1932 | l1.Size = Vector3.new(.3,1.5,.3)*1.2 | |
1933 | local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1) | |
1934 | local l2 = newpart() | |
1935 | l2.Size = Vector3.new(.4,1.5,.4)*1.2 | |
1936 | local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1) | |
1937 | local l3 = newpart() | |
1938 | l3.Size = Vector3.new(.3,2,.3)*1.2 | |
1939 | local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1) | |
1940 | local l4 = newpart() | |
1941 | l4.Size = Vector3.new(.25,1.2,.25)*1.2 | |
1942 | local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1) | |
1943 | local feather = newfeather() | |
1944 | feather.Mesh.Scale = Vector3.one | |
1945 | feather.Size = Vector3.new(.4,3,.3) | |
1946 | weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0)) | |
1947 | feather = newfeather() | |
1948 | feather.Mesh.Scale = Vector3.one | |
1949 | feather.Size = Vector3.new(.4,2.3,.3) | |
1950 | weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0)) | |
1951 | feather = newfeather() | |
1952 | feather.Mesh.Scale = Vector3.one | |
1953 | feather.Size = Vector3.new(.35,2.2,.25) | |
1954 | weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0)) | |
1955 | local lf3 = {} | |
1956 | for i = 0,7 do | |
1957 | feather = newfeather() | |
1958 | feather.Mesh.Scale = Vector3.one | |
1959 | feather.Size = Vector3.new(.45,2.2,.35) | |
1960 | table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1961 | end | |
1962 | local lf2 = {} | |
1963 | for i = 0,6 do | |
1964 | feather = newfeather() | |
1965 | feather.Mesh.Scale = Vector3.one | |
1966 | feather.Size = Vector3.new(.45,2.2-i*.08,.3) | |
1967 | table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1968 | end | |
1969 | local lf1 = {} | |
1970 | for i = 0,6 do | |
1971 | feather = newfeather() | |
1972 | feather.Mesh.Scale = Vector3.one | |
1973 | feather.Size = Vector3.new(.37,1.65-i*.06,.25) | |
1974 | table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0))) | |
1975 | end | |
1976 | local rwing = {rm1,rm2,rm3,rm4} | |
1977 | local lwing = {lm1,lm2,lm3,lm4} | |
1978 | local oc0 = {} | |
1979 | for _, v in ipairs(rwing) do | |
1980 | oc0[v] = v.C0 | |
1981 | end | |
1982 | for _, v in ipairs(lwing) do | |
1983 | oc0[v] = v.C0 | |
1984 | end | |
1985 | local lastsize | |
1986 | local function gotResized() | |
1987 | if lastsize then | |
1988 | if tor.Size == lastsize then return end | |
1989 | local scaleVec = tor.Size/lastsize | |
1990 | for i,v in pairs(oc0) do | |
1991 | oc0[i] = v-v.Position+scaleVec*v.Position | |
1992 | end | |
1993 | lastsize = tor.Size | |
1994 | end | |
1995 | lastsize = tor.Size | |
1996 | end | |
1997 | tor:GetPropertyChangedSignal("Size"):Connect(function() | |
1998 | if stopeverything then return end | |
1999 | gotResized() | |
2000 | end) | |
2001 | gotResized() | |
2002 | local idle = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2003 | local outlow = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2004 | local outhigh = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2005 | local veryhigh = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2006 | local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2007 | local divebomb = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0} | |
2008 | local function setwings(tab,time) | |
2009 | time = time or 10 | |
2010 | for i = 1,4 do | |
2011 | rwing[i].DesiredAngle = tab[i] | |
2012 | lwing[i].DesiredAngle = tab[i] | |
2013 | rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time | |
2014 | lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time | |
2015 | local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new()) | |
2016 | local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new()) | |
2017 | end | |
2018 | for i,v in pairs(rf1) do | |
2019 | v.DesiredAngle = tab[9] | |
2020 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2021 | end | |
2022 | for i,v in pairs(lf1) do | |
2023 | v.DesiredAngle = tab[9] | |
2024 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2025 | end | |
2026 | for i,v in pairs(rf2) do | |
2027 | v.DesiredAngle = tab[10] | |
2028 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2029 | end | |
2030 | for i,v in pairs(lf2) do | |
2031 | v.DesiredAngle = tab[10] | |
2032 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2033 | end | |
2034 | for i,v in pairs(rf3) do | |
2035 | v.DesiredAngle = tab[11] | |
2036 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2037 | end | |
2038 | for i,v in pairs(lf3) do | |
2039 | v.DesiredAngle = tab[11] | |
2040 | v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time | |
2041 | end | |
2042 | end | |
2043 | setwings(outhigh,1) | |
2044 | local flying = false | |
2045 | local moving = false | |
2046 | for _, v in ipairs(tor:GetChildren()) do | |
2047 | if v:IsA("BodyMover") then | |
2048 | v:Destroy() | |
2049 | end | |
2050 | end | |
2051 | local ctor = tor:Clone() | |
2052 | ctor:ClearAllChildren() | |
2053 | ctor.Name = "cTorso" | |
2054 | ctor.Transparency = 1 | |
2055 | ctor.CanCollide = false | |
2056 | ctor.FormFactor = "Custom" | |
2057 | ctor.Size = Vector3.new(.2,.2,.2) | |
2058 | ctor.Parent = mod | |
2059 | weld(tor,ctor) | |
2060 | local bg = create("BodyGyro", ctor, {MaxTorque = Vector3.new(), P = 15000, D = 1000}) | |
2061 | local bv = create("BodyVelocity", ctor, {MaxForce = Vector3.new(), P = 15000}) | |
2062 | ||
2063 | local vel = Vector3.new() | |
2064 | local cf = CFrame.new() | |
2065 | local flspd = 0 | |
2066 | local keysdown = {} | |
2067 | local keypressed = {} | |
2068 | local ktime = {} | |
2069 | local descendtimer = 0 | |
2070 | local jumptime = tick() | |
2071 | ||
2072 | local qoweiuqwoeuqoeioo | |
2073 | qoweiuqwoeuqoeioo = hum.Jumping:Connect(function() | |
2074 | if not qoweiuqwoeuqoeioo.Connected then return end | |
2075 | if stopeverything then qoweiuqwoeuqoeioo:Disconnect() return end | |
2076 | jumptime = tick() | |
2077 | end) | |
2078 | cam = workspace.CurrentCamera | |
2079 | local function mid(a,b,c) | |
2080 | return math.max(a,math.min(b,c or -a)) | |
2081 | end | |
2082 | local function bn(a) | |
2083 | return a and 1 or 0 | |
2084 | end | |
2085 | local function gm(tar) | |
2086 | local m = 0 | |
2087 | for _, v in ipairs(tar:GetChildren()) do | |
2088 | if v:IsA("BasePart") then | |
2089 | m += v:GetMass() | |
2090 | end | |
2091 | m += gm(v) | |
2092 | end | |
2093 | return m | |
2094 | end | |
2095 | local reqrotx = 0 | |
2096 | local grav = 196.2 | |
2097 | local con | |
2098 | while not stopeverything and not alreadyfixing do | |
2099 | local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity) | |
2100 | local sspd,uspd,fspd = obvel.X,obvel.Y,obvel.Z | |
2101 | local idledir | |
2102 | flying = true | |
2103 | if flying then | |
2104 | local fldir = cam.CoordinateFrame:VectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).Unit | |
2105 | local lfldir = fldir | |
2106 | local lmoving = moving | |
2107 | moving = fldir.Magnitude > .1 | |
2108 | if lmoving and not moving then | |
2109 | idledir = lfldir*Vector3.new(1,0,1) | |
2110 | descendtimer = tick() | |
2111 | end | |
2112 | local dbomb = fldir.Y < -.6 or (moving and keysdown["1"]) | |
2113 | if moving and keysdown["0"] and lmoving then | |
2114 | fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).Unit | |
2115 | end | |
2116 | local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0)) | |
2117 | local descending = (not moving and keysdown["q"] and not keysdown[" "]) | |
2118 | cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07) | |
2119 | local gdown = not dbomb and cf.LookVector.Y < -.2 and tor.Velocity.Unit.Y < .05 | |
2120 | local rotvel = CFrame.new(Vector3.new(),tor.Velocity):ToObjectSpace(CFrame.new(Vector3.new(),fldir)).LookVector | |
2121 | bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0) | |
2122 | reqrotx = reqrotx - reqrotx/10 | |
2123 | local ani = tickwave(1.5,1) | |
2124 | vel = moving and cf.LookVector*flspd or Vector3.new() | |
2125 | flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4)) | |
2126 | setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15) | |
2127 | for i=1,4 do | |
2128 | rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2) | |
2129 | lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2) | |
2130 | end | |
2131 | local hit,ray = workspace:FindPartOnRay(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.Y)/30,0)),char) | |
2132 | else | |
2133 | bg.maxTorque = Vector3.new() | |
2134 | bv.maxForce = Vector3.new() | |
2135 | local ani = tickwave(4.5, 1) | |
2136 | setwings(idle,10) | |
2137 | local x,y,z = fspd/160,uspd/700,sspd/900 | |
2138 | for i=1,4 do | |
2139 | rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2) | |
2140 | lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2) | |
2141 | end | |
2142 | if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then | |
2143 | vel = Vector3.new(0,50,0) | |
2144 | bv.velocity = vel | |
2145 | idledir = cam.CoordinateFrame.LookVector*Vector3.new(1,0,1) | |
2146 | cf = tor.CFrame * CFrame.Angles(-.01,0,0) | |
2147 | bg.cframe = cf | |
2148 | local flystart = tick() | |
2149 | flying = true | |
2150 | end | |
2151 | end | |
2152 | keypressed = {} | |
2153 | task.wait(frame) | |
2154 | end | |
2155 | end | |
2156 | task.spawn(fly) | |
2157 | ||
2158 | local qiweouuuuuuuuuu | |
2159 | qiweouuuuuuuuuu = workspace.ChildAdded:Connect(function(v) | |
2160 | if not qiweouuuuuuuuuu.Connected then return end | |
2161 | if stopeverything then qiweouuuuuuuuuu:Disconnect() return end | |
2162 | if v:IsA("Message") and v.Text ~= "You typed something in the require wrong." and v.Text ~= "I kinda need you to have a HumanoidRootPart to be able to do anthing, try again once you have one lol" then | |
2163 | v.Text = "" | |
2164 | v:GetPropertyChangedSignal("Text"):Connect(function() | |
2165 | if stopeverything then return end | |
2166 | if v.Text ~= "" then | |
2167 | v.Text = "" | |
2168 | end | |
2169 | end) | |
2170 | DB:AddItem(v,.01) | |
2171 | elseif v:IsA("BasePart") and v.Name == "StrawBerry" then | |
2172 | v.Transparency = 1 | |
2173 | DB:AddItem(v,.01) | |
2174 | end | |
2175 | end) | |
2176 | function checkws(v) | |
2177 | if v:IsA("Sound") and not v.Parent:IsA("BasePart") then | |
2178 | local function mutethisbadboy(v) | |
2179 | local mute = Instance.new("TremoloSoundEffect") | |
2180 | mute.Name = randomstring() | |
2181 | mute.Duty = 0 | |
2182 | mute.Priority = 2147483647 | |
2183 | mute.Parent = v | |
2184 | mute.Changed:Connect(function(change) | |
2185 | if stopeverything then return end | |
2186 | if change == "Depth" and mute.Depth ~= 1 then | |
2187 | mute.Depth = 1 | |
2188 | elseif change == "Duty" and mute.Duty ~= 0 then | |
2189 | mute.Duty = 0 | |
2190 | elseif change == "Enabled" and mute.Enabled ~= true then | |
2191 | mute.Enabled = true | |
2192 | elseif change == "Priority" and mute.Priority ~= 2147483647 then | |
2193 | mute.Priority = 2147483647 | |
2194 | end | |
2195 | end) | |
2196 | local checkforreparent = false | |
2197 | v:GetPropertyChangedSignal("Parent"):Connect(function() | |
2198 | if stopeverything then return end | |
2199 | if v.Parent and v.Parent:IsA("BasePart") then | |
2200 | mute:Destroy() | |
2201 | checkforreparent = true | |
2202 | elseif checkforreparent then | |
2203 | mutethisbadboy(v) | |
2204 | end | |
2205 | end) | |
2206 | v.DescendantRemoving:Connect(function(b) | |
2207 | if stopeverything then return end | |
2208 | if b == mute and not v.Parent:IsA("BasePart") then | |
2209 | mutethisbadboy(v) | |
2210 | end | |
2211 | end) | |
2212 | end | |
2213 | mutethisbadboy(v) | |
2214 | end | |
2215 | end | |
2216 | for _, v in ipairs(workspace:GetDescendants()) do | |
2217 | checkws(v) | |
2218 | end | |
2219 | workspace.DescendantAdded:Connect(function(v) | |
2220 | if stopeverything then return end | |
2221 | checkws(v) | |
2222 | end) | |
2223 | W1=Instance.new("Weld",eeeblock) | |
2224 | W1.Part0 = eeeblock | |
2225 | W1.Part1 = Torso | |
2226 | ||
2227 | task.spawn(function() | |
2228 | while not stopeverything do | |
2229 | if not alreadyfixing then | |
2230 | task.wait(frame) | |
2231 | if not soundfixing then | |
2232 | SongSync.Value = eee.TimePosition | |
2233 | end | |
2234 | Humanoid.UseJumpPower = true | |
2235 | Humanoid.JumpPower = 50 | |
2236 | Humanoid.WalkSpeed = walkspeed | |
2237 | ||
2238 | for _, v in ipairs(char:GetChildren()) do | |
2239 | if v:IsA("BasePart") and v.Anchored == false and v.Position.Y < (workspace.FallenPartsDestroyHeight + 50) then | |
2240 | local flot = Instance.new("BodyPosition") | |
2241 | local spen = Instance.new("BodyGyro") | |
2242 | local hu = math.huge | |
2243 | flot.MaxForce = Vector3.new(hu,hu,hu) | |
2244 | spen.MaxTorque = Vector3.new(hu,hu,hu) | |
2245 | local spown = nil | |
2246 | for _, b in ipairs(workspace:GetDescendants()) do | |
2247 | if not b:IsDescendantOf(char) and b:IsA("SpawnLocation") then | |
2248 | spown = b | |
2249 | end | |
2250 | end | |
2251 | if spown then | |
2252 | --RootPart.CFrame = CFrame.new(spown.Position.X,spown.Position.Y+(spown.Size.Y/2)+6,spown.Position.Z) | |
2253 | else | |
2254 | local base = workspace:FindFirstChild("Base") | |
2255 | if not base then | |
2256 | base = workspace:FindFirstChild("Baseplate") | |
2257 | end | |
2258 | end | |
2259 | end | |
2260 | end | |
2261 | Torsovelocity = (RootPart.Velocity).Magnitude | |
2262 | sine += 1 | |
2263 | local sensitivity = 25 | |
2264 | if taunt.Value == "None" or taunt.Value == "sAnIty" then | |
2265 | if taunt.Value == "sAnIty" then | |
2266 | local qw = SongSync.Value | |
2267 | if qw >= 2.7 and qw < 2.9 then | |
2268 | chatfunc("sAnIty",true) | |
2269 | elseif qw >= 5.3 and qw < 5.5 then | |
2270 | chatfunc("Light is peeking through the darkness") | |
2271 | elseif qw >= 8 and qw < 8.2 then | |
2272 | chatfunc("pUrIty",true) | |
2273 | elseif qw >= 10.8 and qw < 11 then | |
2274 | chatfunc("Can't feel anymore of the stress") | |
2275 | elseif qw >= 13.1 and qw < 13.3 then | |
2276 | chatfunc("sAnIty",true) | |
2277 | elseif qw >= 16 and qw < 16.2 then | |
2278 | chatfunc("It's already fading away") | |
2279 | elseif qw >= 18.7 and qw < 18.9 then | |
2280 | chatfunc("crUElty",true) | |
2281 | elseif qw >= 21.4 and qw < 21.6 then | |
2282 | chatfunc("Instincts controlling me") | |
2283 | end | |
2284 | end | |
2285 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0 * CFrame.new(0,0,0),0.2/3)) | |
2286 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-0.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),0.2/3)) | |
2287 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(0.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2288 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-0.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2289 | if attack == false then | |
2290 | if Torsovelocity < sensitivity then | |
2291 | Anim = "Idle" | |
2292 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)),0.7/3)) | |
2293 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0 ,0 + ((1) - 1)) * CFrame.Angles(math.rad(20),0,0),0.7/3)) | |
2294 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135 + 8.5 * math.cos(sine/50)),0,math.rad(25)) * RIGHTSHOULDERC0,0.7/3)) | |
2295 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(25 + 8.5 * math.cos(sine/50)),0,math.rad(-25 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0,0.7/3)) | |
2296 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
2297 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
2298 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2299 | else | |
2300 | Anim = "Walk" | |
2301 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(40),0,0),0.7/3)) | |
2302 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),0,0),0.7/3)) | |
2303 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(5 + 2 * math.cos(sine/19))) * RIGHTSHOULDERC0,0.7/3)) | |
2304 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,0.7/3)) | |
2305 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
2306 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
2307 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2308 | end | |
2309 | pcall(function() | |
2310 | GUN.Base.Transparency = 0 | |
2311 | GUN.GunAdditions.Transparency = 0 | |
2312 | GUN.NeonParts.Transparency = 0 | |
2313 | end) | |
2314 | end | |
2315 | elseif taunt.Value == "iNSaNiTY" then | |
2316 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0 * CFrame.new(0,0,0),0.2/3)) | |
2317 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-0.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),0.2/3)) | |
2318 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(0.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2319 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-0.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2320 | if attack == false then | |
2321 | if Torsovelocity < sensitivity/3.125 then | |
2322 | Anim = "Idle" | |
2323 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),0,0),0.7/3)) | |
2324 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),math.rad(10*math.cos(sine/100)),0),1)) | |
2325 | if math.random(1,60) == 1 then | |
2326 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.cos(sine/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)) | |
2327 | end | |
2328 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),0,0) * RIGHTSHOULDERC0,0.7/3)) | |
2329 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)) | |
2330 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)) | |
2331 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)) | |
2332 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2333 | elseif Torsovelocity >= sensitivity/3.125 then | |
2334 | Anim = "Walk" | |
2335 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),0,0),0.7/3)) | |
2336 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0),0.7/3)) | |
2337 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),0,0) * RIGHTSHOULDERC0,0.7/3)) | |
2338 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)) | |
2339 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)) | |
2340 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)) | |
2341 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2342 | end | |
2343 | pcall(function() | |
2344 | GUN.Base.Transparency = 0 | |
2345 | GUN.GunAdditions.Transparency = 0 | |
2346 | GUN.NeonParts.Transparency = 0 | |
2347 | end) | |
2348 | end | |
2349 | Humanoid.WalkSpeed = walkspeed/3.125 | |
2350 | elseif taunt.Value == "Chill" then | |
2351 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0,.2/3)) | |
2352 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),.2/3)) | |
2353 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2354 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2355 | if not attack then | |
2356 | pcall(function() | |
2357 | GUN.Base.Transparency = 0 | |
2358 | GUN.GunAdditions.Transparency = 0 | |
2359 | GUN.NeonParts.Transparency = 0 | |
2360 | end) | |
2361 | if Torsovelocity < sensitivity then | |
2362 | Anim = "Idle" | |
2363 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(-20),0,0),.7/3)) | |
2364 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),0,0),.7/3)) | |
2365 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.25,.5,-.1) * CFrame.Angles(0.78539816339745,-0.78539816339745,0) * RIGHTSHOULDERC0,.7/3)) | |
2366 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1,.75,.1) * CFrame.Angles(math.rad(-165),0,math.rad(40)) * LEFTSHOULDERC0,.7/3)) | |
2367 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,0) * CFrame.Angles(math.rad(-12.5),1.5707963267949,0) * CFrame.Angles(math.rad(10),0,0),.7/3)) | |
2368 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(12.5),-1.5707963267949,0) * CFrame.Angles(math.rad(10),0,0),.7/3)) | |
2369 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2370 | else | |
2371 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/9)) * CFrame.Angles(0.78539816339745,0,0),.7/3)) | |
2372 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(-0.78539816339745,0,0),.7/3)) | |
2373 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,.5,-.1) * CFrame.Angles(-0.78539816339745,0,0) * RIGHTSHOULDERC0,.7/3)) | |
2374 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(135),0,0) * LEFTSHOULDERC0,.7/3)) | |
2375 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)) | |
2376 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(0,math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)) | |
2377 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2378 | end | |
2379 | local partnum = math.random(1,48) | |
2380 | task.spawn(function() | |
2381 | local wingpart = char.Wings:GetChildren()[partnum] | |
2382 | wingpart.Color = GUN.NeonParts.Color | |
2383 | wingpart.WingTrail.Color = ColorSequence.new(wingpart.Color) | |
2384 | task.wait(frame) | |
2385 | if not alreadyfixing then | |
2386 | wingpart.Color = shade | |
2387 | wingpart.WingTrail.Color = ColorSequence.new(shade) | |
2388 | end | |
2389 | end) | |
2390 | end | |
2391 | elseif taunt.Value == "Err0r" then | |
2392 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0 * CFrame.new(0,0,0),0.2/3)) | |
2393 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-0.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),0.2/3)) | |
2394 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(0.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2395 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-0.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2396 | if attack == false then | |
2397 | if Torsovelocity < sensitivity then | |
2398 | Anim = "Idle" | |
2399 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 + .5 * math.cos(sine/15)) * CFrame.Angles(0,math.rad(-10*math.cos(sine/30)),0),0.7/3)) | |
2400 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(-15*math.cos(sine/30)),0),1/3)) | |
2401 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(135+-15*math.cos(sine/30)),0,math.rad(25+15*math.cos(sine/30))) * RIGHTSHOULDERC0,0.7/3)) | |
2402 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(5),math.rad(5),math.rad(-10+15*math.cos(sine/30))) * LEFTSHOULDERC0,0.7/3)) | |
2403 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(10+10*math.sin(sine/15))),1/3)) | |
2404 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(0,math.rad(-80),math.rad(-10-10*math.sin(sine/15))),1/3)) | |
2405 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2406 | else | |
2407 | Anim = "Walk" | |
2408 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 + .5 * math.cos(sine/15)) * CFrame.Angles(math.rad(40),math.rad(-5*math.cos(sine/30)),0),0.7/3)) | |
2409 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),0,0),0.7/3)) | |
2410 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(5 + 2 * math.cos(sine/19))) * RIGHTSHOULDERC0,0.7/3)) | |
2411 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,0.7/3)) | |
2412 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
2413 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
2414 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2415 | end | |
2416 | local partnum = math.random(1,48) | |
2417 | task.spawn(function() | |
2418 | local wingpart = char.Wings:GetChildren()[partnum] | |
2419 | wingpart.Color = Color3.new(0,1,0) | |
2420 | wingpart.WingTrail.Color = ColorSequence.new(Color3.new(0,1,0)) | |
2421 | task.wait(frame) | |
2422 | if not alreadyfixing then | |
2423 | wingpart.Color = shade | |
2424 | wingpart.WingTrail.Color = ColorSequence.new(shade) | |
2425 | end | |
2426 | end) | |
2427 | pcall(function() | |
2428 | GUN.Base.Transparency = 0 | |
2429 | GUN.GunAdditions.Transparency = 0 | |
2430 | GUN.NeonParts.Transparency = 0 | |
2431 | end) | |
2432 | end | |
2433 | elseif taunt.Value == "Alastor" then | |
2434 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0,.2/3)) | |
2435 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),.2/3)) | |
2436 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2437 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2438 | tweenc1(RightShoulder, Clerp(RightShoulder.C1,CFrame.new(-.5,.5,0,0,0,1,0,1,-0,-1,0,0),1)) | |
2439 | tweenc1(LeftShoulder, Clerp(LeftShoulder.C1,CFrame.new(.5,.499975681,0,0,0,-1,0,1,0,1,0,0),1)) | |
2440 | if not attack then | |
2441 | if Torsovelocity < sensitivity then | |
2442 | Anim = "Idle" | |
2443 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 , 0 , 3 - .5 * math.sin(sine/25)) * CFrame.Angles(math.rad(20), 0, 0), 0.8 / 3)) | |
2444 | tweenc(Neck, Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3))), .7 / 3)) | |
2445 | tweenc(RightShoulder, Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)) | |
2446 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45 + 8.5 * math.cos(sine/50)),0,math.rad(45 - 5 * math.cos(sine/25))) * LEFTSHOULDERC0,.7/3)) | |
2447 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1, -1,-.01) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),.7/3)) | |
2448 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),.7/3)) | |
2449 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2450 | else | |
2451 | Anim = "Walk" | |
2452 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(0.78539816339745,0,0),.7/3)) | |
2453 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),0,0),.7/3)) | |
2454 | tweenc(RightShoulder, Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)) | |
2455 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-4*math.sin(sine/25)), math.rad(5+2* math.sin(sine/25+math.random(-0.25,3))), math.rad(-2+5*math.sin(sine / 25))) * LEFTSHOULDERC0, .7 / 3)) | |
2456 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),.7/3)) | |
2457 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),.7/3)) | |
2458 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2459 | end | |
2460 | pcall(function() | |
2461 | GUN.Base.Transparency = 0 | |
2462 | GUN.GunAdditions.Transparency = 0 | |
2463 | GUN.NeonParts.Transparency = 0 | |
2464 | end) | |
2465 | end | |
2466 | elseif taunt.Value == "Glitch" then | |
2467 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0 * CFrame.new(0,0,0),0.2/3)) | |
2468 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-0.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),0.2/3)) | |
2469 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(0.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2470 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-0.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2471 | if attack == false then | |
2472 | if Torsovelocity < sensitivity then | |
2473 | Anim = "Idle" | |
2474 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(-2.5*math.sin(sine/9)),0,0),1/2)) | |
2475 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(10-10*math.sin(sine/9)),0,0),1/2)) | |
2476 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),0,math.rad(25)) * RIGHTSHOULDERC0,0.7/3)) | |
2477 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(0,0,math.rad(-10+10*math.cos(sine/9))) * LEFTSHOULDERC0,0.7/3)) | |
2478 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)) | |
2479 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(0,math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)) | |
2480 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2481 | else | |
2482 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(20-2.5*math.sin(sine/9)),0,0),1/2)) | |
2483 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(-10-10*math.sin(sine/9)),0,0),1/2)) | |
2484 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(-50+5*math.sin(sine/9)),0,0) * RIGHTSHOULDERC0,0.7/3)) | |
2485 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(110),0,0) * LEFTSHOULDERC0,0.7/3)) | |
2486 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)) | |
2487 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(0,math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)) | |
2488 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2489 | end | |
2490 | local partnum = math.random(1,48) | |
2491 | task.spawn(function() | |
2492 | local wingpart = char.Wings:GetChildren()[partnum] | |
2493 | wingpart.Color = GUN.NeonParts.Color | |
2494 | wingpart.WingTrail.Color = ColorSequence.new(wingpart.Color) | |
2495 | task.wait(frame) | |
2496 | if not alreadyfixing then | |
2497 | wingpart.Color = shade | |
2498 | wingpart.WingTrail.Color = ColorSequence.new(shade) | |
2499 | end | |
2500 | end) | |
2501 | pcall(function() | |
2502 | GUN.Base.Transparency = 0 | |
2503 | GUN.GunAdditions.Transparency = 0 | |
2504 | GUN.NeonParts.Transparency = 0 | |
2505 | end) | |
2506 | end | |
2507 | elseif taunt.Value == "FAST BOIII" then | |
2508 | if not char:FindFirstChild("WalkingWheel") and Anim == "Idle" and attack == false then | |
2509 | local ww = Instance.new("Model") | |
2510 | ww.Name = "WalkingWheel" | |
2511 | for i = 1,36 do | |
2512 | local wwpart = Instance.new("Part") | |
2513 | wwpart.Size = Vector3.new(2,.2,.56) | |
2514 | wwpart.CFrame = RootPart.CFrame * CFrame.new(0,.01,0) * CFrame.Angles(math.rad(85+(10*i)),0,0) * CFrame.new(0,3.1,0) | |
2515 | weldBetween(RootPart,wwpart) | |
2516 | wwpart.Material = "Neon" | |
2517 | if i <= 18 then | |
2518 | wwpart.CanCollide = false | |
2519 | end | |
2520 | wwpart.Color = Color3.new() | |
2521 | wwpart.Name = randomstring() | |
2522 | wwpart.Parent = ww | |
2523 | end | |
2524 | ww.Parent = char | |
2525 | task.spawn(function() | |
2526 | repeat if stopeverything then return end | |
2527 | for _, v in ipairs(ww:GetChildren()) do | |
2528 | pcall(function() v.Color = GUN.NeonParts.Color end) | |
2529 | end | |
2530 | task.wait(frame) | |
2531 | until attack or Anim ~= "Idle" or taunt.Value ~= "FAST BOIII" | |
2532 | alreadyfixing = true | |
2533 | ww:Destroy() | |
2534 | alreadyfixing = false | |
2535 | end) | |
2536 | end | |
2537 | tweenc1(RootJoint, Clerp(RootJoint.C1,ROOTC0 * CFrame.new(0,0,0),0.2/3)) | |
2538 | tweenc1(Neck, Clerp(Neck.C1,CFrame.new(0,-0.5,0) * CFrame.Angles(-1.5707963267949,0,math.pi),0.2/3)) | |
2539 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(0.5,1,0,-4.37113918e-08,0,1,0,1,0,-1,0,-4.37113918e-08),1)) | |
2540 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(-0.5,1,0,-4.37113918e-08,-0,-1,0,1,-0,1,0,-4.37113918e-08),1)) | |
2541 | if attack == false then | |
2542 | pcall(function() | |
2543 | GUN.Base.Transparency = 1 | |
2544 | GUN.GunAdditions.Transparency = 1 | |
2545 | GUN.NeonParts.Transparency = 1 | |
2546 | end) | |
2547 | if Torsovelocity < sensitivity then | |
2548 | Anim = "Idle" | |
2549 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-sine*6),0,0),.25)) | |
2550 | tweenc(Neck, Clerp(Neck.C0,NECKC0,.25)) | |
2551 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),0,0) * RIGHTSHOULDERC0,.25)) | |
2552 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(75*math.sin(sine/5)),0,0) * LEFTSHOULDERC0,.25)) | |
2553 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(75*math.sin(sine/5)),1.5707963267949,0),.25)) | |
2554 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),-1.5707963267949,0),.25)) | |
2555 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),.25)) | |
2556 | else | |
2557 | Anim = "Walk" | |
2558 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-0.2) * CFrame.Angles(-0.78539816339745,0,0),0.25/3)) | |
2559 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(-0.78539816339745,0,0),0.25/3)) | |
2560 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-135),0,0) * RIGHTSHOULDERC0,0.75/3)) | |
2561 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(-135),0,0) * LEFTSHOULDERC0,0.75/3)) | |
2562 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(75*math.sin(sine/2)),1.5707963267949,0),1)) | |
2563 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-75*math.sin(sine/2)),-1.5707963267949,0),1)) | |
2564 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2565 | pcall(function() | |
2566 | GUN.Base.Transparency = 1 | |
2567 | GUN.GunAdditions.Transparency = 1 | |
2568 | GUN.NeonParts.Transparency = 1 | |
2569 | end) | |
2570 | end | |
2571 | Humanoid.WalkSpeed = walkspeed*6 | |
2572 | else | |
2573 | pcall(function() | |
2574 | GUN.Base.Transparency = 0 | |
2575 | GUN.GunAdditions.Transparency = 0 | |
2576 | GUN.NeonParts.Transparency = 0 | |
2577 | end) | |
2578 | end | |
2579 | elseif taunt.Value == "TheEnd" then | |
2580 | if attack == false then | |
2581 | if Torsovelocity < sensitivity then | |
2582 | Anim = "Idle" | |
2583 | local Sine = math.sin(sine/32) | |
2584 | tweenc2(RootJoint, CFrame.new(0+0*Sine,5+0.5*Sine,-0.1+0*Sine)*CFrame.Angles(math.rad(-14.6+-2*Sine),math.rad(34.4+0.3*Sine),math.rad(6.9+-1.4*Sine))*ROOTC0) | |
2585 | tweenc2(RightHip, CFrame.new(1+0*Sine,-1.1+0*Sine,0.2+0*Sine)*CFrame.Angles(math.rad(-17.9+0*Sine),math.rad(-27.3+0.1*Sine),math.rad(-17.2+2.5*Sine))*CFrame.Angles(0,math.rad(90),0)) | |
2586 | tweenc2(LeftHip, CFrame.new(-1.1+0*Sine,-0.2+0*Sine,-0.6+0*Sine)*CFrame.Angles(math.rad(-11.6+2.5*Sine),math.rad(31+0*Sine),math.rad(-5.3+0*Sine))*CFrame.Angles(0,math.rad(-90),0)) | |
2587 | Sine = math.cos(Sine/32) | |
2588 | tweenc2(RightShoulder, CFrame.new(1.5+0*Sine,0.8+0*Sine,-0.3+0*Sine)*CFrame.Angles(math.rad(31.9+0*Sine),math.rad(57.1+0*Sine),math.rad(34.6+-2.5*Sine))) | |
2589 | tweenc2(LeftShoulder, CFrame.new(-1.3+0*Sine,0.4+0*Sine,0.4+-0.1*Sine)*CFrame.Angles(math.rad(81.8+5*Sine),math.rad(5.7+0*Sine),math.rad(-34.5+0.1*Sine))) | |
2590 | tweenc2(Neck, CFrame.new(-0.4+0*Sine,0.1+0*Sine,0.1+-0.1*Sine)*CFrame.Angles(math.rad(-15.4+2.5*Sine),math.rad(-34.7+0*Sine),math.rad(-23.7+0*Sine))*NECKC0) | |
2591 | else | |
2592 | Anim = "Walk" | |
2593 | tweenc(RootJoint, Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(40),0,0),0.7/3)) | |
2594 | tweenc(Neck, Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),0,0),0.7/3)) | |
2595 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(5 + 2 * math.cos(sine/19))) * RIGHTSHOULDERC0,0.7/3)) | |
2596 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(-0.78539816339745,0,math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,0.7/3)) | |
2597 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1,-0.5,-0.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),0) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),0,0),0.7/3)) | |
2598 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),0) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),0,0),0.7/3)) | |
2599 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(-1.5707963267949,0,0),1/2)) | |
2600 | end | |
2601 | pcall(function() | |
2602 | GUN.Base.Transparency = 0 | |
2603 | GUN.GunAdditions.Transparency = 0 | |
2604 | GUN.NeonParts.Transparency = 0 | |
2605 | end) | |
2606 | end | |
2607 | else | |
2608 | if attack == false then | |
2609 | pcall(function() | |
2610 | GUN.Base.Transparency = 1 | |
2611 | GUN.GunAdditions.Transparency = 1 | |
2612 | GUN.NeonParts.Transparency = 1 | |
2613 | end) | |
2614 | end | |
2615 | if taunt.Value == "Fave" then | |
2616 | tweenc(RootJoint, Clerp(RootJoint.C0,rc0 * CFrame.new(0,0,0),1)) | |
2617 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(),1)) | |
2618 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * rscp,1)) | |
2619 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.3,0.7,0) * CFrame.Angles(0,0,math.rad(-135)) * lscp,1)) | |
2620 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(.5,-2,0),1)) | |
2621 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-.9,-1.9,0) * CFrame.Angles(0,0,math.rad(-25)),1)) | |
2622 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(),1)) | |
2623 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(),1)) | |
2624 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0,-1,0) * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2625 | end | |
2626 | if taunt.Value == "Krump" then | |
2627 | tweenc(RootJoint, Clerp(RootJoint.C0,rc0 * CFrame.new(0+1*math.sin(sine/3),0+1*math.cos(sine/3),-.75) * CFrame.Angles(0,math.rad(-10),0),1)) | |
2628 | tweenc(Neck, Clerp(Neck.C0,nc0 * CFrame.new(),1)) | |
2629 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(1.5,1,0) * CFrame.Angles(0,0,1.5707963267949) * rscp,1)) | |
2630 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-1.5,1,0) * CFrame.Angles(0,0,-1.5707963267949) * lscp,1)) | |
2631 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(1.5,-1,0) * CFrame.Angles(0,0,math.rad(70)),1)) | |
2632 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-.5,-1.25,-.25) * CFrame.Angles(0,0,math.rad(10)),1)) | |
2633 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(),1)) | |
2634 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(),1)) | |
2635 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0,-1,0) * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2636 | elseif taunt.Value == "OOOOO" then | |
2637 | tweenc(RootJoint, Clerp(RootJoint.C0,rc0*CFrame.new(math.random(-1,1)/2,math.random(-1,1)/2,math.random(-1,1)/2)*CFrame.Angles(math.rad(math.random(-45,45)),math.rad(math.random(-45,45)),0),1)) | |
2638 | tweenc(Neck, Clerp(Neck.C0,nc0,1)) | |
2639 | tweenc(RightShoulder, Clerp(RightShoulder.C0,CFrame.new(2,0,0) * rscp * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2640 | tweenc(LeftShoulder, Clerp(LeftShoulder.C0,CFrame.new(-2,0,0) * lscp * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2641 | tweenc(RightHip, Clerp(RightHip.C0,CFrame.new(.5,-2,0),1)) | |
2642 | tweenc(LeftHip, Clerp(LeftHip.C0,CFrame.new(-.5,-2,0),1)) | |
2643 | tweenc1(RightHip, Clerp(RightHip.C1,CFrame.new(),1)) | |
2644 | tweenc1(LeftHip, Clerp(LeftHip.C1,CFrame.new(),1)) | |
2645 | tweenc1(RightShoulder, Clerp(RightShoulder.C1,CFrame.new(-.5,.5,0,0,0,1,0,1,-0,-1,0,0),1)) | |
2646 | tweenc1(LeftShoulder, Clerp(LeftShoulder.C1,CFrame.new(.5,.499975681,0,0,0,-1,0,1,0,1,0,0),1)) | |
2647 | tweenc(GunJoint, Clerp(GunJoint.C0,CFrame.new(0,-1,0) * CFrame.Angles(-1.5707963267949,0,0),1)) | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | task.wait(frame) | |
2652 | end | |
2653 | end) | |
2654 | ||
2655 | -- prevent lag/memory leak if you reset character | |
2656 | local resetcharacterbind = Instance.new("BindableEvent") | |
2657 | _G.ResetBind = resetcharacterbind | |
2658 | local qoueoqwieqe | |
2659 | qoueoqwieqe = resetcharacterbind.Event:Connect(function() | |
2660 | if not qoueoqwieqe.Connected then return end | |
2661 | qoueoqwieqe:Disconnect() | |
2662 | if plr.Character then | |
2663 | local char = plr.Character | |
2664 | pcall(function() char:FindFirstChildOfClass("Humanoid"):Destroy() end) | |
2665 | pcall(function() char:Destroy() end) | |
2666 | end | |
2667 | if workspace:FindFirstChild("non") then workspace.non:Destroy() end | |
2668 | stopeverything = true | |
2669 | resetcharacterbind:Destroy() | |
2670 | resetcharacterbind = nil | |
2671 | _G.ResetBind = nil | |
2672 | qoueoqwieqe = nil | |
2673 | end) | |
2674 | ||
2675 | game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetcharacterbind) |