SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | - | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
2 | + | |
3 | - | print("FE Compatibility code by Mokiros") |
3 | + | |
4 | - | InternalData = {} |
4 | + | |
5 | - | do |
5 | + | |
6 | - | script.Parent = owner.Character |
6 | + | |
7 | - | local Event = Instance.new("RemoteEvent") |
7 | + | |
8 | - | Event.Name = "UserInput" |
8 | + | |
9 | - | local function NewFakeEvent() |
9 | + | |
10 | - | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect |
10 | + | |
11 | - | return Fake |
11 | + | |
12 | -- ??? (Nothing such as this yet, but wields all the Glitchers. What you're asking it's the creator.) | |
13 | - | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
13 | + | |
14 | - | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
14 | + | |
15 | - | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
15 | + | |
16 | - | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
16 | + | |
17 | - | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
17 | + | |
18 | - | local function TriggerEvent(self,Event,...) |
18 | + | |
19 | - | local Trigger = Mouse[Event] |
19 | + | |
20 | - | if Trigger and Trigger.fakeEvent and Trigger.Function then |
20 | + | |
21 | - | Trigger.Function(...) |
21 | + | |
22 | - | end |
22 | + | |
23 | ||
24 | - | Mouse.TrigEvent = TriggerEvent |
24 | + | |
25 | - | UserInputService.TrigEvent = TriggerEvent |
25 | + | |
26 | - | Event.OnServerEvent:Connect(function(FiredBy,Input) |
26 | + | |
27 | - | if FiredBy.Name ~= owner.Name then end |
27 | + | |
28 | - | if Input.MouseEvent then |
28 | + | |
29 | - | Mouse.Target = Input.Target |
29 | + | |
30 | - | Mouse.Hit = Input.Hit |
30 | + | |
31 | - | else |
31 | + | |
32 | - | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
32 | + | |
33 | - | if Input.UserInputType == Enum.UserInputType.MouseButton1 then |
33 | + | |
34 | - | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") |
34 | + | |
35 | ? - Nothing seems to be new yet.. | |
36 | - | for _,Action in pairs(ContextActionService.Actions) do |
36 | + | |
37 | - | for _,Key in pairs(Action.Keys) do |
37 | + | |
38 | - | if Key==Input.KeyCode then |
38 | + | |
39 | - | Action.Function(Action.Name,Input.UserInputState,Input) |
39 | + | |
40 | - | end |
40 | + | |
41 | - | end |
41 | + | |
42 | ||
43 | - | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
43 | + | |
44 | - | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
44 | + | |
45 | - | end |
45 | + | |
46 | - | end) |
46 | + | |
47 | - | InternalData["Mouse"] = Mouse |
47 | + | |
48 | - | InternalData["ContextActionService"] = ContextActionService |
48 | + | |
49 | - | InternalData["UserInputService"] = UserInputService |
49 | + | |
50 | - | Event.Parent = NLS([[ |
50 | + | |
51 | - | local Player = owner |
51 | + | |
52 | - | local Event = script:WaitForChild("UserInput") |
52 | + | |
53 | - | local UserInputService = game:GetService("UserInputService") |
53 | + | |
54 | - | local Mouse = Player:GetMouse() |
54 | + | |
55 | - | local Input = function(Input,gameProcessedEvent) |
55 | + | |
56 | - | if gameProcessedEvent then return end |
56 | + | |
57 | - | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
57 | + | |
58 | - | end |
58 | + | |
59 | - | UserInputService.InputBegan:Connect(Input) |
59 | + | |
60 | - | UserInputService.InputEnded:Connect(Input) |
60 | + | |
61 | - | local Hit,Target |
61 | + | |
62 | - | while wait(1/30) do |
62 | + | |
63 | - | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
63 | + | |
64 | - | Hit,Target = Mouse.Hit,Mouse.Target |
64 | + | |
65 | - | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
65 | + | |
66 | hed = char.Head | |
67 | - | end |
67 | + | |
68 | - | ]],owner.Character) |
68 | + | |
69 | larm = char["Left Arm"] | |
70 | - | RealGame = game;game = setmetatable({},{ |
70 | + | |
71 | - | __index = function (self,Index) |
71 | + | |
72 | - | local Sandbox = function (Thing) |
72 | + | |
73 | - | if Thing:IsA("Player") then |
73 | + | |
74 | - | local RealPlayer = Thing |
74 | + | |
75 | - | return setmetatable({},{ |
75 | + | |
76 | - | __index = function (self,Index) |
76 | + | |
77 | - | local Type = type(RealPlayer[Index]) |
77 | + | |
78 | - | if Type == "function" then |
78 | + | |
79 | - | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
79 | + | |
80 | - | return function (self) |
80 | + | |
81 | - | return InternalData["Mouse"] |
81 | + | |
82 | - | end |
82 | + | |
83 | - | end |
83 | + | |
84 | - | return function (self,...) |
84 | + | |
85 | - | return RealPlayer[Index](RealPlayer,...) |
85 | + | |
86 | - | end |
86 | + | |
87 | - | else |
87 | + | |
88 | - | if Index == "PlrObj" then |
88 | + | |
89 | - | return RealPlayer |
89 | + | |
90 | - | end |
90 | + | |
91 | - | return RealPlayer[Index] |
91 | + | |
92 | - | end |
92 | + | |
93 | - | end; |
93 | + | |
94 | - | __tostring = function(self) |
94 | + | |
95 | - | return RealPlayer.Name |
95 | + | |
96 | - | end |
96 | + | |
97 | - | }) |
97 | + | |
98 | CPart.Locked = true | |
99 | - | end |
99 | + | |
100 | - | if RealGame[Index] then |
100 | + | |
101 | - | local Type = type(RealGame[Index]) |
101 | + | |
102 | - | if Type == "function" then |
102 | + | |
103 | - | if Index:lower() == "getservice" or Index:lower() == "service" then |
103 | + | |
104 | - | return function (self,Service) |
104 | + | |
105 | - | if Service:lower() == "players" then |
105 | + | |
106 | - | return setmetatable({},{ |
106 | + | |
107 | - | __index = function (self2,Index2) |
107 | + | |
108 | - | local RealService = RealGame:GetService(Service) |
108 | + | |
109 | - | local Type2 = type(Index2) |
109 | + | |
110 | - | if Type2 == "function" then |
110 | + | |
111 | - | return function (self,...) |
111 | + | |
112 | - | return RealService[Index2](RealService,...) |
112 | + | |
113 | - | end |
113 | + | |
114 | - | else |
114 | + | |
115 | - | if Index2:lower() == "localplayer" then |
115 | + | |
116 | - | return Sandbox(owner) |
116 | + | |
117 | - | end |
117 | + | |
118 | - | return RealService[Index2] |
118 | + | |
119 | - | end |
119 | + | |
120 | - | end; |
120 | + | |
121 | - | __tostring = function(self) |
121 | + | |
122 | - | return RealGame:GetService(Service).Name |
122 | + | |
123 | - | end |
123 | + | |
124 | - | }) |
124 | + | |
125 | - | elseif Service:lower() == "contextactionservice" then |
125 | + | |
126 | - | return InternalData["ContextActionService"] |
126 | + | |
127 | - | elseif Service:lower() == "contextactionservice" then |
127 | + | |
128 | - | return InternalData["UserInputService"] |
128 | + | |
129 | - | elseif Service:lower() == "runservice" then |
129 | + | |
130 | - | return setmetatable({},{ |
130 | + | |
131 | - | __index = function(self2,Index2) |
131 | + | |
132 | - | local RealService = RealGame:GetService(Service) |
132 | + | |
133 | - | local Type2 = type(Index2) |
133 | + | |
134 | - | if Type2 == "function" then |
134 | + | |
135 | - | return function (self,...) |
135 | + | |
136 | - | return RealService[Index2](RealService,...) |
136 | + | |
137 | - | end |
137 | + | |
138 | - | else |
138 | + | |
139 | - | if Index2:lower() == "bindtorenderstep" then |
139 | + | |
140 | - | return function (self,Name,Priority,Function) |
140 | + | |
141 | - | return RealGame:GetService("RunService").Stepped:Connect(Function) |
141 | + | |
142 | - | end |
142 | + | |
143 | - | end |
143 | + | |
144 | - | if Index2:lower() == "renderstepped" then |
144 | + | |
145 | - | return RealService["Stepped"] |
145 | + | |
146 | - | end |
146 | + | |
147 | - | return RealService[Index2] |
147 | + | |
148 | - | end |
148 | + | |
149 | - | end |
149 | + | |
150 | - | }) |
150 | + | |
151 | - | else |
151 | + | |
152 | - | return RealGame:GetService(Service) |
152 | + | |
153 | - | end |
153 | + | |
154 | - | end |
154 | + | |
155 | - | end |
155 | + | |
156 | - | return function (self,...) |
156 | + | |
157 | - | return RealGame[Index](RealGame,...) |
157 | + | |
158 | - | end |
158 | + | |
159 | - | else |
159 | + | |
160 | - | if game:GetService(Index) then |
160 | + | |
161 | - | return game:GetService(Index) |
161 | + | |
162 | - | end |
162 | + | |
163 | - | return RealGame[Index] |
163 | + | |
164 | for i = 0, Length, 0.1 do | |
165 | - | else |
165 | + | |
166 | - | return nil |
166 | + | |
167 | - | end |
167 | + | |
168 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
169 | - | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} |
169 | + | |
170 | - | print("Complete! Running...") |
170 | + | |
171 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
172 | end)) | |
173 | end | |
174 | CamShake=function(Part,Distan,Power,Times) | |
175 | local de=Part.Position | |
176 | for i,v in pairs(workspace:children()) do | |
177 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
178 | for _,c in pairs(v:children()) do | |
179 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
180 | local Noob=v.Humanoid | |
181 | if Noob~=nil then | |
182 | coroutine.resume(coroutine.create(function() | |
183 | FV = Instance.new("BoolValue", Noob) | |
184 | FV.Name = "CameraShake" | |
185 | for ShakeNum=1,Times do | |
186 | swait() | |
187 | local ef=Power | |
188 | if ef>=1 then | |
189 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
190 | else | |
191 | ef=Power*10 | |
192 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
193 | end | |
194 | end | |
195 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
196 | FV:Destroy() | |
197 | end)) | |
198 | CameraShake(Times, Power, Noob) | |
199 | end | |
200 | end | |
201 | end | |
202 | end | |
203 | end | |
204 | end | |
205 | ||
206 | local toggleTag = true | |
207 | local bilguit = Instance.new("BillboardGui", hed) | |
208 | bilguit.Adornee = nil | |
209 | bilguit.Name = "ModeName" | |
210 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
211 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
212 | local modet = Instance.new("TextLabel", bilguit) | |
213 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
214 | modet.FontSize = "Size8" | |
215 | modet.TextScaled = true | |
216 | modet.TextTransparency = 0 | |
217 | modet.BackgroundTransparency = 1 | |
218 | modet.TextTransparency = 0 | |
219 | modet.TextStrokeTransparency = 0 | |
220 | modet.Font = "Code" | |
221 | modet.TextStrokeColor3 = Color3.new(0,0,0) | |
222 | modet.TextColor3 = Color3.new(1,1,1) | |
223 | modet.Text = "Enlightened" | |
224 | ||
225 | ||
226 | function chatfunc(text,color,typet,font,timeex) | |
227 | local chat = coroutine.wrap(function() | |
228 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
229 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
230 | end | |
231 | local naeeym2 = Instance.new("BillboardGui",Character) | |
232 | naeeym2.Size = UDim2.new(0,100,0,40) | |
233 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
234 | naeeym2.Adornee = Character.Head | |
235 | naeeym2.Name = "TalkingBillBoard" | |
236 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
237 | tecks2.BackgroundTransparency = 1 | |
238 | tecks2.BorderSizePixel = 0 | |
239 | tecks2.Text = "" | |
240 | tecks2.Font = font | |
241 | tecks2.TextSize = 30 | |
242 | tecks2.TextStrokeTransparency = 0 | |
243 | tecks2.TextColor3 = color | |
244 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
245 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
246 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
247 | tecks3.BackgroundTransparency = 1 | |
248 | tecks3.BorderSizePixel = 0 | |
249 | tecks3.Text = "" | |
250 | tecks3.Font = font | |
251 | tecks3.TextSize = 30 | |
252 | tecks3.TextStrokeTransparency = 0 | |
253 | if typet == "Inverted" then | |
254 | tecks3.TextColor3 = Color3.new(0,0,0) | |
255 | tecks3.TextStrokeColor3 = color | |
256 | elseif typet == "Normal" then | |
257 | tecks3.TextColor3 = color | |
258 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
259 | end | |
260 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
261 | coroutine.resume(coroutine.create(function() | |
262 | while true do | |
263 | swait(1) | |
264 | if chaosmode == true then | |
265 | tecks2.TextColor3 = BrickColor.random().Color | |
266 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
267 | end | |
268 | end | |
269 | end)) | |
270 | modet.TextTransparency = modet.TextTransparency + 1 | |
271 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
272 | for i = 0, 74*timeex do | |
273 | swait() | |
274 | modet.TextTransparency = 1 | |
275 | modet.TextStrokeTransparency = 1 | |
276 | tecks2.Text = text | |
277 | tecks3.Text = text | |
278 | end | |
279 | local randomrot = math.random(1,2) | |
280 | if randomrot == 1 then | |
281 | for i = 1, 50 do | |
282 | swait() | |
283 | tecks2.Text = text | |
284 | tecks3.Text = text | |
285 | modet.TextTransparency = modet.TextTransparency - .02 | |
286 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
287 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
288 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
289 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
290 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
291 | end | |
292 | elseif randomrot == 2 then | |
293 | for i = 1, 50 do | |
294 | swait() | |
295 | tecks2.Text = text | |
296 | tecks3.Text = text | |
297 | modet.TextTransparency = modet.TextTransparency - .02 | |
298 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
299 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
300 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
301 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
302 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
303 | end | |
304 | end | |
305 | modet.TextTransparency = 0 | |
306 | modet.TextStrokeTransparency = 0 | |
307 | if toggleTag == false then | |
308 | modet.TextTransparency = 1 | |
309 | modet.TextStrokeTransparency = 1 | |
310 | end | |
311 | naeeym2:Destroy() | |
312 | end) | |
313 | chat() | |
314 | end | |
315 | ||
316 | ||
317 | local Create = LoadLibrary("RbxUtility").Create | |
318 | ||
319 | CFuncs = { | |
320 | ["Part"] = { | |
321 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
322 | local Part = Create("Part"){ | |
323 | Parent = Parent, | |
324 | Reflectance = Reflectance, | |
325 | Transparency = Transparency, | |
326 | CanCollide = false, | |
327 | Locked = true, | |
328 | BrickColor = BrickColor.new(tostring(BColor)), | |
329 | Name = Name, | |
330 | Size = Size, | |
331 | Material = Material, | |
332 | } | |
333 | RemoveOutlines(Part) | |
334 | return Part | |
335 | end; | |
336 | }; | |
337 | ||
338 | ["Mesh"] = { | |
339 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
340 | local Msh = Create(Mesh){ | |
341 | Parent = Part, | |
342 | Offset = OffSet, | |
343 | Scale = Scale, | |
344 | } | |
345 | if Mesh == "SpecialMesh" then | |
346 | Msh.MeshType = MeshType | |
347 | Msh.MeshId = MeshId | |
348 | end | |
349 | return Msh | |
350 | end; | |
351 | }; | |
352 | ||
353 | ["Mesh"] = { | |
354 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
355 | local Msh = Create(Mesh){ | |
356 | Parent = Part, | |
357 | Offset = OffSet, | |
358 | Scale = Scale, | |
359 | } | |
360 | if Mesh == "SpecialMesh" then | |
361 | Msh.MeshType = MeshType | |
362 | Msh.MeshId = MeshId | |
363 | end | |
364 | return Msh | |
365 | end; | |
366 | }; | |
367 | ||
368 | ["Weld"] = { | |
369 | Create = function(Parent, Part0, Part1, C0, C1) | |
370 | local Weld = Create("Weld"){ | |
371 | Parent = Parent, | |
372 | Part0 = Part0, | |
373 | Part1 = Part1, | |
374 | C0 = C0, | |
375 | C1 = C1, | |
376 | } | |
377 | return Weld | |
378 | end; | |
379 | }; | |
380 | ||
381 | ["Sound"] = { | |
382 | Create = function(id, par, vol, pit) | |
383 | coroutine.resume(coroutine.create(function() | |
384 | local S = Create("Sound"){ | |
385 | Volume = vol, | |
386 | Name = "EffectSoundo", | |
387 | Pitch = pit or 1, | |
388 | SoundId = id, | |
389 | Parent = par or workspace, | |
390 | } | |
391 | wait() | |
392 | S:play() | |
393 | game:GetService("Debris"):AddItem(S, 10) | |
394 | end)) | |
395 | end; | |
396 | }; | |
397 | ||
398 | ["LongSound"] = { | |
399 | Create = function(id, par, vol, pit) | |
400 | coroutine.resume(coroutine.create(function() | |
401 | local S = Create("Sound"){ | |
402 | Volume = vol, | |
403 | Pitch = pit or 1, | |
404 | SoundId = id, | |
405 | Parent = par or workspace, | |
406 | } | |
407 | wait() | |
408 | S:play() | |
409 | game:GetService("Debris"):AddItem(S, 60) | |
410 | end)) | |
411 | end; | |
412 | }; | |
413 | ||
414 | ["ParticleEmitter"] = { | |
415 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
416 | local fp = Create("ParticleEmitter"){ | |
417 | Parent = Parent, | |
418 | Color = ColorSequence.new(Color1, Color2), | |
419 | LightEmission = LightEmission, | |
420 | Size = Size, | |
421 | Texture = Texture, | |
422 | Transparency = Transparency, | |
423 | ZOffset = ZOffset, | |
424 | Acceleration = Accel, | |
425 | Drag = Drag, | |
426 | LockedToPart = LockedToPart, | |
427 | VelocityInheritance = VelocityInheritance, | |
428 | EmissionDirection = EmissionDirection, | |
429 | Enabled = Enabled, | |
430 | Lifetime = LifeTime, | |
431 | Rate = Rate, | |
432 | Rotation = Rotation, | |
433 | RotSpeed = RotSpeed, | |
434 | Speed = Speed, | |
435 | VelocitySpread = VelocitySpread, | |
436 | } | |
437 | return fp | |
438 | end; | |
439 | }; | |
440 | ||
441 | CreateTemplate = { | |
442 | ||
443 | }; | |
444 | } | |
445 | ||
446 | ||
447 | ||
448 | New = function(Object, Parent, Name, Data) | |
449 | local Object = Instance.new(Object) | |
450 | for Index, Value in pairs(Data or {}) do | |
451 | Object[Index] = Value | |
452 | end | |
453 | Object.Parent = Parent | |
454 | Object.Name = Name | |
455 | return Object | |
456 | end | |
457 | local halocolor = BrickColor.new("Pastel light blue") | |
458 | local halocolor2 = BrickColor.new("Cool yellow") | |
459 | local starcolor = BrickColor.new("Bright yellow") | |
460 | local lunacolor = BrickColor.new("Navy blue") | |
461 | local lunacolor2 = BrickColor.new("Bright blue") | |
462 | local wepcolor = BrickColor.new("Really black") | |
463 | local maincolor = BrickColor.new("Really black") | |
464 | local m = Instance.new("Model",char) | |
465 | local m2 = Instance.new("Model",char) | |
466 | local m3 = Instance.new("Model",char) | |
467 | local mw1 = Instance.new("Model",char) | |
468 | local mw2 = Instance.new("Model",char) | |
469 | ||
470 | ||
471 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
472 | local gui = it(GuiType) | |
473 | gui.Parent = parent | |
474 | gui.Text = text | |
475 | gui.BackgroundTransparency = backtrans | |
476 | gui.BackgroundColor3 = backcol | |
477 | gui.SizeConstraint = "RelativeXY" | |
478 | gui.TextXAlignment = "Center" | |
479 | gui.TextYAlignment = "Center" | |
480 | gui.Position = pos | |
481 | gui.Size = size | |
482 | gui.Font = "SourceSans" | |
483 | gui.FontSize = "Size14" | |
484 | gui.TextWrapped = false | |
485 | gui.TextStrokeTransparency = 0 | |
486 | gui.TextColor = BrickColor.new("White") | |
487 | return gui | |
488 | end | |
489 | ---- GUI set | |
490 | local basgui = it("GuiMain") | |
491 | basgui.Parent = plr.PlayerGui | |
492 | basgui.Name = "Killcounter GUI" | |
493 | local basframe = it("Frame") | |
494 | basframe.Parent = basgui | |
495 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
496 | basframe.BackgroundTransparency = 1 | |
497 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
498 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
499 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
500 | local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0)) | |
501 | uhh.ZIndex = 2 | |
502 | uhh.Font = "Bodoni" | |
503 | uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05) | |
504 | uhh.TextColor3 = Color3.new(1,1,1) | |
505 | uhh.BackgroundTransparency = 0.25 | |
506 | uhh.BorderSizePixel = 2 | |
507 | uhh.BorderColor3 = Color3.new(0,0,0) | |
508 | uhh.TextScaled = true | |
509 | uhh.TextXAlignment = "Left" | |
510 | uhh.Text = "SWITCH MODE: 1-9" | |
511 | uhh.TextSize = 64 | |
512 | local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0)) | |
513 | modeteller.ZIndex = 2 | |
514 | modeteller.Font = "Bodoni" | |
515 | modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05) | |
516 | modeteller.TextColor3 = Color3.new(1,1,1) | |
517 | modeteller.BackgroundTransparency = 0.25 | |
518 | modeteller.BorderSizePixel = 2 | |
519 | modeteller.BorderColor3 = Color3.new(0,0,0) | |
520 | modeteller.TextScaled = true | |
521 | modeteller.TextXAlignment = "Right" | |
522 | modeteller.Text = "MAYHEM" | |
523 | modeteller.TextSize = 64 | |
524 | ||
525 | local extrawingmod1 = Instance.new("Model",char) | |
526 | local extrawingmod2 = Instance.new("Model",char) | |
527 | ||
528 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
529 | local p = Instance.new("Part") | |
530 | p.TopSurface = 0 | |
531 | p.BottomSurface = 0 | |
532 | p.Parent = parent | |
533 | p.Size = Vector3.new(0.1,0.1,0.1) | |
534 | p.Transparency = transparency | |
535 | p.Reflectance = reflectance | |
536 | p.CanCollide = false | |
537 | p.Locked = true | |
538 | p.BrickColor = brickcolor | |
539 | p.Material = material | |
540 | return p | |
541 | end | |
542 | ||
543 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
544 | local mesh = Instance.new("SpecialMesh",parent) | |
545 | mesh.MeshType = meshtype | |
546 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
547 | return mesh | |
548 | end | |
549 | ||
550 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
551 | local mesh = Instance.new("SpecialMesh",parent) | |
552 | mesh.MeshType = "FileMesh" | |
553 | mesh.MeshId = meshid | |
554 | mesh.Scale = Vector3.new(x1,y1,z1) | |
555 | return mesh | |
556 | end | |
557 | ||
558 | ||
559 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
560 | local mesh = Instance.new("SpecialMesh",parent) | |
561 | mesh.MeshType = "FileMesh" | |
562 | mesh.MeshId = meshid | |
563 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
564 | mesh.Scale = Vector3.new(x1,y1,z1) | |
565 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
566 | return mesh | |
567 | end | |
568 | ||
569 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
570 | local weld = Instance.new("Weld") | |
571 | weld.Parent = parent | |
572 | weld.Part0 = part0 | |
573 | weld.Part1 = part1 | |
574 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
575 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
576 | return weld | |
577 | end | |
578 | ||
579 | ||
580 | -------------- | |
581 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
582 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
583 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
584 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
585 | ||
586 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
587 | CreateMesh(handle,"Brick",0,0,0) | |
588 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
589 | local valuaring = 10 | |
590 | ||
591 | local refec = Instance.new("ParticleEmitter",handlex) | |
592 | refec.Texture = "rbxassetid://284205403" | |
593 | refec.LightEmission = 0.95 | |
594 | refec.Color = ColorSequence.new(BrickColor.new("White").Color) | |
595 | refec.Rate = 50 | |
596 | refec.Lifetime = NumberRange.new(0.5) | |
597 | refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
598 | refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)}) | |
599 | refec.Speed = NumberRange.new(0,2) | |
600 | refec.Drag = 5 | |
601 | refec.LockedToPart = true | |
602 | refec.Rotation = NumberRange.new(-500,500) | |
603 | refec.VelocitySpread = 9000 | |
604 | refec.RotSpeed = NumberRange.new(-500,500) | |
605 | local refec2 = refec:Clone() | |
606 | refec2.LightEmission = 0.75 | |
607 | refec2.Texture = "rbxassetid://254287058" | |
608 | refec2.Parent = handlex | |
609 | refec2.Rate = 25 | |
610 | refec2.Lifetime = NumberRange.new(0.75) | |
611 | refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
612 | refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)}) | |
613 | refec2.Speed = NumberRange.new(0) | |
614 | local refec3 = refec:Clone() | |
615 | refec3.LightEmission = 0.75 | |
616 | refec3.Texture = "rbxassetid://363275192" | |
617 | refec3.Parent = handlex | |
618 | refec3.Rate = 25 | |
619 | refec3.Lifetime = NumberRange.new(1) | |
620 | refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
621 | refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)}) | |
622 | refec3.Speed = NumberRange.new(0) | |
623 | refec3.RotSpeed = NumberRange.new(-50,50) | |
624 | ||
625 | for i = 0, 35 do | |
626 | valuaring = valuaring + 10 | |
627 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
628 | CreateMesh(rn,"Wedge",0.1,0.5,0.1) | |
629 | CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
630 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
631 | CreateMesh(rn,"Wedge",0.1,0.5,0.1) | |
632 | CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
633 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
634 | CreateMesh(rn,"Wedge",0.1,0.2,0.05) | |
635 | CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
636 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
637 | CreateMesh(rn,"Wedge",0.1,0.2,0.05) | |
638 | CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
639 | end | |
640 | ||
641 | ||
642 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
643 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
644 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
645 | ||
646 | --- Left wing. | |
647 | ||
648 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
649 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
650 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
651 | ||
652 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
653 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
654 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
655 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
656 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
657 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
658 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
659 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
660 | CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
661 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
662 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
663 | CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
664 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
665 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
666 | CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
667 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
668 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
669 | CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
670 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
671 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
672 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
673 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
674 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
675 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
676 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
677 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
678 | CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
679 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
680 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
681 | CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
682 | ||
683 | ||
684 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
685 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
686 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
687 | ||
688 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
689 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
690 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
691 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
692 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
693 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
694 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
695 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
696 | CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
697 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
698 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
699 | CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
700 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
701 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
702 | CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
703 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
704 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
705 | CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
706 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
707 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
708 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
709 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
710 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
711 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
712 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
713 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
714 | CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
715 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
716 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
717 | CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
718 | ||
719 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
720 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
721 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
722 | ||
723 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
724 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
725 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
726 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
727 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
728 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
729 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
730 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
731 | CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
732 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
733 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
734 | CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
735 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
736 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
737 | CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
738 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
739 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
740 | CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
741 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
742 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
743 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
744 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
745 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
746 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
747 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
748 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
749 | CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
750 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
751 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
752 | CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
753 | ||
754 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
755 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
756 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
757 | ||
758 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
759 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
760 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
761 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
762 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
763 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
764 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
765 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
766 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
767 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
768 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
769 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
770 | ||
771 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
772 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
773 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
774 | ||
775 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
776 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
777 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
778 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
779 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
780 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
781 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
782 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
783 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
784 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
785 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
786 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
787 | ||
788 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
789 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
790 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
791 | ||
792 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
793 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
794 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
795 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
796 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
797 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
798 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
799 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
800 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
801 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
802 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
803 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
804 | ||
805 | -- Right wing. | |
806 | ||
807 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
808 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
809 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
810 | ||
811 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
812 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
813 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
814 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
815 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
816 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
817 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
818 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
819 | CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
820 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
821 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
822 | CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
823 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
824 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
825 | CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
826 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
827 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
828 | CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
829 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
830 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
831 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
832 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
833 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
834 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
835 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
836 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
837 | CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
838 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
840 | CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
841 | ||
842 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
843 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
844 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
845 | ||
846 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
847 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
848 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
849 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
850 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
851 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
852 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
853 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
854 | CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
855 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
856 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
857 | CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
858 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
859 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
860 | CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
861 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
862 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
863 | CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
864 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
865 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
866 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
867 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
868 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
869 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
870 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
871 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
872 | CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
873 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
874 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
875 | CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
876 | ||
877 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
878 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
879 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
880 | ||
881 | ||
882 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
883 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
884 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
885 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
886 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
887 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
888 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
889 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
890 | CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
891 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
892 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
893 | CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
894 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
895 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
896 | CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
897 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
898 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
899 | CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
900 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
901 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
902 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
903 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
904 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
905 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
906 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
907 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
908 | CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
909 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
910 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
911 | CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
912 | ||
913 | ||
914 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
915 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
916 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
917 | ||
918 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
919 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
920 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
921 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
922 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
923 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
924 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
925 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
926 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
927 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
928 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
929 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
930 | ||
931 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
932 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
933 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
934 | ||
935 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
936 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
937 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
938 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
939 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
940 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
941 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
942 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
943 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
944 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
945 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
946 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
947 | ||
948 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
949 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
950 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
951 | ||
952 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
953 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
954 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
955 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
956 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
957 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
958 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
959 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
960 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
961 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
962 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
963 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
964 | ||
965 | ||
966 | ---- HERES THE RING | |
967 | ||
968 | ||
969 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
970 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
971 | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
972 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
973 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
974 | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
975 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
976 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
977 | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
978 | ||
979 | ||
980 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
981 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
982 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
983 | ||
984 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
985 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
986 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
987 | ||
988 | ||
989 | ||
990 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
991 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
992 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
993 | ||
994 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
995 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
996 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
997 | ||
998 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
999 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1000 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1001 | ||
1002 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1003 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1004 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1005 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1006 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1007 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1008 | ||
1009 | --- second ring | |
1010 | ||
1011 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1012 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1013 | CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1014 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1015 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1016 | CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1017 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1018 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1019 | CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1020 | ||
1021 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1022 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1023 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1024 | ||
1025 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1026 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1027 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1028 | ||
1029 | ||
1030 | ||
1031 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1032 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1033 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1034 | ||
1035 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1036 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1037 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1038 | ||
1039 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1040 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1041 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1042 | ||
1043 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1044 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1045 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1046 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1047 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1048 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
1049 | ||
1050 | ------------- Trails | |
1051 | local A0 = Instance.new("Attachment",lwing1) | |
1052 | A0.Position = Vector3.new(0,-0.7,0) | |
1053 | local A1 = Instance.new("Attachment",lwing1) | |
1054 | A1.Position = Vector3.new(0,-3.5,0) | |
1055 | tl1 = Instance.new('Trail',lwing1) | |
1056 | tl1.Attachment0 = A0 | |
1057 | tl1.Attachment1 = A1 | |
1058 | tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1059 | tl1.LightEmission = 1 | |
1060 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1061 | tl1.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1062 | tl1.Lifetime = 0.6 | |
1063 | ||
1064 | local A0 = Instance.new("Attachment",lwing2) | |
1065 | A0.Position = Vector3.new(0,-0.7,0) | |
1066 | local A1 = Instance.new("Attachment",lwing2) | |
1067 | A1.Position = Vector3.new(0,-3.5,0) | |
1068 | tl2 = Instance.new('Trail',lwing2) | |
1069 | tl2.Attachment0 = A0 | |
1070 | tl2.Attachment1 = A1 | |
1071 | tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1072 | tl2.LightEmission = 1 | |
1073 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1074 | tl2.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1075 | tl2.Lifetime = 0.6 | |
1076 | ||
1077 | local A0 = Instance.new("Attachment",lwing3) | |
1078 | A0.Position = Vector3.new(0,-0.7,0) | |
1079 | local A1 = Instance.new("Attachment",lwing3) | |
1080 | A1.Position = Vector3.new(0,-3.5,0) | |
1081 | tl3 = Instance.new('Trail',lwing3) | |
1082 | tl3.Attachment0 = A0 | |
1083 | tl3.Attachment1 = A1 | |
1084 | tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1085 | tl3.LightEmission = 1 | |
1086 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1087 | tl3.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1088 | tl3.Lifetime = 0.6 | |
1089 | ||
1090 | local A0 = Instance.new("Attachment",rwing1) | |
1091 | A0.Position = Vector3.new(0,-0.7,0) | |
1092 | local A1 = Instance.new("Attachment",rwing1) | |
1093 | A1.Position = Vector3.new(0,-3.5,0) | |
1094 | tr1 = Instance.new('Trail',rwing1) | |
1095 | tr1.Attachment0 = A0 | |
1096 | tr1.Attachment1 = A1 | |
1097 | tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1098 | tr1.LightEmission = 1 | |
1099 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1100 | tr1.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1101 | tr1.Lifetime = 0.6 | |
1102 | ||
1103 | local A0 = Instance.new("Attachment",rwing2) | |
1104 | A0.Position = Vector3.new(0,-0.7,0) | |
1105 | local A1 = Instance.new("Attachment",rwing2) | |
1106 | A1.Position = Vector3.new(0,-3.5,0) | |
1107 | tr2 = Instance.new('Trail',rwing2) | |
1108 | tr2.Attachment0 = A0 | |
1109 | tr2.Attachment1 = A1 | |
1110 | tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1111 | tr2.LightEmission = 1 | |
1112 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1113 | tr2.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1114 | tr2.Lifetime = 0.6 | |
1115 | ||
1116 | local A0 = Instance.new("Attachment",rwing3) | |
1117 | A0.Position = Vector3.new(0,-0.7,0) | |
1118 | local A1 = Instance.new("Attachment",rwing3) | |
1119 | A1.Position = Vector3.new(0,-3.5,0) | |
1120 | tr3 = Instance.new('Trail',rwing3) | |
1121 | tr3.Attachment0 = A0 | |
1122 | tr3.Attachment1 = A1 | |
1123 | tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1124 | tr3.LightEmission = 1 | |
1125 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1126 | tr3.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1127 | tr3.Lifetime = 0.6 | |
1128 | -------------- | |
1129 | ||
1130 | for i, v in pairs(mw2:GetChildren()) do | |
1131 | if v:IsA("Part") then | |
1132 | v.BrickColor = BrickColor.new("White") | |
1133 | v.Material = "Neon" | |
1134 | end | |
1135 | end | |
1136 | for i, v in pairs(mw1:GetChildren()) do | |
1137 | if v:IsA("Part") then | |
1138 | v.Transparency = 0 | |
1139 | v.BrickColor = BrickColor.new("White") | |
1140 | v.Material = "Neon" | |
1141 | end | |
1142 | end | |
1143 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1144 | if v:IsA("Part") then | |
1145 | v.Transparency = 1 | |
1146 | v.BrickColor = BrickColor.new("White") | |
1147 | v.Material = "Neon" | |
1148 | end | |
1149 | end | |
1150 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1151 | if v:IsA("Part") then | |
1152 | v.Transparency = 1 | |
1153 | v.BrickColor = BrickColor.new("White") | |
1154 | v.Material = "Neon" | |
1155 | end | |
1156 | end | |
1157 | local MAINRUINCOLOR = BrickColor.new("White") | |
1158 | ------ | |
1159 | ||
1160 | ||
1161 | function RemoveOutlines(part) | |
1162 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1163 | end | |
1164 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1165 | local Part = Create("Part")({ | |
1166 | Parent = Parent, | |
1167 | Reflectance = Reflectance, | |
1168 | Transparency = Transparency, | |
1169 | CanCollide = false, | |
1170 | Locked = true, | |
1171 | BrickColor = BrickColor.new(tostring(BColor)), | |
1172 | Name = Name, | |
1173 | Size = Size, | |
1174 | Material = Material | |
1175 | }) | |
1176 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1177 | RemoveOutlines(Part) | |
1178 | return Part | |
1179 | end | |
1180 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1181 | local Msh = Create(Mesh)({ | |
1182 | Parent = Part, | |
1183 | Offset = OffSet, | |
1184 | Scale = Scale | |
1185 | }) | |
1186 | if Mesh == "SpecialMesh" then | |
1187 | Msh.MeshType = MeshType | |
1188 | Msh.MeshId = MeshId | |
1189 | end | |
1190 | return Msh | |
1191 | end | |
1192 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1193 | local Weld = Create("Weld")({ | |
1194 | Parent = Parent, | |
1195 | Part0 = Part0, | |
1196 | Part1 = Part1, | |
1197 | C0 = C0, | |
1198 | C1 = C1 | |
1199 | }) | |
1200 | return Weld | |
1201 | end | |
1202 | ||
1203 | Player=game:GetService("Players").LocalPlayer | |
1204 | Character=Player.Character | |
1205 | PlayerGui=Player.PlayerGui | |
1206 | Backpack=Player.Backpack | |
1207 | Torso=Character.Torso | |
1208 | Head=Character.Head | |
1209 | Humanoid=Character.Humanoid | |
1210 | m=Instance.new('Model',Character) | |
1211 | LeftArm=Character["Left Arm"] | |
1212 | LeftLeg=Character["Left Leg"] | |
1213 | RightArm=Character["Right Arm"] | |
1214 | RightLeg=Character["Right Leg"] | |
1215 | LS=Torso["Left Shoulder"] | |
1216 | LH=Torso["Left Hip"] | |
1217 | RS=Torso["Right Shoulder"] | |
1218 | RH=Torso["Right Hip"] | |
1219 | Face = Head.face | |
1220 | Neck=Torso.Neck | |
1221 | it=Instance.new | |
1222 | attacktype=1 | |
1223 | vt=Vector3.new | |
1224 | cf=CFrame.new | |
1225 | euler=CFrame.fromEulerAnglesXYZ | |
1226 | angles=CFrame.Angles | |
1227 | cloaked=false | |
1228 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1229 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1230 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1231 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1232 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1233 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1234 | RootPart=Character.HumanoidRootPart | |
1235 | RootJoint=RootPart.RootJoint | |
1236 | RootCF=euler(-1.57,0,3.14) | |
1237 | attack = false | |
1238 | attackdebounce = false | |
1239 | deb=false | |
1240 | equipped=true | |
1241 | hand=false | |
1242 | MMouse=nil | |
1243 | combo=0 | |
1244 | mana=0 | |
1245 | trispeed=.2 | |
1246 | attackmode='none' | |
1247 | local idle=0 | |
1248 | local Anim="Idle" | |
1249 | local Effects={} | |
1250 | local gun=false | |
1251 | local shoot=false | |
1252 | local sine = 0 | |
1253 | local change = 1 | |
1254 | player=nil | |
1255 | ||
1256 | function RecolorTextAndRename(name,col1,col2,font) | |
1257 | modet.TextStrokeColor3 = col2 | |
1258 | modet.TextColor3 = col1 | |
1259 | modet.Font = font | |
1260 | modet.Text = name | |
1261 | end | |
1262 | mouse=Player:GetMouse() | |
1263 | --save shoulders | |
1264 | RSH, LSH=nil, nil | |
1265 | --welds | |
1266 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1267 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1268 | LH=Torso["Left Hip"] | |
1269 | RH=Torso["Right Hip"] | |
1270 | TorsoColor=Torso.BrickColor | |
1271 | function NoOutline(Part) | |
1272 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1273 | end | |
1274 | player=Player | |
1275 | ch=Character | |
1276 | RSH=ch.Torso["Right Shoulder"] | |
1277 | LSH=ch.Torso["Left Shoulder"] | |
1278 | -- | |
1279 | RSH.Parent=nil | |
1280 | LSH.Parent=nil | |
1281 | -- | |
1282 | RW.Name="Right Shoulder" | |
1283 | RW.Part0=ch.Torso | |
1284 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1285 | RW.C1=cf(0, 0.5, 0) | |
1286 | RW.Part1=ch["Right Arm"] | |
1287 | RW.Parent=ch.Torso | |
1288 | -- | |
1289 | LW.Name="Left Shoulder" | |
1290 | LW.Part0=ch.Torso | |
1291 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1292 | LW.C1=cf(0, 0.5, 0) | |
1293 | LW.Part1=ch["Left Arm"] | |
1294 | LW.Parent=ch.Torso | |
1295 | ||
1296 | local Stats=Instance.new("BoolValue") | |
1297 | Stats.Name="Stats" | |
1298 | Stats.Parent=Character | |
1299 | local Atk=Instance.new("NumberValue") | |
1300 | Atk.Name="Damage" | |
1301 | Atk.Parent=Stats | |
1302 | Atk.Value=1 | |
1303 | local Def=Instance.new("NumberValue") | |
1304 | Def.Name="Defense" | |
1305 | Def.Parent=Stats | |
1306 | Def.Value=1 | |
1307 | local Speed=Instance.new("NumberValue") | |
1308 | Speed.Name="Speed" | |
1309 | Speed.Parent=Stats | |
1310 | Speed.Value=1 | |
1311 | local Mvmt=Instance.new("NumberValue") | |
1312 | Mvmt.Name="Movement" | |
1313 | Mvmt.Parent=Stats | |
1314 | Mvmt.Value=1 | |
1315 | ||
1316 | local donum=0 | |
1317 | ||
1318 | ||
1319 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1320 | local fp=it("Part") | |
1321 | fp.formFactor=formfactor | |
1322 | fp.Parent=parent | |
1323 | fp.Reflectance=reflectance | |
1324 | fp.Transparency=transparency | |
1325 | fp.CanCollide=false | |
1326 | fp.Locked=true | |
1327 | fp.BrickColor=brickcolor | |
1328 | fp.Name=name | |
1329 | fp.Size=size | |
1330 | fp.Position=Torso.Position | |
1331 | NoOutline(fp) | |
1332 | fp.Material="SmoothPlastic" | |
1333 | fp:BreakJoints() | |
1334 | return fp | |
1335 | end | |
1336 | ||
1337 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1338 | local mesh=it(Mesh) | |
1339 | mesh.Parent=part | |
1340 | if Mesh=="SpecialMesh" then | |
1341 | mesh.MeshType=meshtype | |
1342 | if meshid~="nil" then | |
1343 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1344 | end | |
1345 | end | |
1346 | mesh.Offset=offset | |
1347 | mesh.Scale=scale | |
1348 | return mesh | |
1349 | end | |
1350 | ||
1351 | function weld(parent,part0,part1,c0) | |
1352 | local weld=it("Weld") | |
1353 | weld.Parent=parent | |
1354 | weld.Part0=part0 | |
1355 | weld.Part1=part1 | |
1356 | weld.C0=c0 | |
1357 | return weld | |
1358 | end | |
1359 | ||
1360 | local Color1=Torso.BrickColor | |
1361 | ||
1362 | local bodvel=Instance.new("BodyVelocity") | |
1363 | local bg=Instance.new("BodyGyro") | |
1364 | ||
1365 | function swait(num) | |
1366 | if num==0 or num==nil then | |
1367 | game:service'RunService'.Stepped:wait(0) | |
1368 | else | |
1369 | for i=0,num do | |
1370 | game:service'RunService'.Stepped:wait(0) | |
1371 | end | |
1372 | end | |
1373 | end | |
1374 | ||
1375 | -------- RAINBOW LEAVE IT TO ME | |
1376 | local r = 255 | |
1377 | local g = 0 | |
1378 | local b = 0 | |
1379 | coroutine.resume(coroutine.create(function() | |
1380 | while wait() do | |
1381 | for i = 0, 254/5 do | |
1382 | swait() | |
1383 | g = g + 5 | |
1384 | end | |
1385 | for i = 0, 254/5 do | |
1386 | swait() | |
1387 | r = r - 5 | |
1388 | end | |
1389 | for i = 0, 254/5 do | |
1390 | swait() | |
1391 | b = b + 5 | |
1392 | end | |
1393 | for i = 0, 254/5 do | |
1394 | swait() | |
1395 | g = g - 5 | |
1396 | end | |
1397 | for i = 0, 254/5 do | |
1398 | swait() | |
1399 | r = r + 5 | |
1400 | end | |
1401 | for i = 0, 254/5 do | |
1402 | swait() | |
1403 | b = b - 5 | |
1404 | end | |
1405 | end | |
1406 | end)) | |
1407 | ||
1408 | ||
1409 | so = function(id,par,vol,pit) | |
1410 | coroutine.resume(coroutine.create(function() | |
1411 | local sou = Instance.new("Sound",par or workspace) | |
1412 | sou.Volume=vol | |
1413 | sou.Pitch=pit or 1 | |
1414 | sou.SoundId=id | |
1415 | swait() | |
1416 | sou:play() | |
1417 | game:GetService("Debris"):AddItem(sou,6) | |
1418 | end)) | |
1419 | end | |
1420 | ||
1421 | function clerp(a,b,t) | |
1422 | local qa = {QuaternionFromCFrame(a)} | |
1423 | local qb = {QuaternionFromCFrame(b)} | |
1424 | local ax, ay, az = a.x, a.y, a.z | |
1425 | local bx, by, bz = b.x, b.y, b.z | |
1426 | local _t = 1-t | |
1427 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1428 | end | |
1429 | ||
1430 | function QuaternionFromCFrame(cf) | |
1431 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1432 | local trace = m00 + m11 + m22 | |
1433 | if trace > 0 then | |
1434 | local s = math.sqrt(1 + trace) | |
1435 | local recip = 0.5/s | |
1436 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1437 | else | |
1438 | local i = 0 | |
1439 | if m11 > m00 then | |
1440 | i = 1 | |
1441 | end | |
1442 | if m22 > (i == 0 and m00 or m11) then | |
1443 | i = 2 | |
1444 | end | |
1445 | if i == 0 then | |
1446 | local s = math.sqrt(m00-m11-m22+1) | |
1447 | local recip = 0.5/s | |
1448 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1449 | elseif i == 1 then | |
1450 | local s = math.sqrt(m11-m22-m00+1) | |
1451 | local recip = 0.5/s | |
1452 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1453 | elseif i == 2 then | |
1454 | local s = math.sqrt(m22-m00-m11+1) | |
1455 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1456 | end | |
1457 | end | |
1458 | end | |
1459 | ||
1460 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1461 | local xs, ys, zs = x + x, y + y, z + z | |
1462 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1463 | local xx = x*xs | |
1464 | local xy = x*ys | |
1465 | local xz = x*zs | |
1466 | local yy = y*ys | |
1467 | local yz = y*zs | |
1468 | local zz = z*zs | |
1469 | 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)) | |
1470 | end | |
1471 | ||
1472 | function QuaternionSlerp(a, b, t) | |
1473 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1474 | local startInterp, finishInterp; | |
1475 | if cosTheta >= 0.0001 then | |
1476 | if (1 - cosTheta) > 0.0001 then | |
1477 | local theta = math.acos(cosTheta) | |
1478 | local invSinTheta = 1/math.sin(theta) | |
1479 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1480 | finishInterp = math.sin(t*theta)*invSinTheta | |
1481 | else | |
1482 | startInterp = 1-t | |
1483 | finishInterp = t | |
1484 | end | |
1485 | else | |
1486 | if (1+cosTheta) > 0.0001 then | |
1487 | local theta = math.acos(-cosTheta) | |
1488 | local invSinTheta = 1/math.sin(theta) | |
1489 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1490 | finishInterp = math.sin(t*theta)*invSinTheta | |
1491 | else | |
1492 | startInterp = t-1 | |
1493 | finishInterp = t | |
1494 | end | |
1495 | end | |
1496 | 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 | |
1497 | end | |
1498 | ||
1499 | local function CFrameFromTopBack(at, top, back) | |
1500 | local right = top:Cross(back) | |
1501 | return CFrame.new(at.x, at.y, at.z, | |
1502 | right.x, top.x, back.x, | |
1503 | right.y, top.y, back.y, | |
1504 | right.z, top.z, back.z) | |
1505 | end | |
1506 | ||
1507 | function Triangle(a, b, c) | |
1508 | local edg1 = (c-a):Dot((b-a).unit) | |
1509 | local edg2 = (a-b):Dot((c-b).unit) | |
1510 | local edg3 = (b-c):Dot((a-c).unit) | |
1511 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1512 | a, b, c = a, b, c | |
1513 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1514 | a, b, c = b, c, a | |
1515 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1516 | a, b, c = c, a, b | |
1517 | else | |
1518 | assert(false, "unreachable") | |
1519 | end | |
1520 | ||
1521 | local len1 = (c-a):Dot((b-a).unit) | |
1522 | local len2 = (b-a).magnitude - len1 | |
1523 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1524 | ||
1525 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1526 | ||
1527 | local list = {} | |
1528 | ||
1529 | if len1 > 0.01 then | |
1530 | local w1 = Instance.new('WedgePart', m) | |
1531 | game:GetService("Debris"):AddItem(w1,5) | |
1532 | w1.Material = "SmoothPlastic" | |
1533 | w1.FormFactor = 'Custom' | |
1534 | w1.BrickColor = BrickColor.new("Really red") | |
1535 | w1.Transparency = 0 | |
1536 | w1.Reflectance = 0 | |
1537 | w1.Material = "SmoothPlastic" | |
1538 | w1.CanCollide = false | |
1539 | local l1 = Instance.new("PointLight",w1) | |
1540 | l1.Color = Color3.new(170,0,0) | |
1541 | NoOutline(w1) | |
1542 | local sz = Vector3.new(0.2, width, len1) | |
1543 | w1.Size = sz | |
1544 | local sp = Instance.new("SpecialMesh",w1) | |
1545 | sp.MeshType = "Wedge" | |
1546 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1547 | w1:BreakJoints() | |
1548 | w1.Anchored = true | |
1549 | w1.Parent = workspace | |
1550 | w1.Transparency = 0.7 | |
1551 | table.insert(Effects,{w1,"Disappear",.01}) | |
1552 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1553 | table.insert(list,w1) | |
1554 | end | |
1555 | ||
1556 | if len2 > 0.01 then | |
1557 | local w2 = Instance.new('WedgePart', m) | |
1558 | game:GetService("Debris"):AddItem(w2,5) | |
1559 | w2.Material = "SmoothPlastic" | |
1560 | w2.FormFactor = 'Custom' | |
1561 | w2.BrickColor = BrickColor.new("Really red") | |
1562 | w2.Transparency = 0 | |
1563 | w2.Reflectance = 0 | |
1564 | w2.Material = "SmoothPlastic" | |
1565 | w2.CanCollide = false | |
1566 | local l2 = Instance.new("PointLight",w2) | |
1567 | l2.Color = Color3.new(170,0,0) | |
1568 | NoOutline(w2) | |
1569 | local sz = Vector3.new(0.2, width, len2) | |
1570 | w2.Size = sz | |
1571 | local sp = Instance.new("SpecialMesh",w2) | |
1572 | sp.MeshType = "Wedge" | |
1573 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1574 | w2:BreakJoints() | |
1575 | w2.Anchored = true | |
1576 | w2.Parent = workspace | |
1577 | w2.Transparency = 0.7 | |
1578 | table.insert(Effects,{w2,"Disappear",.01}) | |
1579 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1580 | table.insert(list,w2) | |
1581 | end | |
1582 | return unpack(list) | |
1583 | end | |
1584 | ||
1585 | ||
1586 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1587 | if hit.Parent == nil then | |
1588 | return | |
1589 | end | |
1590 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1591 | for _, v in pairs(hit.Parent:children()) do | |
1592 | if v:IsA("Humanoid") then | |
1593 | h = v | |
1594 | end | |
1595 | end | |
1596 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1597 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1598 | return | |
1599 | end | |
1600 | local c = Create("ObjectValue")({ | |
1601 | Name = "creator", | |
1602 | Value = game:service("Players").LocalPlayer, | |
1603 | Parent = h | |
1604 | }) | |
1605 | game:GetService("Debris"):AddItem(c, 0.5) | |
1606 | if HitSound ~= nil and HitPitch ~= nil then | |
1607 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1608 | end | |
1609 | local Damage = math.random(minim, maxim) | |
1610 | local blocked = false | |
1611 | local block = hit.Parent:findFirstChild("Block") | |
1612 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1613 | blocked = true | |
1614 | block.Value = block.Value - 1 | |
1615 | print(block.Value) | |
1616 | end | |
1617 | if blocked == false then | |
1618 | HitHealth = h.Health | |
1619 | h.Health = h.Health - Damage | |
1620 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1621 | print("gained kill") | |
1622 | end | |
1623 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1624 | else | |
1625 | h.Health = h.Health - Damage / 2 | |
1626 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1627 | end | |
1628 | if Type == "Knockdown" then | |
1629 | local hum = hit.Parent.Humanoid | |
1630 | hum.PlatformStand = true | |
1631 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1632 | swait(1) | |
1633 | HHumanoid.PlatformStand = false | |
1634 | end), hum) | |
1635 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1636 | local bodvol = Create("BodyVelocity")({ | |
1637 | velocity = angle * knockback, | |
1638 | P = 5000, | |
1639 | maxForce = Vector3.new(8000, 8000, 8000), | |
1640 | Parent = hit | |
1641 | }) | |
1642 | local rl = Create("BodyAngularVelocity")({ | |
1643 | P = 3000, | |
1644 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1645 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1646 | Parent = hit | |
1647 | }) | |
1648 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1649 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1650 | elseif Type == "Normal" then | |
1651 | local vp = Create("BodyVelocity")({ | |
1652 | P = 500, | |
1653 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1654 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1655 | }) | |
1656 | if knockback > 0 then | |
1657 | vp.Parent = hit.Parent.Head | |
1658 | end | |
1659 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1660 | elseif Type == "Up" then | |
1661 | local bodyVelocity = Create("BodyVelocity")({ | |
1662 | velocity = Vector3.new(0, 20, 0), | |
1663 | P = 5000, | |
1664 | maxForce = Vector3.new(8000, 8000, 8000), | |
1665 | Parent = hit | |
1666 | }) | |
1667 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1668 | local bodyVelocity = Create("BodyVelocity")({ | |
1669 | velocity = Vector3.new(0, 20, 0), | |
1670 | P = 5000, | |
1671 | maxForce = Vector3.new(8000, 8000, 8000), | |
1672 | Parent = hit | |
1673 | }) | |
1674 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1675 | elseif Type == "Leech" then | |
1676 | local hum = hit.Parent.Humanoid | |
1677 | if hum ~= nil then | |
1678 | for i = 0, 2 do | |
1679 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1680 | end | |
1681 | Humanoid.Health = Humanoid.Health + 10 | |
1682 | end | |
1683 | elseif Type == "UpKnock" then | |
1684 | local hum = hit.Parent.Humanoid | |
1685 | hum.PlatformStand = true | |
1686 | if hum ~= nil then | |
1687 | hitr = true | |
1688 | end | |
1689 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1690 | swait(5) | |
1691 | HHumanoid.PlatformStand = false | |
1692 | hitr = false | |
1693 | end), hum) | |
1694 | local bodyVelocity = Create("BodyVelocity")({ | |
1695 | velocity = Vector3.new(0, 20, 0), | |
1696 | P = 5000, | |
1697 | maxForce = Vector3.new(8000, 8000, 8000), | |
1698 | Parent = hit | |
1699 | }) | |
1700 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1701 | local bodyVelocity = Create("BodyVelocity")({ | |
1702 | velocity = Vector3.new(0, 20, 0), | |
1703 | P = 5000, | |
1704 | maxForce = Vector3.new(8000, 8000, 8000), | |
1705 | Parent = hit | |
1706 | }) | |
1707 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1708 | elseif Type == "Snare" then | |
1709 | local bp = Create("BodyPosition")({ | |
1710 | P = 2000, | |
1711 | D = 100, | |
1712 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1713 | position = hit.Parent.Torso.Position, | |
1714 | Parent = hit.Parent.Torso | |
1715 | }) | |
1716 | game:GetService("Debris"):AddItem(bp, 1) | |
1717 | elseif Type == "Slashnare" then | |
1718 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) | |
1719 | for i = 1, math.random(4, 5) do | |
1720 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1721 | end | |
1722 | local bp = Create("BodyPosition")({ | |
1723 | P = 2000, | |
1724 | D = 100, | |
1725 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1726 | position = hit.Parent.Torso.Position, | |
1727 | Parent = hit.Parent.Torso | |
1728 | }) | |
1729 | game:GetService("Debris"):AddItem(bp, 1) | |
1730 | elseif Type == "Spike" then | |
1731 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1732 | local bp = Create("BodyPosition")({ | |
1733 | P = 2000, | |
1734 | D = 100, | |
1735 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1736 | position = hit.Parent.Torso.Position, | |
1737 | Parent = hit.Parent.Torso | |
1738 | }) | |
1739 | game:GetService("Debris"):AddItem(bp, 1) | |
1740 | elseif Type == "Freeze" then | |
1741 | local BodPos = Create("BodyPosition")({ | |
1742 | P = 50000, | |
1743 | D = 1000, | |
1744 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1745 | position = hit.Parent.Torso.Position, | |
1746 | Parent = hit.Parent.Torso | |
1747 | }) | |
1748 | local BodGy = Create("BodyGyro")({ | |
1749 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1750 | P = 20000, | |
1751 | Parent = hit.Parent.Torso, | |
1752 | cframe = hit.Parent.Torso.CFrame | |
1753 | }) | |
1754 | hit.Parent.Torso.Anchored = true | |
1755 | coroutine.resume(coroutine.create(function(Part) | |
1756 | swait(1.5) | |
1757 | Part.Anchored = false | |
1758 | end), hit.Parent.Torso) | |
1759 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1760 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1761 | end | |
1762 | local debounce = Create("BoolValue")({ | |
1763 | Name = "DebounceHit", | |
1764 | Parent = hit.Parent, | |
1765 | Value = true | |
1766 | }) | |
1767 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1768 | c = Instance.new("ObjectValue") | |
1769 | c.Name = "creator" | |
1770 | c.Value = Player | |
1771 | c.Parent = h | |
1772 | game:GetService("Debris"):AddItem(c, 0.5) | |
1773 | end | |
1774 | end | |
1775 | function ShowDamage(Pos, Text, Time, Color) | |
1776 | local Rate = 0.03333333333333333 | |
1777 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1778 | local Text = Text or "" | |
1779 | local Time = Time or 2 | |
1780 | local Color = Color or Color3.new(1, 0, 1) | |
1781 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1782 | EffectPart.Anchored = true | |
1783 | local BillboardGui = Create("BillboardGui")({ | |
1784 | Size = UDim2.new(3, 0, 3, 0), | |
1785 | Adornee = EffectPart, | |
1786 | Parent = EffectPart | |
1787 | }) | |
1788 | local TextLabel = Create("TextLabel")({ | |
1789 | BackgroundTransparency = 1, | |
1790 | Size = UDim2.new(1, 0, 1, 0), | |
1791 | Text = Text, | |
1792 | TextColor3 = Color, | |
1793 | TextScaled = true, | |
1794 | Font = Enum.Font.ArialBold, | |
1795 | Parent = BillboardGui | |
1796 | }) | |
1797 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1798 | EffectPart.Parent = game:GetService("Workspace") | |
1799 | delay(0, function() | |
1800 | local Frames = Time / Rate | |
1801 | for Frame = 1, Frames do | |
1802 | wait(Rate) | |
1803 | local Percent = Frame / Frames | |
1804 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1805 | TextLabel.TextTransparency = Percent | |
1806 | end | |
1807 | if EffectPart and EffectPart.Parent then | |
1808 | EffectPart:Destroy() | |
1809 | end | |
1810 | end) | |
1811 | end | |
1812 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1813 | for _, c in pairs(workspace:children()) do | |
1814 | local hum = c:findFirstChildOfClass("Humanoid") | |
1815 | if hum ~= nil then | |
1816 | local head = c:findFirstChild("Head") | |
1817 | if head ~= nil then | |
1818 | local targ = head.Position - Part.Position | |
1819 | local mag = targ.magnitude | |
1820 | if magni >= mag and c.Name ~= Player.Name then | |
1821 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1822 | end | |
1823 | end | |
1824 | end | |
1825 | end | |
1826 | end | |
1827 | ||
1828 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1829 | for _, c in pairs(workspace:children()) do | |
1830 | local hum = c:findFirstChild("Humanoid") | |
1831 | if hum ~= nil then | |
1832 | local head = c:findFirstChild("Torso") | |
1833 | if head ~= nil then | |
1834 | local targ = head.Position - Part.Position | |
1835 | local mag = targ.magnitude | |
1836 | if magni >= mag and c.Name ~= Player.Name then | |
1837 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1838 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1839 | end | |
1840 | end | |
1841 | end | |
1842 | end | |
1843 | end | |
1844 | ||
1845 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1846 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1847 | end | |
1848 | ||
1849 | local origcolor = BrickColor.new("Pastel light blue") | |
1850 | ---- This section of explosions. | |
1851 | ||
1852 | ---- | |
1853 | ||
1854 | ||
1855 | function ring(type,pos,scale,value) | |
1856 | local type = type | |
1857 | local rng = Instance.new("Part", char) | |
1858 | rng.Anchored = true | |
1859 | rng.BrickColor = origcolor | |
1860 | rng.CanCollide = false | |
1861 | rng.FormFactor = 3 | |
1862 | rng.Name = "Ring" | |
1863 | rng.Size = Vector3.new(1, 1, 1) | |
1864 | rng.Transparency = 0 | |
1865 | rng.TopSurface = 0 | |
1866 | rng.BottomSurface = 0 | |
1867 | rng.CFrame = pos | |
1868 | local rngm = Instance.new("SpecialMesh", rng) | |
1869 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1870 | rngm.Scale = scale | |
1871 | local scaler2 = 1 | |
1872 | if type == "Add" then | |
1873 | scaler2 = 1*value | |
1874 | elseif type == "Divide" then | |
1875 | scaler2 = 1/value | |
1876 | end | |
1877 | coroutine.resume(coroutine.create(function() | |
1878 | for i = 0,10,0.1 do | |
1879 | swait() | |
1880 | if type == "Add" then | |
1881 | scaler2 = scaler2 - 0.01*value | |
1882 | elseif type == "Divide" then | |
1883 | scaler2 = scaler2 - 0.01/value | |
1884 | end | |
1885 | rng.Transparency = rng.Transparency + 0.01 | |
1886 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1887 | end | |
1888 | rng:Destroy() | |
1889 | end)) | |
1890 | end | |
1891 | ||
1892 | ||
1893 | function wave(type,pos,scale,value) | |
1894 | local type = type | |
1895 | local rng = Instance.new("Part", char) | |
1896 | rng.Anchored = true | |
1897 | rng.BrickColor = origcolor | |
1898 | rng.CanCollide = false | |
1899 | rng.FormFactor = 3 | |
1900 | rng.Name = "Ring" | |
1901 | rng.Size = Vector3.new(1, 1, 1) | |
1902 | rng.Transparency = 0 | |
1903 | rng.TopSurface = 0 | |
1904 | rng.BottomSurface = 0 | |
1905 | rng.CFrame = pos | |
1906 | local rngm = Instance.new("SpecialMesh", rng) | |
1907 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1908 | rngm.Scale = scale | |
1909 | local scaler2 = 1 | |
1910 | if type == "Add" then | |
1911 | scaler2 = 1*value | |
1912 | elseif type == "Divide" then | |
1913 | scaler2 = 1/value | |
1914 | end | |
1915 | coroutine.resume(coroutine.create(function() | |
1916 | for i = 0,10,0.1 do | |
1917 | swait() | |
1918 | if type == "Add" then | |
1919 | scaler2 = scaler2 - 0.01*value | |
1920 | elseif type == "Divide" then | |
1921 | scaler2 = scaler2 - 0.01/value | |
1922 | end | |
1923 | rng.Transparency = rng.Transparency + 0.01 | |
1924 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
1925 | end | |
1926 | rng:Destroy() | |
1927 | end)) | |
1928 | end | |
1929 | ||
1930 | function sphere(bonuspeed,type,pos,scale,value,color) | |
1931 | local type = type | |
1932 | local rng = Instance.new("Part", char) | |
1933 | rng.Anchored = true | |
1934 | if ModeOfGlitch ~= 9 then | |
1935 | rng.BrickColor = color | |
1936 | elseif ModeOfGlitch == 9 then | |
1937 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1938 | end | |
1939 | rng.CanCollide = false | |
1940 | rng.FormFactor = 3 | |
1941 | rng.Name = "Ring" | |
1942 | rng.Material = "Neon" | |
1943 | rng.Size = Vector3.new(1, 1, 1) | |
1944 | rng.Transparency = 0 | |
1945 | rng.TopSurface = 0 | |
1946 | rng.BottomSurface = 0 | |
1947 | rng.CFrame = pos | |
1948 | local rngm = Instance.new("SpecialMesh", rng) | |
1949 | rngm.MeshType = "Sphere" | |
1950 | rngm.Scale = scale | |
1951 | if rainbowmode == true then | |
1952 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1953 | end | |
1954 | if ModeOfGlitch == 9 then | |
1955 | coroutine.resume(coroutine.create(function() | |
1956 | while true do | |
1957 | swait() | |
1958 | if rng.Parent ~= nil then | |
1959 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
1960 | else | |
1961 | break | |
1962 | end | |
1963 | end | |
1964 | end)) | |
1965 | end | |
1966 | local scaler2 = 1 | |
1967 | if type == "Add" then | |
1968 | scaler2 = 1*value | |
1969 | elseif type == "Divide" then | |
1970 | scaler2 = 1/value | |
1971 | end | |
1972 | coroutine.resume(coroutine.create(function() | |
1973 | for i = 0,10/bonuspeed,0.1 do | |
1974 | swait() | |
1975 | if rainbowmode == true then | |
1976 | rng.Color = Color3.new(r/255,g/255,b/255) | |
1977 | end | |
1978 | if type == "Add" then | |
1979 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
1980 | elseif type == "Divide" then | |
1981 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
1982 | end | |
1983 | if chaosmode == true then | |
1984 | rng.BrickColor = BrickColor.random() | |
1985 | end | |
1986 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
1987 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
1988 | end | |
1989 | rng:Destroy() | |
1990 | end)) | |
1991 | end | |
1992 | ||
1993 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
1994 | local type = type | |
1995 | local rng = Instance.new("Part", char) | |
1996 | rng.Anchored = true | |
1997 | if ModeOfGlitch ~= 9 then | |
1998 | rng.BrickColor = color | |
1999 | elseif ModeOfGlitch == 9 then | |
2000 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2001 | end | |
2002 | rng.CanCollide = false | |
2003 | rng.FormFactor = 3 | |
2004 | rng.Name = "Ring" | |
2005 | rng.Material = "Neon" | |
2006 | rng.Size = Vector3.new(1, 1, 1) | |
2007 | rng.Transparency = 0 | |
2008 | rng.TopSurface = 0 | |
2009 | rng.BottomSurface = 0 | |
2010 | rng.CFrame = pos | |
2011 | local rngm = Instance.new("SpecialMesh", rng) | |
2012 | rngm.MeshType = "Sphere" | |
2013 | rngm.Scale = scale | |
2014 | local scaler2 = 1 | |
2015 | local scaler2b = 1 | |
2016 | local scaler2c = 1 | |
2017 | if type == "Add" then | |
2018 | scaler2 = 1*value | |
2019 | scaler2b = 1*value2 | |
2020 | scaler2c = 1*value3 | |
2021 | elseif type == "Divide" then | |
2022 | scaler2 = 1/value | |
2023 | scaler2b = 1/value2 | |
2024 | scaler2c = 1/value3 | |
2025 | end | |
2026 | if ModeOfGlitch == 9 then | |
2027 | coroutine.resume(coroutine.create(function() | |
2028 | while true do | |
2029 | swait() | |
2030 | if rng.Parent ~= nil then | |
2031 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2032 | else | |
2033 | break | |
2034 | end | |
2035 | end | |
2036 | end)) | |
2037 | end | |
2038 | coroutine.resume(coroutine.create(function() | |
2039 | for i = 0,10/bonuspeed,0.1 do | |
2040 | swait() | |
2041 | if type == "Add" then | |
2042 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2043 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
2044 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
2045 | elseif type == "Divide" then | |
2046 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2047 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
2048 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
2049 | end | |
2050 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2051 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
2052 | end | |
2053 | rng:Destroy() | |
2054 | end)) | |
2055 | end | |
2056 | ||
2057 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2058 | local type = type | |
2059 | local rng = Instance.new("Part", char) | |
2060 | rng.Anchored = true | |
2061 | rng.BrickColor = color | |
2062 | rng.CanCollide = false | |
2063 | rng.FormFactor = 3 | |
2064 | rng.Name = "Ring" | |
2065 | rng.Material = "Neon" | |
2066 | rng.Size = Vector3.new(1, 1, 1) | |
2067 | rng.Transparency = 0 | |
2068 | rng.TopSurface = 0 | |
2069 | rng.BottomSurface = 0 | |
2070 | rng.CFrame = pos | |
2071 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2072 | local rngm = Instance.new("SpecialMesh", rng) | |
2073 | rngm.MeshType = "Brick" | |
2074 | rngm.Scale = vt(x1,y1,z1) | |
2075 | if rainbowmode == true then | |
2076 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2077 | end | |
2078 | local scaler2 = 1 | |
2079 | local speeder = FastSpeed/10 | |
2080 | if type == "Add" then | |
2081 | scaler2 = 1*value | |
2082 | elseif type == "Divide" then | |
2083 | scaler2 = 1/value | |
2084 | end | |
2085 | coroutine.resume(coroutine.create(function() | |
2086 | for i = 0,10/bonuspeed,0.1 do | |
2087 | swait() | |
2088 | if rainbowmode == true then | |
2089 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2090 | end | |
2091 | if type == "Add" then | |
2092 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2093 | elseif type == "Divide" then | |
2094 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2095 | end | |
2096 | if chaosmode == true then | |
2097 | rng.BrickColor = BrickColor.random() | |
2098 | end | |
2099 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2100 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2101 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2102 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2103 | end | |
2104 | rng:Destroy() | |
2105 | end)) | |
2106 | end | |
2107 | ||
2108 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2109 | local type = type | |
2110 | local rng = Instance.new("Part", char) | |
2111 | rng.Anchored = true | |
2112 | rng.BrickColor = color | |
2113 | rng.CanCollide = false | |
2114 | rng.FormFactor = 3 | |
2115 | rng.Name = "Ring" | |
2116 | rng.Material = "Neon" | |
2117 | rng.Size = Vector3.new(1, 1, 1) | |
2118 | rng.Transparency = 0 | |
2119 | rng.TopSurface = 0 | |
2120 | rng.BottomSurface = 0 | |
2121 | rng.CFrame = pos | |
2122 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2123 | local rngm = Instance.new("SpecialMesh", rng) | |
2124 | rngm.MeshType = "Brick" | |
2125 | rngm.Scale = vt(x1,y1,z1) | |
2126 | if rainbowmode == true then | |
2127 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2128 | end | |
2129 | local scaler2 = 1 | |
2130 | local speeder = FastSpeed/10 | |
2131 | if type == "Add" then | |
2132 | scaler2 = 1*value | |
2133 | elseif type == "Divide" then | |
2134 | scaler2 = 1/value | |
2135 | end | |
2136 | coroutine.resume(coroutine.create(function() | |
2137 | for i = 0,10/bonuspeed,0.1 do | |
2138 | swait() | |
2139 | if rainbowmode == true then | |
2140 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2141 | end | |
2142 | if type == "Add" then | |
2143 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2144 | elseif type == "Divide" then | |
2145 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2146 | end | |
2147 | if chaosmode == true then | |
2148 | rng.BrickColor = BrickColor.random() | |
2149 | end | |
2150 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2151 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2152 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2153 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2154 | end | |
2155 | rng:Destroy() | |
2156 | end)) | |
2157 | end | |
2158 | ||
2159 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2160 | local type = type | |
2161 | local rng = Instance.new("Part", char) | |
2162 | rng.Anchored = true | |
2163 | rng.BrickColor = color | |
2164 | rng.CanCollide = false | |
2165 | rng.FormFactor = 3 | |
2166 | rng.Name = "Ring" | |
2167 | rng.Material = "Neon" | |
2168 | rng.Size = Vector3.new(1, 1, 1) | |
2169 | rng.Transparency = 0 | |
2170 | rng.TopSurface = 0 | |
2171 | rng.BottomSurface = 0 | |
2172 | rng.CFrame = pos | |
2173 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2174 | local rngm = Instance.new("SpecialMesh", rng) | |
2175 | rngm.MeshType = "Brick" | |
2176 | rngm.Scale = vt(x1,y1,z1) | |
2177 | if rainbowmode == true then | |
2178 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2179 | end | |
2180 | local scaler2 = 0 | |
2181 | local speeder = FastSpeed/10 | |
2182 | if type == "Add" then | |
2183 | scaler2 = 1*value | |
2184 | elseif type == "Divide" then | |
2185 | scaler2 = 1/value | |
2186 | end | |
2187 | coroutine.resume(coroutine.create(function() | |
2188 | for i = 0,10/bonuspeed,0.1 do | |
2189 | swait() | |
2190 | if rainbowmode == true then | |
2191 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2192 | end | |
2193 | if type == "Add" then | |
2194 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2195 | elseif type == "Divide" then | |
2196 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2197 | end | |
2198 | if chaosmode == true then | |
2199 | rng.BrickColor = BrickColor.random() | |
2200 | end | |
2201 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
2202 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2203 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2204 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2205 | end | |
2206 | rng:Destroy() | |
2207 | end)) | |
2208 | end | |
2209 | ||
2210 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2211 | local type = type | |
2212 | local rng = Instance.new("Part", char) | |
2213 | rng.Anchored = true | |
2214 | if ModeOfGlitch ~= 9 then | |
2215 | rng.BrickColor = color | |
2216 | elseif ModeOfGlitch == 9 then | |
2217 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2218 | end | |
2219 | rng.CanCollide = false | |
2220 | rng.FormFactor = 3 | |
2221 | rng.Name = "Ring" | |
2222 | rng.Material = "Neon" | |
2223 | rng.Size = Vector3.new(1, 1, 1) | |
2224 | rng.Transparency = 0 | |
2225 | rng.TopSurface = 0 | |
2226 | rng.BottomSurface = 0 | |
2227 | rng.CFrame = pos | |
2228 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2229 | local rngm = Instance.new("SpecialMesh", rng) | |
2230 | rngm.MeshType = "Sphere" | |
2231 | rngm.Scale = vt(x1,y1,z1) | |
2232 | if rainbowmode == true then | |
2233 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2234 | end | |
2235 | if ModeOfGlitch == 9 then | |
2236 | coroutine.resume(coroutine.create(function() | |
2237 | while true do | |
2238 | swait() | |
2239 | if rng.Parent ~= nil then | |
2240 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2241 | else | |
2242 | break | |
2243 | end | |
2244 | end | |
2245 | end)) | |
2246 | end | |
2247 | local scaler2 = 1 | |
2248 | local speeder = FastSpeed | |
2249 | if type == "Add" then | |
2250 | scaler2 = 1*value | |
2251 | elseif type == "Divide" then | |
2252 | scaler2 = 1/value | |
2253 | end | |
2254 | coroutine.resume(coroutine.create(function() | |
2255 | for i = 0,10/bonuspeed,0.1 do | |
2256 | swait() | |
2257 | if rainbowmode == true then | |
2258 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2259 | end | |
2260 | if type == "Add" then | |
2261 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2262 | elseif type == "Divide" then | |
2263 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2264 | end | |
2265 | if chaosmode == true then | |
2266 | rng.BrickColor = BrickColor.random() | |
2267 | end | |
2268 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2269 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2270 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2271 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2272 | end | |
2273 | rng:Destroy() | |
2274 | end)) | |
2275 | end | |
2276 | ||
2277 | ||
2278 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2279 | local type = type | |
2280 | local rng = Instance.new("Part", char) | |
2281 | rng.Anchored = true | |
2282 | if ModeOfGlitch ~= 9 then | |
2283 | rng.BrickColor = color | |
2284 | elseif ModeOfGlitch == 9 then | |
2285 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2286 | end | |
2287 | rng.CanCollide = false | |
2288 | rng.FormFactor = 3 | |
2289 | rng.Name = "Ring" | |
2290 | rng.Material = "Neon" | |
2291 | rng.Size = Vector3.new(1, 1, 1) | |
2292 | rng.Transparency = 1 | |
2293 | rng.TopSurface = 0 | |
2294 | rng.BottomSurface = 0 | |
2295 | rng.CFrame = pos | |
2296 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2297 | local rngm = Instance.new("SpecialMesh", rng) | |
2298 | rngm.MeshType = "Sphere" | |
2299 | rngm.Scale = vt(x1,y1,z1) | |
2300 | if rainbowmode == true then | |
2301 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2302 | end | |
2303 | if ModeOfGlitch == 9 then | |
2304 | coroutine.resume(coroutine.create(function() | |
2305 | while true do | |
2306 | swait() | |
2307 | if rng.Parent ~= nil then | |
2308 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2309 | else | |
2310 | break | |
2311 | end | |
2312 | end | |
2313 | end)) | |
2314 | end | |
2315 | local scaler2 = 1 | |
2316 | local speeder = FastSpeed | |
2317 | if type == "Add" then | |
2318 | scaler2 = 1*value | |
2319 | elseif type == "Divide" then | |
2320 | scaler2 = 1/value | |
2321 | end | |
2322 | coroutine.resume(coroutine.create(function() | |
2323 | for i = 0,10/bonuspeed,0.1 do | |
2324 | swait() | |
2325 | if rainbowmode == true then | |
2326 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2327 | end | |
2328 | if type == "Add" then | |
2329 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2330 | elseif type == "Divide" then | |
2331 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2332 | end | |
2333 | if chaosmode == true then | |
2334 | rng.BrickColor = BrickColor.random() | |
2335 | end | |
2336 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2337 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2338 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
2339 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2340 | end | |
2341 | rng:Destroy() | |
2342 | end)) | |
2343 | end | |
2344 | ||
2345 | function dmg(dude) | |
2346 | if dude.Name ~= Character then | |
2347 | local keptcolor = MAINRUINCOLOR | |
2348 | local bgf = Instance.new("BodyGyro",dude.Head) | |
2349 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2350 | --[[local val = Instance.new("BoolValue",dude) | |
2351 | val.Name = "IsHit"]]-- | |
2352 | local ds = coroutine.wrap(function() | |
2353 | dude:WaitForChild("Head"):BreakJoints() | |
2354 | for i, v in pairs(dude:GetChildren()) do | |
2355 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2356 | v.Name = "DEMINISHED" | |
2357 | end | |
2358 | end | |
2359 | wait(0.5) | |
2360 | targetted = nil | |
2361 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285) | |
2362 | coroutine.resume(coroutine.create(function() | |
2363 | for i, v in pairs(dude:GetChildren()) do | |
2364 | if v:IsA("Accessory") then | |
2365 | v:Destroy() | |
2366 | end | |
2367 | if v:IsA("Humanoid") then | |
2368 | v:Destroy() | |
2369 | end | |
2370 | if v:IsA("CharacterMesh") then | |
2371 | v:Destroy() | |
2372 | end | |
2373 | if v:IsA("Model") then | |
2374 | v:Destroy() | |
2375 | end | |
2376 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2377 | for x, o in pairs(v:GetChildren()) do | |
2378 | if o:IsA("Decal") then | |
2379 | o:Destroy() | |
2380 | end | |
2381 | end | |
2382 | coroutine.resume(coroutine.create(function() | |
2383 | v.Material = "Neon" | |
2384 | v.CanCollide = false | |
2385 | v.Anchored = false | |
2386 | local bld = Instance.new("ParticleEmitter",v) | |
2387 | bld.LightEmission = 0.75 | |
2388 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
2389 | bld.Color = ColorSequence.new(keptcolor.Color) | |
2390 | bld.Rate = 500 | |
2391 | bld.Lifetime = NumberRange.new(1) | |
2392 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2393 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2394 | bld.Speed = NumberRange.new(2,5) | |
2395 | bld.VelocitySpread = 50000 | |
2396 | bld.Rotation = NumberRange.new(-500,500) | |
2397 | bld.RotSpeed = NumberRange.new(-500,500) | |
2398 | local sbs = Instance.new("BodyPosition", v) | |
2399 | sbs.P = 3000 | |
2400 | sbs.D = 1000 | |
2401 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2402 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
2403 | v.Color = keptcolor.Color | |
2404 | coroutine.resume(coroutine.create(function() | |
2405 | for i = 0, 49 do | |
2406 | swait(1) | |
2407 | v:BreakJoints() | |
2408 | v.Transparency = v.Transparency + 0.02 | |
2409 | end | |
2410 | v:BreakJoints() | |
2411 | sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor) | |
2412 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75) | |
2413 | bld.Speed = NumberRange.new(10,25) | |
2414 | bld.Drag = 5 | |
2415 | bld.Acceleration = vt(0,2,0) | |
2416 | wait(0.5) | |
2417 | bld.Enabled = false | |
2418 | wait(8) | |
2419 | v:Destroy() | |
2420 | dude:Destroy() | |
2421 | end)) | |
2422 | end)) | |
2423 | end | |
2424 | end | |
2425 | end)) | |
2426 | end) | |
2427 | ds() | |
2428 | end | |
2429 | end | |
2430 | ||
2431 | ||
2432 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2433 | if SinglePlayer then | |
2434 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
2435 | end | |
2436 | local List = {} | |
2437 | for i, v in pairs(workspace:GetChildren()) do | |
2438 | if v:IsA("Model") then | |
2439 | if v:findFirstChild("Head") then | |
2440 | if v ~= Character then | |
2441 | if (v.Head.Position - Position).magnitude <= Distance then | |
2442 | table.insert(List, v) | |
2443 | end | |
2444 | end | |
2445 | end | |
2446 | end | |
2447 | end | |
2448 | return List | |
2449 | end | |
2450 | ||
2451 | function FaceMouse() | |
2452 | Cam = workspace.CurrentCamera | |
2453 | return { | |
2454 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
2455 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2456 | } | |
2457 | end | |
2458 | ||
2459 | function FaceMouse2() | |
2460 | Cam = workspace.CurrentCamera | |
2461 | return { | |
2462 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
2463 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2464 | } | |
2465 | end | |
2466 | ||
2467 | -- Functions are ready. | |
2468 | local storehumanoidWS = 16 | |
2469 | ||
2470 | function resetmode() | |
2471 | ModeOfGlitch = 1 | |
2472 | storehumanoidWS = 16 | |
2473 | hum.WalkSpeed = 16 | |
2474 | rainbowmode = false | |
2475 | chaosmode = false | |
2476 | RecolorTextAndRename("Mayhem",Color3.new(255,1,1),Color3.new(196,0,0),"Code") | |
2477 | newTheme("rbxassetid://614032233",0,1.01,1.25) | |
2478 | MAINRUINCOLOR = BrickColor.new("Really red") | |
2479 | for i, v in pairs(mw2:GetChildren()) do | |
2480 | if v:IsA("Part") then | |
2481 | v.BrickColor = MAINRUINCOLOR | |
2482 | v.Material = "Neon" | |
2483 | end | |
2484 | end | |
2485 | refec.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2486 | refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2487 | refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2488 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2489 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2490 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2491 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2492 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2493 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2494 | for i, v in pairs(mw1:GetChildren()) do | |
2495 | if v:IsA("Part") then | |
2496 | v.Transparency = 0 | |
2497 | v.BrickColor = MAINRUINCOLOR | |
2498 | v.Material = "Neon" | |
2499 | end | |
2500 | end | |
2501 | for i, v in pairs(m:GetChildren()) do | |
2502 | if v:IsA("Part") then | |
2503 | v.BrickColor = BrickColor.new("White") | |
2504 | v.Material = "Ice" | |
2505 | end | |
2506 | end | |
2507 | for i, v in pairs(m2:GetChildren()) do | |
2508 | if v:IsA("Part") then | |
2509 | v.BrickColor = BrickColor.new("White") | |
2510 | v.Material = "Ice" | |
2511 | end | |
2512 | end | |
2513 | for i, v in pairs(m3:GetChildren()) do | |
2514 | if v:IsA("Part") then | |
2515 | v.BrickColor = BrickColor.new("White") | |
2516 | v.Material = "Neon" | |
2517 | end | |
2518 | end | |
2519 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
2520 | if v:IsA("Part") then | |
2521 | v.Transparency = 1 | |
2522 | v.BrickColor = BrickColor.new("White") | |
2523 | v.Material = "Neon" | |
2524 | end | |
2525 | end | |
2526 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
2527 | if v:IsA("Part") then | |
2528 | v.Transparency = 1 | |
2529 | v.BrickColor = BrickColor.new("White") | |
2530 | v.Material = "Neon" | |
2531 | end | |
2532 | end | |
2533 | end | |
2534 | ||
2535 | function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo) | |
2536 | for i, v in pairs(mw2:GetChildren()) do | |
2537 | if v:IsA("Part") then | |
2538 | v.BrickColor = one | |
2539 | v.Material = "Neon" | |
2540 | end | |
2541 | end | |
2542 | refec.Color = ColorSequence.new(one.Color) | |
2543 | refec2.Color = ColorSequence.new(one.Color) | |
2544 | refec3.Color = ColorSequence.new(one.Color) | |
2545 | tr1.Color = ColorSequence.new(one.Color) | |
2546 | tr2.Color = ColorSequence.new(one.Color) | |
2547 | tr3.Color = ColorSequence.new(one.Color) | |
2548 | for i, v in pairs(mw1:GetChildren()) do | |
2549 | if v:IsA("Part") then | |
2550 | v.Transparency = 0 | |
2551 | v.BrickColor = two | |
2552 | v.Material = "Neon" | |
2553 | end | |
2554 | end | |
2555 | tl1.Color = ColorSequence.new(two.Color) | |
2556 | tl2.Color = ColorSequence.new(two.Color) | |
2557 | tl3.Color = ColorSequence.new(two.Color) | |
2558 | for i, v in pairs(m:GetChildren()) do | |
2559 | if v:IsA("Part") then | |
2560 | v.BrickColor = three | |
2561 | v.Material = "Ice" | |
2562 | end | |
2563 | end | |
2564 | for i, v in pairs(m2:GetChildren()) do | |
2565 | if v:IsA("Part") then | |
2566 | v.BrickColor = four | |
2567 | v.Material = "Ice" | |
2568 | end | |
2569 | end | |
2570 | for i, v in pairs(m3:GetChildren()) do | |
2571 | if v:IsA("Part") then | |
2572 | v.BrickColor = five | |
2573 | v.Material = "Neon" | |
2574 | end | |
2575 | end | |
2576 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
2577 | if v:IsA("Part") then | |
2578 | v.Transparency = exonetran | |
2579 | v.BrickColor = exone | |
2580 | v.Material = "Neon" | |
2581 | end | |
2582 | end | |
2583 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
2584 | if v:IsA("Part") then | |
2585 | v.Transparency = extwotran | |
2586 | v.BrickColor = extwo | |
2587 | v.Material = "Neon" | |
2588 | end | |
2589 | end | |
2590 | end | |
2591 | ||
2592 | function attackone() | |
2593 | attack = true | |
2594 | local keptcolor = MAINRUINCOLOR | |
2595 | for i = 0,1,0.1 do | |
2596 | swait() | |
2597 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3) | |
2598 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3) | |
2599 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3) | |
2600 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
2601 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
2602 | 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(2.5),math.rad(0),math.rad(0)),.3) | |
2603 | end | |
2604 | local distlook = 5 | |
2605 | coroutine.resume(coroutine.create(function() | |
2606 | for i = 0, 4 do | |
2607 | swait(2) | |
2608 | CameraEnshaking(2,3) | |
2609 | local hite = Instance.new("Part", char) | |
2610 | hite.Anchored = true | |
2611 | hite.CanCollide = false | |
2612 | hite.FormFactor = 3 | |
2613 | hite.Name = "Ring" | |
2614 | hite.Material = "Neon" | |
2615 | hite.Size = Vector3.new(1, 1, 1) | |
2616 | hite.Transparency = 1 | |
2617 | hite.TopSurface = 0 | |
2618 | hite.BottomSurface = 0 | |
2619 | hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook) | |
2620 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor) | |
2621 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor) | |
2622 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor) | |
2623 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor) | |
2624 | MagniDamage(hite, 9, 10,25, 0, "Normal") | |
2625 | for i = 0, 14 do | |
2626 | local rsiz = math.random(5,20) | |
2627 | sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2628 | end | |
2629 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1) | |
2630 | CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1) | |
2631 | game:GetService("Debris"):AddItem(hite, 5) | |
2632 | distlook = distlook + 10 | |
2633 | end | |
2634 | end)) | |
2635 | for i = 0,1,0.1 do | |
2636 | swait() | |
2637 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5) | |
2638 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5) | |
2639 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5) | |
2640 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5) | |
2641 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5) | |
2642 | 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(-2.5),math.rad(0),math.rad(-10)),.5) | |
2643 | end | |
2644 | attack = false | |
2645 | end | |
2646 | ||
2647 | function attacktwo() | |
2648 | attack = true | |
2649 | for i = 0,1,0.1 do | |
2650 | swait() | |
2651 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
2652 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2653 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
2654 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
2655 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3) | |
2656 | 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(-2.5),math.rad(0),math.rad(-10)),.3) | |
2657 | end | |
2658 | CameraEnshaking(3,4) | |
2659 | MagniDamage(root, 12, 15,30, 0, "Normal") | |
2660 | sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2661 | sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2662 | sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2663 | coroutine.resume(coroutine.create(function() | |
2664 | local eff = Instance.new("ParticleEmitter",root) | |
2665 | eff.Texture = "rbxassetid://363275192" | |
2666 | eff.LightEmission = 0.95 | |
2667 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2668 | eff.Rate = 10000 | |
2669 | eff.Lifetime = NumberRange.new(1) | |
2670 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2671 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2672 | eff.Speed = NumberRange.new(10,125) | |
2673 | eff.Drag = 5 | |
2674 | eff.Rotation = NumberRange.new(-500,500) | |
2675 | eff.VelocitySpread = 9000 | |
2676 | eff.RotSpeed = NumberRange.new(-50,50) | |
2677 | local eff2 = eff:Clone() | |
2678 | eff2.Parent = root | |
2679 | eff2.Texture = "rbxassetid://284205403" | |
2680 | eff2.Rate = 10000 | |
2681 | eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2682 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2683 | eff2.Drag = 5 | |
2684 | eff2.Speed = NumberRange.new(10,50) | |
2685 | eff2.Rotation = NumberRange.new(-500,500) | |
2686 | eff2.VelocitySpread = 9000 | |
2687 | wait(0.25) | |
2688 | eff2.Enabled = false | |
2689 | eff.Enabled = false | |
2690 | wait(3) | |
2691 | eff2:Destroy() | |
2692 | eff:Destroy() | |
2693 | end)) | |
2694 | for i = 0, 9 do | |
2695 | sphere2(7.5,"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.0025,1,-0.0025,MAINRUINCOLOR) | |
2696 | end | |
2697 | for i = 0, 24 do | |
2698 | local rsiz = math.random(5,20) | |
2699 | sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0) | |
2700 | end | |
2701 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1) | |
2702 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1) | |
2703 | CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1) | |
2704 | for i = 0,2,0.1 do | |
2705 | swait() | |
2706 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
2707 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2708 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
2709 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
2710 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3) | |
2711 | 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(-2.5),math.rad(0),math.rad(10)),.3) | |
2712 | end | |
2713 | attack = false | |
2714 | end | |
2715 | ||
2716 | function attackthree() | |
2717 | attack = true | |
2718 | local keptcolor = MAINRUINCOLOR | |
2719 | CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75) | |
2720 | for i = 0,1,0.1 do | |
2721 | swait() | |
2722 | sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR) | |
2723 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5) | |
2724 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
2725 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5) | |
2726 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5) | |
2727 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
2728 | 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(-2.5),math.rad(0),math.rad(0)),.5) | |
2729 | end | |
2730 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9) | |
2731 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9) | |
2732 | local angle = -25 | |
2733 | coroutine.resume(coroutine.create(function() | |
2734 | for i = 0, 2 do | |
2735 | local orb = Instance.new("Part", char) | |
2736 | orb.BrickColor = MAINRUINCOLOR | |
2737 | orb.CanCollide = false | |
2738 | orb.FormFactor = 3 | |
2739 | orb.Name = "Ring" | |
2740 | orb.Material = "Neon" | |
2741 | orb.Size = Vector3.new(1, 1, 1) | |
2742 | orb.Transparency = 0.5 | |
2743 | orb.TopSurface = 0 | |
2744 | orb.BottomSurface = 0 | |
2745 | local orbm = Instance.new("SpecialMesh", orb) | |
2746 | orbm.MeshType = "Sphere" | |
2747 | orbm.Name = "SizeMesh" | |
2748 | orbm.Scale = vt(3,3,3) | |
2749 | orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5 | |
2750 | local bv = Instance.new("BodyVelocity") | |
2751 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2752 | bv.velocity = orb.CFrame.lookVector*100 | |
2753 | bv.Parent = orb | |
2754 | game:GetService("Debris"):AddItem(orb, 10) | |
2755 | sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
2756 | sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
2757 | coroutine.resume(coroutine.create(function() | |
2758 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
2759 | for i = 0, 7 do | |
2760 | swait(2.5) | |
2761 | CameraEnshaking(1,2) | |
2762 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
2763 | CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5) | |
2764 | for i = 0, 4 do | |
2765 | local rsiz = math.random(5,10) | |
2766 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor) | |
2767 | sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2768 | end | |
2769 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
2770 | sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
2771 | end | |
2772 | orb.Transparency = 1 | |
2773 | orb.Anchored = false | |
2774 | wait(10) | |
2775 | orb:Destroy() | |
2776 | end)) | |
2777 | angle = angle + 25 | |
2778 | end | |
2779 | end)) | |
2780 | for i = 0,1,0.1 do | |
2781 | swait() | |
2782 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
2783 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2784 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3) | |
2785 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3) | |
2786 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3) | |
2787 | 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(-2.5),math.rad(0),math.rad(10)),.3) | |
2788 | end | |
2789 | attack = false | |
2790 | end | |
2791 | ||
2792 | ------------------------------------- Abilities --------------------------------------------------------- | |
2793 | function Fireball() | |
2794 | attack = true | |
2795 | hum.WalkSpeed = 0 | |
2796 | local keptcolor = MAINRUINCOLOR | |
2797 | for i = 0,2,0.1 do | |
2798 | swait() | |
2799 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
2800 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3) | |
2801 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3) | |
2802 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3) | |
2803 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.3) | |
2804 | 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(-1),math.rad(0),math.rad(0)),.3) | |
2805 | end | |
2806 | local orb = Instance.new("Part", char) | |
2807 | orb.BrickColor = keptcolor | |
2808 | orb.CanCollide = false | |
2809 | orb.FormFactor = 3 | |
2810 | orb.Name = "Ring" | |
2811 | orb.Material = "Neon" | |
2812 | orb.Size = Vector3.new(1, 1, 1) | |
2813 | orb.Transparency = 0 | |
2814 | orb.TopSurface = 0 | |
2815 | orb.BottomSurface = 0 | |
2816 | local orbm = Instance.new("SpecialMesh", orb) | |
2817 | orbm.MeshType = "Sphere" | |
2818 | orbm.Name = "SizeMesh" | |
2819 | orbm.Scale = vt(4,4,4) | |
2820 | orb.CFrame = root.CFrame + root.CFrame.lookVector*3 | |
2821 | local eff = Instance.new("ParticleEmitter",orb) | |
2822 | eff.Texture = "rbxassetid://296874871" | |
2823 | eff.LightEmission = 0.95 | |
2824 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
2825 | eff.Rate = 10000 | |
2826 | eff.Lifetime = NumberRange.new(1.5) | |
2827 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2828 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2829 | eff.Speed = NumberRange.new(25) | |
2830 | eff.Drag = 5 | |
2831 | eff.Rotation = NumberRange.new(-500,500) | |
2832 | eff.VelocitySpread = 9000 | |
2833 | eff.RotSpeed = NumberRange.new(-500,500) | |
2834 | local a = Instance.new("Part",workspace) | |
2835 | a.Name = "Direction" | |
2836 | a.Anchored = true | |
2837 | a.BrickColor = bc("Bright red") | |
2838 | a.Material = "Neon" | |
2839 | a.Transparency = 1 | |
2840 | a.CanCollide = false | |
2841 | local ray = Ray.new( | |
2842 | orb.CFrame.p, -- origin | |
2843 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
2844 | ) | |
2845 | local ignore = orb | |
2846 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2847 | a.BottomSurface = 10 | |
2848 | a.TopSurface = 10 | |
2849 | local distance = (orb.CFrame.p - position).magnitude | |
2850 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2851 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2852 | orb.CFrame = a.CFrame | |
2853 | a:Destroy() | |
2854 | CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9) | |
2855 | local bv = Instance.new("BodyVelocity") | |
2856 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2857 | bv.velocity = orb.CFrame.lookVector*75 | |
2858 | bv.Parent = orb | |
2859 | game:GetService("Debris"):AddItem(orb, 10) | |
2860 | local hitted = false | |
2861 | coroutine.resume(coroutine.create(function() | |
2862 | while true do | |
2863 | swait() | |
2864 | if orb.Parent ~= nil and hitted == false then | |
2865 | sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor) | |
2866 | elseif orb.Parent == nil and hitted == true then | |
2867 | break | |
2868 | end | |
2869 | end | |
2870 | end)) | |
2871 | local hit =orb.Touched:connect(function(hit) | |
2872 | if hitted == false and hit.Parent ~= char then | |
2873 | hitted = true | |
2874 | eff.Enabled = false | |
2875 | CameraEnshaking(4,4) | |
2876 | CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7) | |
2877 | CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4) | |
2878 | MagniDamage(orb, 25, 20,30, 0, "Normal") | |
2879 | sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2880 | sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2881 | sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2882 | for i = 0, 9 do | |
2883 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor) | |
2884 | end | |
2885 | for i = 0, 49 do | |
2886 | local rsiz = math.random(10,30) | |
2887 | sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2888 | end | |
2889 | local eff = Instance.new("ParticleEmitter",orb) | |
2890 | eff.Texture = "rbxassetid://296874871" | |
2891 | eff.LightEmission = 0.95 | |
2892 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
2893 | eff.Rate = 10000 | |
2894 | eff.Lifetime = NumberRange.new(1.5) | |
2895 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2896 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2897 | eff.Speed = NumberRange.new(150) | |
2898 | eff.Drag = 5 | |
2899 | eff.Rotation = NumberRange.new(-500,500) | |
2900 | eff.VelocitySpread = 9000 | |
2901 | eff.RotSpeed = NumberRange.new(-500,500) | |
2902 | coroutine.resume(coroutine.create(function() | |
2903 | wait(0.25) | |
2904 | eff.Enabled = false | |
2905 | end)) | |
2906 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
2907 | orb.Anchored = true | |
2908 | orb.Transparency = 1 | |
2909 | coroutine.resume(coroutine.create(function() | |
2910 | if hfr ~= nil then | |
2911 | orb.Size = vt(50,1,50) | |
2912 | orb.Orientation = vt(0,0,0) | |
2913 | orb.CFrame = orb.CFrame*CFrame.new(0,-5,0) | |
2914 | orbm:Destroy() | |
2915 | local firef = eff:Clone() | |
2916 | firef.Parent = orb | |
2917 | firef.VelocitySpread = 50 | |
2918 | firef.Rate = 500 | |
2919 | firef.Drag = 3 | |
2920 | firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2921 | firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2922 | firef.Speed = NumberRange.new(10,30) | |
2923 | for i = 0, 24 do | |
2924 | wait(0.25) | |
2925 | MagniDamage(orb, 25, 3,6, 0, "Normal") | |
2926 | end | |
2927 | firef.Enabled = false | |
2928 | end | |
2929 | end)) | |
2930 | wait(10) | |
2931 | orb:Destroy() | |
2932 | end | |
2933 | end) | |
2934 | for i = 0,1,0.1 do | |
2935 | swait() | |
2936 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5) | |
2937 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
2938 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5) | |
2939 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5) | |
2940 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
2941 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
2942 | end | |
2943 | hum.WalkSpeed = storehumanoidWS | |
2944 | attack = false | |
2945 | end | |
2946 | ||
2947 | function BeamOfDeath() | |
2948 | attack = true | |
2949 | hum.WalkSpeed = 0 | |
2950 | local keptcolor = MAINRUINCOLOR | |
2951 | local orb = Instance.new("Part", char) | |
2952 | orb.BrickColor = keptcolor | |
2953 | orb.CanCollide = false | |
2954 | orb.FormFactor = 3 | |
2955 | orb.Name = "Ring" | |
2956 | orb.Material = "Neon" | |
2957 | orb.Size = Vector3.new(1, 1, 1) | |
2958 | orb.Transparency = 1 | |
2959 | orb.TopSurface = 0 | |
2960 | orb.BottomSurface = 0 | |
2961 | local orbm = Instance.new("SpecialMesh", orb) | |
2962 | orbm.MeshType = "Sphere" | |
2963 | orbm.Name = "SizeMesh" | |
2964 | orbm.Scale = vt(22.5,10000,22.5) | |
2965 | orb.CFrame = mouse.Hit | |
2966 | orb.Anchored = true | |
2967 | orb.Orientation = vt(0,0,0) | |
2968 | orb.CFrame = orb.CFrame*CFrame.new(0,1,0) | |
2969 | CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1) | |
2970 | coroutine.resume(coroutine.create(function() | |
2971 | coroutine.resume(coroutine.create(function() | |
2972 | for i = 0, 399 do | |
2973 | swait() | |
2974 | orbm.Scale = orbm.Scale - vt(0.05,0,0.05) | |
2975 | orb.Transparency = orb.Transparency - 0.0025 | |
2976 | end | |
2977 | end)) | |
2978 | wait(9) | |
2979 | coroutine.resume(coroutine.create(function() | |
2980 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
2981 | if hfr ~= nil then | |
2982 | for i = 0, 49 do | |
2983 | local deb = Instance.new("Part", char) | |
2984 | deb.Anchored = true | |
2985 | deb.CanCollide = false | |
2986 | deb.FormFactor = 3 | |
2987 | deb.Name = "Ring" | |
2988 | deb.Material = hitfloor.Material | |
2989 | deb.Color = hitfloor.Color | |
2990 | deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55)) | |
2991 | deb.Transparency = 0 | |
2992 | deb.TopSurface = 0 | |
2993 | deb.BottomSurface = 0 | |
2994 | deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2995 | local deb2 = Instance.new("Part", char) | |
2996 | deb2.CanCollide = false | |
2997 | deb2.FormFactor = 3 | |
2998 | deb2.Name = "Ring" | |
2999 | deb2.Material = hitfloor.Material | |
3000 | deb2.Color = hitfloor.Color | |
3001 | deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38)) | |
3002 | deb2.Transparency = 0 | |
3003 | deb2.TopSurface = 0 | |
3004 | deb2.BottomSurface = 0 | |
3005 | deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150)) | |
3006 | deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3007 | local eff = Instance.new("ParticleEmitter",deb) | |
3008 | eff.Texture = "rbxassetid://363275192" | |
3009 | eff.LightEmission = 0.95 | |
3010 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3011 | eff.Rate = 100 | |
3012 | eff.Lifetime = NumberRange.new(1) | |
3013 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)}) | |
3014 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3015 | eff.Speed = NumberRange.new(0,5) | |
3016 | eff.Rotation = NumberRange.new(-500,500) | |
3017 | eff.VelocitySpread = 9000 | |
3018 | eff.RotSpeed = NumberRange.new(-10,10) | |
3019 | local at1 = Instance.new('Attachment',deb2) | |
3020 | at1.Position = vt(0,15,0) | |
3021 | local at2 = Instance.new('Attachment',deb2) | |
3022 | at2.Position = vt(0,-15,0) | |
3023 | local tl = Instance.new('Trail',deb2) | |
3024 | tl.Attachment0 = at1 | |
3025 | tl.Attachment1 = at2 | |
3026 | tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3027 | tl.Color = ColorSequence.new(BrickColor.new('White').Color) | |
3028 | tl.Lifetime = 1 | |
3029 | game:GetService("Debris"):AddItem(deb,30) | |
3030 | game:GetService("Debris"):AddItem(deb2,30) | |
3031 | coroutine.resume(coroutine.create(function() | |
3032 | wait(15) | |
3033 | eff.Enabled = false | |
3034 | for i = 0, 49 do | |
3035 | swait() | |
3036 | deb.Transparency = deb.Transparency + 0.02 | |
3037 | end | |
3038 | wait(1) | |
3039 | deb:Destroy() | |
3040 | end)) | |
3041 | end | |
3042 | end | |
3043 | end)) | |
3044 | for i = 0, 199 do | |
3045 | swait(1.5) | |
3046 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do | |
3047 | if v:FindFirstChild('Head') then | |
3048 | dmg(v) | |
3049 | end | |
3050 | end | |
3051 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor) | |
3052 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor) | |
3053 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor) | |
3054 | sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor) | |
3055 | end | |
3056 | orb:Destroy() | |
3057 | end)) | |
3058 | hum.WalkSpeed = storehumanoidWS | |
3059 | attack = false | |
3060 | end | |
3061 | ||
3062 | ||
3063 | function Beams() | |
3064 | attack = true | |
3065 | hum.WalkSpeed = 0 | |
3066 | local keptcolor = MAINRUINCOLOR | |
3067 | coroutine.resume(coroutine.create(function() | |
3068 | for i = 0, 24 do | |
3069 | swait(5) | |
3070 | local orb = Instance.new("Part", char) | |
3071 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1) | |
3072 | orb.BrickColor = keptcolor | |
3073 | orb.CanCollide = false | |
3074 | orb.FormFactor = 3 | |
3075 | orb.Name = "Ring" | |
3076 | orb.Material = "Neon" | |
3077 | orb.Size = Vector3.new(1, 1, 1) | |
3078 | orb.Transparency = 0 | |
3079 | orb.TopSurface = 0 | |
3080 | orb.BottomSurface = 0 | |
3081 | orb.Anchored = true | |
3082 | local orbm = Instance.new("SpecialMesh", orb) | |
3083 | orbm.MeshType = "Sphere" | |
3084 | orbm.Name = "SizeMesh" | |
3085 | orbm.Scale = vt(1.25,1.25,1.25) | |
3086 | orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6)) | |
3087 | sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3088 | coroutine.resume(coroutine.create(function() | |
3089 | wait(0.5) | |
3090 | CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1) | |
3091 | sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3092 | sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3093 | orb.Transparency = 1 | |
3094 | local a = Instance.new("Part",char) | |
3095 | a.Name = "Direction" | |
3096 | a.Anchored = true | |
3097 | a.BrickColor = keptcolor | |
3098 | a.Material = "Neon" | |
3099 | a.Transparency = 0.25 | |
3100 | a.Shape = "Cylinder" | |
3101 | local ht = Instance.new("Part",char) | |
3102 | ht.Name = "DirectionHit" | |
3103 | ht.Anchored = true | |
3104 | ht.BrickColor = keptcolor | |
3105 | ht.CanCollide = false | |
3106 | ht.Transparency = 1 | |
3107 | ht.Size = vt(0.1,0.1,0.1) | |
3108 | CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2) | |
3109 | a.CanCollide = false | |
3110 | local ray = Ray.new( | |
3111 | orb.CFrame.p, -- origin | |
3112 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3113 | ) | |
3114 | local ignore = char | |
3115 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3116 | a.BottomSurface = 10 | |
3117 | a.TopSurface = 10 | |
3118 | local distance = (orb.CFrame.p - position).magnitude | |
3119 | a.Size = Vector3.new(distance,1,1) | |
3120 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
3121 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3122 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
3123 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
3124 | MagniDamage(ht, 9, 10,15, 0, "Normal") | |
3125 | coroutine.resume(coroutine.create(function() | |
3126 | local eff = Instance.new("ParticleEmitter",ht) | |
3127 | eff.Texture = "rbxassetid://284205403" | |
3128 | eff.LightEmission = 0.95 | |
3129 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3130 | eff.Rate = 500 | |
3131 | eff.Lifetime = NumberRange.new(0.5) | |
3132 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
3133 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3134 | eff.Speed = NumberRange.new(10,50) | |
3135 | eff.Drag = 5 | |
3136 | eff.Rotation = NumberRange.new(-500,500) | |
3137 | eff.VelocitySpread = 9000 | |
3138 | eff.RotSpeed = NumberRange.new(-500,500) | |
3139 | wait(0.25) | |
3140 | eff.Enabled = false | |
3141 | end)) | |
3142 | for i = 0, 4 do | |
3143 | sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor) | |
3144 | sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor) | |
3145 | local rsiz = math.random(10,30) | |
3146 | sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3147 | end | |
3148 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
3149 | local msh = Instance.new("SpecialMesh",a) | |
3150 | msh.MeshType = "Cylinder" | |
3151 | msh.Scale = vt(1,1,1) | |
3152 | for i = 0, 49 do | |
3153 | swait() | |
3154 | msh.Scale = msh.Scale + vt(0,0.01,0.01) | |
3155 | a.Transparency = a.Transparency + 0.02 | |
3156 | end | |
3157 | orb:Destroy() | |
3158 | a:Destroy() | |
3159 | ht:Destroy() | |
3160 | end)) | |
3161 | game:GetService("Debris"):AddItem(orb, 10) | |
3162 | end | |
3163 | end)) | |
3164 | for i = 0,12,0.1 do | |
3165 | swait() | |
3166 | sphere2(7,"Add",sorb.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.01,0.075,-0.01,keptcolor) | |
3167 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
3168 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3) | |
3169 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3) | |
3170 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3) | |
3171 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3) | |
3172 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3) | |
3173 | end | |
3174 | hum.WalkSpeed = storehumanoidWS | |
3175 | attack = false | |
3176 | end | |
3177 | ||
3178 | function smiter() | |
3179 | local targetted = nil | |
3180 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3181 | targetted = mouse.Target.Parent | |
3182 | end | |
3183 | if targetted ~= nil then | |
3184 | RootPart.CFrame = FaceMouse()[1] | |
3185 | attack = true | |
3186 | hum.WalkSpeed = 0 | |
3187 | coroutine.resume(coroutine.create(function() | |
3188 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1) | |
3189 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR) | |
3190 | local vel = Instance.new("BodyPosition", targetted.Head) | |
3191 | vel.P = 12500 | |
3192 | vel.D = 1000 | |
3193 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
3194 | vel.position = targetted.Head.CFrame.p | |
3195 | end)) | |
3196 | CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2) | |
3197 | for i = 0,4,0.1 do | |
3198 | swait() | |
3199 | sphere2(4,"Add",sorb2.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.01,0.125,-0.01,MAINRUINCOLOR) | |
3200 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3201 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3202 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3203 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3204 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2) | |
3205 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2) | |
3206 | end | |
3207 | coroutine.resume(coroutine.create(function() | |
3208 | CameraEnshaking(6,5) | |
3209 | MagniDamage(targetted.Head, 18, 18,30, 0, "Normal") | |
3210 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8) | |
3211 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8) | |
3212 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8) | |
3213 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3214 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3215 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3216 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3217 | coroutine.resume(coroutine.create(function() | |
3218 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3219 | eff.Texture = "rbxassetid://363275192" | |
3220 | eff.LightEmission = 0.95 | |
3221 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3222 | eff.Rate = 10000 | |
3223 | eff.Lifetime = NumberRange.new(1.5) | |
3224 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3225 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3226 | eff.Speed = NumberRange.new(25,150) | |
3227 | eff.Drag = 5 | |
3228 | eff.Rotation = NumberRange.new(-500,500) | |
3229 | eff.VelocitySpread = 9000 | |
3230 | eff.RotSpeed = NumberRange.new(-50,50) | |
3231 | local eff2 = eff:Clone() | |
3232 | eff2.Parent = targetted.Head | |
3233 | eff2.Texture = "rbxassetid://284205403" | |
3234 | eff2.Rate = 10000 | |
3235 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3236 | eff2.Drag = 5 | |
3237 | eff2.Rotation = NumberRange.new(-500,500) | |
3238 | eff2.VelocitySpread = 9000 | |
3239 | wait(0.5) | |
3240 | eff2.Enabled = false | |
3241 | eff.Enabled = false | |
3242 | end)) | |
3243 | for i = 0, 9 do | |
3244 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR) | |
3245 | end | |
3246 | for i = 0, 49 do | |
3247 | local rsiz = math.random(10,50) | |
3248 | sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3249 | end | |
3250 | game:GetService("Debris"):AddItem(vel,1) | |
3251 | dmg(targetted) | |
3252 | end)) | |
3253 | for i = 0,1,0.1 do | |
3254 | swait() | |
3255 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5) | |
3256 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5) | |
3257 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5) | |
3258 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5) | |
3259 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
3260 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5) | |
3261 | end | |
3262 | attack = false | |
3263 | hum.WalkSpeed = storehumanoidWS | |
3264 | end | |
3265 | end | |
3266 | ||
3267 | function supsmiter() | |
3268 | local targetted = nil | |
3269 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3270 | targetted = mouse.Target.Parent | |
3271 | end | |
3272 | if targetted ~= nil then | |
3273 | RootPart.CFrame = FaceMouse()[1] | |
3274 | attack = true | |
3275 | hum.WalkSpeed = 0 | |
3276 | coroutine.resume(coroutine.create(function() | |
3277 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1) | |
3278 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR) | |
3279 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR) | |
3280 | local vel = Instance.new("BodyPosition", targetted.Head) | |
3281 | vel.P = 12500 | |
3282 | vel.D = 1000 | |
3283 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
3284 | vel.position = targetted.Head.CFrame.p | |
3285 | end)) | |
3286 | CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25) | |
3287 | for i = 0,14,0.1 do | |
3288 | swait() | |
3289 | rsiz = math.random(5,15) | |
3290 | sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15) | |
3291 | sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR) | |
3292 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3293 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3294 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3295 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3296 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3297 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3298 | end | |
3299 | coroutine.resume(coroutine.create(function() | |
3300 | CameraEnshaking(6,5) | |
3301 | MagniDamage(targetted.Head, 18, 18,30, 0, "Normal") | |
3302 | MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal") | |
3303 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8) | |
3304 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8) | |
3305 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8) | |
3306 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3307 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3308 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3309 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3310 | coroutine.resume(coroutine.create(function() | |
3311 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3312 | eff.Texture = "rbxassetid://363275192" | |
3313 | eff.LightEmission = 0.95 | |
3314 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3315 | eff.Rate = 10000 | |
3316 | eff.Lifetime = NumberRange.new(1.5) | |
3317 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3318 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3319 | eff.Speed = NumberRange.new(25,150) | |
3320 | eff.Drag = 5 | |
3321 | eff.Rotation = NumberRange.new(-500,500) | |
3322 | eff.VelocitySpread = 9000 | |
3323 | eff.RotSpeed = NumberRange.new(-50,50) | |
3324 | local eff2 = eff:Clone() | |
3325 | eff2.Parent = targetted.Head | |
3326 | eff2.Texture = "rbxassetid://284205403" | |
3327 | eff2.Rate = 10000 | |
3328 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3329 | eff2.Drag = 5 | |
3330 | eff2.Rotation = NumberRange.new(-500,500) | |
3331 | eff2.VelocitySpread = 9000 | |
3332 | wait(0.5) | |
3333 | eff2.Enabled = false | |
3334 | eff.Enabled = false | |
3335 | end)) | |
3336 | for i = 0, 9 do | |
3337 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR) | |
3338 | end | |
3339 | for i = 0, 49 do | |
3340 | local rsiz = math.random(10,50) | |
3341 | sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3342 | end | |
3343 | wait(0.75) | |
3344 | CameraEnshaking(6,6) | |
3345 | MagniDamage(targetted.Head, 20, 25,40, 0, "Normal") | |
3346 | MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal") | |
3347 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7) | |
3348 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7) | |
3349 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7) | |
3350 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR) | |
3351 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR) | |
3352 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR) | |
3353 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR) | |
3354 | coroutine.resume(coroutine.create(function() | |
3355 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3356 | eff.Texture = "rbxassetid://363275192" | |
3357 | eff.LightEmission = 0.95 | |
3358 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3359 | eff.Rate = 10000 | |
3360 | eff.Lifetime = NumberRange.new(1.5) | |
3361 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3362 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3363 | eff.Speed = NumberRange.new(25,250) | |
3364 | eff.Drag = 5 | |
3365 | eff.Rotation = NumberRange.new(-500,500) | |
3366 | eff.VelocitySpread = 9000 | |
3367 | eff.RotSpeed = NumberRange.new(-50,50) | |
3368 | local eff2 = eff:Clone() | |
3369 | eff2.Parent = targetted.Head | |
3370 | eff2.Texture = "rbxassetid://284205403" | |
3371 | eff2.Rate = 10000 | |
3372 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3373 | eff2.Drag = 5 | |
3374 | eff2.Rotation = NumberRange.new(-500,500) | |
3375 | eff2.VelocitySpread = 9000 | |
3376 | wait(0.5) | |
3377 | eff2.Enabled = false | |
3378 | eff.Enabled = false | |
3379 | end)) | |
3380 | for i = 0, 9 do | |
3381 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR) | |
3382 | end | |
3383 | for i = 0, 49 do | |
3384 | local rsiz = math.random(15,55) | |
3385 | sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3386 | end | |
3387 | wait(0.75) | |
3388 | CameraEnshaking(6,7) | |
3389 | MagniDamage(targetted.Head, 23, 40,80, 0, "Normal") | |
3390 | MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal") | |
3391 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6) | |
3392 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6) | |
3393 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6) | |
3394 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR) | |
3395 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR) | |
3396 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
3397 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
3398 | coroutine.resume(coroutine.create(function() | |
3399 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3400 | eff.Texture = "rbxassetid://363275192" | |
3401 | eff.LightEmission = 0.95 | |
3402 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3403 | eff.Rate = 10000 | |
3404 | eff.Lifetime = NumberRange.new(1.5) | |
3405 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3406 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3407 | eff.Speed = NumberRange.new(50,450) | |
3408 | eff.Drag = 5 | |
3409 | eff.Rotation = NumberRange.new(-500,500) | |
3410 | eff.VelocitySpread = 9000 | |
3411 | eff.RotSpeed = NumberRange.new(-50,50) | |
3412 | local eff2 = eff:Clone() | |
3413 | eff2.Parent = targetted.Head | |
3414 | eff2.Texture = "rbxassetid://284205403" | |
3415 | eff2.Rate = 10000 | |
3416 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3417 | eff2.Drag = 5 | |
3418 | eff2.Rotation = NumberRange.new(-500,500) | |
3419 | eff2.VelocitySpread = 9000 | |
3420 | wait(0.5) | |
3421 | eff2.Enabled = false | |
3422 | eff.Enabled = false | |
3423 | end)) | |
3424 | for i = 0, 9 do | |
3425 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR) | |
3426 | end | |
3427 | for i = 0, 49 do | |
3428 | local rsiz = math.random(20,60) | |
3429 | sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3430 | end | |
3431 | dmg(targetted) | |
3432 | game:GetService("Debris"):AddItem(vel,1) | |
3433 | end)) | |
3434 | for i = 0,7,0.1 do | |
3435 | swait() | |
3436 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5) | |
3437 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5) | |
3438 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5) | |
3439 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5) | |
3440 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5) | |
3441 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5) | |
3442 | end | |
3443 | attack = false | |
3444 | hum.WalkSpeed = storehumanoidWS | |
3445 | end | |
3446 | end | |
3447 | ||
3448 | function BinaryBLINK() | |
3449 | for i = 0, 9 do | |
3450 | sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) | |
3451 | end | |
3452 | sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3453 | coroutine.resume(coroutine.create(function() | |
3454 | local eff = Instance.new("ParticleEmitter",root) | |
3455 | eff.Texture = "rbxassetid://1175838406" | |
3456 | eff.LightEmission = 0.95 | |
3457 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3458 | eff.Rate = 10000 | |
3459 | eff.Lifetime = NumberRange.new(1) | |
3460 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3461 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3462 | eff.Speed = NumberRange.new(30,160) | |
3463 | eff.Drag = 5 | |
3464 | eff.Rotation = NumberRange.new(-500,500) | |
3465 | eff.VelocitySpread = 100000 | |
3466 | wait(0.25) | |
3467 | eff.Enabled = false | |
3468 | wait(4) | |
3469 | eff:Destroy() | |
3470 | end)) | |
3471 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3472 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3473 | CameraEnshaking(2,10) | |
3474 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do | |
3475 | if v:FindFirstChild('Head') then | |
3476 | dmg(v) | |
3477 | end | |
3478 | end | |
3479 | for i = 0, 9 do | |
3480 | sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) | |
3481 | end | |
3482 | sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3483 | end | |
3484 | ||
3485 | function BinaryE() | |
3486 | local posit = -2 | |
3487 | attack = true | |
3488 | hum.WalkSpeed = 5 | |
3489 | CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1) | |
3490 | for i = 0,2,0.1 do | |
3491 | swait() | |
3492 | sphere2(7,"Add",sorb2.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.01,0.075,-0.01,MAINRUINCOLOR) | |
3493 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5) | |
3494 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5) | |
3495 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
3496 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5) | |
3497 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5) | |
3498 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
3499 | end | |
3500 | for i = 0, 2 do | |
3501 | CameraEnshaking(1,2) | |
3502 | local hite = Instance.new("Part", char) | |
3503 | hite.Anchored = true | |
3504 | hite.CanCollide = false | |
3505 | hite.FormFactor = 3 | |
3506 | hite.Name = "Ring" | |
3507 | hite.Material = "Neon" | |
3508 | hite.Size = Vector3.new(1, 1, 1) | |
3509 | hite.Transparency = 1 | |
3510 | hite.TopSurface = 0 | |
3511 | hite.BottomSurface = 0 | |
3512 | hite.CFrame = root.CFrame*CFrame.new(0,posit,-5) | |
3513 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9) | |
3514 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8) | |
3515 | coroutine.resume(coroutine.create(function() | |
3516 | local eff = Instance.new("ParticleEmitter",hite) | |
3517 | eff.Texture = "rbxassetid://1175838406" | |
3518 | eff.LightEmission = 0.95 | |
3519 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3520 | eff.Rate = 1000 | |
3521 | eff.Lifetime = NumberRange.new(1) | |
3522 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3523 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3524 | eff.Speed = NumberRange.new(10,50) | |
3525 | eff.Drag = 5 | |
3526 | eff.Rotation = NumberRange.new(-500,500) | |
3527 | eff.VelocitySpread = 100000 | |
3528 | wait(0.25) | |
3529 | eff.Enabled = false | |
3530 | end)) | |
3531 | coroutine.resume(coroutine.create(function() | |
3532 | for i = 0, 1 do | |
3533 | swait() | |
3534 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3535 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3536 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3537 | end | |
3538 | end)) | |
3539 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR) | |
3540 | MagniDamage(hite, 3, 30,40, 0, "Normal") | |
3541 | game:GetService("Debris"):AddItem(hite, 5) | |
3542 | posit = posit + 2 | |
3543 | end | |
3544 | for i = 0,1,0.1 do | |
3545 | swait() | |
3546 | sphere2(7,"Add",sorb2.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.01,0.075,-0.01,MAINRUINCOLOR) | |
3547 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5) | |
3548 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5) | |
3549 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
3550 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5) | |
3551 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5) | |
3552 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
3553 | end | |
3554 | for i = 0,1,0.1 do | |
3555 | swait() | |
3556 | sphere2(7,"Add",sorb2.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.01,0.075,-0.01,MAINRUINCOLOR) | |
3557 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5) | |
3558 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5) | |
3559 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5) | |
3560 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5) | |
3561 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5) | |
3562 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5) | |
3563 | end | |
3564 | posit = -6 | |
3565 | for i = 0, 6 do | |
3566 | CameraEnshaking(1,3) | |
3567 | local hite = Instance.new("Part", char) | |
3568 | hite.Anchored = true | |
3569 | hite.CanCollide = false | |
3570 | hite.FormFactor = 3 | |
3571 | hite.Name = "Ring" | |
3572 | hite.Material = "Neon" | |
3573 | hite.Size = Vector3.new(1, 1, 1) | |
3574 | hite.Transparency = 1 | |
3575 | hite.TopSurface = 0 | |
3576 | hite.BottomSurface = 0 | |
3577 | hite.CFrame = root.CFrame*CFrame.new(posit,0,-5) | |
3578 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2) | |
3579 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1) | |
3580 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR) | |
3581 | coroutine.resume(coroutine.create(function() | |
3582 | local eff = Instance.new("ParticleEmitter",hite) | |
3583 | eff.Texture = "rbxassetid://1175838406" | |
3584 | eff.LightEmission = 0.95 | |
3585 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3586 | eff.Rate = 1000 | |
3587 | eff.Lifetime = NumberRange.new(1) | |
3588 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3589 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3590 | eff.Speed = NumberRange.new(20,70) | |
3591 | eff.Drag = 5 | |
3592 | eff.Rotation = NumberRange.new(-500,500) | |
3593 | eff.VelocitySpread = 100000 | |
3594 | wait(0.25) | |
3595 | eff.Enabled = false | |
3596 | end)) | |
3597 | coroutine.resume(coroutine.create(function() | |
3598 | for i = 0, 2 do | |
3599 | swait() | |
3600 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3601 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3602 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3603 | end | |
3604 | end)) | |
3605 | MagniDamage(hite, 5, 40,70, 0, "Normal") | |
3606 | game:GetService("Debris"):AddItem(hite, 5) | |
3607 | posit = posit + 2 | |
3608 | end | |
3609 | for i = 0,1,0.1 do | |
3610 | swait() | |
3611 | sphere2(7,"Add",sorb2.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.01,0.075,-0.01,MAINRUINCOLOR) | |
3612 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5) | |
3613 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
3614 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5) | |
3615 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5) | |
3616 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5) | |
3617 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5) | |
3618 | end | |
3619 | hum.WalkSpeed = storehumanoidWS | |
3620 | attack = false | |
3621 | end | |
3622 | ||
3623 | function AZUREFINALE() | |
3624 | attack = true | |
3625 | duringend = true | |
3626 | hum.WalkSpeed = 0 | |
3627 | CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75) | |
3628 | CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05) | |
3629 | local hite = Instance.new("Part", char) | |
3630 | hite.Anchored = true | |
3631 | hite.CanCollide = false | |
3632 | hite.FormFactor = 3 | |
3633 | hite.Name = "Ring" | |
3634 | hite.Material = "Neon" | |
3635 | hite.Size = Vector3.new(1, 1, 1) | |
3636 | hite.Transparency = 0 | |
3637 | hite.TopSurface = 0 | |
3638 | hite.BottomSurface = 0 | |
3639 | hite.BrickColor = MAINRUINCOLOR | |
3640 | local orbm = Instance.new("SpecialMesh", hite) | |
3641 | orbm.MeshType = "Sphere" | |
3642 | orbm.Name = "SizeMesh" | |
3643 | orbm.Scale = vt(0,0,0) | |
3644 | hite.CFrame = root.CFrame*CFrame.new(0,200,0) | |
3645 | for i = 0,70,0.1 do | |
3646 | swait() | |
3647 | orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5) | |
3648 | rsiz = math.random(10,45) | |
3649 | kan.Volume = kan.Volume + 0.01 | |
3650 | kan.Pitch = kan.Pitch - 0.00135 | |
3651 | sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300) | |
3652 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR) | |
3653 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3654 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3655 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3656 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3657 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3658 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3659 | end | |
3660 | kan.Pitch = 0.1 | |
3661 | hite.Transparency = 1 | |
3662 | for i = 0,2 do | |
3663 | CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9) | |
3664 | end | |
3665 | CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75) | |
3666 | sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR) | |
3667 | sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR) | |
3668 | sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR) | |
3669 | coroutine.resume(coroutine.create(function() | |
3670 | local eff = Instance.new("ParticleEmitter",hite) | |
3671 | eff.Texture = "rbxassetid://284205403" | |
3672 | eff.LightEmission = 0.95 | |
3673 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3674 | eff.Rate = 10000 | |
3675 | eff.Lifetime = NumberRange.new(5) | |
3676 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3677 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3678 | eff.Speed = NumberRange.new(600,1250) | |
3679 | eff.Drag = 5 | |
3680 | eff.Rotation = NumberRange.new(-500,500) | |
3681 | eff.VelocitySpread = 9000 | |
3682 | eff.RotSpeed = NumberRange.new(-500,500) | |
3683 | wait(1) | |
3684 | eff.Enabled = false | |
3685 | end)) | |
3686 | for i = 0,5,0.1 do | |
3687 | swait() | |
3688 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3689 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3690 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3691 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3692 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3693 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3694 | end | |
3695 | local adsc = 0 | |
3696 | local radiatezone = 0 | |
3697 | for i = 0,20,0.1 do | |
3698 | swait() | |
3699 | adsc = adsc + 0.025 | |
3700 | radiatezone = radiatezone + 1.25 | |
3701 | sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR) | |
3702 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3703 | if v:FindFirstChild('Head') then | |
3704 | dmg(v) | |
3705 | end | |
3706 | end | |
3707 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3708 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3709 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3710 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3711 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3712 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3713 | end | |
3714 | for i = 0,2 do | |
3715 | CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9) | |
3716 | end | |
3717 | for i = 0,40,0.1 do | |
3718 | swait() | |
3719 | adsc = adsc + 0.05 | |
3720 | radiatezone = radiatezone + 2.5 | |
3721 | sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR) | |
3722 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3723 | if v:FindFirstChild('Head') then | |
3724 | dmg(v) | |
3725 | end | |
3726 | end | |
3727 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3728 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3729 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3730 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3731 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3732 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3733 | end | |
3734 | for i = 0,4 do | |
3735 | CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75) | |
3736 | CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75) | |
3737 | end | |
3738 | for i = 0,80,0.1 do | |
3739 | swait() | |
3740 | adsc = adsc + 0.075 | |
3741 | radiatezone = radiatezone + 3.75 | |
3742 | sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR) | |
3743 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3744 | if v:FindFirstChild('Head') then | |
3745 | dmg(v) | |
3746 | end | |
3747 | end | |
3748 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3749 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3750 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3751 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3752 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3753 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3754 | end | |
3755 | hite:Destroy() | |
3756 | duringend = false | |
3757 | hum.WalkSpeed = storehumanoidWS | |
3758 | attack = false | |
3759 | end | |
3760 | ||
3761 | function GalacticalBeams() | |
3762 | attack = true | |
3763 | local keptcolor = MAINRUINCOLOR | |
3764 | coroutine.resume(coroutine.create(function() | |
3765 | for i = 0, 0 do | |
3766 | swait(10) | |
3767 | local orb = Instance.new("Part", char) | |
3768 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1) | |
3769 | orb.BrickColor = keptcolor | |
3770 | orb.CanCollide = false | |
3771 | orb.FormFactor = 3 | |
3772 | orb.Name = "Ring" | |
3773 | orb.Material = "Neon" | |
3774 | orb.Size = Vector3.new(1, 1, 1) | |
3775 | orb.Transparency = 1 | |
3776 | orb.TopSurface = 0 | |
3777 | orb.BottomSurface = 0 | |
3778 | orb.Anchored = true | |
3779 | local orbm = Instance.new("SpecialMesh", orb) | |
3780 | orbm.MeshType = "Sphere" | |
3781 | orbm.Name = "SizeMesh" | |
3782 | orbm.Scale = vt(1.25,1.25,1.25) | |
3783 | orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25)) | |
3784 | coroutine.resume(coroutine.create(function() | |
3785 | orb.Transparency = 1 | |
3786 | local a = Instance.new("Part",char) | |
3787 | a.Name = "Direction" | |
3788 | a.Anchored = true | |
3789 | a.BrickColor = keptcolor | |
3790 | a.Material = "Neon" | |
3791 | a.Transparency = 1 | |
3792 | a.Shape = "Cylinder" | |
3793 | local x = Instance.new("Part",char) | |
3794 | x.Name = "Direction" | |
3795 | x.Anchored = true | |
3796 | x.BrickColor = keptcolor | |
3797 | x.Material = "Neon" | |
3798 | x.Transparency = 1 | |
3799 | x.Shape = "Cylinder" | |
3800 | local ht = Instance.new("Part",char) | |
3801 | ht.Name = "DirectionHit" | |
3802 | ht.Anchored = true | |
3803 | ht.BrickColor = keptcolor | |
3804 | ht.CanCollide = false | |
3805 | ht.Transparency = 1 | |
3806 | ht.Size = vt(0.1,0.1,0.1) | |
3807 | a.CanCollide = false | |
3808 | local ray = Ray.new( | |
3809 | orb.CFrame.p, -- origin | |
3810 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
3811 | ) | |
3812 | local ignore = char | |
3813 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3814 | a.BottomSurface = 10 | |
3815 | a.TopSurface = 10 | |
3816 | local distance = (orb.CFrame.p - position).magnitude | |
3817 | a.Size = Vector3.new(distance,1,1) | |
3818 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
3819 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3820 | x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3821 | local poste = 0 | |
3822 | local rotation = 0 | |
3823 | CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1) | |
3824 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor) | |
3825 | CameraEnshaking(2,2) | |
3826 | for i = 0, 49 do | |
3827 | swait() | |
3828 | rotation = rotation + 5 | |
3829 | poste = poste + 1 | |
3830 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3831 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3832 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3833 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3834 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3835 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3836 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3837 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3838 | end | |
3839 | local A1 = Instance.new("Attachment",x) | |
3840 | local A2 = Instance.new("Attachment",ht) | |
3841 | local Beem = Instance.new("Beam",ht) | |
3842 | Beem.Attachment0 = A1 | |
3843 | Beem.Attachment1 = A2 | |
3844 | Beem.LightEmission = 1 | |
3845 | Beem.FaceCamera = true | |
3846 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3847 | Beem.Width0 = 125 | |
3848 | Beem.Width1 = 125 | |
3849 | Beem.Texture = "rbxassetid://1134824633" | |
3850 | Beem.TextureMode = "Wrap" | |
3851 | Beem.TextureLength = 200 | |
3852 | Beem.TextureSpeed = 1.5 | |
3853 | Beem.Color = ColorSequence.new(keptcolor.Color) | |
3854 | CameraEnshaking(3,6) | |
3855 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5) | |
3856 | a.Transparency = 0.25 | |
3857 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
3858 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
3859 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
3860 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
3861 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor) | |
3862 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor) | |
3863 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
3864 | local eff = Instance.new("ParticleEmitter",ht) | |
3865 | eff.Texture = "rbxassetid://284205403" | |
3866 | eff.LightEmission = 0.95 | |
3867 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3868 | eff.Rate = 500 | |
3869 | eff.Lifetime = NumberRange.new(1) | |
3870 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
3871 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3872 | eff.Speed = NumberRange.new(80,500) | |
3873 | eff.Drag = 5 | |
3874 | eff.Rotation = NumberRange.new(-500,500) | |
3875 | eff.VelocitySpread = 9000 | |
3876 | eff.RotSpeed = NumberRange.new(-500,500) | |
3877 | for i = 0, 24 do | |
3878 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
3879 | local rsiz = math.random(10,50) | |
3880 | sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3881 | end | |
3882 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
3883 | local msh = Instance.new("SpecialMesh",a) | |
3884 | msh.MeshType = "Cylinder" | |
3885 | msh.Scale = vt(1,15,15) | |
3886 | for i = 0, 49 do | |
3887 | swait() | |
3888 | CameraEnshaking(1,4) | |
3889 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
3890 | rotation = rotation + 5 | |
3891 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
3892 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
3893 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor) | |
3894 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3895 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3896 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3897 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3898 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3899 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3900 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3901 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3902 | for i = 0, 2 do | |
3903 | local rsiz = math.random(50,250) | |
3904 | sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3905 | end | |
3906 | msh.Scale = msh.Scale + vt(0,0.25,0.25) | |
3907 | end | |
3908 | eff.Enabled = false | |
3909 | local visibility = 0 | |
3910 | for i = 0, 49 do | |
3911 | swait() | |
3912 | visibility = visibility + 0.02 | |
3913 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)}) | |
3914 | rotation = rotation + 5 | |
3915 | poste = poste - 1 | |
3916 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3917 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3918 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3919 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3920 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3921 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3922 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3923 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3924 | msh.Scale = msh.Scale + vt(0,-0.5,-0.5) | |
3925 | a.Transparency = a.Transparency + 0.02 | |
3926 | end | |
3927 | wait(1) | |
3928 | orb:Destroy() | |
3929 | a:Destroy() | |
3930 | ht:Destroy() | |
3931 | end)) | |
3932 | game:GetService("Debris"):AddItem(orb, 10) | |
3933 | end | |
3934 | end)) | |
3935 | hum.WalkSpeed = storehumanoidWS | |
3936 | attack = false | |
3937 | end | |
3938 | ||
3939 | ||
3940 | function WarpedDash() | |
3941 | attack = true | |
3942 | hum.WalkSpeed = 0 | |
3943 | hum.JumpPower = 0 | |
3944 | CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1) | |
3945 | local poste = 3 | |
3946 | local rotation = 0 | |
3947 | local rate = 0 | |
3948 | for i = 0, 124 do | |
3949 | swait() | |
3950 | rotation = rotation + rate | |
3951 | poste = poste + 0.1 | |
3952 | rate = rate + 0.1 | |
3953 | sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR) | |
3954 | sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR) | |
3955 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3956 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3957 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3958 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3959 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5) | |
3960 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5) | |
3961 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5) | |
3962 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5) | |
3963 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5) | |
3964 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5) | |
3965 | end | |
3966 | CameraEnshaking(3,7) | |
3967 | local loc = Instance.new("Part", char) | |
3968 | loc.BrickColor = MAINRUINCOLOR | |
3969 | loc.CanCollide = false | |
3970 | loc.FormFactor = 3 | |
3971 | loc.Name = "Ring" | |
3972 | loc.Material = "Neon" | |
3973 | loc.Size = Vector3.new(1, 1, 1) | |
3974 | loc.Transparency = 1 | |
3975 | loc.TopSurface = 0 | |
3976 | loc.BottomSurface = 0 | |
3977 | loc.Anchored = true | |
3978 | loc.CFrame = root.CFrame + root.CFrame.lookVector*100 | |
3979 | CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1) | |
3980 | CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1) | |
3981 | MagniDamage(loc, 95, 500,6000, 0, "Normal") | |
3982 | sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR) | |
3983 | sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
3984 | sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
3985 | sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
3986 | coroutine.resume(coroutine.create(function() | |
3987 | local eff = Instance.new("ParticleEmitter",loc) | |
3988 | eff.Texture = "rbxassetid://363275192" | |
3989 | eff.LightEmission = 0.95 | |
3990 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3991 | eff.Rate = 10000 | |
3992 | eff.Lifetime = NumberRange.new(1) | |
3993 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3994 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3995 | eff.Speed = NumberRange.new(100,500) | |
3996 | eff.Drag = 5 | |
3997 | eff.Rotation = NumberRange.new(-500,500) | |
3998 | eff.VelocitySpread = 9000 | |
3999 | eff.RotSpeed = NumberRange.new(-50,50) | |
4000 | wait(0.5) | |
4001 | eff.Enabled = false | |
4002 | end)) | |
4003 | for i = 0, 49 do | |
4004 | sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
4005 | end | |
4006 | for i = 0, 9 do | |
4007 | sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
4008 | end | |
4009 | game:GetService("Debris"):AddItem(loc, 5) | |
4010 | root.CFrame = root.CFrame + root.CFrame.lookVector*200 | |
4011 | hum.WalkSpeed = storehumanoidWS | |
4012 | hum.JumpPower = 50 | |
4013 | attack = false | |
4014 | end | |
4015 | ||
4016 | ------------------------------------ | |
4017 | function harmonytaunty() | |
4018 | attack = true | |
4019 | hum.WalkSpeed = 0 | |
4020 | CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15) | |
4021 | for i = 0,7,0.1 do | |
4022 | swait() | |
4023 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2) | |
4024 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2) | |
4025 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2) | |
4026 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2) | |
4027 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2) | |
4028 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2) | |
4029 | end | |
4030 | hum.WalkSpeed = storehumanoidWS | |
4031 | attack = false | |
4032 | end | |
4033 | ||
4034 | function vistaunty() | |
4035 | attack = true | |
4036 | hum.WalkSpeed = 0 | |
4037 | local rd = math.random(1,5) | |
4038 | if rd == 1 then | |
4039 | chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4040 | elseif rd == 2 then | |
4041 | chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4042 | elseif rd == 3 then | |
4043 | chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4044 | elseif rd == 4 then | |
4045 | chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4046 | elseif rd == 5 then | |
4047 | chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4048 | end | |
4049 | for i = 0, 8, 0.1 do | |
4050 | swait() | |
4051 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4) | |
4052 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4) | |
4053 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4) | |
4054 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4) | |
4055 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4) | |
4056 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4) | |
4057 | end | |
4058 | hum.WalkSpeed = storehumanoidWS | |
4059 | attack = false | |
4060 | end | |
4061 | ||
4062 | function shytaunty() | |
4063 | attack = true | |
4064 | hum.WalkSpeed = 0 | |
4065 | CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1) | |
4066 | local blush = Instance.new("Decal",hed) | |
4067 | blush.Texture = "rbxassetid://898404027" | |
4068 | blush.Face = "Front" | |
4069 | for i = 0, 13, 0.1 do | |
4070 | swait() | |
4071 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1) | |
4072 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1) | |
4073 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1) | |
4074 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1) | |
4075 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1) | |
4076 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1) | |
4077 | end | |
4078 | coroutine.resume(coroutine.create(function() | |
4079 | for i = 0, 49 do | |
4080 | swait() | |
4081 | blush.Transparency = blush.Transparency + 0.02 | |
4082 | end | |
4083 | blush:Destroy() | |
4084 | end)) | |
4085 | hum.WalkSpeed = storehumanoidWS | |
4086 | attack = false | |
4087 | end | |
4088 | ------------------------------------ Mode Ascendances | |
4089 | function UnknownA() | |
4090 | hum.WalkSpeed = 0 | |
4091 | attack = true | |
4092 | local keptcolor = MAINRUINCOLOR | |
4093 | local locat = Instance.new("Part", char) | |
4094 | locat.CanCollide = false | |
4095 | locat.FormFactor = 3 | |
4096 | locat.Name = "Ring" | |
4097 | locat.Material = "Neon" | |
4098 | locat.Size = Vector3.new(1, 1, 1) | |
4099 | locat.Transparency = 1 | |
4100 | locat.TopSurface = 0 | |
4101 | locat.BottomSurface = 0 | |
4102 | locat.Anchored = true | |
4103 | locat.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
4104 | local poste = 0 | |
4105 | local rotation = 0 | |
4106 | local upperpos = 0 | |
4107 | local rate = 0 | |
4108 | local x = locat | |
4109 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1) | |
4110 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1) | |
4111 | sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4112 | sphere2(6,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4113 | sphere2(4,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4114 | sphere2(2,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4115 | CameraEnshaking(2,5) | |
4116 | for i = 0, 49 do | |
4117 | swait() | |
4118 | rotation = rotation + 5 | |
4119 | poste = poste + 1 | |
4120 | sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor) | |
4121 | sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor) | |
4122 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4123 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4124 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4125 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4126 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4127 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4128 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4129 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4130 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
4131 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
4132 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5) | |
4133 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5) | |
4134 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5) | |
4135 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5) | |
4136 | end | |
4137 | for i = 0, 49 do | |
4138 | swait() | |
4139 | rotation = rotation + 5 | |
4140 | sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor) | |
4141 | sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor) | |
4142 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4143 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4144 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4145 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4146 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4147 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4148 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4149 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
4150 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
4151 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
4152 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5) | |
4153 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5) | |
4154 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.5) | |
4155 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.5) | |
4156 | end | |
4157 | ModeOfGlitch = 6000000000 | |
4158 | storehumanoidWS = 300 | |
4159 | hum.WalkSpeed = 300 | |
4160 | rainbowmode = false | |
4161 | chaosmode = false | |
4162 | RecolorTextAndRename("Catastrophe",BrickColor.new("Mulberry").Color,BrickColor.new("Cool yellow").Color,"Highway") | |
4163 | newThemeCust("rbxassetid://1504604335",0,1.005,1.5) | |
4164 | MAINRUINCOLOR = BrickColor.new("Magenta") | |
4165 | keptcolor = MAINRUINCOLOR | |
4166 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Magenta"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4167 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1) | |
4168 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75) | |
4169 | sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,BrickColor.new("Cool yellow")) | |
4170 | sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,keptcolor) | |
4171 | sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("White")) | |
4172 | sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Cool yellow")) | |
4173 | sphere2(4,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,keptcolor) | |
4174 | attack = false | |
4175 | hum.WalkSpeed = storehumanoidWS | |
4176 | for i = 0, 49 do | |
4177 | local rsiz = math.random(150,450) | |
4178 | sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Cool yellow")) | |
4179 | sphere2(math.random(1,2),"Add",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,BrickColor.new("Cool yellow")) | |
4180 | sphereMK(math.random(1,2),math.random(2,4),"Add",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("White"),0) | |
4181 | end | |
4182 | coroutine.resume(coroutine.create(function() | |
4183 | local eff = Instance.new("ParticleEmitter",x) | |
4184 | eff.Texture = "rbxassetid://284205403" | |
4185 | eff.LightEmission = 0.95 | |
4186 | eff.Color = ColorSequence.new(BrickColor.new("Cool yellow").Color) | |
4187 | eff.Rate = 50000 | |
4188 | eff.Lifetime = NumberRange.new(2.5) | |
4189 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4190 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4191 | eff.Speed = NumberRange.new(250,1000) | |
4192 | eff.Drag = 5 | |
4193 | eff.Rotation = NumberRange.new(-500,500) | |
4194 | eff.VelocitySpread = 9000 | |
4195 | eff.RotSpeed = NumberRange.new(-500,500) | |
4196 | wait(0.5) | |
4197 | eff.Enabled = false | |
4198 | end)) | |
4199 | --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do | |
4200 | if v:FindFirstChild('Head') then | |
4201 | dmg(v) | |
4202 | end | |
4203 | end]]-- | |
4204 | sphere2(3,"Add",tors.CFrame,vt(1,1,1),10,10,10,keptcolor) | |
4205 | sphere2(2,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("Magenta")) | |
4206 | sphere2(1,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("Mulberry")) | |
4207 | CameraEnshaking(8,10) | |
4208 | for i = 0, 99 do | |
4209 | swait() | |
4210 | rotation = rotation + 5 | |
4211 | poste = poste + 1 | |
4212 | upperpos = upperpos + rate | |
4213 | rate = rate + 0.1 | |
4214 | sphere2(math.random(1,2),"Add",x.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,keptcolor) | |
4215 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow")) | |
4216 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow")) | |
4217 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow")) | |
4218 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow")) | |
4219 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor) | |
4220 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor) | |
4221 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor) | |
4222 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor) | |
4223 | end | |
4224 | x:Destroy() | |
4225 | end | |
4226 | ||
4227 | function loveydovey() | |
4228 | CameraEnshaking(4,9) | |
4229 | sphere2(2,"Add",root.CFrame,vt(5,5,5),0.5,0.5,0.5,keptcolor) | |
4230 | sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,keptcolor) | |
4231 | sphere2(3,"Add",root.CFrame,vt(5,5,5),1,1,1,keptcolor) | |
4232 | sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,keptcolor) | |
4233 | sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,keptcolor) | |
4234 | sphere2(2,"Add",root.CFrame,vt(5,10000,5),0.6,0.6,0.6,keptcolor) | |
4235 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 0.75, 1.25) | |
4236 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 0.75, 1) | |
4237 | coroutine.resume(coroutine.create(function() | |
4238 | local eff = Instance.new("ParticleEmitter",root) | |
4239 | eff.Texture = "rbxassetid://363275192" | |
4240 | eff.LightEmission = 0.95 | |
4241 | eff.Color = ColorSequence.new(keptcolor.Color) | |
4242 | eff.Rate = 10000 | |
4243 | eff.Lifetime = NumberRange.new(1) | |
4244 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4245 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4246 | eff.Speed = NumberRange.new(50,200) | |
4247 | eff.Drag = 5 | |
4248 | eff.Rotation = NumberRange.new(-500,500) | |
4249 | eff.VelocitySpread = 9000 | |
4250 | eff.RotSpeed = NumberRange.new(-50,50) | |
4251 | wait(0.5) | |
4252 | eff.Enabled = false | |
4253 | wait(5) | |
4254 | eff:Destroy() | |
4255 | end)) | |
4256 | for i = 0, 49 do | |
4257 | local rsiz = math.random(70,90) | |
4258 | sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(25,100)/25,-0.005,MAINRUINCOLOR) | |
4259 | end | |
4260 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4261 | CFuncs["Sound"].Create("rbxassetid://543623779", root, 1.5,1) | |
4262 | newTheme("rbxassetid://736003449",0,1,2) | |
4263 | ModeOfGlitch = 9600000000 | |
4264 | MAINRUINCOLOR = BrickColor.new("Hot pink") | |
4265 | for i = 0, 1, 0.2 do | |
4266 | swait() | |
4267 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4268 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4269 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4270 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8) | |
4271 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8) | |
4272 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8) | |
4273 | end | |
4274 | for i = 0, 9, 0.1 do | |
4275 | swait() | |
4276 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1) | |
4277 | 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(0),math.rad(0)),.1) | |
4278 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4279 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1) | |
4280 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1) | |
4281 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1) | |
4282 | end | |
4283 | CameraEnshaking(2,11) | |
4284 | sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,BrickColor.new("Pink")) | |
4285 | sphere2(2,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink")) | |
4286 | sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,MAINRUINCOLOR) | |
4287 | sphere2(3,"Add",root.CFrame,vt(5,5,5),1.5,1.5,1.5,MAINRUINCOLOR) | |
4288 | sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,BrickColor.new("Pink")) | |
4289 | sphere2(2,"Add",root.CFrame,vt(5,10000,5),1,1,1,MAINRUINCOLOR) | |
4290 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 1, 1.125) | |
4291 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 0.75) | |
4292 | for i = 0, 49 do | |
4293 | local rsiz = math.random(70,90) | |
4294 | sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(50,200)/25,-0.005,MAINRUINCOLOR) | |
4295 | sphereMK(math.random(1,2),math.random(1,3),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0) | |
4296 | end | |
4297 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4298 | for i = 0, 1, 0.2 do | |
4299 | swait() | |
4300 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4301 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4302 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4303 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8) | |
4304 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8) | |
4305 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8) | |
4306 | end | |
4307 | for i = 0, 1, 0.1 do | |
4308 | swait() | |
4309 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1) | |
4310 | 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(0),math.rad(0)),.1) | |
4311 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4312 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1) | |
4313 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1) | |
4314 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1) | |
4315 | end | |
4316 | CameraEnshaking(9,14) | |
4317 | sphere2(4,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink")) | |
4318 | sphere2(4,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink")) | |
4319 | sphere2(9,"Add",root.CFrame,vt(5,5,5),3,3,3,MAINRUINCOLOR) | |
4320 | sphere2(9,"Add",root.CFrame,vt(5,5,5),4,4,4,MAINRUINCOLOR) | |
4321 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4322 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1) | |
4323 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5) | |
4324 | sphere2(1,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink")) | |
4325 | sphere2(1,"Add",root.CFrame,vt(5,5,5),3,3,3,BrickColor.new("Pink")) | |
4326 | sphere2(1,"Add",root.CFrame,vt(5,5,5),4,4,4,BrickColor.new("Pink")) | |
4327 | sphere2(1,"Add",root.CFrame,vt(5,10000,5),2.5,2.5,2.5,BrickColor.new("Pink")) | |
4328 | sphere2(2,"Add",root.CFrame,vt(5,10000,5),3.5,3.5,3.5,MAINRUINCOLOR) | |
4329 | sphere2(1,"Add",root.CFrame,vt(5,5,5),8,8,8,BrickColor.new("Pink")) | |
4330 | sphere2(2,"Add",root.CFrame,vt(5,5,5),14,14,14,MAINRUINCOLOR) | |
4331 | sphere2(3,"Add",root.CFrame,vt(5,5,5),20,20,20,MAINRUINCOLOR) | |
4332 | for i = 0, 99 do | |
4333 | local rsiz = math.random(150,450) | |
4334 | sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Pink")) | |
4335 | sphere2(math.random(1,2),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,MAINRUINCOLOR) | |
4336 | sphereMK(math.random(1,2),math.random(4,6),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0) | |
4337 | end | |
4338 | coroutine.resume(coroutine.create(function() | |
4339 | local eff = Instance.new("ParticleEmitter",root) | |
4340 | eff.Texture = "rbxassetid://749327003" | |
4341 | eff.LightEmission = 1 | |
4342 | eff.Color = ColorSequence.new(BrickColor.new("Pink").Color) | |
4343 | eff.Rate = 50000 | |
4344 | eff.Lifetime = NumberRange.new(5) | |
4345 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4346 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4347 | eff.Speed = NumberRange.new(250,1000) | |
4348 | eff.Drag = 5 | |
4349 | eff.Rotation = NumberRange.new(-50,50) | |
4350 | eff.VelocitySpread = 9000 | |
4351 | eff.RotSpeed = NumberRange.new(-50,50) | |
4352 | wait(0.5) | |
4353 | eff.Enabled = false | |
4354 | wait(5) | |
4355 | eff:Destroy() | |
4356 | end)) | |
4357 | storehumanoidWS = 20 | |
4358 | rainbowmode = false | |
4359 | chaosmode = false | |
4360 | RecolorTextAndRename("Nah I Rather Not Name This",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon") | |
4361 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4362 | for i = 0, 10, 0.1 do | |
4363 | swait() | |
4364 | sphere2(math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,MAINRUINCOLOR) | |
4365 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4366 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4367 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4368 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.8) | |
4369 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8) | |
4370 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8) | |
4371 | end | |
4372 | hum.WalkSpeed = 20 | |
4373 | attack = false | |
4374 | end | |
4375 | ------------------------------------- | |
4376 | ||
4377 | Humanoid.Animator.Parent = nil | |
4378 | ||
4379 | ------------------------------------- | |
4380 | ||
4381 | local attacktype = 1 | |
4382 | mouse.Button1Down:connect(function() | |
4383 | if attack == false and attacktype == 1 then | |
4384 | attacktype = 2 | |
4385 | attackone() | |
4386 | elseif attack == false and attacktype == 2 then | |
4387 | attacktype = 3 | |
4388 | attacktwo() | |
4389 | elseif attack == false and attacktype == 3 then | |
4390 | attacktype = 1 | |
4391 | attackthree() | |
4392 | elseif attack == false and attacktype == 4 then | |
4393 | attacktype = 1 | |
4394 | --attackfour() | |
4395 | end | |
4396 | end) | |
4397 | ||
4398 | local OVMID = 1702473314 | |
4399 | local OVMPIT = 1 | |
4400 | local OVMVOL = 1 | |
4401 | mouse.KeyDown:connect(function(k) | |
4402 | if k == "g" and attack == false and ModeOfGlitch ~= 1 then | |
4403 | resetmode() | |
4404 | end | |
4405 | if k == "h" and attack == false and ModeOfGlitch ~= 2 then | |
4406 | ModeOfGlitch = 2 | |
4407 | storehumanoidWS = 16 | |
4408 | hum.WalkSpeed = 16 | |
4409 | rainbowmode = false | |
4410 | chaosmode = false | |
4411 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),BrickColor.new("Really black").Color,"Code") | |
4412 | newTheme("rbxassetid://1564523997",0,1.02,1.25) | |
4413 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4414 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4415 | end | |
4416 | if k == "j" and attack == false and ModeOfGlitch ~= 3 then | |
4417 | ModeOfGlitch = 3 | |
4418 | storehumanoidWS = 16 | |
4419 | hum.WalkSpeed = 16 | |
4420 | rainbowmode = false | |
4421 | chaosmode = false | |
4422 | RecolorTextAndRename("HaCKeR",Color3.new(0,0,0),Color3.new(0,1,0),"SciFi") | |
4423 | newTheme("rbxassetid://949709585",0,1.01,1.25) | |
4424 | MAINRUINCOLOR = BrickColor.new("Dark green") | |
4425 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4426 | end | |
4427 | if k == "k" and attack == false and ModeOfGlitch ~= 4 then | |
4428 | ModeOfGlitch = 4 | |
4429 | storehumanoidWS = 16 | |
4430 | hum.WalkSpeed = 16 | |
4431 | rainbowmode = false | |
4432 | chaosmode = false | |
4433 | RecolorTextAndRename("Astra",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"SourceSansBold") | |
4434 | newTheme("rbxassetid://275188871",0,1.02,1.25) | |
4435 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4436 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4437 | end | |
4438 | if k == "l" and attack == false and ModeOfGlitch ~= 5 then | |
4439 | ModeOfGlitch = 5 | |
4440 | storehumanoidWS = 16 | |
4441 | hum.WalkSpeed = 16 | |
4442 | rainbowmode = false | |
4443 | chaosmode = false | |
4444 | RecolorTextAndRename("Solar",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy") | |
4445 | newTheme("rbxassetid://2270626831",0,1.01,1.25) | |
4446 | MAINRUINCOLOR = BrickColor.new("Deep orange") | |
4447 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4448 | end | |
4449 | if k == "x" and attack == false and ModeOfGlitch ~= 6 then | |
4450 | ModeOfGlitch = 6 | |
4451 | storehumanoidWS = 100 | |
4452 | hum.WalkSpeed = 100 | |
4453 | rainbowmode = false | |
4454 | chaosmode = false | |
4455 | RecolorTextAndRename("Calamity",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy") | |
4456 | newTheme("rbxassetid://1359036559",0,1,1.25) | |
4457 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
4458 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4459 | end | |
4460 | if k == "c" and attack == false and ModeOfGlitch ~= 7 then | |
4461 | ModeOfGlitch = 7 | |
4462 | storehumanoidWS = 175 | |
4463 | hum.WalkSpeed = 175 | |
4464 | rainbowmode = false | |
4465 | chaosmode = false | |
4466 | RecolorTextAndRename("LIGHTSPEED",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Arcade") | |
4467 | newTheme("rbxassetid://983369349",0,1.01,1.25) | |
4468 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4469 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4470 | end | |
4471 | if k == "v" and attack == false and ModeOfGlitch ~= 8 then | |
4472 | ModeOfGlitch = 8 | |
4473 | storehumanoidWS = 100 | |
4474 | hum.WalkSpeed = 100 | |
4475 | rainbowmode = false | |
4476 | chaosmode = false | |
4477 | RecolorTextAndRename("DeStRuCtIoN",BrickColor.new("Really red").Color,BrickColor.new("Bright red").Color,"Antique") | |
4478 | newTheme("rbxassetid://723652641",0,1.01,1.65) | |
4479 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4480 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4481 | end | |
4482 | if k == "b" and attack == false and ModeOfGlitch ~= 9 then | |
4483 | ModeOfGlitch = 9 | |
4484 | storehumanoidWS = 135 | |
4485 | hum.WalkSpeed = 135 | |
4486 | rainbowmode = false | |
4487 | chaosmode = false | |
4488 | RecolorTextAndRename("Dance Party",BrickColor.new("Medium stone grey").Color,BrickColor.new("Black").Color,"Arcade") | |
4489 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4490 | MAINRUINCOLOR = BrickColor.new("Institutional white") | |
4491 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4492 | end | |
4493 | if k == "n" and attack == false and ModeOfGlitch ~= 10 then | |
4494 | ModeOfGlitch = 10 | |
4495 | storehumanoidWS = 12 | |
4496 | hum.WalkSpeed = 12 | |
4497 | rainbowmode = false | |
4498 | chaosmode = false | |
4499 | RecolorTextAndRename("Lucid Dream",BrickColor.new("Navy blue").Color,BrickColor.new("Black").Color,"Garamond") | |
4500 | newTheme("rbxassetid://639429915",0,1.01,1.65) | |
4501 | MAINRUINCOLOR = BrickColor.new("Black") | |
4502 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4503 | end | |
4504 | if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then | |
4505 | ModeOfGlitch = 2000000000 | |
4506 | storehumanoidWS = 200 | |
4507 | hum.WalkSpeed = 200 | |
4508 | rainbowmode = false | |
4509 | chaosmode = false | |
4510 | RecolorTextAndRename("The Big Black",BrickColor.new("Black").Color,BrickColor.new("Black").Color,"Antique") | |
4511 | newThemeCust("rbxassetid://183142252",2.9,1.02,1.5) | |
4512 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4513 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4514 | end | |
4515 | if k == "u" and attack == false and ModeOfGlitch ~= 9600000000 then | |
4516 | loveydovey() | |
4517 | end | |
4518 | if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then | |
4519 | UnknownA() | |
4520 | end | |
4521 | if k == "t" and ModeOfGlitch == 6000000000 and attack == false then | |
4522 | harmonytaunty() | |
4523 | elseif k == "t" and ModeOfGlitch == 9 and attack == false then | |
4524 | vistaunty() | |
4525 | elseif k == "t" and ModeOfGlitch == 9600000000 and attack == false then | |
4526 | shytaunty() | |
4527 | end | |
4528 | if k == "z" and ModeOfGlitch == 1 and attack == false then | |
4529 | Beams() | |
4530 | elseif k == "z" and ModeOfGlitch == 2 and attack == false then | |
4531 | smiter() | |
4532 | elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then | |
4533 | supsmiter() | |
4534 | elseif k == "z" and ModeOfGlitch == 3 and attack == false then | |
4535 | BinaryE() | |
4536 | elseif k == "z" and ModeOfGlitch == 4 and attack == false then | |
4537 | elseif k == "z" and ModeOfGlitch == 5 and attack == false then | |
4538 | Fireball() | |
4539 | elseif k == "z" and ModeOfGlitch == 6 and attack == false then | |
4540 | GalacticalBeams() | |
4541 | elseif k == "z" and ModeOfGlitch == 7 and attack == false then | |
4542 | WarpedDash() | |
4543 | elseif k == "z" and ModeOfGlitch == 8 and attack == false then | |
4544 | BeamOfDeath() | |
4545 | elseif k == "z" and ModeOfGlitch == 9 and attack == false then | |
4546 | end | |
4547 | if k == "x" and ModeOfGlitch == 3 and attack == false then | |
4548 | BinaryBLINK() | |
4549 | end | |
4550 | if k == "v" and ModeOfGlitch == 2000000000 and attack == false then | |
4551 | AZUREFINALE() | |
4552 | end | |
4553 | if k == "l" and mutedtog == false then | |
4554 | mutedtog = true | |
4555 | kan.Volume = 0 | |
4556 | elseif k == "l" and mutedtog == true then | |
4557 | mutedtog = false | |
4558 | kan.Volume = 1.25 | |
4559 | end | |
4560 | if k == "p" and toggleTag == false then | |
4561 | toggleTag = true | |
4562 | modet.TextTransparency = 0 | |
4563 | modet.TextStrokeTransparency = 0 | |
4564 | elseif k == "p" and toggleTag == true then | |
4565 | toggleTag = false | |
4566 | modet.TextTransparency = 1 | |
4567 | modet.TextStrokeTransparency = 1 | |
4568 | end | |
4569 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
4570 | end | |
4571 | end) | |
4572 | ||
4573 | plr.Chatted:connect(function(message) | |
4574 | if ModeOfGlitch == 9 then | |
4575 | if message:sub(1,5) == "play/" then | |
4576 | OVMID = message:sub(6) | |
4577 | newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4578 | elseif message:sub(1,6) == "pitch/" then | |
4579 | OVMPIT = message:sub(7) | |
4580 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4581 | elseif message:sub(1,4) == "vol/" then | |
4582 | OVMVOL = message:sub(5) | |
4583 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4584 | elseif message:sub(1,7) == "skipto/" then | |
4585 | chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4586 | newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL) | |
4587 | elseif message:sub(1,9) == "telltime/" then | |
4588 | chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4589 | end | |
4590 | end | |
4591 | end) | |
4592 | local rotperm = 0 | |
4593 | coroutine.resume(coroutine.create(function() | |
4594 | while true do | |
4595 | swait() | |
4596 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then | |
4597 | swait(0.5) | |
4598 | sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0) | |
4599 | elseif ModeOfGlitch == 5 then | |
4600 | swait(0.5) | |
4601 | local rsiz = math.random(1,3) | |
4602 | sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
4603 | sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0) | |
4604 | elseif ModeOfGlitch == 9600000000 then | |
4605 | swait(0.25) | |
4606 | sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0) | |
4607 | elseif ModeOfGlitch == 6000000000 then | |
4608 | coroutine.resume(coroutine.create(function() | |
4609 | swait(5) | |
4610 | sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0) | |
4611 | end)) | |
4612 | swait(1) | |
4613 | rotperm = rotperm + 12 | |
4614 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR) | |
4615 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow")) | |
4616 | elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then | |
4617 | swait(25 - kan.PlaybackLoudness/80) | |
4618 | sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR) | |
4619 | if kan.PlaybackLoudness >= 300 then | |
4620 | CameraEnshaking(1,3) | |
4621 | for i = 0, 4 do | |
4622 | sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0) | |
4623 | end | |
4624 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR) | |
4625 | end | |
4626 | local notsp = Instance.new("Part", char) | |
4627 | notsp.CanCollide = false | |
4628 | notsp.FormFactor = 3 | |
4629 | notsp.Name = "Ring" | |
4630 | notsp.Material = "Neon" | |
4631 | notsp.Size = Vector3.new(10, 1, 10) | |
4632 | if kan.PlaybackLoudness >= 300 then | |
4633 | notsp.Size = Vector3.new(25, 1, 25) | |
4634 | end | |
4635 | notsp.Transparency = 1 | |
4636 | notsp.TopSurface = 0 | |
4637 | notsp.BottomSurface = 0 | |
4638 | notsp.Anchored = true | |
4639 | notsp.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
4640 | coroutine.resume(coroutine.create(function() | |
4641 | local eff = Instance.new("ParticleEmitter",notsp) | |
4642 | eff.Texture = "rbxassetid://288898235" | |
4643 | eff.LightEmission = 0.5 | |
4644 | eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)) | |
4645 | eff.Rate = 300 | |
4646 | eff.Lifetime = NumberRange.new(1) | |
4647 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4648 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4649 | eff.Speed = NumberRange.new(20,40) | |
4650 | eff.Acceleration = vt(0,-75,0) | |
4651 | eff.Drag = 1 | |
4652 | eff.Rotation = NumberRange.new(-10,10) | |
4653 | eff.VelocitySpread = 20 | |
4654 | eff.RotSpeed = NumberRange.new(-1,1) | |
4655 | coroutine.resume(coroutine.create(function() | |
4656 | while true do | |
4657 | swait() | |
4658 | if eff.Parent ~= nil then | |
4659 | if ModeOfGlitch == 9 then | |
4660 | eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)) | |
4661 | elseif ModeOfGlitch ~= 9 then | |
4662 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
4663 | end | |
4664 | else | |
4665 | break | |
4666 | end | |
4667 | end | |
4668 | end)) | |
4669 | wait(0.1) | |
4670 | eff.Enabled = false | |
4671 | end)) | |
4672 | game:GetService("Debris"):AddItem(notsp, 5) | |
4673 | end | |
4674 | end | |
4675 | end)) | |
4676 | ||
4677 | ||
4678 | Humanoid.Name = "GGLITCHER" | |
4679 | Humanoid.MaxHealth = math.huge | |
4680 | Humanoid.Health = math.huge | |
4681 | Instance.new("ForceField",char).Visible = false | |
4682 | ||
4683 | idleanim=.4 | |
4684 | while true do | |
4685 | Humanoid.MaxHealth = math.huge | |
4686 | Humanoid.Health = math.huge | |
4687 | if mutedtog == false and duringend == false then | |
4688 | kan.Volume = currentVol | |
4689 | elseif mutedtog == true and duringend == false then | |
4690 | kan.Volume = 0 | |
4691 | end | |
4692 | if duringend == false then | |
4693 | kan.PlaybackSpeed = currentPitch | |
4694 | kan.Pitch = currentPitch | |
4695 | end | |
4696 | kan.SoundId = currentThemePlaying | |
4697 | kan.Looped = true | |
4698 | kan.Parent = char | |
4699 | kan:Resume() | |
4700 | ||
4701 | modeteller.Text = string.upper(modet.Text) | |
4702 | modeteller.TextColor3 = MAINRUINCOLOR.Color | |
4703 | ||
4704 | swait() | |
4705 | handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3) | |
4706 | ||
4707 | lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3) | |
4708 | lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3) | |
4709 | lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3) | |
4710 | rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3) | |
4711 | rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3) | |
4712 | rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3) | |
4713 | --------------- Visualiser Zone | |
4714 | if ModeOfGlitch == 9 then | |
4715 | modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4716 | for i, v in pairs(mw2:GetChildren()) do | |
4717 | if v:IsA("Part") then | |
4718 | v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4719 | v.Material = "Neon" | |
4720 | end | |
4721 | end | |
4722 | for i, v in pairs(mw1:GetChildren()) do | |
4723 | if v:IsA("Part") then | |
4724 | v.Transparency = 0 | |
4725 | v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4726 | v.Material = "Neon" | |
4727 | end | |
4728 | end | |
4729 | end | |
4730 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
4731 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
4732 | --------------- | |
4733 | sine = sine + change | |
4734 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
4735 | local velderp=RootPart.Velocity.y | |
4736 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
4737 | if equipped==true or equipped==false then | |
4738 | if attack==false then | |
4739 | idle=idle+1 | |
4740 | else | |
4741 | idle=0 | |
4742 | end | |
4743 | if idle>=500 then | |
4744 | if attack==false then | |
4745 | --Sheath() | |
4746 | end | |
4747 | end | |
4748 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
4749 | Anim="Jump" | |
4750 | if attack==false then | |
4751 | 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) | |
4752 | 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) | |
4753 | 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) | |
4754 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
4755 | 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) | |
4756 | 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) | |
4757 | end | |
4758 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
4759 | Anim="Fall" | |
4760 | if attack==false then | |
4761 | 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) | |
4762 | 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) | |
4763 | 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) | |
4764 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
4765 | 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) | |
4766 | 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) | |
4767 | end | |
4768 | elseif torvel<1 and hitfloor~=nil then | |
4769 | Anim="Idle" | |
4770 | if attack==false then | |
4771 | if ModeOfGlitch == 1 then | |
4772 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
4773 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
4774 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1) | |
4775 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1) | |
4776 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1) | |
4777 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1) | |
4778 | elseif ModeOfGlitch == 2 then | |
4779 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
4780 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
4781 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1) | |
4782 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1) | |
4783 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1) | |
4784 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1) | |
4785 | elseif ModeOfGlitch == 10 then | |
4786 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
4787 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3) | |
4788 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15) | |
4789 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15) | |
4790 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1) | |
4791 | LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
4792 | elseif ModeOfGlitch == 3 then | |
4793 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 34))),.1) | |
4794 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
4795 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1) | |
4796 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1) | |
4797 | RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1) | |
4798 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1) | |
4799 | elseif ModeOfGlitch == 4 then | |
4800 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1) | |
4801 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1) | |
4802 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1) | |
4803 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1) | |
4804 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1) | |
4805 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1) | |
4806 | elseif ModeOfGlitch == 5 then | |
4807 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
4808 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
4809 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1) | |
4810 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1) | |
4811 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1) | |
4812 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1) | |
4813 | elseif ModeOfGlitch == 6 then | |
4814 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1) | |
4815 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1) | |
4816 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1) | |
4817 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1) | |
4818 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1) | |
4819 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1) | |
4820 | elseif ModeOfGlitch == 7 then | |
4821 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(1),math.rad(0 - 1 * math.cos(sine / 34))),.1) | |
4822 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
4823 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4824 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1) | |
4825 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1) | |
4826 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1) | |
4827 | elseif ModeOfGlitch == 8 then | |
4828 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
4829 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
4830 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
4831 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
4832 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1) | |
4833 | LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1) | |
4834 | elseif ModeOfGlitch == 9 then | |
4835 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4) | |
4836 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4) | |
4837 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4) | |
4838 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4) | |
4839 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4) | |
4840 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4) | |
4841 | elseif ModeOfGlitch == 2000000000 then | |
4842 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
4843 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 3 * math.cos(sine / 34))),.1) | |
4844 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(2 + 3 * math.cos(sine / 34)),math.rad(0),math.rad(34 - 3 * math.cos(sine / 54))),.1) | |
4845 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 4 * math.cos(sine / 28)),math.rad(0 - 1 * math.cos(sine / 44)),math.rad(-34 + 3 * math.cos(sine / 54))),.1) | |
4846 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(12 + 5 * math.cos(sine / 62)),math.rad(30 + 5 * math.cos(sine / 48)),math.rad(19 + 6 * math.cos(sine / 36))),.1) | |
4847 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 65)),math.rad(6 + 3 * math.cos(sine / 57)),math.rad(-20 - 7 * math.cos(sine / 36))),.1) | |
4848 | elseif ModeOfGlitch == 6000000000 then | |
4849 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1) | |
4850 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1) | |
4851 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1) | |
4852 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1) | |
4853 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1) | |
4854 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1) | |
4855 | elseif ModeOfGlitch == 9600000000 then | |
4856 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1) | |
4857 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1) | |
4858 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1) | |
4859 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1) | |
4860 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1) | |
4861 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1) | |
4862 | end | |
4863 | end | |
4864 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
4865 | Anim="Walk" | |
4866 | if attack==false then | |
4867 | if ModeOfGlitch == 10 then | |
4868 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15) | |
4869 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
4870 | RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
4871 | LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
4872 | RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1) | |
4873 | LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
4874 | elseif ModeOfGlitch ~= 9600000000 then | |
4875 | 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 + 35 * math.cos(sine / 8))),.1) | |
4876 | 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 + 35 * math.cos(sine / 8))),.1) | |
4877 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
4878 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * 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))),.1) | |
4879 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
4880 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
4881 | elseif ModeOfGlitch == 9600000000 then | |
4882 | 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 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1) | |
4883 | 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 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1) | |
4884 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1) | |
4885 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1) | |
4886 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
4887 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
4888 | end | |
4889 | end | |
4890 | elseif torvel>=22 and hitfloor~=nil then | |
4891 | Anim="Run" | |
4892 | if attack==false then | |
4893 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then | |
4894 | 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) | |
4895 | 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) | |
4896 | 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) | |
4897 | 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) | |
4898 | 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) | |
4899 | 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) | |
4900 | if ModeOfGlitch == 7 then | |
4901 | sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0) | |
4902 | sphereMK(3,0,"Add",root.CFrame*CFrame.new(0,0,8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,5,20,-0.0075,MAINRUINCOLOR,0) | |
4903 | end | |
4904 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then | |
4905 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
4906 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
4907 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
4908 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
4909 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2) | |
4910 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2) | |
4911 | end | |
4912 | end | |
4913 | end | |
4914 | end | |
4915 | end |