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