SHOW:
|
|
- or go back to the newest paste.
1 | - | local Player = game:GetService("Players").lukekitten95 |
1 | + | local Player = game:GetService("Players").micheal2358 |
2 | local Mouse,mouse,UserInputService,ContextActionService | |
3 | do | |
4 | script.Parent = Player.Character | |
5 | local CAS = {Actions={}} | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput_Event" | |
8 | Event.Parent = Player.Character | |
9 | local fakeEvent = function() | |
10 | local t = {_fakeEvent=true} | |
11 | t.Connect = function(self,f)self.Function=f end | |
12 | t.connect = t.Connect | |
13 | return t | |
14 | end | |
15 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
16 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
17 | function CAS:BindAction(name,fun,touch,...) | |
18 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
19 | end | |
20 | function CAS:UnbindAction(name) | |
21 | CAS.Actions[name] = nil | |
22 | end | |
23 | local function te(self,ev,...) | |
24 | local t = m[ev] | |
25 | if t and t._fakeEvent and t.Function then | |
26 | t.Function(...) | |
27 | end | |
28 | end | |
29 | m.TrigEvent = te | |
30 | UIS.TrigEvent = te | |
31 | Event.OnServerEvent:Connect(function(plr,io) | |
32 | if plr~=Player then return end | |
33 | if io.isMouse then | |
34 | m.Target = io.Target | |
35 | m.Hit = io.Hit | |
36 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
37 | if io.UserInputState == Enum.UserInputState.Begin then | |
38 | m:TrigEvent("Button1Down") | |
39 | else | |
40 | m:TrigEvent("Button1Up") | |
41 | end | |
42 | else | |
43 | for n,t in pairs(CAS.Actions) do | |
44 | for _,k in pairs(t.Keys) do | |
45 | if k==io.KeyCode then | |
46 | t.Function(t.Name,io.UserInputState,io) | |
47 | end | |
48 | end | |
49 | end | |
50 | if io.UserInputState == Enum.UserInputState.Begin then | |
51 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
52 | UIS:TrigEvent("InputBegan",io,false) | |
53 | else | |
54 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent("InputEnded",io,false) | |
56 | end | |
57 | end | |
58 | end) | |
59 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
60 | end | |
61 | ||
62 | ||
63 | wait(0.5) | |
64 | warn[[Techoburst | |
65 | Did someone expect this? | |
66 | ||
67 | Created by NoobyGames12 | |
68 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
69 | BUILD 0.0.9A | |
70 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - ]] | |
71 | ---- DO NOT CHANGE ANYTHING BELOW IF YOU'RE NOT AN EDITOR | |
72 | wait(0.2) | |
73 | - | plr = game:GetService("Players").lukekitten95 |
73 | + | plr = game:GetService("Players").micheal2358 |
74 | char = plr.Character | |
75 | hum = char.Humanoid | |
76 | local cam = game.Workspace.CurrentCamera | |
77 | t = char.Torso | |
78 | h = char.Head | |
79 | ra = char["Right Arm"] | |
80 | la = char["Left Arm"] | |
81 | rl = char["Right Leg"] | |
82 | ll = char["Left Leg"] | |
83 | tors = char.Torso | |
84 | lleg = char["Left Leg"] | |
85 | root = char.HumanoidRootPart | |
86 | hed = char.Head | |
87 | rleg = char["Right Leg"] | |
88 | rarm = char["Right Arm"] | |
89 | larm = char["Left Arm"] | |
90 | it = Instance.new | |
91 | vt = Vector3.new | |
92 | bc = BrickColor.new | |
93 | br = BrickColor.random | |
94 | it = Instance.new | |
95 | cf = CFrame.new | |
96 | ceuler = CFrame.fromEulerAnglesXYZ | |
97 | ||
98 | local muter = false | |
99 | local ORGID = 1836057235 | |
100 | local ORVOL = 1.25 | |
101 | local ORPIT = 1.01 | |
102 | local kan = Instance.new("Sound",tors) | |
103 | kan.Volume = 0.85 | |
104 | kan.TimePosition = 0 | |
105 | kan.PlaybackSpeed = 1 | |
106 | kan.Pitch = 1 | |
107 | kan.SoundId = "rbxassetid://1255569288" | |
108 | kan.Name = "wrecked" | |
109 | kan.Looped = true | |
110 | kan:Play() | |
111 | ||
112 | --------------------------- GUI STUFF | |
113 | local basgui = it("GuiMain") | |
114 | basgui.Parent = plr.PlayerGui | |
115 | basgui.Name = "VISgui" | |
116 | local fullscreenz = it("Frame") | |
117 | fullscreenz.Parent = basgui | |
118 | fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255) | |
119 | fullscreenz.BackgroundTransparency = 1 | |
120 | fullscreenz.BorderColor3 = Color3.new(17, 17, 17) | |
121 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
122 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
123 | local imgl2 = Instance.new("ImageLabel",fullscreenz) | |
124 | imgl2.BackgroundTransparency = 1 | |
125 | imgl2.BorderSizePixel = 0 | |
126 | imgl2.ImageTransparency = 0.5 | |
127 | imgl2.ImageColor3 = Color3.new(1,0,0) | |
128 | imgl2.Position = UDim2.new(0.75,0,0.55,0) | |
129 | imgl2.Size = UDim2.new(0,600,0,600) | |
130 | imgl2.Image = "rbxassetid://2059444669" | |
131 | local techc = imgl2:Clone() | |
132 | techc.Parent = fullscreenz | |
133 | techc.ImageTransparency = 0.5 | |
134 | techc.Size = UDim2.new(0,700,0,700) | |
135 | techc.Position = UDim2.new(0.75,-50,0.55,-50) | |
136 | techc.ImageColor3 = Color3.new(0,0,0) | |
137 | techc.Image = "rbxassetid://1657788285" | |
138 | local circl = imgl2:Clone() | |
139 | circl.Parent = fullscreenz | |
140 | circl.ImageTransparency = 0 | |
141 | circl.Size = UDim2.new(0,500,0,500) | |
142 | circl.Position = UDim2.new(0.75,50,0.55,50) | |
143 | circl.ImageColor3 = Color3.new(0,0,0) | |
144 | circl.Image = "rbxassetid://997291547" | |
145 | local circl2 = imgl2:Clone() | |
146 | circl2.Parent = fullscreenz | |
147 | circl2.ImageTransparency = 0 | |
148 | circl2.ImageColor3 = Color3.new(0,0,0) | |
149 | circl2.Image = "rbxassetid://997291547" | |
150 | local imgl2b = imgl2:Clone() | |
151 | imgl2b.Parent = fullscreenz | |
152 | imgl2b.ImageTransparency = 0 | |
153 | imgl2b.Size = UDim2.new(0,500,0,500) | |
154 | imgl2b.Position = UDim2.new(0.75,50,0.55,50) | |
155 | local ned = Instance.new("TextLabel",fullscreenz) | |
156 | ned.ZIndex = 2 | |
157 | ned.Font = "Arcade" | |
158 | ned.BackgroundTransparency = 1 | |
159 | ned.BorderSizePixel = 0.65 | |
160 | ned.Size = UDim2.new(0.4,0,0.2,0) | |
161 | ned.Position = UDim2.new(0.6,0,0.8,0) | |
162 | ned.TextColor3 = BrickColor.new("Cyan").Color | |
163 | ned.TextStrokeColor3 = BrickColor.new("Toothpaste").Color | |
164 | ned.TextScaled = true | |
165 | ned.TextStrokeTransparency = 0 | |
166 | ned.Text = "TECHNOBURST" | |
167 | ned.TextSize = 24 | |
168 | ned.Rotation = 1 | |
169 | --ned.TextXAlignment = "Right" | |
170 | ned.TextYAlignment = "Bottom" | |
171 | ||
172 | function CameraShake(Times, Power) | |
173 | coroutine.resume(coroutine.create(function() | |
174 | FV = Instance.new("BoolValue", Character) | |
175 | FV.Name = "CameraShake" | |
176 | for ShakeNum=1,Times do | |
177 | swait() | |
178 | local ef=Power | |
179 | if ef>=1 then | |
180 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
181 | else | |
182 | ef=Power*10 | |
183 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
184 | end | |
185 | end | |
186 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
187 | FV:Destroy() | |
188 | end)) | |
189 | end | |
190 | ||
191 | CamShake=function(Part,Distan,Power,Times) | |
192 | local de=Part.Position | |
193 | for i,v in pairs(workspace:children()) do | |
194 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
195 | for _,c in pairs(v:children()) do | |
196 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
197 | local Noob=v.Humanoid | |
198 | if Noob~=nil then | |
199 | if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then | |
200 | --[[local ss=script.CamShake:clone() | |
201 | ss.Parent=Noob | |
202 | ss.Power.Value=Power | |
203 | ss.Times.Value=Times | |
204 | ss.Disabled=false]] | |
205 | CameraShake(Times, Power) | |
206 | end | |
207 | end | |
208 | end | |
209 | end | |
210 | end | |
211 | end | |
212 | end | |
213 | ||
214 | local MAINRUINCOLOR = BrickColor.new("Cyan") | |
215 | ||
216 | local toggleTag = true | |
217 | local bilguit = Instance.new("BillboardGui", hed) | |
218 | bilguit.Adornee = nil | |
219 | bilguit.Name = "ModeName" | |
220 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
221 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
222 | local modet = Instance.new("TextLabel", bilguit) | |
223 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
224 | modet.FontSize = "Size8" | |
225 | modet.TextScaled = true | |
226 | modet.TextTransparency = 0 | |
227 | modet.BackgroundTransparency = 1 | |
228 | modet.TextTransparency = 0 | |
229 | modet.TextStrokeTransparency = 0 | |
230 | modet.Font = "Antique" | |
231 | modet.TextStrokeColor3 = bc("Cyan").Color | |
232 | modet.TextColor3 = bc("Cyan").Color | |
233 | modet.Text = "TECHNO SWITCHER" | |
234 | ||
235 | local chaosmode = false | |
236 | ||
237 | function chatfunc(text,color,color2,typet,font,timeex) | |
238 | local chat = coroutine.wrap(function() | |
239 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
240 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
241 | end | |
242 | local naeeym2 = Instance.new("BillboardGui",Character) | |
243 | naeeym2.Size = UDim2.new(0,100,0,40) | |
244 | naeeym2.StudsOffset = Vector3.new(0,1.5,0) | |
245 | naeeym2.Adornee = Character.Head | |
246 | naeeym2.Name = "TalkingBillBoard" | |
247 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
248 | tecks2.BackgroundTransparency = 1 | |
249 | tecks2.BorderSizePixel = 0 | |
250 | tecks2.Text = "" | |
251 | tecks2.Font = font | |
252 | tecks2.TextSize = 30 | |
253 | tecks2.TextStrokeTransparency = 0 | |
254 | tecks2.TextColor3 = color | |
255 | tecks2.TextStrokeColor3 = color2 | |
256 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
257 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
258 | tecks3.BackgroundTransparency = 1 | |
259 | tecks3.BorderSizePixel = 0 | |
260 | tecks3.Text = "" | |
261 | tecks3.Font = font | |
262 | tecks3.TextSize = 30 | |
263 | tecks3.TextStrokeTransparency = 0 | |
264 | if typet == "Inverted" then | |
265 | tecks3.TextColor3 = color2 | |
266 | tecks3.TextStrokeColor3 = color | |
267 | elseif typet == "Normal" then | |
268 | tecks3.TextColor3 = color | |
269 | tecks3.TextStrokeColor3 = color2 | |
270 | end | |
271 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
272 | coroutine.resume(coroutine.create(function() | |
273 | while true do | |
274 | swait(1) | |
275 | if chaosmode == true then | |
276 | tecks2.TextColor3 = BrickColor.random().Color | |
277 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
278 | end | |
279 | end | |
280 | end)) | |
281 | for i = 0, 74*timeex do | |
282 | swait() | |
283 | tecks2.Text = text | |
284 | tecks3.Text = text | |
285 | end | |
286 | local va = 0 | |
287 | local mult = 1 | |
288 | for i = 0, 49 do | |
289 | swait() | |
290 | mult = mult + 0.1 | |
291 | va = va + 0.1*mult | |
292 | tecks2.Text = text | |
293 | tecks3.Text = text | |
294 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
295 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
296 | tecks2.Position = tecks2.Position + UDim2.new(0,va,0,0) | |
297 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
298 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
299 | tecks3.Position = tecks3.Position - UDim2.new(0,va,0,0) | |
300 | end | |
301 | naeeym2:Destroy() | |
302 | end) | |
303 | chat() | |
304 | end | |
305 | ||
306 | ||
307 | local Create = LoadLibrary("RbxUtility").Create | |
308 | ||
309 | CFuncs = { | |
310 | ["Part"] = { | |
311 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
312 | local Part = Create("Part"){ | |
313 | Parent = Parent, | |
314 | Reflectance = Reflectance, | |
315 | Transparency = Transparency, | |
316 | CanCollide = false, | |
317 | Locked = true, | |
318 | BrickColor = BrickColor.new(tostring(BColor)), | |
319 | Name = Name, | |
320 | Size = Size, | |
321 | Material = Material, | |
322 | } | |
323 | RemoveOutlines(Part) | |
324 | return Part | |
325 | end; | |
326 | }; | |
327 | ||
328 | ["Mesh"] = { | |
329 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
330 | local Msh = Create(Mesh){ | |
331 | Parent = Part, | |
332 | Offset = OffSet, | |
333 | Scale = Scale, | |
334 | } | |
335 | if Mesh == "SpecialMesh" then | |
336 | Msh.MeshType = MeshType | |
337 | Msh.MeshId = MeshId | |
338 | end | |
339 | return Msh | |
340 | end; | |
341 | }; | |
342 | ||
343 | ||
344 | ["Weld"] = { | |
345 | Create = function(Parent, Part0, Part1, C0, C1) | |
346 | local Weld = Create("Weld"){ | |
347 | Parent = Parent, | |
348 | Part0 = Part0, | |
349 | Part1 = Part1, | |
350 | C0 = C0, | |
351 | C1 = C1, | |
352 | } | |
353 | return Weld | |
354 | end; | |
355 | }; | |
356 | ||
357 | ["Sound"] = { | |
358 | Create = function(id, par, vol, pit) | |
359 | coroutine.resume(coroutine.create(function() | |
360 | local S = Create("Sound"){ | |
361 | Volume = vol, | |
362 | Pitch = pit or 1, | |
363 | SoundId = id, | |
364 | Parent = par or workspace, | |
365 | } | |
366 | wait() | |
367 | S:play() | |
368 | game:GetService("Debris"):AddItem(S, 10) | |
369 | end)) | |
370 | end; | |
371 | }; | |
372 | ||
373 | ["LongSound"] = { | |
374 | Create = function(id, par, vol, pit) | |
375 | coroutine.resume(coroutine.create(function() | |
376 | local S = Create("Sound"){ | |
377 | Volume = vol, | |
378 | Pitch = pit or 1, | |
379 | SoundId = id, | |
380 | Parent = par or workspace, | |
381 | } | |
382 | wait() | |
383 | S:play() | |
384 | game:GetService("Debris"):AddItem(S, 30) | |
385 | end)) | |
386 | end; | |
387 | }; | |
388 | ||
389 | ["ParticleEmitter"] = { | |
390 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
391 | local fp = Create("ParticleEmitter"){ | |
392 | Parent = Parent, | |
393 | Color = ColorSequence.new(Color1, Color2), | |
394 | LightEmission = LightEmission, | |
395 | Size = Size, | |
396 | Texture = Texture, | |
397 | Transparency = Transparency, | |
398 | ZOffset = ZOffset, | |
399 | Acceleration = Accel, | |
400 | Drag = Drag, | |
401 | LockedToPart = LockedToPart, | |
402 | VelocityInheritance = VelocityInheritance, | |
403 | EmissionDirection = EmissionDirection, | |
404 | Enabled = Enabled, | |
405 | Lifetime = LifeTime, | |
406 | Rate = Rate, | |
407 | Rotation = Rotation, | |
408 | RotSpeed = RotSpeed, | |
409 | Speed = Speed, | |
410 | VelocitySpread = VelocitySpread, | |
411 | } | |
412 | return fp | |
413 | end; | |
414 | }; | |
415 | ||
416 | CreateTemplate = { | |
417 | ||
418 | }; | |
419 | } | |
420 | ||
421 | ||
422 | ||
423 | New = function(Object, Parent, Name, Data) | |
424 | local Object = Instance.new(Object) | |
425 | for Index, Value in pairs(Data or {}) do | |
426 | Object[Index] = Value | |
427 | end | |
428 | Object.Parent = Parent | |
429 | Object.Name = Name | |
430 | return Object | |
431 | end | |
432 | local m = Instance.new("Model",char) | |
433 | ||
434 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
435 | local p = Instance.new("Part") | |
436 | p.TopSurface = 0 | |
437 | p.BottomSurface = 0 | |
438 | p.Parent = parent | |
439 | p.Size = Vector3.new(0.05,0.05,0.05) | |
440 | p.Transparency = transparency | |
441 | p.Reflectance = reflectance | |
442 | p.CanCollide = false | |
443 | p.Locked = true | |
444 | p.BrickColor = brickcolor | |
445 | p.Material = material | |
446 | return p | |
447 | end | |
448 | ||
449 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
450 | local mesh = Instance.new("SpecialMesh",parent) | |
451 | mesh.MeshType = meshtype | |
452 | mesh.Scale = Vector3.new(x1*20,y1*20,z1*20) | |
453 | return mesh | |
454 | end | |
455 | ||
456 | function RecolorTextAndRename(name,col1,col2,font) | |
457 | modet.TextStrokeColor3 = col2 | |
458 | modet.TextColor3 = col1 | |
459 | modet.Font = font | |
460 | modet.Text = name | |
461 | techc.ImageColor3 = col2 | |
462 | circl.ImageColor3 = col2 | |
463 | circl2.ImageColor3 = col1 | |
464 | imgl2.ImageColor3 = col1 | |
465 | imgl2b.ImageColor3 = col2 | |
466 | ned.Text = name | |
467 | ned.TextColor3 = col1 | |
468 | ned.TextStrokeColor3 = col2 | |
469 | end | |
470 | ||
471 | local disably = true | |
472 | ||
473 | function warnedpeople(text,represfont,color,color2) | |
474 | if disably ~= true then | |
475 | CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1) | |
476 | CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1) | |
477 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
478 | coroutine.resume(coroutine.create(function() | |
479 | if v.PlayerGui:FindFirstChild("Spinny")~= nil then | |
480 | v.PlayerGui:FindFirstChild("Spinny"):destroy() | |
481 | end | |
482 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
483 | scrg.Name = "Spinny" | |
484 | local frm = Instance.new("Frame",scrg) | |
485 | frm.BackgroundTransparency = 0.25 | |
486 | frm.BackgroundColor3 = color | |
487 | frm.BorderSizePixel = 0 | |
488 | frm.Rotation = 45 | |
489 | frm.Size = UDim2.new(3,0,0,100) | |
490 | frm.Position = UDim2.new(-4,0,0,0) | |
491 | local frm2 = frm:Clone() | |
492 | frm2.Parent = scrg | |
493 | frm2.BackgroundColor3 = color2 | |
494 | frm2.Position = UDim2.new(-4.05,0,0,0) | |
495 | local imlb = Instance.new("ImageLabel",scrg) | |
496 | imlb.BackgroundTransparency = 1 | |
497 | imlb.BackgroundColor3 = Color3.new(0,0,0) | |
498 | imlb.Image = "rbxassetid://2344851144" | |
499 | imlb.Size = UDim2.new(0,750,0,750) | |
500 | imlb.ImageColor3 = color2 | |
501 | imlb.ImageTransparency = 0.25 | |
502 | imlb.Position = UDim2.new(-2.5,0,-2.5,0) | |
503 | local imlb2 = imlb:Clone() | |
504 | imlb2.Image = "rbxassetid://2325939897" | |
505 | imlb2.Size = UDim2.new(1,0,1,0) | |
506 | imlb2.ImageColor3 = color | |
507 | imlb2.ImageTransparency = 0 | |
508 | imlb2.Position = UDim2.new(0,0,0,0) | |
509 | local imlb3 = imlb:Clone() | |
510 | imlb3.Image = "rbxassetid://2344830904" | |
511 | imlb3.Size = UDim2.new(1,0,1,0) | |
512 | imlb3.ImageColor3 = color2 | |
513 | imlb3.ImageTransparency = 0 | |
514 | imlb3.Position = UDim2.new(0,0,0,0) | |
515 | local imlb4 = imlb:Clone() | |
516 | imlb4.Image = "rbxassetid://2344870656" | |
517 | imlb4.Size = UDim2.new(3,0,3,0) | |
518 | imlb4.ImageColor3 = Color3.new(1,1,1) | |
519 | imlb4.ImageTransparency = 0 | |
520 | imlb4.Position = UDim2.new(-1,0,-1,0) | |
521 | local imlb5 = imlb:Clone() | |
522 | imlb5.Image = "rbxassetid://2344870656" | |
523 | imlb5.Size = UDim2.new(10,0,10,0) | |
524 | imlb5.ImageColor3 = color2 | |
525 | imlb5.ImageTransparency = 0 | |
526 | imlb5.Position = UDim2.new(-4.5,0,-4.5,0) | |
527 | imlb2.Parent = imlb | |
528 | imlb3.Parent = imlb | |
529 | imlb4.Parent = imlb | |
530 | imlb5.Parent = imlb | |
531 | local txtlb2 = Instance.new("TextLabel",imlb) | |
532 | txtlb2.Text = text | |
533 | txtlb2.Font = represfont | |
534 | txtlb2.TextColor3 = color | |
535 | txtlb2.TextStrokeTransparency = 0 | |
536 | txtlb2.BackgroundTransparency = 1 | |
537 | txtlb2.TextStrokeColor3 = color2 | |
538 | txtlb2.TextScaled = true | |
539 | txtlb2.Size = UDim2.new(1,0,1,0) | |
540 | txtlb2.Position = UDim2.new(0,0,0,0) | |
541 | local fvalen = 0.55 | |
542 | local fval = -0.49 | |
543 | coroutine.resume(coroutine.create(function() | |
544 | while true do | |
545 | swait() | |
546 | if chaosmode == true then | |
547 | txtlb2.Rotation = math.random(-1,1) | |
548 | imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
549 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
550 | imlb.ImageColor3 = BrickColor.random().Color | |
551 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
552 | end | |
553 | end | |
554 | end)) | |
555 | coroutine.resume(coroutine.create(function() | |
556 | while true do | |
557 | swait() | |
558 | if scrg.Parent ~= nil then | |
559 | fvalen = fvalen - 0.0001 | |
560 | elseif scrg.Parent == nil then | |
561 | break | |
562 | end | |
563 | end | |
564 | end)) | |
565 | local flol = -5 | |
566 | local flil = 1.6 | |
567 | coroutine.resume(coroutine.create(function() | |
568 | for i = 0, 49 do | |
569 | swait() | |
570 | flol = flol + 0.125 | |
571 | flil = flil - 0.1 | |
572 | frm.Size = frm.Size + UDim2.new(0.1,0,0,0) | |
573 | frm.Rotation = frm.Rotation - 0.25 | |
574 | frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0) | |
575 | frm2.Rotation = frm.Rotation + 0.325 | |
576 | imlb3.Rotation = imlb3.Rotation - 10 | |
577 | imlb2.Rotation = imlb.Rotation + 7.5 | |
578 | imlb.Rotation = imlb.Rotation + 5 | |
579 | txtlb2.Rotation = txtlb2.Rotation - 5.125 | |
580 | imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0) | |
581 | end | |
582 | for i = 0, 99 do | |
583 | swait() | |
584 | fval = fval + 0.05 | |
585 | flol = flol + 0.005 | |
586 | frm.Size = frm.Size + UDim2.new(0.005,0,0,0) | |
587 | frm.Rotation = frm.Rotation - 0.075 | |
588 | frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0) | |
589 | frm2.Rotation = frm2.Rotation + 0.125 | |
590 | imlb3.Rotation = imlb3.Rotation - 2 | |
591 | imlb2.Rotation = imlb.Rotation + 1.5 | |
592 | imlb.Rotation = imlb.Rotation + 1 | |
593 | txtlb2.Rotation = txtlb2.Rotation - 1.125 | |
594 | imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0) | |
595 | end | |
596 | local valinc = 0 | |
597 | local vinc2 = 1 | |
598 | for i = 0, 99 do | |
599 | swait() | |
600 | vinc2 = vinc2 + 0.25 | |
601 | valinc = valinc + 0.0001 | |
602 | flol = flol + valinc | |
603 | flil = flil + valinc | |
604 | txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2 | |
605 | imlb3.Rotation = imlb3.Rotation - 2*vinc2 | |
606 | imlb.Rotation = imlb.Rotation + 1*vinc2 | |
607 | imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0) | |
608 | frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0) | |
609 | frm.Rotation = frm.Rotation + 0.1*vinc2 | |
610 | frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0) | |
611 | frm2.Rotation = frm2.Rotation + 0.225*vinc2 | |
612 | frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075 | |
613 | frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075 | |
614 | imlb.ImageTransparency = imlb.ImageTransparency + 0.005 | |
615 | imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01 | |
616 | imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01 | |
617 | imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01 | |
618 | imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01 | |
619 | txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01 | |
620 | txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01 | |
621 | end | |
622 | scrg:Destroy() | |
623 | end)) | |
624 | end)) | |
625 | end | |
626 | end | |
627 | end | |
628 | ||
629 | ||
630 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
631 | local mesh = Instance.new("SpecialMesh",parent) | |
632 | mesh.MeshType = "FileMesh" | |
633 | mesh.MeshId = meshid | |
634 | mesh.Scale = Vector3.new(x1,y1,z1) | |
635 | return mesh | |
636 | end | |
637 | ||
638 | ||
639 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
640 | local mesh = Instance.new("SpecialMesh",parent) | |
641 | mesh.MeshType = "FileMesh" | |
642 | mesh.MeshId = meshid | |
643 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
644 | mesh.Scale = Vector3.new(x1,y1,z1) | |
645 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
646 | return mesh | |
647 | end | |
648 | ||
649 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
650 | local weld = Instance.new("Weld") | |
651 | weld.Parent = parent | |
652 | weld.Part0 = part0 | |
653 | weld.Part1 = part1 | |
654 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
655 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
656 | return weld | |
657 | end | |
658 | ||
659 | ||
660 | ||
661 | ||
662 | ---- WEAPON OR STUFF | |
663 | --[[local rarmor = CreateParta(m,1,0,"SmoothPlastic",BrickColor.Random()) | |
664 | local weaponweld = CreateWeld(rarmor,tors,rarmor,-3,0,-0.5,math.rad(0),math.rad(0),math.rad(-40),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
665 | local MainWeldS = CreateWeld(Part475,rarmor,Part475,0,0,0,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
666 | local A0 = Instance.new("Attachment",rarmor) | |
667 | A0.Position = Vector3.new(-2.5,0.25,0) | |
668 | local A1 = Instance.new("Attachment",rarmor) | |
669 | A1.Position = Vector3.new(-7.5,0.4,0) | |
670 | tl1 = Instance.new('Trail',rarmor) | |
671 | tl1.Attachment0 = A0 | |
672 | tl1.Attachment1 = A1 | |
673 | tl1.Texture = "http://www.roblox.com/asset/?id=1978704853" | |
674 | tl1.LightEmission = 1 | |
675 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
676 | tl1.Color = ColorSequence.new(BrickColor.new('Royal purple').Color) | |
677 | tl1.Lifetime = 0.6 | |
678 | tl1.Enabled = false]]-- | |
679 | ------ | |
680 | ||
681 | ||
682 | function lerp(object, newCFrame, alpha) | |
683 | return object:lerp(newCFrame, alpha) | |
684 | end | |
685 | ||
686 | function RemoveOutlines(part) | |
687 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
688 | end | |
689 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
690 | local Part = Create("Part")({ | |
691 | Parent = Parent, | |
692 | Reflectance = Reflectance, | |
693 | Transparency = Transparency, | |
694 | CanCollide = false, | |
695 | Locked = true, | |
696 | BrickColor = BrickColor.new(tostring(BColor)), | |
697 | Name = Name, | |
698 | Size = Size, | |
699 | Material = Material | |
700 | }) | |
701 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
702 | RemoveOutlines(Part) | |
703 | return Part | |
704 | end | |
705 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
706 | local Msh = Create(Mesh)({ | |
707 | Parent = Part, | |
708 | Offset = OffSet, | |
709 | Scale = Scale | |
710 | }) | |
711 | if Mesh == "SpecialMesh" then | |
712 | Msh.MeshType = MeshType | |
713 | Msh.MeshId = MeshId | |
714 | end | |
715 | return Msh | |
716 | end | |
717 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
718 | local Weld = Create("Weld")({ | |
719 | Parent = Parent, | |
720 | Part0 = Part0, | |
721 | Part1 = Part1, | |
722 | C0 = C0, | |
723 | C1 = C1 | |
724 | }) | |
725 | return Weld | |
726 | end | |
727 | ||
728 | Character=Player.Character | |
729 | PlayerGui=Player.PlayerGui | |
730 | Backpack=Player.Backpack | |
731 | Torso=Character.Torso | |
732 | Head=Character.Head | |
733 | Humanoid=Character.Humanoid | |
734 | m=Instance.new('Model',Character) | |
735 | LeftArm=Character["Left Arm"] | |
736 | LeftLeg=Character["Left Leg"] | |
737 | RightArm=Character["Right Arm"] | |
738 | RightLeg=Character["Right Leg"] | |
739 | LS=Torso["Left Shoulder"] | |
740 | LH=Torso["Left Hip"] | |
741 | RS=Torso["Right Shoulder"] | |
742 | RH=Torso["Right Hip"] | |
743 | Face = Head.face | |
744 | Neck=Torso.Neck | |
745 | it=Instance.new | |
746 | attacktype=1 | |
747 | vt=Vector3.new | |
748 | cf=CFrame.new | |
749 | euler=CFrame.fromEulerAnglesXYZ | |
750 | angles=CFrame.Angles | |
751 | cloaked=false | |
752 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
753 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
754 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
755 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
756 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
757 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
758 | RootPart=Character.HumanoidRootPart | |
759 | RootJoint=RootPart.RootJoint | |
760 | RootCF=euler(-1.57,0,3.14) | |
761 | attack = false | |
762 | attackdebounce = false | |
763 | deb=false | |
764 | equipped=true | |
765 | hand=false | |
766 | MMouse=nil | |
767 | combo=0 | |
768 | mana=0 | |
769 | trispeed=.2 | |
770 | attackmode='none' | |
771 | local idle=0 | |
772 | local Anim="Idle" | |
773 | local Effects={} | |
774 | local sine = 0 | |
775 | local change = 1 | |
776 | ||
777 | --save shoulders | |
778 | RSH, LSH=nil, nil | |
779 | --welds | |
780 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
781 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
782 | LH=Torso["Left Hip"] | |
783 | RH=Torso["Right Hip"] | |
784 | TorsoColor=Torso.BrickColor | |
785 | function NoOutline(Part) | |
786 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
787 | end | |
788 | ch=Character | |
789 | RSH=ch.Torso["Right Shoulder"] | |
790 | LSH=ch.Torso["Left Shoulder"] | |
791 | -- | |
792 | RSH.Parent=nil | |
793 | LSH.Parent=nil | |
794 | -- | |
795 | RW.Name="Right Shoulder" | |
796 | RW.Part0=ch.Torso | |
797 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
798 | RW.C1=cf(0, 0.5, 0) | |
799 | RW.Part1=ch["Right Arm"] | |
800 | RW.Parent=ch.Torso | |
801 | -- | |
802 | LW.Name="Left Shoulder" | |
803 | LW.Part0=ch.Torso | |
804 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
805 | LW.C1=cf(0, 0.5, 0) | |
806 | LW.Part1=ch["Left Arm"] | |
807 | LW.Parent=ch.Torso | |
808 | local donum=0 | |
809 | ||
810 | ||
811 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
812 | local fp=it("Part") | |
813 | fp.formFactor=formfactor | |
814 | fp.Parent=parent | |
815 | fp.Reflectance=reflectance | |
816 | fp.Transparency=transparency | |
817 | fp.CanCollide=false | |
818 | fp.Locked=true | |
819 | fp.BrickColor=brickcolor | |
820 | fp.Name=name | |
821 | fp.Size=size | |
822 | fp.Position=Torso.Position | |
823 | NoOutline(fp) | |
824 | fp.Material="SmoothPlastic" | |
825 | fp:BreakJoints() | |
826 | return fp | |
827 | end | |
828 | ||
829 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
830 | local mesh=it(Mesh) | |
831 | mesh.Parent=part | |
832 | if Mesh=="SpecialMesh" then | |
833 | mesh.MeshType=meshtype | |
834 | if meshid~="nil" then | |
835 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
836 | end | |
837 | end | |
838 | mesh.Offset=offset | |
839 | mesh.Scale=scale | |
840 | return mesh | |
841 | end | |
842 | ||
843 | function weld(parent,part0,part1,c0) | |
844 | local weld=it("Weld") | |
845 | weld.Parent=parent | |
846 | weld.Part0=part0 | |
847 | weld.Part1=part1 | |
848 | weld.C0=c0 | |
849 | return weld | |
850 | end | |
851 | ||
852 | local bodvel=Instance.new("BodyVelocity") | |
853 | local bg=Instance.new("BodyGyro") | |
854 | ||
855 | function swait(num) | |
856 | if num==0 or num==nil then | |
857 | game:service'RunService'.Stepped:wait(0) | |
858 | else | |
859 | for i=0,num do | |
860 | game:service'RunService'.Stepped:wait(0) | |
861 | end | |
862 | end | |
863 | end | |
864 | ||
865 | ||
866 | so = function(id,par,vol,pit) | |
867 | coroutine.resume(coroutine.create(function() | |
868 | local sou = Instance.new("Sound",par or workspace) | |
869 | sou.Volume=vol | |
870 | sou.Pitch=pit or 1 | |
871 | sou.SoundId=id | |
872 | swait() | |
873 | sou:play() | |
874 | game:GetService("Debris"):AddItem(sou,6) | |
875 | end)) | |
876 | end | |
877 | ||
878 | function clerp(a,b,t) | |
879 | local qa = {QuaternionFromCFrame(a)} | |
880 | local qb = {QuaternionFromCFrame(b)} | |
881 | local ax, ay, az = a.x, a.y, a.z | |
882 | local bx, by, bz = b.x, b.y, b.z | |
883 | local _t = 1-t | |
884 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
885 | end | |
886 | ||
887 | function QuaternionFromCFrame(cf) | |
888 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
889 | local trace = m00 + m11 + m22 | |
890 | if trace > 0 then | |
891 | local s = math.sqrt(1 + trace) | |
892 | local recip = 0.5/s | |
893 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
894 | else | |
895 | local i = 0 | |
896 | if m11 > m00 then | |
897 | i = 1 | |
898 | end | |
899 | if m22 > (i == 0 and m00 or m11) then | |
900 | i = 2 | |
901 | end | |
902 | if i == 0 then | |
903 | local s = math.sqrt(m00-m11-m22+1) | |
904 | local recip = 0.5/s | |
905 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
906 | elseif i == 1 then | |
907 | local s = math.sqrt(m11-m22-m00+1) | |
908 | local recip = 0.5/s | |
909 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
910 | elseif i == 2 then | |
911 | local s = math.sqrt(m22-m00-m11+1) | |
912 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
913 | end | |
914 | end | |
915 | end | |
916 | ||
917 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
918 | local xs, ys, zs = x + x, y + y, z + z | |
919 | local wx, wy, wz = w*xs, w*ys, w*zs | |
920 | local xx = x*xs | |
921 | local xy = x*ys | |
922 | local xz = x*zs | |
923 | local yy = y*ys | |
924 | local yz = y*zs | |
925 | local zz = z*zs | |
926 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
927 | end | |
928 | ||
929 | function shakes(power,length) | |
930 | for i,v in pairs(game:GetService("Players"):GetChildren()) do | |
931 | local var = script.Shaker:Clone() | |
932 | var.Parent = v.Character | |
933 | local pw = var.Shakeval | |
934 | local lgth = var.MultLength | |
935 | pw.Value = power | |
936 | lgth.Value = length | |
937 | var.Disabled = false | |
938 | game:GetService("Debris"):AddItem(var, length+4) | |
939 | end | |
940 | end | |
941 | ||
942 | function QuaternionSlerp(a, b, t) | |
943 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
944 | local startInterp, finishInterp; | |
945 | if cosTheta >= 0.0001 then | |
946 | if (1 - cosTheta) > 0.0001 then | |
947 | local theta = math.acos(cosTheta) | |
948 | local invSinTheta = 1/math.sin(theta) | |
949 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
950 | finishInterp = math.sin(t*theta)*invSinTheta | |
951 | else | |
952 | startInterp = 1-t | |
953 | finishInterp = t | |
954 | end | |
955 | else | |
956 | if (1+cosTheta) > 0.0001 then | |
957 | local theta = math.acos(-cosTheta) | |
958 | local invSinTheta = 1/math.sin(theta) | |
959 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
960 | finishInterp = math.sin(t*theta)*invSinTheta | |
961 | else | |
962 | startInterp = t-1 | |
963 | finishInterp = t | |
964 | end | |
965 | end | |
966 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
967 | end | |
968 | ||
969 | local function CFrameFromTopBack(at, top, back) | |
970 | local right = top:Cross(back) | |
971 | return CFrame.new(at.x, at.y, at.z, | |
972 | right.x, top.x, back.x, | |
973 | right.y, top.y, back.y, | |
974 | right.z, top.z, back.z) | |
975 | end | |
976 | ||
977 | function Triangle(a, b, c) | |
978 | local edg1 = (c-a):Dot((b-a).unit) | |
979 | local edg2 = (a-b):Dot((c-b).unit) | |
980 | local edg3 = (b-c):Dot((a-c).unit) | |
981 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
982 | a, b, c = a, b, c | |
983 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
984 | a, b, c = b, c, a | |
985 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
986 | a, b, c = c, a, b | |
987 | else | |
988 | assert(false, "unreachable") | |
989 | end | |
990 | ||
991 | local len1 = (c-a):Dot((b-a).unit) | |
992 | local len2 = (b-a).magnitude - len1 | |
993 | local width = (a + (b-a).unit*len1 - c).magnitude | |
994 | ||
995 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
996 | ||
997 | local list = {} | |
998 | ||
999 | if len1 > 0.01 then | |
1000 | local w1 = Instance.new('WedgePart', m) | |
1001 | game:GetService("Debris"):AddItem(w1,5) | |
1002 | w1.Material = "SmoothPlastic" | |
1003 | w1.FormFactor = 'Custom' | |
1004 | w1.BrickColor = BrickColor.new("Really red") | |
1005 | w1.Transparency = 0 | |
1006 | w1.Reflectance = 0 | |
1007 | w1.Material = "SmoothPlastic" | |
1008 | w1.CanCollide = false | |
1009 | local l1 = Instance.new("PointLight",w1) | |
1010 | l1.Color = Color3.new(170,0,0) | |
1011 | NoOutline(w1) | |
1012 | local sz = Vector3.new(0.2, width, len1) | |
1013 | w1.Size = sz | |
1014 | local sp = Instance.new("SpecialMesh",w1) | |
1015 | sp.MeshType = "Wedge" | |
1016 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1017 | w1:BreakJoints() | |
1018 | w1.Anchored = true | |
1019 | w1.Parent = workspace | |
1020 | w1.Transparency = 0.7 | |
1021 | table.insert(Effects,{w1,"Disappear",.01}) | |
1022 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1023 | table.insert(list,w1) | |
1024 | end | |
1025 | ||
1026 | if len2 > 0.01 then | |
1027 | local w2 = Instance.new('WedgePart', m) | |
1028 | game:GetService("Debris"):AddItem(w2,5) | |
1029 | w2.Material = "SmoothPlastic" | |
1030 | w2.FormFactor = 'Custom' | |
1031 | w2.BrickColor = BrickColor.new("Really red") | |
1032 | w2.Transparency = 0 | |
1033 | w2.Reflectance = 0 | |
1034 | w2.Material = "SmoothPlastic" | |
1035 | w2.CanCollide = false | |
1036 | local l2 = Instance.new("PointLight",w2) | |
1037 | l2.Color = Color3.new(170,0,0) | |
1038 | NoOutline(w2) | |
1039 | local sz = Vector3.new(0.2, width, len2) | |
1040 | w2.Size = sz | |
1041 | local sp = Instance.new("SpecialMesh",w2) | |
1042 | sp.MeshType = "Wedge" | |
1043 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1044 | w2:BreakJoints() | |
1045 | w2.Anchored = true | |
1046 | w2.Parent = workspace | |
1047 | w2.Transparency = 0.7 | |
1048 | table.insert(Effects,{w2,"Disappear",.01}) | |
1049 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1050 | table.insert(list,w2) | |
1051 | end | |
1052 | return unpack(list) | |
1053 | end | |
1054 | ||
1055 | ||
1056 | local currentThemePlaying = kan.SoundId | |
1057 | local currentPitch = kan.Pitch | |
1058 | local currentVol = kan.Volume | |
1059 | function newTheme(ID,timepos,pitch,vol) | |
1060 | local kanz = kan | |
1061 | --kanz:Stop() | |
1062 | kanz.Volume = vol | |
1063 | --kanz.TimePosition = timepos | |
1064 | kanz.PlaybackSpeed = pitch | |
1065 | kanz.Pitch = pitch | |
1066 | kanz.SoundId = ID | |
1067 | kanz.Name = "wrecked" | |
1068 | kanz.Looped = true | |
1069 | currentThemePlaying = kanz.SoundId | |
1070 | currentVol = kanz.Volume | |
1071 | currentPitch = kanz.Pitch | |
1072 | --kanz:Play() | |
1073 | --coroutine.resume(coroutine.create(function() | |
1074 | --wait(0.05) | |
1075 | --end)) | |
1076 | end | |
1077 | ||
1078 | ||
1079 | function newThemeCust(ID,timepos,pitch,vol) | |
1080 | local kanz = kan | |
1081 | kanz:Stop() | |
1082 | kanz.Volume = vol | |
1083 | kanz.TimePosition = timepos | |
1084 | kanz.PlaybackSpeed = pitch | |
1085 | kanz.Pitch = pitch | |
1086 | kanz.SoundId = ID | |
1087 | kanz.Name = "wrecked" | |
1088 | kanz.Looped = true | |
1089 | currentThemePlaying = kanz.SoundId | |
1090 | currentVol = kanz.Volume | |
1091 | currentPitch = kanz.Pitch | |
1092 | kanz:Play() | |
1093 | coroutine.resume(coroutine.create(function() | |
1094 | wait(0.05) | |
1095 | end)) | |
1096 | end | |
1097 | ||
1098 | local mutedtog = false | |
1099 | ||
1100 | ||
1101 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1102 | if hit.Parent == nil then | |
1103 | return | |
1104 | end | |
1105 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1106 | for _, v in pairs(hit.Parent:children()) do | |
1107 | if v:IsA("Humanoid") then | |
1108 | h = v | |
1109 | h.MaxHealth = 100 | |
1110 | end | |
1111 | end | |
1112 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil or h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1113 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1114 | return | |
1115 | end | |
1116 | local c = Create("ObjectValue")({ | |
1117 | Name = "creator", | |
1118 | - | Value = game:GetService("Players").lukekitten95, |
1118 | + | Value = game:GetService("Players").micheal2358, |
1119 | Parent = h | |
1120 | }) | |
1121 | game:GetService("Debris"):AddItem(c, 0.5) | |
1122 | if HitSound ~= nil and HitPitch ~= nil then | |
1123 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1124 | end | |
1125 | local Damage = math.random(minim, maxim) | |
1126 | local blocked = false | |
1127 | local block = hit.Parent:findFirstChild("Block") | |
1128 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1129 | blocked = true | |
1130 | block.Value = block.Value - 1 | |
1131 | print(block.Value) | |
1132 | end | |
1133 | if blocked == false then | |
1134 | HitHealth = h.Health | |
1135 | h.MaxHealth = 100 | |
1136 | h.Health = h.Health - Damage | |
1137 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1138 | print("gained kill") | |
1139 | dmg(h.Parent) | |
1140 | end | |
1141 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1142 | else | |
1143 | h.Health = h.Health - Damage / 2 | |
1144 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1145 | end | |
1146 | if Type == "Normal" then | |
1147 | local vp = Create("BodyVelocity")({ | |
1148 | P = 500, | |
1149 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1150 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1151 | }) | |
1152 | if knockback > 0 then | |
1153 | vp.Parent = hit.Parent.Torso | |
1154 | end | |
1155 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1156 | end | |
1157 | local debounce = Create("BoolValue")({ | |
1158 | Name = "DebounceHit", | |
1159 | Parent = hit.Parent, | |
1160 | Value = true | |
1161 | }) | |
1162 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1163 | c = Instance.new("ObjectValue") | |
1164 | c.Name = "creator" | |
1165 | c.Value = Player | |
1166 | c.Parent = h | |
1167 | game:GetService("Debris"):AddItem(c, 0.5) | |
1168 | end | |
1169 | end | |
1170 | function ShowDamage(Pos, Text, Time, Color) | |
1171 | local Rate = 0.1 | |
1172 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1173 | local Text = Text or "" | |
1174 | local Time = Time or 2 | |
1175 | local Color = Color or Color3.new(1, 0, 1) | |
1176 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1177 | EffectPart.Anchored = true | |
1178 | local BillboardGui = Create("BillboardGui")({ | |
1179 | Size = UDim2.new(3, 0, 3, 0), | |
1180 | Adornee = EffectPart, | |
1181 | Parent = EffectPart | |
1182 | }) | |
1183 | local TextLabel = Create("TextLabel")({ | |
1184 | BackgroundTransparency = 1, | |
1185 | Size = UDim2.new(1, 0, 1, 0), | |
1186 | Text = Text, | |
1187 | TextColor3 = Color3.new(1,1,1), | |
1188 | TextStrokeColor3 = Color3.new(0,0,0), | |
1189 | TextStrokeTransparency = 0.25, | |
1190 | TextScaled = true, | |
1191 | Font = Enum.Font.Fantasy, | |
1192 | TextSize = 24, | |
1193 | Parent = BillboardGui | |
1194 | }) | |
1195 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1196 | EffectPart.Parent = game:GetService("Workspace") | |
1197 | delay(0, function() | |
1198 | local Frames = Time / Rate | |
1199 | for Frame = 1, Frames do | |
1200 | swait(Rate) | |
1201 | local Percent = Frame / Frames | |
1202 | TextLabel.Text = Text | |
1203 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent*2, 0) | |
1204 | end | |
1205 | for Frame = 1, Frames do | |
1206 | swait(Rate) | |
1207 | local Percent = Frame / Frames | |
1208 | TextLabel.Text = Text | |
1209 | end | |
1210 | for Frame = 1, Frames do | |
1211 | swait(Rate) | |
1212 | local Percent = Frame / Frames | |
1213 | TextLabel.TextTransparency = Percent | |
1214 | TextLabel.Text = Text | |
1215 | TextLabel.TextStrokeTransparency = Percent | |
1216 | end | |
1217 | if EffectPart and EffectPart.Parent then | |
1218 | EffectPart:Destroy() | |
1219 | end | |
1220 | end) | |
1221 | end | |
1222 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound) | |
1223 | for _, c in pairs(workspace:children()) do | |
1224 | local hum = c:findFirstChildOfClass("Humanoid") | |
1225 | if hum ~= nil then | |
1226 | local head = c:findFirstChild("Torso") | |
1227 | if head ~= nil then | |
1228 | local targ = head.Position - Part.Position | |
1229 | local mag = targ.magnitude | |
1230 | if magni >= mag and c.Name ~= Player.Name then | |
1231 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1) | |
1232 | end | |
1233 | end | |
1234 | local head = c:findFirstChild("UpperTorso") | |
1235 | if head ~= nil then | |
1236 | local targ = head.Position - Part.Position | |
1237 | local mag = targ.magnitude | |
1238 | if magni >= mag and c.Name ~= Player.Name then | |
1239 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 1) | |
1240 | end | |
1241 | end | |
1242 | end | |
1243 | end | |
1244 | end | |
1245 | ||
1246 | ||
1247 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1248 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1249 | end | |
1250 | ---- | |
1251 | ||
1252 | function dmg(dude) | |
1253 | if dude.Name ~= Character then | |
1254 | local bgf = Instance.new("BodyGyro",dude.Head) | |
1255 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
1256 | --[[local val = Instance.new("BoolValue",dude) | |
1257 | val.Name = "IsHit"]]-- | |
1258 | local ds = coroutine.wrap(function() | |
1259 | dude:WaitForChild("Head"):BreakJoints() | |
1260 | for i, v in pairs(dude:GetChildren()) do | |
1261 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1262 | v.Name = "DEMINISHED" | |
1263 | CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1) | |
1264 | CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1) | |
1265 | end | |
1266 | end | |
1267 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285) | |
1268 | coroutine.resume(coroutine.create(function() | |
1269 | for i, v in pairs(dude:GetChildren()) do | |
1270 | if v:IsA("Accessory") then | |
1271 | v:Destroy() | |
1272 | end | |
1273 | if v:IsA("Humanoid") then | |
1274 | v:Destroy() | |
1275 | end | |
1276 | if v:IsA("CharacterMesh") then | |
1277 | v:Destroy() | |
1278 | end | |
1279 | if v:IsA("Model") then | |
1280 | v:Destroy() | |
1281 | end | |
1282 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1283 | for x, o in pairs(v:GetChildren()) do | |
1284 | if o:IsA("Decal") then | |
1285 | o:Destroy() | |
1286 | end | |
1287 | end | |
1288 | coroutine.resume(coroutine.create(function() | |
1289 | v.Material = "Neon" | |
1290 | v.CanCollide = false | |
1291 | v.Anchored = false | |
1292 | local bld = Instance.new("ParticleEmitter",v) | |
1293 | bld.LightEmission = 1 | |
1294 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
1295 | bld.Color = ColorSequence.new(BrickColor.new("Toothpaste").Color) | |
1296 | bld.Rate = 500 | |
1297 | bld.Lifetime = NumberRange.new(1) | |
1298 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1299 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1300 | bld.Speed = NumberRange.new(2,5) | |
1301 | bld.VelocitySpread = 50000 | |
1302 | bld.Rotation = NumberRange.new(-500,500) | |
1303 | bld.RotSpeed = NumberRange.new(-500,500) | |
1304 | local sbs = Instance.new("BodyPosition", v) | |
1305 | sbs.P = 3000 | |
1306 | sbs.D = 1000 | |
1307 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1308 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
1309 | v.Color = BrickColor.new("Toothpaste").Color | |
1310 | coroutine.resume(coroutine.create(function() | |
1311 | wait(0.5) | |
1312 | bld.Enabled = false | |
1313 | for i = 0, 49 do | |
1314 | swait() | |
1315 | v:BreakJoints() | |
1316 | v.Transparency = v.Transparency + 0.02 | |
1317 | end | |
1318 | coroutine.resume(coroutine.create(function() | |
1319 | for i = 0, 99 do | |
1320 | swait() | |
1321 | dude:Destroy() | |
1322 | v:Destroy() | |
1323 | dude:Destroy() | |
1324 | end | |
1325 | end)) | |
1326 | end)) | |
1327 | end)) | |
1328 | end | |
1329 | end | |
1330 | end)) | |
1331 | end) | |
1332 | ds() | |
1333 | end | |
1334 | end | |
1335 | ||
1336 | function sphere(bonuspeed,type,pos,scale,value,color) | |
1337 | local type = type | |
1338 | local rng = Instance.new("Part", char) | |
1339 | rng.Anchored = true | |
1340 | rng.BrickColor = color | |
1341 | rng.CanCollide = false | |
1342 | rng.FormFactor = 3 | |
1343 | rng.Name = "Ring" | |
1344 | rng.Material = "Neon" | |
1345 | rng.Size = Vector3.new(1, 1, 1) | |
1346 | rng.Transparency = 0 | |
1347 | rng.TopSurface = 0 | |
1348 | rng.BottomSurface = 0 | |
1349 | rng.CFrame = pos | |
1350 | local rngm = Instance.new("SpecialMesh", rng) | |
1351 | rngm.MeshType = "Sphere" | |
1352 | rngm.Scale = scale | |
1353 | if rainbowmode == true then | |
1354 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1355 | end | |
1356 | local scaler2 = 1 | |
1357 | if type == "Add" then | |
1358 | scaler2 = 1*value | |
1359 | elseif type == "Divide" then | |
1360 | scaler2 = 1/value | |
1361 | end | |
1362 | coroutine.resume(coroutine.create(function() | |
1363 | for i = 0,10/bonuspeed,0.1 do | |
1364 | swait() | |
1365 | if rainbowmode == true then | |
1366 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1367 | end | |
1368 | if type == "Add" then | |
1369 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1370 | elseif type == "Divide" then | |
1371 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1372 | end | |
1373 | if chaosmode == true then | |
1374 | rng.BrickColor = BrickColor.random() | |
1375 | end | |
1376 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1377 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1378 | end | |
1379 | rng:Destroy() | |
1380 | end)) | |
1381 | end | |
1382 | ||
1383 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
1384 | local type = type | |
1385 | local rng = Instance.new("Part", char) | |
1386 | rng.Anchored = true | |
1387 | rng.BrickColor = color | |
1388 | rng.Color = color3 | |
1389 | rng.CanCollide = false | |
1390 | rng.FormFactor = 3 | |
1391 | rng.Name = "Ring" | |
1392 | rng.Material = "Neon" | |
1393 | rng.Size = Vector3.new(1, 1, 1) | |
1394 | rng.Transparency = 0 | |
1395 | rng.TopSurface = 0 | |
1396 | rng.BottomSurface = 0 | |
1397 | rng.CFrame = pos | |
1398 | local rngm = Instance.new("SpecialMesh", rng) | |
1399 | rngm.MeshType = "Sphere" | |
1400 | rngm.Scale = scale | |
1401 | local scaler2 = 1 | |
1402 | local scaler2b = 1 | |
1403 | local scaler2c = 1 | |
1404 | if type == "Add" then | |
1405 | scaler2 = 1*value | |
1406 | scaler2b = 1*value2 | |
1407 | scaler2c = 1*value3 | |
1408 | elseif type == "Divide" then | |
1409 | scaler2 = 1/value | |
1410 | scaler2b = 1/value2 | |
1411 | scaler2c = 1/value3 | |
1412 | end | |
1413 | coroutine.resume(coroutine.create(function() | |
1414 | for i = 0,10/bonuspeed,0.1 do | |
1415 | swait() | |
1416 | if type == "Add" then | |
1417 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1418 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
1419 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
1420 | elseif type == "Divide" then | |
1421 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1422 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
1423 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
1424 | end | |
1425 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1426 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
1427 | end | |
1428 | rng:Destroy() | |
1429 | end)) | |
1430 | end | |
1431 | ||
1432 | VT = Vector3.new | |
1433 | vt = Vector3.new | |
1434 | ||
1435 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
1436 | local type = type | |
1437 | local rng = Instance.new("Part", char) | |
1438 | rng.Anchored = true | |
1439 | rng.BrickColor = color | |
1440 | rng.Color = color3 | |
1441 | rng.CanCollide = false | |
1442 | rng.FormFactor = 3 | |
1443 | rng.Name = "Ring" | |
1444 | rng.Material = "Neon" | |
1445 | rng.Size = Vector3.new(1, 1, 1) | |
1446 | rng.Transparency = 0 | |
1447 | rng.TopSurface = 0 | |
1448 | rng.BottomSurface = 0 | |
1449 | rng.CFrame = pos | |
1450 | local rngm = Instance.new("SpecialMesh", rng) | |
1451 | rngm.MeshType = "Brick" | |
1452 | rngm.Scale = scale | |
1453 | local scaler2 = 1 | |
1454 | local scaler2b = 1 | |
1455 | local scaler2c = 1 | |
1456 | if type == "Add" then | |
1457 | scaler2 = 1*value | |
1458 | scaler2b = 1*value2 | |
1459 | scaler2c = 1*value3 | |
1460 | elseif type == "Divide" then | |
1461 | scaler2 = 1/value | |
1462 | scaler2b = 1/value2 | |
1463 | scaler2c = 1/value3 | |
1464 | end | |
1465 | coroutine.resume(coroutine.create(function() | |
1466 | for i = 0,10/bonuspeed,0.1 do | |
1467 | swait() | |
1468 | if type == "Add" then | |
1469 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1470 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
1471 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
1472 | elseif type == "Divide" then | |
1473 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1474 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
1475 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
1476 | end | |
1477 | rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1478 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1479 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
1480 | end | |
1481 | rng:Destroy() | |
1482 | end)) | |
1483 | end | |
1484 | ||
1485 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,color3,outerpos) | |
1486 | local type = type | |
1487 | local rng = Instance.new("Part", char) | |
1488 | rng.Anchored = true | |
1489 | rng.BrickColor = color | |
1490 | rng.Color = color3 | |
1491 | rng.CanCollide = false | |
1492 | rng.FormFactor = 3 | |
1493 | rng.Name = "Ring" | |
1494 | rng.Material = "Neon" | |
1495 | rng.Size = Vector3.new(1, 1, 1) | |
1496 | rng.Transparency = 0 | |
1497 | rng.TopSurface = 0 | |
1498 | rng.BottomSurface = 0 | |
1499 | rng.CFrame = pos | |
1500 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
1501 | local rngm = Instance.new("SpecialMesh", rng) | |
1502 | rngm.MeshType = "Sphere" | |
1503 | rngm.Scale = vt(x1,y1,z1) | |
1504 | if rainbowmode == true then | |
1505 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1506 | end | |
1507 | local scaler2 = 1 | |
1508 | local speeder = FastSpeed | |
1509 | if type == "Add" then | |
1510 | scaler2 = 1*value | |
1511 | elseif type == "Divide" then | |
1512 | scaler2 = 1/value | |
1513 | end | |
1514 | coroutine.resume(coroutine.create(function() | |
1515 | for i = 0,10/bonuspeed,0.1 do | |
1516 | swait() | |
1517 | if rainbowmode == true then | |
1518 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1519 | end | |
1520 | if type == "Add" then | |
1521 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1522 | elseif type == "Divide" then | |
1523 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1524 | end | |
1525 | if chaosmode == true then | |
1526 | rng.BrickColor = BrickColor.random() | |
1527 | end | |
1528 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
1529 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
1530 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1531 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
1532 | end | |
1533 | rng:Destroy() | |
1534 | end)) | |
1535 | end | |
1536 | ||
1537 | function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color) | |
1538 | local type = type | |
1539 | local rng = Instance.new("Part", char) | |
1540 | rng.Anchored = true | |
1541 | rng.BrickColor = color | |
1542 | rng.CanCollide = false | |
1543 | rng.FormFactor = 3 | |
1544 | rng.Name = "Ring" | |
1545 | rng.Material = "Neon" | |
1546 | rng.Size = Vector3.new(1, 1, 1) | |
1547 | rng.Transparency = 0 | |
1548 | if typeoftrans == "In" then | |
1549 | rng.Transparency = 1 | |
1550 | end | |
1551 | rng.TopSurface = 0 | |
1552 | rng.BottomSurface = 0 | |
1553 | rng.CFrame = pos | |
1554 | local rngm = Instance.new("SpecialMesh", rng) | |
1555 | rngm.MeshType = "FileMesh" | |
1556 | rngm.MeshId = "rbxassetid://20329976" | |
1557 | rngm.Scale = scale | |
1558 | local scaler2 = 1 | |
1559 | local scaler2b = 1 | |
1560 | if type == "Add" then | |
1561 | scaler2 = 1*value | |
1562 | scaler2b = 1*value2 | |
1563 | elseif type == "Divide" then | |
1564 | scaler2 = 1/value | |
1565 | scaler2b = 1/value2 | |
1566 | end | |
1567 | local randomrot = math.random(1,2) | |
1568 | coroutine.resume(coroutine.create(function() | |
1569 | for i = 0,10/bonuspeed,0.1 do | |
1570 | swait() | |
1571 | if type == "Add" then | |
1572 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1573 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
1574 | elseif type == "Divide" then | |
1575 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1576 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
1577 | end | |
1578 | if randomrot == 1 then | |
1579 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0) | |
1580 | elseif randomrot == 2 then | |
1581 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0) | |
1582 | end | |
1583 | if typeoftrans == "Out" then | |
1584 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1585 | elseif typeoftrans == "In" then | |
1586 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
1587 | end | |
1588 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed) | |
1589 | end | |
1590 | rng:Destroy() | |
1591 | end)) | |
1592 | end | |
1593 | ||
1594 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
1595 | local type = type | |
1596 | local rotenable = rotatingop | |
1597 | local rng = Instance.new("Part", char) | |
1598 | rng.Anchored = true | |
1599 | rng.BrickColor = color | |
1600 | rng.CanCollide = false | |
1601 | rng.FormFactor = 3 | |
1602 | rng.Name = "Ring" | |
1603 | rng.Material = "Neon" | |
1604 | rng.Size = Vector3.new(1, 1, 1) | |
1605 | rng.Transparency = 0 | |
1606 | if typeoftrans == "In" then | |
1607 | rng.Transparency = 1 | |
1608 | end | |
1609 | rng.TopSurface = 0 | |
1610 | rng.BottomSurface = 0 | |
1611 | rng.CFrame = pos | |
1612 | local rngm = Instance.new("SpecialMesh", rng) | |
1613 | rngm.MeshType = "FileMesh" | |
1614 | if typeofshape == "Normal" then | |
1615 | rngm.MeshId = "rbxassetid://662586858" | |
1616 | elseif typeofshape == "Round" then | |
1617 | rngm.MeshId = "rbxassetid://662585058" | |
1618 | end | |
1619 | rngm.Scale = scale | |
1620 | local scaler2 = 1/10 | |
1621 | if type == "Add" then | |
1622 | scaler2 = 1*value/10 | |
1623 | elseif type == "Divide" then | |
1624 | scaler2 = 1/value/10 | |
1625 | end | |
1626 | local randomrot = math.random(1,2) | |
1627 | coroutine.resume(coroutine.create(function() | |
1628 | for i = 0,10/bonuspeed,0.1 do | |
1629 | swait() | |
1630 | if type == "Add" then | |
1631 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
1632 | elseif type == "Divide" then | |
1633 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
1634 | end | |
1635 | if rotenable == true then | |
1636 | if randomrot == 1 then | |
1637 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
1638 | elseif randomrot == 2 then | |
1639 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
1640 | end | |
1641 | end | |
1642 | if typeoftrans == "Out" then | |
1643 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1644 | elseif typeoftrans == "In" then | |
1645 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
1646 | end | |
1647 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
1648 | end | |
1649 | rng:Destroy() | |
1650 | end)) | |
1651 | end | |
1652 | ||
1653 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
1654 | if SinglePlayer then | |
1655 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
1656 | end | |
1657 | local List = {} | |
1658 | for i, v in pairs(workspace:GetChildren()) do | |
1659 | if v:IsA("Model") then | |
1660 | if v:findFirstChild("Torso") or v:findFirstChild("UpperTorso") then | |
1661 | if v ~= Character then | |
1662 | if (v.Head.Position - Position).magnitude <= Distance then | |
1663 | table.insert(List, v) | |
1664 | end | |
1665 | end | |
1666 | end | |
1667 | end | |
1668 | end | |
1669 | return List | |
1670 | end | |
1671 | ||
1672 | function createBGCircle(size,parent) | |
1673 | local bgui = Instance.new("BillboardGui",parent) | |
1674 | bgui.Size = UDim2.new(size, 0, size, 0) | |
1675 | local imgc = Instance.new("ImageLabel",bgui) | |
1676 | imgc.BackgroundTransparency = 1 | |
1677 | imgc.ImageTransparency = 0 | |
1678 | imgc.Size = UDim2.new(1,0,1,0) | |
1679 | imgc.Image = "rbxassetid://997291547" --997291547,521073910 | |
1680 | imgc.ImageColor3 = Color3.new(0,1,1) | |
1681 | return bgui,imgc | |
1682 | end | |
1683 | local dashing = false | |
1684 | local floatmode = false | |
1685 | local equipped = false | |
1686 | Humanoid.Name = "UNKNOWN" | |
1687 | Humanoid.MaxHealth = math.huge | |
1688 | Humanoid.Health = math.huge | |
1689 | Instance.new("ForceField",char).Visible = false | |
1690 | Humanoid.Animator.Parent = nil | |
1691 | ------------------ | |
1692 | ------------------ | |
1693 | function chaosstomp() | |
1694 | attack = true | |
1695 | hum.WalkSpeed = 0 | |
1696 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 5, 1) | |
1697 | for i = 0,4,0.1 do | |
1698 | swait() | |
1699 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
1700 | block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1701 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1) | |
1702 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
1703 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1) | |
1704 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1) | |
1705 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1) | |
1706 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
1707 | end | |
1708 | local bgui,imgc = createBGCircle(0,root) | |
1709 | bgui.AlwaysOnTop = true | |
1710 | for i = 0, 2 do | |
1711 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1) | |
1712 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1) | |
1713 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1) | |
1714 | CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 0.75) | |
1715 | end | |
1716 | local scl= 0.1 | |
1717 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color) | |
1718 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,BrickColor.new("Toothpaste"),BrickColor.new("Toothpaste").Color) | |
1719 | for i = 0,5,0.1 do | |
1720 | swait() | |
1721 | scl = scl + 0.1*scl | |
1722 | bgui.Size = UDim2.new(scl*5,0,scl*5,0) | |
1723 | MagniDamage(root,scl*3,99999,9999999,0,"Normal",153092213) | |
1724 | coroutine.resume(coroutine.create(function() | |
1725 | for i, v in pairs(FindNearestTorso(root.CFrame.p, scl*3)) do | |
1726 | if v:FindFirstChild('Head') then | |
1727 | dmg(v) | |
1728 | end | |
1729 | end | |
1730 | end)) | |
1731 | hum.CameraOffset = vt(math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25,math.random(-2*scl,2*scl)/25) | |
1732 | waveEff(5,"Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,5),scl/10,0.1,BrickColor.new("Cyan")) | |
1733 | slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3.25,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),scl/10,BrickColor.new("Navy blue")) | |
1734 | for i = 0, 2 do | |
1735 | sphereMK(5,math.random(15,65)/45,"Add",root.CFrame*CFrame.new(math.random(-scl*5,scl*5),-10,math.random(-scl*3,scl*3))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,BrickColor.new("Toothpaste"),Color3.new(0,1,1),0) | |
1736 | end | |
1737 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),scl/10,0.01,scl/10,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1738 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8) | |
1739 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8) | |
1740 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8) | |
1741 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8) | |
1742 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8) | |
1743 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
1744 | end | |
1745 | coroutine.resume(coroutine.create(function() | |
1746 | for i = 0, 24 do | |
1747 | swait() | |
1748 | bgui.Size = bgui.Size + UDim2.new(scl,0,scl,0) | |
1749 | imgc.ImageTransparency = imgc.ImageTransparency + 0.04 | |
1750 | end | |
1751 | bgui:Destroy() | |
1752 | end)) | |
1753 | hum.CameraOffset = vt(0,0,0) | |
1754 | attack = false | |
1755 | hum.WalkSpeed = 16 | |
1756 | end | |
1757 | ||
1758 | function orbofvanishment() | |
1759 | attack = true | |
1760 | hum.WalkSpeed = 3 | |
1761 | local truescale = 0 | |
1762 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1) | |
1763 | for i = 0,4,0.1 do | |
1764 | swait() | |
1765 | truescale = truescale + 0.2 | |
1766 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
1767 | slash(5,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,8,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Cyan")) | |
1768 | block(10,"Add",root.CFrame*CFrame.new(0,8,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(truescale,truescale,truescale),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1769 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-20),math.rad(0)),.5) | |
1770 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5) | |
1771 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(40)),.5) | |
1772 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.5) | |
1773 | RW.C0=clerp(RW.C0,cf(1.45,1,0.1)*angles(math.rad(180),math.rad(-30),math.rad(-5)),.5) | |
1774 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5) | |
1775 | end | |
1776 | hum.CameraOffset = vt(0,0,0) | |
1777 | CFuncs["Sound"].Create("rbxassetid://260411131", rarm, 7.5, 1) | |
1778 | for i = 0,2,0.1 do | |
1779 | swait() | |
1780 | block(10,"Add",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1781 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(0)),.5) | |
1782 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(0)),.5) | |
1783 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(55)),.5) | |
1784 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-55)),.5) | |
1785 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.6)*angles(math.rad(90),math.rad(0),math.rad(-50)),.5) | |
1786 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10)),.5) | |
1787 | end | |
1788 | local orb = Instance.new("Part", char) | |
1789 | for i = 0, 4 do | |
1790 | CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 0.75) | |
1791 | end | |
1792 | orb.BrickColor = BrickColor.new("Toothpaste") | |
1793 | orb.CanCollide = false | |
1794 | orb.FormFactor = 3 | |
1795 | orb.Name = "Ring" | |
1796 | orb.Material = "Neon" | |
1797 | orb.Size = Vector3.new(1, 1, 1) | |
1798 | orb.Transparency = 0 | |
1799 | orb.TopSurface = 0 | |
1800 | orb.BottomSurface = 0 | |
1801 | local orbm = Instance.new("SpecialMesh", orb) | |
1802 | orbm.MeshType = "Sphere" | |
1803 | orbm.Name = "SizeMesh" | |
1804 | orbm.Scale = vt(10,10,10) | |
1805 | orb.CFrame = root.CFrame + root.CFrame.lookVector*3 | |
1806 | local a = Instance.new("Part",workspace) | |
1807 | a.Name = "Direction" | |
1808 | a.Anchored = true | |
1809 | a.BrickColor = bc("Bright red") | |
1810 | a.Material = "Neon" | |
1811 | a.Transparency = 1 | |
1812 | a.CanCollide = false | |
1813 | local ray = Ray.new( | |
1814 | orb.CFrame.p, -- origin | |
1815 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
1816 | ) | |
1817 | local ignore = orb | |
1818 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1819 | a.BottomSurface = 10 | |
1820 | a.TopSurface = 10 | |
1821 | local distance = (orb.CFrame.p - position).magnitude | |
1822 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1823 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
1824 | orb.CFrame = a.CFrame | |
1825 | a:Destroy() | |
1826 | local over = false | |
1827 | local bgui,imgc = createBGCircle(50,orb) | |
1828 | bgui.AlwaysOnTop = true | |
1829 | imgc.Image = "rbxassetid://2059444669" | |
1830 | local at1a = Instance.new("Attachment",orb) | |
1831 | at1a.Position = Vector3.new(0,5,0) | |
1832 | local at2a = Instance.new("Attachment",orb) | |
1833 | at2a.Position = Vector3.new(0,5,0) | |
1834 | local at1b = Instance.new("Attachment",orb) | |
1835 | at1b.Position = Vector3.new(5,0,0) | |
1836 | local at2b = Instance.new("Attachment",orb) | |
1837 | at2b.Position = Vector3.new(-5,0,0) | |
1838 | local tl1 = Instance.new('Trail',orb) | |
1839 | tl1.Attachment0 = at1a | |
1840 | tl1.Attachment1 = at2a | |
1841 | tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1842 | tl1.LightEmission = 1 | |
1843 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1844 | tl1.Color = ColorSequence.new(BrickColor.new('Toothpaste').Color) | |
1845 | tl1.Lifetime = 3 | |
1846 | local tl2 = tl1:Clone() | |
1847 | tl2.Parent = orb | |
1848 | tl2.Attachment0 = at1b | |
1849 | tl2.Attachment1 = at2b | |
1850 | coroutine.resume(coroutine.create(function() | |
1851 | while true do | |
1852 | swait() | |
1853 | if over == false then | |
1854 | hum.CameraOffset = vt(math.random(-10,10)/250,math.random(-10,10)/250,math.random(-10,10)/250) | |
1855 | MagniDamage(orb,25,99999,9999999,0,"Normal",153092213) | |
1856 | coroutine.resume(coroutine.create(function() | |
1857 | for i, v in pairs(FindNearestTorso(orb.CFrame.p, 25)) do | |
1858 | if v:FindFirstChild('Head') then | |
1859 | dmg(v) | |
1860 | end | |
1861 | end | |
1862 | end)) | |
1863 | slash(10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.15,0.01,0.15),-0.05,BrickColor.new("Toothpaste")) | |
1864 | imgc.ImageTransparency = 0.25 + 0.25 * math.cos(sine / 10) | |
1865 | imgc.Rotation = imgc.Rotation + 10 | |
1866 | bgui.Size = UDim2.new(50 + 25 * math.cos(sine / 10),0, 50 + 25 * math.cos(sine / 10),0) | |
1867 | elseif over == true then | |
1868 | break | |
1869 | end | |
1870 | end | |
1871 | end)) | |
1872 | local bv = Instance.new("BodyVelocity") | |
1873 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1874 | bv.velocity = orb.CFrame.lookVector*350 | |
1875 | bv.Parent = orb | |
1876 | coroutine.resume(coroutine.create(function() | |
1877 | wait(1) | |
1878 | over = true | |
1879 | orb.Anchored = true | |
1880 | MagniDamage(orb,125,99999,9999999,0,"Normal",153092213) | |
1881 | coroutine.resume(coroutine.create(function() | |
1882 | for i, v in pairs(FindNearestTorso(orb.CFrame.p, 125)) do | |
1883 | if v:FindFirstChild('Head') then | |
1884 | dmg(v) | |
1885 | end | |
1886 | end | |
1887 | end)) | |
1888 | for i = 0, 4 do | |
1889 | CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5,1) | |
1890 | CFuncs["Sound"].Create("rbxassetid://763718160", orb, 10, 1.1) | |
1891 | CFuncs["Sound"].Create("rbxassetid://782353443", orb, 10, 1) | |
1892 | CFuncs["Sound"].Create("rbxassetid://335657174", orb, 10, 1) | |
1893 | end | |
1894 | for i = 0, 2 do | |
1895 | block(3,"Add",orb.CFrame,vt(1,1,1),2.5,2.5,2.5,BrickColor.new("Navy blue"),Color3.new(0,0,0.5)) | |
1896 | block(2,"Add",orb.CFrame,vt(1,1,1),2,2,2,BrickColor.new("Cyan"),Color3.new(0,0.5,1)) | |
1897 | block(1,"Add",orb.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1898 | end | |
1899 | for i = 0, 19 do | |
1900 | slash(math.random(10,55)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,500)/250,BrickColor.new("Cyan")) | |
1901 | end | |
1902 | imgc.ImageTransparency = 0 | |
1903 | for i = 0, 49 do | |
1904 | swait() | |
1905 | hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25) | |
1906 | orbm.Scale = orbm.Scale + vt(1,1,1) | |
1907 | orb.Transparency = orb.Transparency + 0.02 | |
1908 | imgc.Rotation = imgc.Rotation + 20 | |
1909 | imgc.ImageTransparency = imgc.ImageTransparency + 0.02 | |
1910 | bgui.Size = bgui.Size + UDim2.new(15,0,15,0) | |
1911 | end | |
1912 | hum.CameraOffset = vt(0,0,0) | |
1913 | game:GetService("Debris"):AddItem(orb, 10) | |
1914 | end)) | |
1915 | for i = 0,2,0.1 do | |
1916 | swait() | |
1917 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(5),math.rad(-10)),.5) | |
1918 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(20),math.rad(-10)),.5) | |
1919 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.1)*angles(math.rad(5),math.rad(0),math.rad(-45)),.5) | |
1920 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(45)),.5) | |
1921 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(50)),.5) | |
1922 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(10),math.rad(-30)),.5) | |
1923 | end | |
1924 | attack = false | |
1925 | hum.WalkSpeed = 16 | |
1926 | end | |
1927 | ||
1928 | function blink() | |
1929 | for i = 0, 14 do | |
1930 | slash(math.random(30,90)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan")) | |
1931 | end | |
1932 | block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1933 | block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1934 | coroutine.resume(coroutine.create(function() | |
1935 | for i = 0, 24 do | |
1936 | swait() | |
1937 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
1938 | end | |
1939 | end)) | |
1940 | CFuncs["Sound"].Create("rbxassetid://335657174", root, 10, 1) | |
1941 | root.CFrame = root.CFrame + root.CFrame.lookVector*100 | |
1942 | for i = 0, 14 do | |
1943 | slash(math.random(30,90)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,100)/250,BrickColor.new("Cyan")) | |
1944 | end | |
1945 | block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.25,0.25,0.25,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1946 | block(10,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.1,0.1,0.1,BrickColor.new("Toothpaste"),Color3.new(0,1,1)) | |
1947 | end | |
1948 | ------------------ | |
1949 | ||
1950 | ||
1951 | local sngy = Instance.new("TextLabel",fullscreenz) | |
1952 | sngy.ZIndex = 2 | |
1953 | sngy.Font = "Arcade" | |
1954 | sngy.BackgroundTransparency = 1 | |
1955 | sngy.BorderSizePixel = 0.65 | |
1956 | sngy.Size = UDim2.new(0.35,0,0.2,0) | |
1957 | sngy.Position = UDim2.new(0.325,0,0.8,0) | |
1958 | sngy.TextColor3 = BrickColor.new("Cyan").Color | |
1959 | sngy.TextStrokeColor3 = BrickColor.new("Cyan").Color | |
1960 | sngy.TextScaled = true | |
1961 | sngy.TextStrokeTransparency = 0 | |
1962 | - | sngy.Text = string.upper("Techno Switcher by lukekitten95, LightYT Roblox & More. Original made by Noobygames12. Version 1.0.5") |
1962 | + | sngy.Text = string.upper("Techno Switcher by micheal2358, LightYT Roblox & More. Original made by Noobygames12. Version 1.0.5") |
1963 | sngy.TextSize = 12 | |
1964 | sngy.Rotation = 0 | |
1965 | sngy.TextXAlignment = "Center" | |
1966 | sngy.TextYAlignment = "Bottom" | |
1967 | ||
1968 | local storehumanoidWS = 16 | |
1969 | ||
1970 | local ModeOfGlitch = 1331 | |
1971 | ||
1972 | function mode1() | |
1973 | attack = true | |
1974 | ModeOfGlitch = 1 | |
1975 | storehumanoidWS = 16 | |
1976 | hum.WalkSpeed = 16 | |
1977 | RecolorTextAndRename("TECHNO",BrickColor.new("Cyan").Color,BrickColor.new("Cyan").Color,"Antique") | |
1978 | newTheme("rbxassetid://1836057235",0,1,1.25) | |
1979 | MAINRUINCOLOR = BrickColor.new("Cyan") | |
1980 | attack = false | |
1981 | end | |
1982 | ||
1983 | function mode2() | |
1984 | attack = true | |
1985 | ModeOfGlitch = 2 | |
1986 | storehumanoidWS = 45 | |
1987 | hum.WalkSpeed = 45 | |
1988 | RecolorTextAndRename("i hacked ur mc account noob lol xd",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique") | |
1989 | newTheme("rbxassetid://296277143",0,1,1.25) | |
1990 | MAINRUINCOLOR = BrickColor.new("Really red") | |
1991 | attack = false | |
1992 | end | |
1993 | ||
1994 | function TheoriesMSGfunc(text,color,C3) | |
1995 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1996 | coroutine.resume(coroutine.create(function() | |
1997 | if v.PlayerGui:FindFirstChild("Dialog")~= nil then | |
1998 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
1999 | end | |
2000 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
2001 | CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1) | |
2002 | scrg.Name = "Dialog" | |
2003 | local txtlb = Instance.new("TextLabel",scrg) | |
2004 | txtlb.Text = "" | |
2005 | txtlb.Font = "Bodoni" | |
2006 | txtlb.TextColor3 = Color3.new(0,0,0) | |
2007 | txtlb.TextStrokeTransparency = 1 | |
2008 | txtlb.BackgroundTransparency = 1 | |
2009 | txtlb.BackgroundColor3 = color | |
2010 | txtlb.TextStrokeColor3 = C3 | |
2011 | txtlb.TextColor3 = color | |
2012 | txtlb.TextScaled = true | |
2013 | txtlb.Size = UDim2.new(1,0,1,0) | |
2014 | txtlb.TextXAlignment = "Left" | |
2015 | txtlb.Position = UDim2.new(0,0,6.75 + 1,0) | |
2016 | local txtlb2 = Instance.new("TextLabel",scrg) | |
2017 | txtlb2.Text = "" | |
2018 | txtlb2.Font = "Bodoni" | |
2019 | txtlb2.TextColor3 = Color3.new(0,0,0) | |
2020 | txtlb2.TextStrokeTransparency = 0 | |
2021 | txtlb2.BackgroundTransparency = 0.96 | |
2022 | txtlb2.BackgroundColor3 = C3 | |
2023 | txtlb2.TextStrokeColor3 = color | |
2024 | txtlb2.TextScaled = true | |
2025 | txtlb2.Size = UDim2.new(0, 999999, 0, 999) | |
2026 | txtlb2.TextXAlignment = "Center" | |
2027 | txtlb2.Position = UDim2.new(0,0,0,0) | |
2028 | local Iml = Instance.new("ImageLabel",scrg) | |
2029 | Iml.BackgroundTransparency = 1 | |
2030 | Iml.BorderSizePixel = 0 | |
2031 | Iml.ImageTransparency = 0 | |
2032 | Iml.ImageColor3 = C3 | |
2033 | Iml.Position = UDim2.new(0,0,0.75 + 1,0) | |
2034 | Iml.Size = UDim2.new(0, 638.82, 0, 591.5) | |
2035 | Iml.Image = "rbxassetid://0" | |
2036 | local Iml1 = Instance.new("ImageLabel",scrg) | |
2037 | Iml1.BackgroundTransparency = 1 | |
2038 | Iml1.BorderSizePixel = 0 | |
2039 | Iml1.ImageTransparency = 0 | |
2040 | Iml1.ImageColor3 = C3 | |
2041 | Iml1.Position = UDim2.new(0,0,0.75 + 1,0) | |
2042 | Iml1.Size = UDim2.new(0, 638.82, 0, 591.5) | |
2043 | Iml1.Image = "rbxassetid://0" | |
2044 | local Iml2 = Instance.new("ImageLabel",scrg) | |
2045 | Iml2.BackgroundTransparency = 1 | |
2046 | Iml2.BorderSizePixel = 0 | |
2047 | Iml2.ImageTransparency = 0 | |
2048 | Iml2.ImageColor3 = color | |
2049 | Iml2.Position = UDim2.new(0,0,0.75 + 1,0) | |
2050 | Iml2.Size = UDim2.new(0, 638.82, 0, 591.5) | |
2051 | Iml2.Image = "rbxassetid://0" | |
2052 | local txtlb = Instance.new("TextLabel",Iml) | |
2053 | txtlb.Text = text | |
2054 | txtlb.Font = "SciFi" | |
2055 | txtlb.TextColor3 = color | |
2056 | txtlb.TextStrokeTransparency = 0 | |
2057 | txtlb.BackgroundTransparency = 1 | |
2058 | txtlb.TextStrokeColor3 = color | |
2059 | txtlb.TextScaled = true | |
2060 | txtlb.Size = UDim2.new(1,0,1,0) | |
2061 | txtlb.Position = UDim2.new(0,0,6.75 + 1,0) | |
2062 | local fvalen = 0.4 | |
2063 | local fval = -0.49 | |
2064 | coroutine.resume(coroutine.create(function() | |
2065 | while true do | |
2066 | swait() | |
2067 | if scrg.Parent ~= nil then | |
2068 | fvalen = fvalen - 0.0001 | |
2069 | elseif scrg.Parent == nil then | |
2070 | break | |
2071 | end | |
2072 | end | |
2073 | end)) | |
2074 | local flol = -0.625 | |
2075 | local flil = -0.935 | |
2076 | coroutine.resume(coroutine.create(function() | |
2077 | while true do | |
2078 | swait() | |
2079 | Iml1.Rotation = Iml1.Rotation + 2.5 | |
2080 | Iml2.Rotation = Iml2.Rotation - 2.5 | |
2081 | end | |
2082 | end)) | |
2083 | coroutine.resume(coroutine.create(function() | |
2084 | for i = 0, 36 do | |
2085 | swait() | |
2086 | fval = fval + 0.0125 | |
2087 | flol = flol + 0.025 | |
2088 | flil = flil + 0.025 | |
2089 | txtlb.Text = text | |
2090 | txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency - 0.008 | |
2091 | txtlb.Position = UDim2.new(flil,0,0,0) | |
2092 | Iml.Position = UDim2.new(flol,0,-0.05,0) | |
2093 | Iml1.Position = UDim2.new(flol,0,-0.05,0) | |
2094 | Iml2.Position = UDim2.new(flol,0,-0.05,0) | |
2095 | end | |
2096 | coroutine.resume(coroutine.create(function() | |
2097 | for i = 0, 99 do | |
2098 | swait() | |
2099 | fval = fval + 0.00001 | |
2100 | flol = flol + 0.0001 | |
2101 | flil = flil + 0.0001 | |
2102 | txtlb.Text = text | |
2103 | txtlb.Position = UDim2.new(flil,0,0,0) | |
2104 | Iml1.Position = UDim2.new(flol,0,-0.05,0) | |
2105 | Iml1.Position = UDim2.new(flol,0,-0.05,0) | |
2106 | Iml2.Position = UDim2.new(flol,0,-0.05,0) | |
2107 | end | |
2108 | end)) | |
2109 | wait(1.6) | |
2110 | local valinc = 0 | |
2111 | for i = 0, 99 do | |
2112 | swait() | |
2113 | valinc = valinc + 0.0001 | |
2114 | flol = flol + valinc | |
2115 | flil = flil + valinc | |
2116 | Iml1.Rotation = Iml1.Rotation - valinc*50 | |
2117 | Iml.Rotation = Iml1.Rotation - valinc*2 | |
2118 | Iml2.Rotation = Iml2.Rotation - valinc*50 | |
2119 | Iml.Position = UDim2.new(flol,0,0,0) | |
2120 | Iml1.Position = UDim2.new(flol,0,-0.05,0) | |
2121 | Iml2.Position = UDim2.new(flol,0,-0.05,0) | |
2122 | txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01 | |
2123 | txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency + 0.006 | |
2124 | txtlb.TextTransparency = txtlb.TextTransparency + 0.01 | |
2125 | Iml.ImageTransparency = Iml1.ImageTransparency + 0.01 | |
2126 | Iml1.ImageTransparency = Iml1.ImageTransparency + 0.01 | |
2127 | Iml2.ImageTransparency = Iml2.ImageTransparency + 0.01 | |
2128 | txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025 | |
2129 | end | |
2130 | scrg:Destroy() | |
2131 | end)) | |
2132 | end)) | |
2133 | end | |
2134 | end | |
2135 | ||
2136 | function mode3() | |
2137 | attack = true | |
2138 | ModeOfGlitch = 3 | |
2139 | storehumanoidWS = 22 | |
2140 | hum.WalkSpeed = 22 | |
2141 | RecolorTextAndRename("Technological",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique") | |
2142 | newTheme("rbxassetid://1838028467",0,1,1.25) | |
2143 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
2144 | attack = false | |
2145 | end | |
2146 | ||
2147 | function mode4() | |
2148 | attack = true | |
2149 | ModeOfGlitch = 3 | |
2150 | storehumanoidWS = 16 | |
2151 | hum.WalkSpeed = 16 | |
2152 | RecolorTextAndRename("i plaY mINeCraFt",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,"Antique") | |
2153 | newTheme("rbxassetid://1920287366",0,1,1.25) | |
2154 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
2155 | attack = false | |
2156 | end | |
2157 | ||
2158 | function secretmode() | |
2159 | attack = true | |
2160 | ModeOfGlitch = 201 | |
2161 | storehumanoidWS = 150 | |
2162 | hum.WalkSpeed = 150 | |
2163 | RecolorTextAndRename("lOGan pAUL XD",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique") | |
2164 | newTheme("rbxassetid://986986864",0,1,1.25) | |
2165 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
2166 | attack = false | |
2167 | end | |
2168 | ||
2169 | function determined() | |
2170 | newTheme("rbxassetid://228698188",0,1.01,20) | |
2171 | kan.TimePosition = 0 | |
2172 | wait(19) | |
2173 | RecolorTextAndRename("We Don't Care what they say..",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique") | |
2174 | wait(3) | |
2175 | RecolorTextAndRename("We will be here all day...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique") | |
2176 | wait(3) | |
2177 | RecolorTextAndRename("We'll Stay here 'till its over...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique") | |
2178 | wait(3) | |
2179 | RecolorTextAndRename("'Till the World's out of sight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique") | |
2180 | wait(3) | |
2181 | RecolorTextAndRename("We will stand, We will fight...",BrickColor.new("Cyan").Color,BrickColor.new("New Yeller").Color,"Antique") | |
2182 | wait(2) | |
2183 | RecolorTextAndRename("IT'S NOT OVER 'TILL ITS OVER!",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique") | |
2184 | wait(3.5) | |
2185 | ModeOfGlitch = 1312 | |
2186 | storehumanoidWS = 125 | |
2187 | hum.WalkSpeed = 125 | |
2188 | RecolorTextAndRename("DETERMINED",BrickColor.new("Really red").Color,BrickColor.new("Really red").Color,"Antique") | |
2189 | newTheme("rbxassetid://228698188",0,1.01,20) | |
2190 | MAINRUINCOLOR = BrickColor.new("Really red") | |
2191 | end | |
2192 | ||
2193 | function secretmode2() | |
2194 | attack = true | |
2195 | ModeOfGlitch = 202 | |
2196 | storehumanoidWS = 150 | |
2197 | hum.WalkSpeed = 150 | |
2198 | RecolorTextAndRename("Kill em with real lyrics",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Antique") | |
2199 | newTheme("rbxassetid://491080872",0,1,20) | |
2200 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
2201 | attack = false | |
2202 | end | |
2203 | ||
2204 | local attacktype = 1 | |
2205 | mouse.Button1Down:connect(function() | |
2206 | --[[if attack == false and attacktype == 1 then | |
2207 | attacktype = 2 | |
2208 | -- attackone() | |
2209 | elseif attack == false and attacktype == 2 then | |
2210 | attacktype = 3 | |
2211 | --attacktwo() | |
2212 | elseif attack == false and attacktype == 3 then | |
2213 | attacktype = 1 | |
2214 | --attackthree() | |
2215 | elseif attack == false and attacktype == 4 then | |
2216 | attacktype = 1 | |
2217 | --attackfour() | |
2218 | end]]-- | |
2219 | end) | |
2220 | mouse.KeyDown:connect(function(k) | |
2221 | if k == "z" and attack == false then | |
2222 | chaosstomp() | |
2223 | end | |
2224 | if k == "one" or k == "q" and attack == false and ModeOfGlitch ~= 1 then | |
2225 | mode1() | |
2226 | end | |
2227 | if k == "two" or k == "e" and attack == false and ModeOfGlitch ~= 2 then | |
2228 | mode2() | |
2229 | end | |
2230 | if k == "three" or k == "r" and attack == false and ModeOfGlitch ~= 3 then | |
2231 | mode3() | |
2232 | end | |
2233 | if k == "four" or k == "t" and attack == false and ModeOfGlitch ~= 4 then | |
2234 | mode4() | |
2235 | end | |
2236 | if k == "x" and attack == false then | |
2237 | orbofvanishment() | |
2238 | end | |
2239 | if k == "c" and attack == false then | |
2240 | blink() | |
2241 | end | |
2242 | if k == "l" and muter == false then | |
2243 | muter = true | |
2244 | kan.Volume = 0 | |
2245 | elseif k == "l" and muter == true then | |
2246 | muter = false | |
2247 | kan.Volume = 1.25 | |
2248 | end | |
2249 | end) | |
2250 | plr.Chatted:connect(function(message) | |
2251 | if message:sub(1,3) == "id/" then | |
2252 | ORGID = message:sub(4) | |
2253 | kan.TimePosition = 0 | |
2254 | kan:Play() | |
2255 | elseif message:sub(1,6) == "pitch/" then | |
2256 | ORPIT = message:sub(7) | |
2257 | elseif message:sub(1,4) == "vol/" then | |
2258 | ORVOL = message:sub(5) | |
2259 | elseif message:sub(1,5) == "LOGAN" then | |
2260 | shakes(0.5,1) | |
2261 | secretmode() | |
2262 | elseif message:sub(1,4) == "KIND" then | |
2263 | shakes(0.5,1) | |
2264 | secretmode2() | |
2265 | elseif message:sub(1,10) == "DETERMINED" then | |
2266 | determined() | |
2267 | end | |
2268 | end) | |
2269 | ||
2270 | local bgui = Instance.new("BillboardGui",root) | |
2271 | bgui.Size = UDim2.new(25, 0, 25, 0) | |
2272 | local imgc = Instance.new("ImageLabel",bgui) | |
2273 | imgc.BackgroundTransparency = 1 | |
2274 | imgc.ImageTransparency = 1 | |
2275 | imgc.Size = UDim2.new(1,0,1,0) | |
2276 | imgc.Image = "rbxassetid://2059444669" --997291547,521073910 | |
2277 | imgc.ImageColor3 = Color3.new(0,1,1) | |
2278 | local imgc2 = imgc:Clone() | |
2279 | imgc2.Parent = bgui | |
2280 | imgc2.Size = UDim2.new(1.5,0,1.5,0) | |
2281 | imgc2.Position = UDim2.new(-0.25,0,-0.25,0) | |
2282 | imgc2.ImageColor3 = Color3.new(0,0.75,1) | |
2283 | imgc.Rotation = 45 | |
2284 | imgc2.Rotation = 45 | |
2285 | ||
2286 | idleanim=.4 | |
2287 | while true do | |
2288 | swait() | |
2289 | Humanoid.MaxHealth = math.huge | |
2290 | Humanoid.Health = math.huge | |
2291 | coroutine.resume(coroutine.create(function() | |
2292 | for i, v in pairs(FindNearestTorso(root.CFrame.p, 7.5)) do | |
2293 | if v:FindFirstChild('Head') then | |
2294 | dmg(v) | |
2295 | end | |
2296 | end | |
2297 | end)) | |
2298 | techc.Rotation = techc.Rotation + 0.1 | |
2299 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/75 | |
2300 | imgl2.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/2500,0.5 + kan.PlaybackLoudness/2500) | |
2301 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/50 | |
2302 | imgl2b.ImageColor3 = Color3.new(0,0.2 + kan.PlaybackLoudness/1000,0.5 + kan.PlaybackLoudness/1000) | |
2303 | ned.Rotation = 0 - 2 * math.cos(sine / 25) | |
2304 | imgc.ImageTransparency = 0.5 + 0.25 * math.cos(sine / 30) | |
2305 | imgc.Rotation = imgc.Rotation + kan.PlaybackLoudness/50 | |
2306 | imgc2.ImageTransparency = 0.75 - 0.25 * math.cos(sine / 30) | |
2307 | imgc2.Rotation = imgc2.Rotation - kan.PlaybackLoudness/50 | |
2308 | bgui.Size = UDim2.new(15 + 1 * math.cos(sine / 30),0, 15 + 1 * math.cos(sine / 30),0) | |
2309 | ned.Position = UDim2.new(0.6,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45)) | |
2310 | sine = sine + change | |
2311 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2312 | local velderp=RootPart.Velocity.y | |
2313 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2314 | if hitfloor ~= nil then | |
2315 | slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,350)/250,MAINRUINCOLOR) | |
2316 | end | |
2317 | if equipped==true or equipped==false then | |
2318 | if attack==false then | |
2319 | idle=idle+1 | |
2320 | else | |
2321 | idle=0 | |
2322 | end | |
2323 | if idle>=500 then | |
2324 | if attack==false then | |
2325 | --Sheath() | |
2326 | end | |
2327 | end | |
2328 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2329 | Anim="Jump" | |
2330 | if attack==false then | |
2331 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2332 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2333 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1) | |
2334 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
2335 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
2336 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
2337 | end | |
2338 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2339 | Anim="Fall" | |
2340 | if attack==false then | |
2341 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2342 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2343 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1) | |
2344 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
2345 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1) | |
2346 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1) | |
2347 | end | |
2348 | elseif torvel<1 and hitfloor~=nil then | |
2349 | Anim="Idle" | |
2350 | if attack==false then | |
2351 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15 + 1 * math.cos(sine / 30)),math.rad(0)),.5) | |
2352 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(5 + 2.5 * math.cos(sine / 30))),.5) | |
2353 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05 - 0.1 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0 ),math.rad(30 - 2 * math.cos(sine / 30))),.5) | |
2354 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 5 * math.cos(sine / 30)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 30))),.5) | |
2355 | RW.C0=clerp(RW.C0,cf(1.45,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(-10),math.rad(10 + 5 * math.cos(sine / 30))),.5) | |
2356 | LW.C0=clerp(LW.C0,cf(-1.4,0.5 - 0.05 * math.cos(sine / 30),0.1)*angles(math.rad(-5),math.rad(10),math.rad(-10 - 5 * math.cos(sine / 30))),.5) | |
2357 | end | |
2358 | - | --game.Players.lukekitten95.hum.WalkSpeed = 12345678 -- remove this part so it will work |
2358 | + | --game.Players.micheal2358.hum.WalkSpeed = 12345678 -- remove this part so it will work |
2359 | elseif torvel>2 and torvel<42 and hitfloor~=nil then | |
2360 | Anim="Walk" | |
2361 | if attack==false then | |
2362 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.5) | |
2363 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.5) | |
2364 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.025 * math.cos(sine / 4))*angles(math.rad(5 + 1 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.5) | |
2365 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 1 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.5) | |
2366 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 5 * math.cos(sine / 4))),.5) | |
2367 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 4))),.5) | |
2368 | end | |
2369 | elseif torvel>=42 and hitfloor~=nil then | |
2370 | Anim="Run" | |
2371 | if attack==false then | |
2372 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1) | |
2373 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1) | |
2374 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1) | |
2375 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1) | |
2376 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1) | |
2377 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1) | |
2378 | end | |
2379 | end | |
2380 | end | |
2381 | end |