SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
1 | + | |
2 | - | print("FE Compatibility: by WaverlyCole & Mokiros") |
2 | + | |
3 | - | InternalData = {} |
3 | + | |
4 | - | do |
4 | + | |
5 | - | script.Parent = owner.Character |
5 | + | |
6 | - | local Event = Instance.new("RemoteEvent") |
6 | + | |
7 | - | Event.Name = "UserInput" |
7 | + | |
8 | - | local function NewFakeEvent() |
8 | + | |
9 | - | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect |
9 | + | |
10 | - | return Fake |
10 | + | |
11 | local CamInterrupt = false | |
12 | - | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
12 | + | |
13 | - | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
13 | + | |
14 | - | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
14 | + | |
15 | - | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
15 | + | |
16 | - | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
16 | + | |
17 | - | local function TriggerEvent(self,Event,...) |
17 | + | |
18 | - | local Trigger = Mouse[Event] |
18 | + | |
19 | - | if Trigger and Trigger.fakeEvent and Trigger.Function then |
19 | + | |
20 | - | Trigger.Function(...) |
20 | + | |
21 | tors = char.Torso | |
22 | lleg = char["Left Leg"] | |
23 | - | Mouse.TrigEvent = TriggerEvent |
23 | + | |
24 | - | UserInputService.TrigEvent = TriggerEvent |
24 | + | |
25 | - | Event.OnServerEvent:Connect(function(FiredBy,Input) |
25 | + | |
26 | - | if FiredBy.Name ~= owner.Name then end |
26 | + | |
27 | - | if Input.MouseEvent then |
27 | + | |
28 | - | Mouse.Target = Input.Target |
28 | + | |
29 | - | Mouse.Hit = Input.Hit |
29 | + | |
30 | Vec3 = Vector3.new | |
31 | - | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
31 | + | |
32 | - | if Input.UserInputType == Enum.UserInputType.MouseButton1 then |
32 | + | |
33 | - | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") |
33 | + | |
34 | vt = Vector3.new | |
35 | - | for _,Action in pairs(ContextActionService.Actions) do |
35 | + | |
36 | - | for _,Key in pairs(Action.Keys) do |
36 | + | |
37 | - | if Key==Input.KeyCode then |
37 | + | |
38 | - | Action.Function(Action.Name,Input.UserInputState,Input) |
38 | + | |
39 | local Booleans = {CamFollow = true, GyroUse = true} | |
40 | function lerp(object, newCFrame, alpha) | |
41 | return object:lerp(newCFrame, alpha) | |
42 | - | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
42 | + | |
43 | - | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
43 | + | |
44 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character) | |
45 | ff.Visible = false | |
46 | - | InternalData["Mouse"] = Mouse |
46 | + | |
47 | - | InternalData["ContextActionService"] = ContextActionService |
47 | + | |
48 | - | InternalData["UserInputService"] = UserInputService |
48 | + | |
49 | - | Event.Parent = NLS([[ |
49 | + | |
50 | - | local Player = owner |
50 | + | |
51 | - | local Event = script:WaitForChild("UserInput") |
51 | + | |
52 | - | local UserInputService = game:GetService("UserInputService") |
52 | + | |
53 | - | local Mouse = Player:GetMouse() |
53 | + | |
54 | - | local Input = function(Input,gameProcessedEvent) |
54 | + | |
55 | - | if gameProcessedEvent then return end |
55 | + | |
56 | - | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
56 | + | |
57 | local chaosmode = false | |
58 | - | UserInputService.InputBegan:Connect(Input) |
58 | + | |
59 | - | UserInputService.InputEnded:Connect(Input) |
59 | + | |
60 | - | local Hit,Target |
60 | + | |
61 | - | while wait(1/30) do |
61 | + | |
62 | - | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
62 | + | |
63 | - | Hit,Target = Mouse.Hit,Mouse.Target |
63 | + | |
64 | - | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
64 | + | |
65 | kan.Looped = true | |
66 | kan:Play() | |
67 | - | ]],owner.Character) |
67 | + | |
68 | local kanz = kan | |
69 | - | RealGame = game;game = setmetatable({},{ |
69 | + | |
70 | - | __index = function (self,Index) |
70 | + | |
71 | - | local Sandbox = function (Thing) |
71 | + | |
72 | - | if Thing:IsA("Player") then |
72 | + | |
73 | - | local RealPlayer = Thing |
73 | + | |
74 | - | return setmetatable({},{ |
74 | + | |
75 | - | __index = function (self,Index) |
75 | + | |
76 | - | local Type = type(RealPlayer[Index]) |
76 | + | |
77 | - | if Type == "function" then |
77 | + | |
78 | - | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
78 | + | |
79 | - | return function (self) |
79 | + | |
80 | - | return InternalData["Mouse"] |
80 | + | |
81 | local ef = Power | |
82 | if ef >= 1 then | |
83 | - | return function (self,...) |
83 | + | |
84 | - | return RealPlayer[Index](RealPlayer,...) |
84 | + | |
85 | ef = Power * 10 | |
86 | - | else |
86 | + | |
87 | - | if Index == "PlrObj" then |
87 | + | |
88 | - | return RealPlayer |
88 | + | |
89 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
90 | - | return RealPlayer[Index] |
90 | + | |
91 | end)) | |
92 | - | end; |
92 | + | |
93 | - | __tostring = function(self) |
93 | + | |
94 | - | return RealPlayer.Name |
94 | + | |
95 | local intensity = 1 * Intensity | |
96 | local rotM = 0.01 * Intensity | |
97 | for i = 0, Length, 0.1 do | |
98 | swait() | |
99 | - | if RealGame[Index] then |
99 | + | |
100 | - | local Type = type(RealGame[Index]) |
100 | + | |
101 | - | if Type == "function" then |
101 | + | |
102 | - | if Index:lower() == "getservice" or Index:lower() == "service" then |
102 | + | |
103 | - | return function (self,Service) |
103 | + | |
104 | - | if Service:lower() == "players" then |
104 | + | |
105 | - | return setmetatable({},{ |
105 | + | |
106 | - | __index = function (self2,Index2) |
106 | + | |
107 | - | local RealService = RealGame:GetService(Service) |
107 | + | |
108 | - | local Type2 = type(Index2) |
108 | + | |
109 | - | if Type2 == "function" then |
109 | + | |
110 | - | return function (self,...) |
110 | + | |
111 | - | return RealService[Index2](RealService,...) |
111 | + | |
112 | - | end |
112 | + | |
113 | do | |
114 | - | if Index2:lower() == "localplayer" then |
114 | + | |
115 | - | return Sandbox(owner) |
115 | + | |
116 | - | end |
116 | + | |
117 | - | return RealService[Index2] |
117 | + | |
118 | FV.Name = "CameraShake" | |
119 | - | end; |
119 | + | |
120 | - | __tostring = function(self) |
120 | + | |
121 | - | return RealGame:GetService(Service).Name |
121 | + | |
122 | if ef >= 1 then | |
123 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
124 | - | elseif Service:lower() == "contextactionservice" then |
124 | + | |
125 | - | return InternalData["ContextActionService"] |
125 | + | |
126 | - | elseif Service:lower() == "contextactionservice" then |
126 | + | |
127 | - | return InternalData["UserInputService"] |
127 | + | |
128 | - | elseif Service:lower() == "runservice" then |
128 | + | |
129 | - | return setmetatable({},{ |
129 | + | |
130 | - | __index = function(self2,Index2) |
130 | + | |
131 | - | local RealService = RealGame:GetService(Service) |
131 | + | |
132 | - | local Type2 = type(Index2) |
132 | + | |
133 | - | if Type2 == "function" then |
133 | + | |
134 | - | return function (self,...) |
134 | + | |
135 | - | return RealService[Index2](RealService,...) |
135 | + | |
136 | - | end |
136 | + | |
137 | end | |
138 | - | if Index2:lower() == "bindtorenderstep" then |
138 | + | |
139 | - | return function (self,Name,Priority,Function) |
139 | + | |
140 | - | return RealGame:GetService("RunService").Stepped:Connect(Function) |
140 | + | |
141 | - | end |
141 | + | |
142 | - | end |
142 | + | |
143 | - | if Index2:lower() == "renderstepped" then |
143 | + | |
144 | - | return RealService["Stepped"] |
144 | + | |
145 | - | end |
145 | + | |
146 | - | return RealService[Index2] |
146 | + | |
147 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
148 | naeeym2.Adornee = Character.Head | |
149 | naeeym2.Name = "TalkingBillBoard" | |
150 | - | else |
150 | + | |
151 | - | return RealGame:GetService(Service) |
151 | + | |
152 | tecks2.BorderSizePixel = 0 | |
153 | tecks2.Text = "" | |
154 | tecks2.Font = "SciFi" | |
155 | - | return function (self,...) |
155 | + | |
156 | - | return RealGame[Index](RealGame,...) |
156 | + | |
157 | tecks2.TextColor3 = color | |
158 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
159 | - | if game:GetService(Index) then |
159 | + | |
160 | - | return game:GetService(Index) |
160 | + | |
161 | tecks3.BackgroundTransparency = 1 | |
162 | - | return RealGame[Index] |
162 | + | |
163 | tecks3.Text = "" | |
164 | tecks3.Font = "SciFi" | |
165 | - | return nil |
165 | + | |
166 | tecks3.TextStrokeTransparency = 0 | |
167 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
168 | - | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} |
168 | + | |
169 | - | print("Complete! Running...") |
169 | + | |
170 | coroutine.resume(coroutine.create(function() | |
171 | while true do | |
172 | - | --//Paste script below this line. |
172 | + | |
173 | if chaosmode == true then | |
174 | tecks2.TextColor3 = BrickColor.random().Color | |
175 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
176 | end | |
177 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
178 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
179 | tecks2.Rotation = math.random(-5, 5) | |
180 | tecks3.Rotation = math.random(-5, 5) | |
181 | end | |
182 | end)) | |
183 | for i = 1, string.len(text) do | |
184 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
185 | tecks2.Text = string.sub(text, 1, i) | |
186 | tecks3.Text = string.sub(text, 1, i) | |
187 | swait(1) | |
188 | end | |
189 | wait(1) | |
190 | local randomrot = math.random(1, 2) | |
191 | if randomrot == 1 then | |
192 | for i = 1, 50 do | |
193 | swait() | |
194 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
195 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
196 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
197 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
198 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
199 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
200 | end | |
201 | elseif randomrot == 2 then | |
202 | for i = 1, 50 do | |
203 | swait() | |
204 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
205 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
206 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
207 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
208 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
209 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
210 | end | |
211 | end | |
212 | naeeym2:Destroy() | |
213 | end) | |
214 | chat() | |
215 | end | |
216 | local Create = LoadLibrary("RbxUtility").Create | |
217 | CFuncs = { | |
218 | Part = { | |
219 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
220 | local Part = Create("Part")({ | |
221 | Parent = Parent, | |
222 | Reflectance = Reflectance, | |
223 | Transparency = Transparency, | |
224 | CanCollide = false, | |
225 | Locked = true, | |
226 | BrickColor = BrickColor.new(tostring(BColor)), | |
227 | Name = Name, | |
228 | Size = Size, | |
229 | Material = Material | |
230 | }) | |
231 | RemoveOutlines(Part) | |
232 | return Part | |
233 | end | |
234 | }, | |
235 | Mesh = { | |
236 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
237 | local Msh = Create(Mesh)({ | |
238 | Parent = Part, | |
239 | Offset = OffSet, | |
240 | Scale = Scale | |
241 | }) | |
242 | if Mesh == "SpecialMesh" then | |
243 | Msh.MeshType = MeshType | |
244 | Msh.MeshId = MeshId | |
245 | end | |
246 | return Msh | |
247 | end | |
248 | }, | |
249 | Mesh = { | |
250 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
251 | local Msh = Create(Mesh)({ | |
252 | Parent = Part, | |
253 | Offset = OffSet, | |
254 | Scale = Scale | |
255 | }) | |
256 | if Mesh == "SpecialMesh" then | |
257 | Msh.MeshType = MeshType | |
258 | Msh.MeshId = MeshId | |
259 | end | |
260 | return Msh | |
261 | end | |
262 | }, | |
263 | Weld = { | |
264 | Create = function(Parent, Part0, Part1, C0, C1) | |
265 | local Weld = Create("Weld")({ | |
266 | Parent = Parent, | |
267 | Part0 = Part0, | |
268 | Part1 = Part1, | |
269 | C0 = C0, | |
270 | C1 = C1 | |
271 | }) | |
272 | return Weld | |
273 | end | |
274 | }, | |
275 | Sound = { | |
276 | Create = function(id, par, vol, pit) | |
277 | coroutine.resume(coroutine.create(function() | |
278 | local S = Create("Sound")({ | |
279 | Volume = vol, | |
280 | Pitch = pit or 1, | |
281 | SoundId = id, | |
282 | Parent = par or workspace | |
283 | }) | |
284 | wait() | |
285 | S:play() | |
286 | game:GetService("Debris"):AddItem(S, 10) | |
287 | end)) | |
288 | end | |
289 | }, | |
290 | LongSound = { | |
291 | Create = function(id, par, vol, pit) | |
292 | coroutine.resume(coroutine.create(function() | |
293 | local S = Create("Sound")({ | |
294 | Volume = vol, | |
295 | Pitch = pit or 1, | |
296 | SoundId = id, | |
297 | Parent = par or workspace | |
298 | }) | |
299 | wait() | |
300 | S:play() | |
301 | game:GetService("Debris"):AddItem(S, 30) | |
302 | end)) | |
303 | end | |
304 | }, | |
305 | ParticleEmitter = { | |
306 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
307 | local fp = Create("ParticleEmitter")({ | |
308 | Parent = Parent, | |
309 | Color = ColorSequence.new(Color1, Color2), | |
310 | LightEmission = LightEmission, | |
311 | Size = Size, | |
312 | Texture = Texture, | |
313 | Transparency = Transparency, | |
314 | ZOffset = ZOffset, | |
315 | Acceleration = Accel, | |
316 | Drag = Drag, | |
317 | LockedToPart = LockedToPart, | |
318 | VelocityInheritance = VelocityInheritance, | |
319 | EmissionDirection = EmissionDirection, | |
320 | Enabled = Enabled, | |
321 | Lifetime = LifeTime, | |
322 | Rate = Rate, | |
323 | Rotation = Rotation, | |
324 | RotSpeed = RotSpeed, | |
325 | Speed = Speed, | |
326 | VelocitySpread = VelocitySpread | |
327 | }) | |
328 | return fp | |
329 | end | |
330 | }, | |
331 | CreateTemplate = {} | |
332 | } | |
333 | function New(Object, Parent, Name, Data) | |
334 | local Object = Instance.new(Object) | |
335 | for Index, Value in pairs(Data or {}) do | |
336 | Object[Index] = Value | |
337 | end | |
338 | Object.Parent = Parent | |
339 | Object.Name = Name | |
340 | return Object | |
341 | end | |
342 | local halocolor = BrickColor.new("Pastel light blue") | |
343 | local halocolor2 = BrickColor.new("Really black") | |
344 | local starcolor = BrickColor.new("Really black") | |
345 | local lunacolor = BrickColor.new("Navy blue") | |
346 | local lunacolor2 = BrickColor.new("Bright blue") | |
347 | local wepcolor = BrickColor.new("Really black") | |
348 | local maincolor = BrickColor.new("Really black") | |
349 | local m = Instance.new("Model", char) | |
350 | local m2 = Instance.new("Model", char) | |
351 | local m3 = Instance.new("Model", char) | |
352 | local mw1 = Instance.new("Model", char) | |
353 | local mw2 = Instance.new("Model", char) | |
354 | local extrawingmod1 = Instance.new("Model", char) | |
355 | local extrawingmod2 = Instance.new("Model", char) | |
356 | function CreateParta(parent, transparency, reflectance, material, brickcolor) | |
357 | local p = Instance.new("Part") | |
358 | p.TopSurface = 0 | |
359 | p.BottomSurface = 0 | |
360 | p.Parent = parent | |
361 | p.Size = Vector3.new(0.1, 0.1, 0.1) | |
362 | p.Transparency = transparency | |
363 | p.Reflectance = reflectance | |
364 | p.CanCollide = false | |
365 | p.Locked = true | |
366 | p.BrickColor = brickcolor | |
367 | p.Material = material | |
368 | return p | |
369 | end | |
370 | function CreateMesh(parent, meshtype, x1, y1, z1) | |
371 | local mesh = Instance.new("SpecialMesh", parent) | |
372 | mesh.MeshType = meshtype | |
373 | mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10) | |
374 | return mesh | |
375 | end | |
376 | function CreateSpecialMesh(parent, meshid, x1, y1, z1) | |
377 | local mesh = Instance.new("SpecialMesh", parent) | |
378 | mesh.MeshType = "FileMesh" | |
379 | mesh.MeshId = meshid | |
380 | mesh.Scale = Vector3.new(x1, y1, z1) | |
381 | return mesh | |
382 | end | |
383 | function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1) | |
384 | local mesh = Instance.new("SpecialMesh", parent) | |
385 | mesh.MeshType = "FileMesh" | |
386 | mesh.MeshId = meshid | |
387 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
388 | mesh.Scale = Vector3.new(x1, y1, z1) | |
389 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
390 | return mesh | |
391 | end | |
392 | function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za) | |
393 | local weld = Instance.new("Weld") | |
394 | weld.Parent = parent | |
395 | weld.Part0 = part0 | |
396 | weld.Part1 = part1 | |
397 | weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za) | |
398 | weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za) | |
399 | return weld | |
400 | end | |
401 | local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor) | |
402 | CreateMesh(handle, "Brick", 0, 0, 0) | |
403 | 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)) | |
404 | local valuaring = 10 | |
405 | for i = 0, 49 do | |
406 | valuaring = valuaring + 10 | |
407 | rn = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
408 | CreateMesh(rn, "Brick", 0.25, 0.1, 0.1) | |
409 | CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
410 | end | |
411 | local handle = CreateParta(m, 1, 1, "Neon", maincolor) | |
412 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
413 | 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)) | |
414 | local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
415 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
416 | 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)) | |
417 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
418 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
419 | 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)) | |
420 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
421 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
422 | 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)) | |
423 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
424 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
425 | 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)) | |
426 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
427 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
428 | 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)) | |
429 | local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
430 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
431 | 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)) | |
432 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
433 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
434 | 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)) | |
435 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
436 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
437 | 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)) | |
438 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
439 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
440 | 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)) | |
441 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
442 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
443 | 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)) | |
444 | local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
445 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
446 | 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)) | |
447 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
448 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
449 | 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)) | |
450 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
451 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
452 | 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)) | |
453 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
454 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
455 | 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)) | |
456 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
457 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
458 | 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)) | |
459 | local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
460 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
461 | 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)) | |
462 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
463 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
464 | 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)) | |
465 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
466 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
467 | 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)) | |
468 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
469 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
470 | 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)) | |
471 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
472 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
473 | 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)) | |
474 | local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
475 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
476 | 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)) | |
477 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
478 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
479 | 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)) | |
480 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
481 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
482 | 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)) | |
483 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
484 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
485 | 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)) | |
486 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
487 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
488 | 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)) | |
489 | local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
490 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
491 | 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)) | |
492 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
493 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
494 | 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)) | |
495 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
496 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
497 | 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)) | |
498 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
499 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
500 | 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)) | |
501 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
502 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
503 | 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)) | |
504 | local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
505 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
506 | 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)) | |
507 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
508 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
509 | 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)) | |
510 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
511 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
512 | 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)) | |
513 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
514 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
515 | 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)) | |
516 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
517 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
518 | 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)) | |
519 | local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
520 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
521 | 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)) | |
522 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
523 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
524 | 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)) | |
525 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
526 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
527 | 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)) | |
528 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
529 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
530 | 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)) | |
531 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
532 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
533 | 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)) | |
534 | local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
535 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
536 | 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)) | |
537 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
538 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
539 | 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)) | |
540 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
541 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
542 | 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)) | |
543 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
544 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
545 | 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)) | |
546 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
547 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
548 | 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)) | |
549 | local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
550 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
551 | 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)) | |
552 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
553 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
554 | 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)) | |
555 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
556 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
557 | 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)) | |
558 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
559 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
560 | 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)) | |
561 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
562 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
563 | 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)) | |
564 | local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
565 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
566 | 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)) | |
567 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
568 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
569 | 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)) | |
570 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
571 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
572 | 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)) | |
573 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
574 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
575 | 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)) | |
576 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
577 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
578 | 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)) | |
579 | local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
580 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
581 | 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)) | |
582 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
583 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
584 | 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)) | |
585 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
586 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
587 | 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)) | |
588 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
589 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
590 | 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)) | |
591 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
592 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
593 | 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)) | |
594 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
595 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
596 | 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)) | |
597 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
598 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
599 | 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)) | |
600 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
601 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
602 | 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)) | |
603 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
604 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
605 | 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)) | |
606 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
607 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
608 | 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)) | |
609 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
610 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
611 | 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)) | |
612 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
613 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
614 | 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)) | |
615 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
616 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
617 | 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)) | |
618 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
619 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
620 | 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)) | |
621 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
622 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
623 | 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)) | |
624 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
625 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
626 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
627 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
628 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
629 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
630 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
631 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
632 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
633 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
634 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
635 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
636 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
637 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
638 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
639 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
640 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
641 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
642 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
643 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
644 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
645 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
646 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
647 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
648 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
649 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
650 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
651 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
652 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
653 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
654 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
655 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
656 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
657 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
658 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
659 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
660 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
661 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
662 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
663 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
664 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
665 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
666 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
667 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
668 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
669 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
670 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
671 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
672 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
673 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
674 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
675 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
676 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
677 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
678 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
679 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
680 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
681 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
682 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
683 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
684 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
685 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
686 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
687 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
688 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
689 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
690 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
691 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
692 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
693 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
694 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
695 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
696 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
697 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
698 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
699 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
700 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
701 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
702 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
703 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
704 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
705 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
706 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
707 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
708 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
709 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
710 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
711 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
712 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
713 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
714 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
715 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
716 | 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)) | |
717 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
718 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
719 | 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)) | |
720 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
721 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
722 | 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)) | |
723 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
724 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
725 | 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)) | |
726 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
727 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
728 | 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)) | |
729 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
730 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
731 | 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)) | |
732 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
733 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
734 | 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)) | |
735 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
736 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
737 | 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)) | |
738 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
739 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
740 | 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)) | |
741 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
742 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
743 | 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)) | |
744 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
745 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
746 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
747 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
748 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
749 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
750 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
751 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
752 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
753 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
754 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
755 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
756 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
757 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
758 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
759 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
760 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
761 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
762 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
763 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
764 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
765 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
766 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
767 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
768 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
769 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
770 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
771 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
772 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
773 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
774 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
775 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
776 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
777 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
778 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
779 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
780 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
781 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
782 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
783 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
784 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
785 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
786 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
787 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
788 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
789 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
790 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
791 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
792 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
793 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
794 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
795 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
796 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
797 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
798 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
799 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
800 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
801 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
802 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
803 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
804 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
805 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
806 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
807 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
808 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
809 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
810 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
811 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
812 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
813 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
814 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
815 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
816 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
817 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
818 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
819 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
820 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
821 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
822 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
823 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
824 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
825 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
826 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
827 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
828 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
829 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
830 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
831 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
832 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
833 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
834 | for i, v in pairs(m:GetChildren()) do | |
835 | if v:IsA("Part") then | |
836 | v.BrickColor = BrickColor.new("Really black") | |
837 | v.Material = "Glass" | |
838 | end | |
839 | end | |
840 | for i, v in pairs(m2:GetChildren()) do | |
841 | if v:IsA("Part") then | |
842 | v.BrickColor = BrickColor.new("Crimson") | |
843 | v.Material = "Granite" | |
844 | end | |
845 | end | |
846 | for i, v in pairs(m3:GetChildren()) do | |
847 | if v:IsA("Part") then | |
848 | v.BrickColor = BrickColor.new("Really red") | |
849 | v.Material = "Neon" | |
850 | end | |
851 | end | |
852 | for i, v in pairs(mw2:GetChildren()) do | |
853 | if v:IsA("Part") then | |
854 | v.BrickColor = BrickColor.new("Really red") | |
855 | v.Material = "Neon" | |
856 | end | |
857 | end | |
858 | for i, v in pairs(mw1:GetChildren()) do | |
859 | if v:IsA("Part") then | |
860 | v.Transparency = 1 | |
861 | v.BrickColor = BrickColor.new("Really red") | |
862 | v.Material = "Neon" | |
863 | end | |
864 | end | |
865 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
866 | if v:IsA("Part") then | |
867 | v.Transparency = 1 | |
868 | v.BrickColor = BrickColor.new("White") | |
869 | v.Material = "Neon" | |
870 | end | |
871 | end | |
872 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
873 | if v:IsA("Part") then | |
874 | v.Transparency = 1 | |
875 | v.BrickColor = BrickColor.new("White") | |
876 | v.Material = "Neon" | |
877 | end | |
878 | end | |
879 | ||
880 | FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
881 | Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
882 | Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
883 | FHead.CanCollide = false | |
884 | ||
885 | ||
886 | ||
887 | local MAINRUINCOLOR = BrickColor.new("Really red") | |
888 | function RemoveOutlines(part) | |
889 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
890 | end | |
891 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
892 | local Part = Create("Part")({ | |
893 | Parent = Parent, | |
894 | Reflectance = Reflectance, | |
895 | Transparency = Transparency, | |
896 | CanCollide = false, | |
897 | Locked = true, | |
898 | BrickColor = BrickColor.new(tostring(BColor)), | |
899 | Name = Name, | |
900 | Size = Size, | |
901 | Material = Material | |
902 | }) | |
903 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
904 | RemoveOutlines(Part) | |
905 | return Part | |
906 | end | |
907 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
908 | local Msh = Create(Mesh)({ | |
909 | Parent = Part, | |
910 | Offset = OffSet, | |
911 | Scale = Scale | |
912 | }) | |
913 | if Mesh == "SpecialMesh" then | |
914 | Msh.MeshType = MeshType | |
915 | Msh.MeshId = MeshId | |
916 | end | |
917 | return Msh | |
918 | end | |
919 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
920 | local Weld = Create("Weld")({ | |
921 | Parent = Parent, | |
922 | Part0 = Part0, | |
923 | Part1 = Part1, | |
924 | C0 = C0, | |
925 | C1 = C1 | |
926 | }) | |
927 | return Weld | |
928 | end | |
929 | Player = game:GetService("Players").LocalPlayer | |
930 | Character = Player.Character | |
931 | PlayerGui = Player.PlayerGui | |
932 | Backpack = Player.Backpack | |
933 | Torso = Character.Torso | |
934 | Head = Character.Head | |
935 | Humanoid = Character.Humanoid | |
936 | m = Instance.new("Model", Character) | |
937 | LeftArm = Character["Left Arm"] | |
938 | LeftLeg = Character["Left Leg"] | |
939 | RightArm = Character["Right Arm"] | |
940 | RightLeg = Character["Right Leg"] | |
941 | LS = Torso["Left Shoulder"] | |
942 | LH = Torso["Left Hip"] | |
943 | RS = Torso["Right Shoulder"] | |
944 | RH = Torso["Right Hip"] | |
945 | Face = Head.face | |
946 | Neck = Torso.Neck | |
947 | it = Instance.new | |
948 | attacktype = 1 | |
949 | vt = Vector3.new | |
950 | cf = CFrame.new | |
951 | euler = CFrame.fromEulerAnglesXYZ | |
952 | angles = CFrame.Angles | |
953 | cloaked = false | |
954 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
955 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
956 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
957 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
958 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
959 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
960 | RootPart = Character.HumanoidRootPart | |
961 | RootJoint = RootPart.RootJoint | |
962 | RootCF = euler(-1.57, 0, 3.14) | |
963 | attack = false | |
964 | attackdebounce = false | |
965 | deb = false | |
966 | equipped = true | |
967 | hand = false | |
968 | MMouse = nil | |
969 | combo = 0 | |
970 | mana = 0 | |
971 | trispeed = 0.2 | |
972 | attackmode = "none" | |
973 | local idle = 0 | |
974 | local Anim = "Idle" | |
975 | local Effects = {} | |
976 | local gun = false | |
977 | local shoot = false | |
978 | local sine = 0 | |
979 | local change = 1 | |
980 | player = nil | |
981 | local toggleTag = true | |
982 | local txt = Instance.new("BillboardGui", Head) | |
983 | txt.Adornee = nil | |
984 | txt.Name = "NameDetect" | |
985 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
986 | txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0) | |
987 | local text = Instance.new("TextLabel", txt) | |
988 | text.Size = UDim2.new(5, 0, 3.5, 0) | |
989 | text.FontSize = "Size8" | |
990 | text.TextScaled = true | |
991 | text.TextTransparency = 0 | |
992 | text.BackgroundTransparency = 1 | |
993 | text.TextTransparency = 0 | |
994 | text.TextStrokeTransparency = 0 | |
995 | text.Font = "Fantasy" | |
996 | text.TextStrokeColor3 = Color3.new(1, 0, 0) | |
997 | text.TextColor3 = Color3.new(0, 0, 0) | |
998 | text.Text = "Sweet Dreams" | |
999 | function RecolorTextAndRename(name, col1, col2) | |
1000 | text.TextStrokeColor3 = col2 | |
1001 | text.TextColor3 = col1 | |
1002 | text.Text = name | |
1003 | end | |
1004 | mouse = Player:GetMouse() | |
1005 | RSH, LSH = nil, nil | |
1006 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
1007 | RW.Name = "Right Shoulder" | |
1008 | LW.Name = "Left Shoulder" | |
1009 | LH = Torso["Left Hip"] | |
1010 | RH = Torso["Right Hip"] | |
1011 | TorsoColor = Torso.BrickColor | |
1012 | function NoOutline(Part) | |
1013 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1014 | end | |
1015 | player = Player | |
1016 | ch = Character | |
1017 | RSH = ch.Torso["Right Shoulder"] | |
1018 | LSH = ch.Torso["Left Shoulder"] | |
1019 | RSH.Parent = nil | |
1020 | LSH.Parent = nil | |
1021 | RW.Name = "Right Shoulder" | |
1022 | RW.Part0 = ch.Torso | |
1023 | RW.C0 = cf(1.5, 0.5, 0) | |
1024 | RW.C1 = cf(0, 0.5, 0) | |
1025 | RW.Part1 = ch["Right Arm"] | |
1026 | RW.Parent = ch.Torso | |
1027 | LW.Name = "Left Shoulder" | |
1028 | LW.Part0 = ch.Torso | |
1029 | LW.C0 = cf(-1.5, 0.5, 0) | |
1030 | LW.C1 = cf(0, 0.5, 0) | |
1031 | LW.Part1 = ch["Left Arm"] | |
1032 | LW.Parent = ch.Torso | |
1033 | local Stats = Instance.new("BoolValue") | |
1034 | Stats.Name = "Stats" | |
1035 | Stats.Parent = Character | |
1036 | local Atk = Instance.new("NumberValue") | |
1037 | Atk.Name = "Damage" | |
1038 | Atk.Parent = Stats | |
1039 | Atk.Value = 1 | |
1040 | local Def = Instance.new("NumberValue") | |
1041 | Def.Name = "Defense" | |
1042 | Def.Parent = Stats | |
1043 | Def.Value = 1 | |
1044 | local Speed = Instance.new("NumberValue") | |
1045 | Speed.Name = "Speed" | |
1046 | Speed.Parent = Stats | |
1047 | Speed.Value = 1 | |
1048 | local Mvmt = Instance.new("NumberValue") | |
1049 | Mvmt.Name = "Movement" | |
1050 | Mvmt.Parent = Stats | |
1051 | Mvmt.Value = 1 | |
1052 | local donum = 0 | |
1053 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
1054 | local fp = it("Part") | |
1055 | fp.formFactor = formfactor | |
1056 | fp.Parent = parent | |
1057 | fp.Reflectance = reflectance | |
1058 | fp.Transparency = transparency | |
1059 | fp.CanCollide = false | |
1060 | fp.Locked = true | |
1061 | fp.BrickColor = brickcolor | |
1062 | fp.Name = name | |
1063 | fp.Size = size | |
1064 | fp.Position = Torso.Position | |
1065 | NoOutline(fp) | |
1066 | fp.Material = "SmoothPlastic" | |
1067 | fp:BreakJoints() | |
1068 | return fp | |
1069 | end | |
1070 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
1071 | local mesh = it(Mesh) | |
1072 | mesh.Parent = part | |
1073 | if Mesh == "SpecialMesh" then | |
1074 | mesh.MeshType = meshtype | |
1075 | if meshid ~= "nil" then | |
1076 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
1077 | end | |
1078 | end | |
1079 | mesh.Offset = offset | |
1080 | mesh.Scale = scale | |
1081 | return mesh | |
1082 | end | |
1083 | function weld(parent, part0, part1, c0) | |
1084 | local weld = it("Weld") | |
1085 | weld.Parent = parent | |
1086 | weld.Part0 = part0 | |
1087 | weld.Part1 = part1 | |
1088 | weld.C0 = c0 | |
1089 | return weld | |
1090 | end | |
1091 | local Color1 = Torso.BrickColor | |
1092 | local bodvel = Instance.new("BodyVelocity") | |
1093 | local bg = Instance.new("BodyGyro") | |
1094 | function swait(num) | |
1095 | if num == 0 or num == nil then | |
1096 | game:service("RunService").Stepped:wait(0) | |
1097 | else | |
1098 | for i = 0, num do | |
1099 | game:service("RunService").Stepped:wait(0) | |
1100 | end | |
1101 | end | |
1102 | end | |
1103 | local r = 255 | |
1104 | local g = 0 | |
1105 | local b = 0 | |
1106 | coroutine.resume(coroutine.create(function() | |
1107 | while wait() do | |
1108 | for i = 0, 50.8 do | |
1109 | swait() | |
1110 | g = g + 5 | |
1111 | end | |
1112 | for i = 0, 50.8 do | |
1113 | swait() | |
1114 | r = r - 5 | |
1115 | end | |
1116 | for i = 0, 50.8 do | |
1117 | swait() | |
1118 | b = b + 5 | |
1119 | end | |
1120 | for i = 0, 50.8 do | |
1121 | swait() | |
1122 | g = g - 5 | |
1123 | end | |
1124 | for i = 0, 50.8 do | |
1125 | swait() | |
1126 | r = r + 5 | |
1127 | end | |
1128 | for i = 0, 50.8 do | |
1129 | swait() | |
1130 | b = b - 5 | |
1131 | end | |
1132 | end | |
1133 | end)) | |
1134 | function so(id, par, vol, pit) | |
1135 | coroutine.resume(coroutine.create(function() | |
1136 | local sou = Instance.new("Sound", par or workspace) | |
1137 | sou.Volume = vol | |
1138 | sou.Pitch = pit or 1 | |
1139 | sou.SoundId = id | |
1140 | swait() | |
1141 | sou:play() | |
1142 | game:GetService("Debris"):AddItem(sou, 6) | |
1143 | end)) | |
1144 | end | |
1145 | function clerp(a, b, t) | |
1146 | local qa = { | |
1147 | QuaternionFromCFrame(a) | |
1148 | } | |
1149 | local qb = { | |
1150 | QuaternionFromCFrame(b) | |
1151 | } | |
1152 | local ax, ay, az = a.x, a.y, a.z | |
1153 | local bx, by, bz = b.x, b.y, b.z | |
1154 | local _t = 1 - t | |
1155 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1156 | end | |
1157 | function QuaternionFromCFrame(cf) | |
1158 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1159 | local trace = m00 + m11 + m22 | |
1160 | if trace > 0 then | |
1161 | local s = math.sqrt(1 + trace) | |
1162 | local recip = 0.5 / s | |
1163 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1164 | else | |
1165 | local i = 0 | |
1166 | if m00 < m11 then | |
1167 | i = 1 | |
1168 | end | |
1169 | if m22 > (i == 0 and m00 or m11) then | |
1170 | i = 2 | |
1171 | end | |
1172 | if i == 0 then | |
1173 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1174 | local recip = 0.5 / s | |
1175 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1176 | elseif i == 1 then | |
1177 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1178 | local recip = 0.5 / s | |
1179 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1180 | elseif i == 2 then | |
1181 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1182 | local recip = 0.5 / s | |
1183 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1184 | end | |
1185 | end | |
1186 | end | |
1187 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1188 | local xs, ys, zs = x + x, y + y, z + z | |
1189 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1190 | local xx = x * xs | |
1191 | local xy = x * ys | |
1192 | local xz = x * zs | |
1193 | local yy = y * ys | |
1194 | local yz = y * zs | |
1195 | local zz = z * zs | |
1196 | 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)) | |
1197 | end | |
1198 | function QuaternionSlerp(a, b, t) | |
1199 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1200 | local startInterp, finishInterp | |
1201 | if cosTheta >= 1.0E-4 then | |
1202 | if 1 - cosTheta > 1.0E-4 then | |
1203 | local theta = math.acos(cosTheta) | |
1204 | local invSinTheta = 1 / math.sin(theta) | |
1205 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
1206 | finishInterp = math.sin(t * theta) * invSinTheta | |
1207 | else | |
1208 | startInterp = 1 - t | |
1209 | finishInterp = t | |
1210 | end | |
1211 | elseif 1 + cosTheta > 1.0E-4 then | |
1212 | local theta = math.acos(-cosTheta) | |
1213 | local invSinTheta = 1 / math.sin(theta) | |
1214 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
1215 | finishInterp = math.sin(t * theta) * invSinTheta | |
1216 | else | |
1217 | startInterp = t - 1 | |
1218 | finishInterp = t | |
1219 | end | |
1220 | 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 | |
1221 | end | |
1222 | local CFrameFromTopBack = function(at, top, back) | |
1223 | local right = top:Cross(back) | |
1224 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1225 | end | |
1226 | function Triangle(a, b, c) | |
1227 | local edg1 = (c - a):Dot((b - a).unit) | |
1228 | local edg2 = (a - b):Dot((c - b).unit) | |
1229 | local edg3 = (b - c):Dot((a - c).unit) | |
1230 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
1231 | a, b = a, b | |
1232 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
1233 | a, b, c = b, c, a | |
1234 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
1235 | a, b, c = c, a, b | |
1236 | else | |
1237 | assert(false, "unreachable") | |
1238 | end | |
1239 | local len1 = (c - a):Dot((b - a).unit) | |
1240 | local len2 = (b - a).magnitude - len1 | |
1241 | local width = (a + (b - a).unit * len1 - c).magnitude | |
1242 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
1243 | local list = {} | |
1244 | if len1 > 0.01 then | |
1245 | local w1 = Instance.new("WedgePart", m) | |
1246 | game:GetService("Debris"):AddItem(w1, 5) | |
1247 | w1.Material = "SmoothPlastic" | |
1248 | w1.FormFactor = "Custom" | |
1249 | w1.BrickColor = BrickColor.new("Really red") | |
1250 | w1.Transparency = 0 | |
1251 | w1.Reflectance = 0 | |
1252 | w1.Material = "SmoothPlastic" | |
1253 | w1.CanCollide = false | |
1254 | local l1 = Instance.new("PointLight", w1) | |
1255 | l1.Color = Color3.new(170, 0, 0) | |
1256 | NoOutline(w1) | |
1257 | local sz = Vector3.new(0.2, width, len1) | |
1258 | w1.Size = sz | |
1259 | local sp = Instance.new("SpecialMesh", w1) | |
1260 | sp.MeshType = "Wedge" | |
1261 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
1262 | w1:BreakJoints() | |
1263 | w1.Anchored = true | |
1264 | w1.Parent = workspace | |
1265 | w1.Transparency = 0.7 | |
1266 | table.insert(Effects, { | |
1267 | w1, | |
1268 | "Disappear", | |
1269 | 0.01 | |
1270 | }) | |
1271 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
1272 | table.insert(list, w1) | |
1273 | end | |
1274 | if len2 > 0.01 then | |
1275 | local w2 = Instance.new("WedgePart", m) | |
1276 | game:GetService("Debris"):AddItem(w2, 5) | |
1277 | w2.Material = "SmoothPlastic" | |
1278 | w2.FormFactor = "Custom" | |
1279 | w2.BrickColor = BrickColor.new("Really red") | |
1280 | w2.Transparency = 0 | |
1281 | w2.Reflectance = 0 | |
1282 | w2.Material = "SmoothPlastic" | |
1283 | w2.CanCollide = false | |
1284 | local l2 = Instance.new("PointLight", w2) | |
1285 | l2.Color = Color3.new(170, 0, 0) | |
1286 | NoOutline(w2) | |
1287 | local sz = Vector3.new(0.2, width, len2) | |
1288 | w2.Size = sz | |
1289 | local sp = Instance.new("SpecialMesh", w2) | |
1290 | sp.MeshType = "Wedge" | |
1291 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
1292 | w2:BreakJoints() | |
1293 | w2.Anchored = true | |
1294 | w2.Parent = workspace | |
1295 | w2.Transparency = 0.7 | |
1296 | table.insert(Effects, { | |
1297 | w2, | |
1298 | "Disappear", | |
1299 | 0.01 | |
1300 | }) | |
1301 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
1302 | table.insert(list, w2) | |
1303 | end | |
1304 | return unpack(list) | |
1305 | end | |
1306 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1307 | if hit.Parent == nil then | |
1308 | return | |
1309 | end | |
1310 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1311 | for _, v in pairs(hit.Parent:children()) do | |
1312 | if v:IsA("Humanoid") then | |
1313 | h = v | |
1314 | end | |
1315 | end | |
1316 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1317 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1318 | return | |
1319 | end | |
1320 | local c = Create("ObjectValue")({ | |
1321 | Name = "creator", | |
1322 | Value = RealGame:service("Players")[owner.Name], | |
1323 | Parent = h | |
1324 | }) | |
1325 | game:GetService("Debris"):AddItem(c, 0.5) | |
1326 | if HitSound ~= nil and HitPitch ~= nil then | |
1327 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1328 | end | |
1329 | local Damage = math.random(minim, maxim) | |
1330 | local blocked = false | |
1331 | local block = hit.Parent:findFirstChild("Block") | |
1332 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1333 | blocked = true | |
1334 | block.Value = block.Value - 1 | |
1335 | print(block.Value) | |
1336 | end | |
1337 | if blocked == false then | |
1338 | HitHealth = h.Health | |
1339 | h.Health = h.Health - Damage | |
1340 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1341 | print("gained kill") | |
1342 | end | |
1343 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1344 | else | |
1345 | h.Health = h.Health - Damage / 2 | |
1346 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1347 | end | |
1348 | if Type == "Knockdown" then | |
1349 | local hum = hit.Parent.Humanoid | |
1350 | hum.PlatformStand = true | |
1351 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1352 | swait(1) | |
1353 | HHumanoid.PlatformStand = false | |
1354 | end), hum) | |
1355 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1356 | local bodvol = Create("BodyVelocity")({ | |
1357 | velocity = angle * knockback, | |
1358 | P = 5000, | |
1359 | maxForce = Vector3.new(8000, 8000, 8000), | |
1360 | Parent = hit | |
1361 | }) | |
1362 | local rl = Create("BodyAngularVelocity")({ | |
1363 | P = 3000, | |
1364 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1365 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1366 | Parent = hit | |
1367 | }) | |
1368 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1369 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1370 | elseif Type == "Normal" then | |
1371 | local vp = Create("BodyVelocity")({ | |
1372 | P = 500, | |
1373 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1374 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1375 | }) | |
1376 | if knockback > 0 then | |
1377 | vp.Parent = hit.Parent.Head | |
1378 | end | |
1379 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1380 | elseif Type == "Up" then | |
1381 | local bodyVelocity = Create("BodyVelocity")({ | |
1382 | velocity = Vector3.new(0, 20, 0), | |
1383 | P = 5000, | |
1384 | maxForce = Vector3.new(8000, 8000, 8000), | |
1385 | Parent = hit | |
1386 | }) | |
1387 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1388 | local bodyVelocity = Create("BodyVelocity")({ | |
1389 | velocity = Vector3.new(0, 20, 0), | |
1390 | P = 5000, | |
1391 | maxForce = Vector3.new(8000, 8000, 8000), | |
1392 | Parent = hit | |
1393 | }) | |
1394 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1395 | elseif Type == "Leech" then | |
1396 | local hum = hit.Parent.Humanoid | |
1397 | if hum ~= nil then | |
1398 | for i = 0, 2 do | |
1399 | 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) | |
1400 | end | |
1401 | Humanoid.Health = Humanoid.Health + 10 | |
1402 | end | |
1403 | elseif Type == "UpKnock" then | |
1404 | local hum = hit.Parent.Humanoid | |
1405 | hum.PlatformStand = true | |
1406 | if hum ~= nil then | |
1407 | hitr = true | |
1408 | end | |
1409 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1410 | swait(5) | |
1411 | HHumanoid.PlatformStand = false | |
1412 | hitr = false | |
1413 | end), hum) | |
1414 | local bodyVelocity = Create("BodyVelocity")({ | |
1415 | velocity = Vector3.new(0, 20, 0), | |
1416 | P = 5000, | |
1417 | maxForce = Vector3.new(8000, 8000, 8000), | |
1418 | Parent = hit | |
1419 | }) | |
1420 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1421 | local bodyVelocity = Create("BodyVelocity")({ | |
1422 | velocity = Vector3.new(0, 20, 0), | |
1423 | P = 5000, | |
1424 | maxForce = Vector3.new(8000, 8000, 8000), | |
1425 | Parent = hit | |
1426 | }) | |
1427 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1428 | elseif Type == "Snare" then | |
1429 | local bp = Create("BodyPosition")({ | |
1430 | P = 2000, | |
1431 | D = 100, | |
1432 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1433 | position = hit.Parent.Torso.Position, | |
1434 | Parent = hit.Parent.Torso | |
1435 | }) | |
1436 | game:GetService("Debris"):AddItem(bp, 1) | |
1437 | elseif Type == "Slashnare" then | |
1438 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07) | |
1439 | for i = 1, math.random(4, 5) do | |
1440 | 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) | |
1441 | end | |
1442 | local bp = Create("BodyPosition")({ | |
1443 | P = 2000, | |
1444 | D = 100, | |
1445 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1446 | position = hit.Parent.Torso.Position, | |
1447 | Parent = hit.Parent.Torso | |
1448 | }) | |
1449 | game:GetService("Debris"):AddItem(bp, 1) | |
1450 | elseif Type == "Spike" then | |
1451 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1452 | local bp = Create("BodyPosition")({ | |
1453 | P = 2000, | |
1454 | D = 100, | |
1455 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1456 | position = hit.Parent.Torso.Position, | |
1457 | Parent = hit.Parent.Torso | |
1458 | }) | |
1459 | game:GetService("Debris"):AddItem(bp, 1) | |
1460 | elseif Type == "Freeze" then | |
1461 | local BodPos = Create("BodyPosition")({ | |
1462 | P = 50000, | |
1463 | D = 1000, | |
1464 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1465 | position = hit.Parent.Torso.Position, | |
1466 | Parent = hit.Parent.Torso | |
1467 | }) | |
1468 | local BodGy = Create("BodyGyro")({ | |
1469 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1470 | P = 20000, | |
1471 | Parent = hit.Parent.Torso, | |
1472 | cframe = hit.Parent.Torso.CFrame | |
1473 | }) | |
1474 | hit.Parent.Torso.Anchored = true | |
1475 | coroutine.resume(coroutine.create(function(Part) | |
1476 | swait(1.5) | |
1477 | Part.Anchored = false | |
1478 | end), hit.Parent.Torso) | |
1479 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1480 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1481 | end | |
1482 | local debounce = Create("BoolValue")({ | |
1483 | Name = "DebounceHit", | |
1484 | Parent = hit.Parent, | |
1485 | Value = true | |
1486 | }) | |
1487 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1488 | c = Instance.new("ObjectValue") | |
1489 | c.Name = "creator" | |
1490 | c.Value = RealGame:service("Players")[owner.Name]; | |
1491 | c.Parent = h | |
1492 | game:GetService("Debris"):AddItem(c, 0.5) | |
1493 | end | |
1494 | end | |
1495 | function ShowDamage(Pos, Text, Time, Color) | |
1496 | local Rate = 0.03333333333333333 | |
1497 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1498 | local Text = Text or "" | |
1499 | local Time = Time or 2 | |
1500 | local Color = Color or Color3.new(1, 0, 1) | |
1501 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1502 | EffectPart.Anchored = true | |
1503 | local BillboardGui = Create("BillboardGui")({ | |
1504 | Size = UDim2.new(3, 0, 3, 0), | |
1505 | Adornee = EffectPart, | |
1506 | Parent = EffectPart | |
1507 | }) | |
1508 | local TextLabel = Create("TextLabel")({ | |
1509 | BackgroundTransparency = 1, | |
1510 | Size = UDim2.new(1, 0, 1, 0), | |
1511 | Text = Text, | |
1512 | TextColor3 = Color, | |
1513 | TextScaled = true, | |
1514 | Font = Enum.Font.ArialBold, | |
1515 | Parent = BillboardGui | |
1516 | }) | |
1517 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1518 | EffectPart.Parent = game:GetService("Workspace") | |
1519 | delay(0, function() | |
1520 | local Frames = Time / Rate | |
1521 | for Frame = 1, Frames do | |
1522 | wait(Rate) | |
1523 | local Percent = Frame / Frames | |
1524 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1525 | TextLabel.TextTransparency = Percent | |
1526 | end | |
1527 | if EffectPart and EffectPart.Parent then | |
1528 | EffectPart:Destroy() | |
1529 | end | |
1530 | end) | |
1531 | end | |
1532 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1533 | for _, c in pairs(workspace:children()) do | |
1534 | local hum = c:findFirstChildOfClass("Humanoid") | |
1535 | if hum ~= nil then | |
1536 | local head = c:findFirstChild("Head") | |
1537 | if head ~= nil then | |
1538 | local targ = head.Position - Part.Position | |
1539 | local mag = targ.magnitude | |
1540 | if magni >= mag and c.Name ~= Player.Name then | |
1541 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1542 | end | |
1543 | end | |
1544 | end | |
1545 | end | |
1546 | end | |
1547 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1548 | for _, c in pairs(workspace:children()) do | |
1549 | local hum = c:findFirstChild("Humanoid") | |
1550 | if hum ~= nil then | |
1551 | local head = c:findFirstChild("Torso") | |
1552 | if head ~= nil then | |
1553 | local targ = head.Position - Part.Position | |
1554 | local mag = targ.magnitude | |
1555 | if magni >= mag and c.Name ~= Player.Name then | |
1556 | MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05) | |
1557 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | function rayCast(Pos, Dir, Max, Ignore) | |
1564 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1565 | end | |
1566 | function SkullEffect(brickcolor, cframe, x1, y1, z1, delay) | |
1567 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1568 | prt.Anchored = true | |
1569 | prt.CFrame = cframe | |
1570 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1)) | |
1571 | game:GetService("Debris"):AddItem(prt, 2) | |
1572 | CF = prt.CFrame | |
1573 | coroutine.resume(coroutine.create(function(Part, Mesh, TehCF) | |
1574 | for i = 0, 1, 0.2 do | |
1575 | wait() | |
1576 | Part.CFrame = CF * cf(0, 0, -0.4) | |
1577 | end | |
1578 | for i = 0, 1, delay do | |
1579 | wait() | |
1580 | Mesh.Scale = Mesh.Scale | |
1581 | end | |
1582 | for i = 0, 1, 0.1 do | |
1583 | wait() | |
1584 | Part.Transparency = i | |
1585 | end | |
1586 | Part.Parent = nil | |
1587 | end), prt, msh, CF) | |
1588 | end | |
1589 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1590 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1591 | prt.Anchored = true | |
1592 | prt.Material = "Neon" | |
1593 | prt.CFrame = cframe | |
1594 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1595 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1596 | game:GetService("Debris"):AddItem(prt, 5) | |
1597 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1598 | for i = 0, 1, delay do | |
1599 | swait() | |
1600 | Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1601 | Part.Transparency = i | |
1602 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1603 | end | |
1604 | Part.Parent = nil | |
1605 | end), prt, msh) | |
1606 | end | |
1607 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1608 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1609 | prt.Anchored = true | |
1610 | prt.Material = "Neon" | |
1611 | prt.CFrame = cframe | |
1612 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1613 | game:GetService("Debris"):AddItem(prt, 5) | |
1614 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1615 | local rtype = rottype | |
1616 | for i = 0, 1, delay do | |
1617 | swait() | |
1618 | if rtype == 1 then | |
1619 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1620 | elseif rtype == 2 then | |
1621 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1622 | end | |
1623 | Part.Transparency = i | |
1624 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1625 | end | |
1626 | Part.Parent = nil | |
1627 | end), prt, msh) | |
1628 | end | |
1629 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1630 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1631 | prt.Anchored = true | |
1632 | prt.CFrame = cframe | |
1633 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1634 | msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1635 | game:GetService("Debris"):AddItem(prt, 5) | |
1636 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1637 | for i = 0, 1, delay do | |
1638 | wait() | |
1639 | Part.Transparency = i | |
1640 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1641 | end | |
1642 | Part.Parent = nil | |
1643 | end), prt, msh) | |
1644 | end | |
1645 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1646 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1647 | prt.Anchored = true | |
1648 | prt.Material = "Neon" | |
1649 | prt.CFrame = cframe | |
1650 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1651 | game:GetService("Debris"):AddItem(prt, 5) | |
1652 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1653 | local rtype = rottype | |
1654 | for i = 0, 1, delay do | |
1655 | swait() | |
1656 | if rtype == 1 then | |
1657 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1658 | elseif rtype == 2 then | |
1659 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1660 | end | |
1661 | Part.Transparency = i | |
1662 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1663 | end | |
1664 | Part.Parent = nil | |
1665 | end), prt, msh) | |
1666 | end | |
1667 | function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1668 | local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1669 | prt.Anchored = true | |
1670 | prt.Material = "Neon" | |
1671 | prt.CFrame = cframe | |
1672 | local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
1673 | local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
1674 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01)) | |
1675 | game:GetService("Debris"):AddItem(prt, 5) | |
1676 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1677 | local rtype = rottype | |
1678 | for i = 0, 1, delay do | |
1679 | swait() | |
1680 | if rtype == 1 then | |
1681 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1682 | elseif rtype == 2 then | |
1683 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1684 | end | |
1685 | dec.Transparency = i | |
1686 | dec2.Transparency = i | |
1687 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1688 | end | |
1689 | Part.Parent = nil | |
1690 | end), prt, msh) | |
1691 | end | |
1692 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1693 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1694 | prt.Anchored = true | |
1695 | prt.Material = "Neon" | |
1696 | prt.CFrame = cframe | |
1697 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01)) | |
1698 | game:GetService("Debris"):AddItem(prt, 5) | |
1699 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1700 | local rtype = rottype | |
1701 | for i = 0, 1, delay do | |
1702 | swait() | |
1703 | if rtype == 1 then | |
1704 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1705 | elseif rtype == 2 then | |
1706 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1707 | end | |
1708 | prt.Transparency = i | |
1709 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1710 | end | |
1711 | Part.Parent = nil | |
1712 | end), prt, msh) | |
1713 | end | |
1714 | function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype) | |
1715 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1716 | prt.Anchored = true | |
1717 | prt.Material = "Neon" | |
1718 | prt.CFrame = cframe | |
1719 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1)) | |
1720 | game:GetService("Debris"):AddItem(prt, 5) | |
1721 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1722 | local rtype = rottype | |
1723 | for i = 0, 1, delay do | |
1724 | swait() | |
1725 | if rtype == 1 then | |
1726 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0) | |
1727 | elseif rtype == 2 then | |
1728 | prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0) | |
1729 | end | |
1730 | prt.Transparency = i | |
1731 | Mesh.Scale = Mesh.Scale + vt(x3, 0, z3) | |
1732 | end | |
1733 | Part.Parent = nil | |
1734 | end), prt, msh) | |
1735 | end | |
1736 | function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype) | |
1737 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1738 | prt.Anchored = true | |
1739 | prt.Material = "Neon" | |
1740 | prt.CFrame = cframe | |
1741 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1742 | game:GetService("Debris"):AddItem(prt, 5) | |
1743 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1744 | local rtype = rottype | |
1745 | for i = 0, 1, delay do | |
1746 | swait() | |
1747 | if rtype == 1 then | |
1748 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1749 | elseif rtype == 2 then | |
1750 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1751 | end | |
1752 | prt.Transparency = i | |
1753 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1754 | end | |
1755 | Part.Parent = nil | |
1756 | end), prt, msh) | |
1757 | end | |
1758 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1759 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1760 | prt.Anchored = true | |
1761 | prt.Material = "Neon" | |
1762 | prt.CFrame = cframe | |
1763 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1764 | game:GetService("Debris"):AddItem(prt, 5) | |
1765 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1766 | local rtype = rottype | |
1767 | for i = 0, 1, delay do | |
1768 | swait() | |
1769 | if rtype == 1 then | |
1770 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1771 | elseif rtype == 2 then | |
1772 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1773 | end | |
1774 | prt.Transparency = i | |
1775 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1776 | end | |
1777 | Part.Parent = nil | |
1778 | end), prt, msh) | |
1779 | end | |
1780 | function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
1781 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1782 | prt.Anchored = false | |
1783 | prt.CFrame = cframe | |
1784 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1785 | local wld = weld(prt, prt, Parent, cframe) | |
1786 | game:GetService("Debris"):AddItem(prt, 5) | |
1787 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
1788 | for i = 0, 1, delay do | |
1789 | wait() | |
1790 | Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe | |
1791 | Part.Transparency = i | |
1792 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1793 | end | |
1794 | Part.Parent = nil | |
1795 | end), prt, msh, wld) | |
1796 | end | |
1797 | function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
1798 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1799 | prt.Anchored = false | |
1800 | prt.CFrame = cframe | |
1801 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1802 | local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0)) | |
1803 | game:GetService("Debris"):AddItem(prt, 5) | |
1804 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
1805 | for i = 0, 1, delay do | |
1806 | wait() | |
1807 | Weld.C0 = euler(i * 20, 0, 0) | |
1808 | Part.Transparency = i | |
1809 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1810 | end | |
1811 | Part.Parent = nil | |
1812 | end), prt, msh, wld) | |
1813 | end | |
1814 | function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1815 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1816 | prt.Anchored = true | |
1817 | prt.CFrame = cframe | |
1818 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1819 | game:GetService("Debris"):AddItem(prt, 2) | |
1820 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1821 | for i = 0, 1, delay do | |
1822 | wait() | |
1823 | Part.CFrame = Part.CFrame | |
1824 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1825 | local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1826 | prt2.Anchored = true | |
1827 | prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1828 | local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5)) | |
1829 | game:GetService("Debris"):AddItem(prt2, 2) | |
1830 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1831 | for i = 0, 1, 0.1 do | |
1832 | wait() | |
1833 | Part.CFrame = Part.CFrame * cf(0, 0.5, 0) | |
1834 | end | |
1835 | Part.Parent = nil | |
1836 | end), prt2, msh2) | |
1837 | end | |
1838 | for i = 0, 1, delay * 2 do | |
1839 | wait() | |
1840 | Part.CFrame = Part.CFrame | |
1841 | Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i) | |
1842 | end | |
1843 | Part.Parent = nil | |
1844 | end), prt, msh) | |
1845 | end | |
1846 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1847 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1848 | prt.Anchored = true | |
1849 | prt.CFrame = cframe | |
1850 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1851 | game:GetService("Debris"):AddItem(prt, 2) | |
1852 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1853 | for i = 0, 1, delay do | |
1854 | wait() | |
1855 | Part.CFrame = Part.CFrame | |
1856 | Part.Transparency = i | |
1857 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1858 | end | |
1859 | Part.Parent = nil | |
1860 | end), prt, msh) | |
1861 | end | |
1862 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
1863 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1864 | prt.Anchored = true | |
1865 | prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1866 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1867 | game:GetService("Debris"):AddItem(prt, 2) | |
1868 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
1869 | CF = Part.CFrame | |
1870 | Numbb = 0 | |
1871 | randnumb = math.random() / 10 | |
1872 | rand1 = math.random() / 10 | |
1873 | for i = 0, 1, rand1 do | |
1874 | wait() | |
1875 | CF = CF * cf(0, math.random() / 2, 0) | |
1876 | Part.CFrame = CF * euler(Numbb, 0, 0) | |
1877 | Part.Transparency = i | |
1878 | Numbb = Numbb + randnumb | |
1879 | end | |
1880 | Part.Parent = nil | |
1881 | end), prt, CF, Numbb, randnumb) | |
1882 | end | |
1883 | function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1884 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1885 | prt.Anchored = true | |
1886 | prt.CFrame = cframe | |
1887 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1)) | |
1888 | game:GetService("Debris"):AddItem(prt, 5) | |
1889 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1890 | for i = 0, 1, delay do | |
1891 | wait() | |
1892 | Part.CFrame = Part.CFrame * euler(0, 0.7, 0) | |
1893 | Part.Transparency = i | |
1894 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1895 | end | |
1896 | Part.Parent = nil | |
1897 | end), prt, msh) | |
1898 | end | |
1899 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1900 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1901 | prt.Anchored = true | |
1902 | prt.CFrame = cframe | |
1903 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
1904 | game:GetService("Debris"):AddItem(prt, 2) | |
1905 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1906 | for i = 0, 1, delay do | |
1907 | wait() | |
1908 | Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0) | |
1909 | Part.Transparency = i | |
1910 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1911 | end | |
1912 | Part.Parent = nil | |
1913 | end), prt, msh) | |
1914 | end | |
1915 | function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay) | |
1916 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1917 | prt.Anchored = true | |
1918 | prt.CFrame = cframe * cf(x, y, z) | |
1919 | msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1)) | |
1920 | game:GetService("Debris"):AddItem(prt, 5) | |
1921 | coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee) | |
1922 | local num = math.random() | |
1923 | local num2 = math.random(-3, 2) + math.random() | |
1924 | local numm = 0 | |
1925 | for i = 0, 1, delay * 2 do | |
1926 | swait() | |
1927 | Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0) | |
1928 | Part.Transparency = i | |
1929 | numm = numm + 0.01 | |
1930 | end | |
1931 | Part.Parent = nil | |
1932 | Mesh.Parent = nil | |
1933 | end), prt, msh, x, y, z) | |
1934 | end | |
1935 | function dmgstart(dmg, what) | |
1936 | hitcon = what.Touched:connect(function(hit) | |
1937 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
1938 | if hum and not hum:IsDescendantOf(Character) then | |
1939 | hum:TakeDamage(dmg) | |
1940 | end | |
1941 | end) | |
1942 | end | |
1943 | function dmgstop() | |
1944 | hitcon:disconnect() | |
1945 | end | |
1946 | function Cloak() | |
1947 | Face.Parent = nil | |
1948 | cloaked = true | |
1949 | for _, v in pairs(Torso.Parent:children()) do | |
1950 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
1951 | coroutine.resume(coroutine.create(function() | |
1952 | for i = 0, 1, 0.2 do | |
1953 | wait() | |
1954 | v.Transparency = i | |
1955 | end | |
1956 | v.Transparency = 1 | |
1957 | end)) | |
1958 | end | |
1959 | if v.className == "Hat" then | |
1960 | hatp = v.Handle | |
1961 | coroutine.resume(coroutine.create(function(derp) | |
1962 | for i = 0, 1, 0.2 do | |
1963 | wait() | |
1964 | derp.Transparency = i | |
1965 | end | |
1966 | derp.Transparency = 1 | |
1967 | end), hatp) | |
1968 | end | |
1969 | end | |
1970 | for _, v in pairs(m:children()) do | |
1971 | if v.className == "Part" then | |
1972 | coroutine.resume(coroutine.create(function() | |
1973 | for i = 0, 1, 0.2 do | |
1974 | wait() | |
1975 | v.Transparency = i | |
1976 | end | |
1977 | v.Transparency = 1 | |
1978 | end)) | |
1979 | end | |
1980 | end | |
1981 | end | |
1982 | function UnCloak() | |
1983 | so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1) | |
1984 | Face.Parent = Head | |
1985 | cloaked = false | |
1986 | for _, v in pairs(Torso.Parent:children()) do | |
1987 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
1988 | coroutine.resume(coroutine.create(function() | |
1989 | for i = 0, 1, 0.1 do | |
1990 | wait() | |
1991 | v.Transparency = v.Transparency - 0.1 | |
1992 | end | |
1993 | v.Transparency = 0 | |
1994 | end)) | |
1995 | end | |
1996 | if v.className == "Hat" then | |
1997 | hatp = v.Handle | |
1998 | coroutine.resume(coroutine.create(function(derp) | |
1999 | for i = 0, 1, 0.1 do | |
2000 | wait() | |
2001 | derp.Transparency = derp.Transparency - 0.1 | |
2002 | end | |
2003 | derp.Transparency = 0 | |
2004 | end), hatp) | |
2005 | end | |
2006 | end | |
2007 | for _, v in pairs(m:children()) do | |
2008 | if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then | |
2009 | coroutine.resume(coroutine.create(function() | |
2010 | for i = 0, 1, 0.1 do | |
2011 | wait() | |
2012 | v.Transparency = v.Transparency - 0.1 | |
2013 | end | |
2014 | v.Transparency = 0 | |
2015 | end)) | |
2016 | v.Transparency = 0 | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | local origcolor = BrickColor.new("Pastel light blue") | |
2021 | function Explode(rad, par, pitch, vol, mindam, maxdam) | |
2022 | local expart = Instance.new("Part", char) | |
2023 | local expart2 = Instance.new("Part", char) | |
2024 | local rin = Instance.new("Part", char) | |
2025 | local rin2 = Instance.new("Part", char) | |
2026 | local partMesh = Instance.new("SpecialMesh", expart) | |
2027 | partMesh.MeshType = "Sphere" | |
2028 | local partMesh2 = Instance.new("SpecialMesh", expart2) | |
2029 | partMesh2.MeshType = "Sphere" | |
2030 | local partMesh3 = Instance.new("SpecialMesh", rin) | |
2031 | partMesh3.MeshType = "Brick" | |
2032 | local partMesh4 = Instance.new("SpecialMesh", rin2) | |
2033 | partMesh4.MeshType = "Brick" | |
2034 | CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch) | |
2035 | partMesh.Scale = vt(rad, rad, rad) | |
2036 | expart.Size = vt(1, 1, 1) | |
2037 | expart.Transparency = 0 | |
2038 | expart.Anchored = true | |
2039 | expart.Material = "Neon" | |
2040 | expart.BrickColor = bc("White") | |
2041 | expart.CFrame = par.CFrame | |
2042 | partMesh2.Scale = vt(rad, rad, rad) | |
2043 | expart2.Size = vt(1.15, 1.15, 1.15) | |
2044 | expart2.Transparency = 0.5 | |
2045 | expart2.Anchored = true | |
2046 | expart2.Material = "Neon" | |
2047 | expart2.BrickColor = par.BrickColor | |
2048 | expart2.CFrame = par.CFrame | |
2049 | rin.Size = vt(1.15, 1.15, 1.15) | |
2050 | rin.Transparency = 1 | |
2051 | rin.Anchored = true | |
2052 | rin.Material = "Neon" | |
2053 | rin.BrickColor = par.BrickColor | |
2054 | rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
2055 | rin2.Size = vt(1.15, 1.15, 1.15) | |
2056 | rin2.Transparency = 1 | |
2057 | rin2.Anchored = true | |
2058 | rin2.Material = "Neon" | |
2059 | rin2.BrickColor = par.BrickColor | |
2060 | rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
2061 | partMesh3.Scale = vt(0, 1, 0) | |
2062 | partMesh4.Scale = vt(0, 1, 0) | |
2063 | local dec2 = Instance.new("Decal", rin) | |
2064 | dec2.Face = "Top" | |
2065 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2066 | dec2.Parent = rin | |
2067 | local dec2b = dec2:Clone() | |
2068 | dec2b.Face = "Bottom" | |
2069 | dec2b.Parent = rin | |
2070 | local dec2a = Instance.new("Decal", rin2) | |
2071 | dec2a.Face = "Top" | |
2072 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2073 | dec2a.Parent = rin2 | |
2074 | local dec2ab = dec2a:Clone() | |
2075 | dec2ab.Face = "Bottom" | |
2076 | dec2ab.Parent = rin2 | |
2077 | expart.CanCollide = false | |
2078 | expart2.CanCollide = false | |
2079 | rin.CanCollide = false | |
2080 | rin2.CanCollide = false | |
2081 | MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal") | |
2082 | local value = 1 * rad / 6.5 | |
2083 | for i = 0, 199 do | |
2084 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2085 | expart.CFrame = expart.CFrame | |
2086 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
2087 | expart2.CFrame = expart.CFrame | |
2088 | value = value - 0.035 * rad / 30 | |
2089 | if value < 7.5 then | |
2090 | partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5) | |
2091 | rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0) | |
2092 | partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5) | |
2093 | rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0) | |
2094 | end | |
2095 | if value < 0 then | |
2096 | dec2.Transparency = dec2.Transparency + 0.025 | |
2097 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2098 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2099 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2100 | expart.Transparency = expart.Transparency + 0.025 | |
2101 | expart2.Transparency = expart2.Transparency + 0.025 | |
2102 | rin.Transparency = rin.Transparency + 0.025 | |
2103 | rin2.Transparency = rin2.Transparency + 0.025 | |
2104 | end | |
2105 | swait() | |
2106 | end | |
2107 | game:GetService("Debris"):AddItem(expart, 1) | |
2108 | game:GetService("Debris"):AddItem(expart2, 1) | |
2109 | game:GetService("Debris"):AddItem(rin, 1) | |
2110 | game:GetService("Debris"):AddItem(rin2, 1) | |
2111 | end | |
2112 | function ExplodeShort(rad, par, pitch, vol, mindam, maxdam) | |
2113 | local expart = Instance.new("Part", char) | |
2114 | local expart2 = Instance.new("Part", char) | |
2115 | local partMesh = Instance.new("SpecialMesh", expart) | |
2116 | partMesh.MeshType = "Sphere" | |
2117 | local partMesh2 = Instance.new("SpecialMesh", expart2) | |
2118 | partMesh2.MeshType = "Sphere" | |
2119 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch) | |
2120 | partMesh.Scale = vt(rad, rad, rad) | |
2121 | expart.Size = vt(1, 1, 1) | |
2122 | expart.Transparency = 0 | |
2123 | expart.Anchored = true | |
2124 | expart.Material = "Neon" | |
2125 | expart.BrickColor = bc("White") | |
2126 | expart.CFrame = par.CFrame | |
2127 | partMesh2.Scale = vt(rad, rad, rad) | |
2128 | expart2.Size = vt(1.15, 1.15, 1.15) | |
2129 | expart2.Transparency = 0.5 | |
2130 | expart2.Anchored = true | |
2131 | expart2.Material = "Neon" | |
2132 | expart2.BrickColor = par.BrickColor | |
2133 | expart2.CFrame = par.CFrame | |
2134 | expart.CanCollide = false | |
2135 | expart2.CanCollide = false | |
2136 | MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal") | |
2137 | local value = 1 * rad / 6.5 | |
2138 | for i = 0, 75 do | |
2139 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2140 | expart.CFrame = expart.CFrame | |
2141 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
2142 | expart2.CFrame = expart.CFrame | |
2143 | value = value - 0.035 * rad / 5 | |
2144 | if value < 0 then | |
2145 | value = 0 | |
2146 | expart.Transparency = expart.Transparency + 0.05 | |
2147 | expart2.Transparency = expart2.Transparency + 0.05 | |
2148 | end | |
2149 | swait() | |
2150 | end | |
2151 | game:GetService("Debris"):AddItem(expart, 1) | |
2152 | game:GetService("Debris"):AddItem(expart2, 1) | |
2153 | end | |
2154 | function AreaDanger(rad, par, mindam, maxdam) | |
2155 | local expart = Instance.new("Part", char) | |
2156 | local partMesh = Instance.new("SpecialMesh", expart) | |
2157 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15) | |
2158 | partMesh.MeshType = "Sphere" | |
2159 | partMesh.Scale = vt(rad, rad, rad) | |
2160 | expart.Size = vt(1, 1, 1) | |
2161 | expart.Transparency = 0.5 | |
2162 | expart.Anchored = true | |
2163 | expart.Material = "Neon" | |
2164 | expart.CanCollide = false | |
2165 | expart.BrickColor = par.BrickColor | |
2166 | expart.CFrame = par.CFrame | |
2167 | local value = 1 * rad / 5 | |
2168 | MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1) | |
2169 | for i = 0, 14 do | |
2170 | wait() | |
2171 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2172 | expart.CFrame = expart.CFrame | |
2173 | value = value - 0.035 * rad | |
2174 | if value < 0 then | |
2175 | value = 0 | |
2176 | end | |
2177 | end | |
2178 | wait(0.25) | |
2179 | CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1) | |
2180 | wait(0.5) | |
2181 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1) | |
2182 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75) | |
2183 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2184 | MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025) | |
2185 | for i = 0, 14 do | |
2186 | wait() | |
2187 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2188 | expart.CFrame = expart.CFrame | |
2189 | value = value - 0.035 * rad / 2 | |
2190 | end | |
2191 | expart.Transparency = 1 | |
2192 | game:GetService("Debris"):AddItem(expart, 5) | |
2193 | end | |
2194 | function Swarmsplosions(negrad, rad, par, mindam, maxdam) | |
2195 | CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2) | |
2196 | CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1) | |
2197 | CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1) | |
2198 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1) | |
2199 | MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal") | |
2200 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025) | |
2201 | for i = 0, 24 do | |
2202 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2)) | |
2203 | end | |
2204 | for i = 0, 24 do | |
2205 | local expart = Instance.new("Part", char) | |
2206 | expart.Transparency = 1 | |
2207 | expart.Anchored = true | |
2208 | expart.CanCollide = false | |
2209 | expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad)) | |
2210 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2) | |
2211 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15) | |
2212 | MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal") | |
2213 | MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025) | |
2214 | for i = 0, 9 do | |
2215 | MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2)) | |
2216 | end | |
2217 | game:GetService("Debris"):AddItem(expart, 2) | |
2218 | wait(0.1) | |
2219 | end | |
2220 | end | |
2221 | function EXterPlosion(par) | |
2222 | CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1) | |
2223 | CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85) | |
2224 | CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2) | |
2225 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1) | |
2226 | MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal") | |
2227 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005) | |
2228 | MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1) | |
2229 | for i = 0, 24 do | |
2230 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2)) | |
2231 | end | |
2232 | for i = 0, 24 do | |
2233 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2)) | |
2234 | end | |
2235 | end | |
2236 | function ring(type, pos, scale, value) | |
2237 | local type = type | |
2238 | local rng = Instance.new("Part", char) | |
2239 | rng.Anchored = true | |
2240 | rng.BrickColor = origcolor | |
2241 | rng.CanCollide = false | |
2242 | rng.FormFactor = 3 | |
2243 | rng.Name = "Ring" | |
2244 | rng.Size = Vector3.new(1, 1, 1) | |
2245 | rng.Transparency = 0 | |
2246 | rng.TopSurface = 0 | |
2247 | rng.BottomSurface = 0 | |
2248 | rng.CFrame = pos | |
2249 | local rngm = Instance.new("SpecialMesh", rng) | |
2250 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2251 | rngm.Scale = scale | |
2252 | local scaler2 = 1 | |
2253 | if type == "Add" then | |
2254 | scaler2 = 1 * value | |
2255 | elseif type == "Divide" then | |
2256 | scaler2 = 1 / value | |
2257 | end | |
2258 | coroutine.resume(coroutine.create(function() | |
2259 | for i = 0, 10, 0.1 do | |
2260 | swait() | |
2261 | if type == "Add" then | |
2262 | scaler2 = scaler2 - 0.01 * value | |
2263 | elseif type == "Divide" then | |
2264 | scaler2 = scaler2 - 0.01 / value | |
2265 | end | |
2266 | rng.Transparency = rng.Transparency + 0.01 | |
2267 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2268 | end | |
2269 | rng:Destroy() | |
2270 | end)) | |
2271 | end | |
2272 | function wave(type, pos, scale, value) | |
2273 | local type = type | |
2274 | local rng = Instance.new("Part", char) | |
2275 | rng.Anchored = true | |
2276 | rng.BrickColor = origcolor | |
2277 | rng.CanCollide = false | |
2278 | rng.FormFactor = 3 | |
2279 | rng.Name = "Ring" | |
2280 | rng.Size = Vector3.new(1, 1, 1) | |
2281 | rng.Transparency = 0 | |
2282 | rng.TopSurface = 0 | |
2283 | rng.BottomSurface = 0 | |
2284 | rng.CFrame = pos | |
2285 | local rngm = Instance.new("SpecialMesh", rng) | |
2286 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2287 | rngm.Scale = scale | |
2288 | local scaler2 = 1 | |
2289 | if type == "Add" then | |
2290 | scaler2 = 1 * value | |
2291 | elseif type == "Divide" then | |
2292 | scaler2 = 1 / value | |
2293 | end | |
2294 | coroutine.resume(coroutine.create(function() | |
2295 | for i = 0, 10, 0.1 do | |
2296 | swait() | |
2297 | if type == "Add" then | |
2298 | scaler2 = scaler2 - 0.01 * value | |
2299 | elseif type == "Divide" then | |
2300 | scaler2 = scaler2 - 0.01 / value | |
2301 | end | |
2302 | rng.Transparency = rng.Transparency + 0.01 | |
2303 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2304 | end | |
2305 | rng:Destroy() | |
2306 | end)) | |
2307 | end | |
2308 | function wind(type, pos, scale, value, speed) | |
2309 | local type = type | |
2310 | local rng = Instance.new("Part", char) | |
2311 | rng.Anchored = true | |
2312 | rng.BrickColor = origcolor | |
2313 | rng.CanCollide = false | |
2314 | rng.FormFactor = 3 | |
2315 | rng.Name = "Ring" | |
2316 | rng.Size = Vector3.new(1, 1, 1) | |
2317 | rng.Transparency = 0 | |
2318 | rng.TopSurface = 0 | |
2319 | rng.BottomSurface = 0 | |
2320 | rng.CFrame = pos | |
2321 | local rngm = Instance.new("SpecialMesh", rng) | |
2322 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2323 | rngm.Scale = scale | |
2324 | local scaler2 = 1 | |
2325 | if type == "Add" then | |
2326 | scaler2 = 1 * value | |
2327 | elseif type == "Divide" then | |
2328 | scaler2 = 1 / value | |
2329 | end | |
2330 | coroutine.resume(coroutine.create(function() | |
2331 | for i = 0, 10, 0.1 do | |
2332 | swait() | |
2333 | if type == "Add" then | |
2334 | scaler2 = scaler2 - 0.01 * value | |
2335 | elseif type == "Divide" then | |
2336 | scaler2 = scaler2 - 0.01 / value | |
2337 | end | |
2338 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
2339 | rng.Transparency = rng.Transparency + 0.01 | |
2340 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2341 | end | |
2342 | rng:Destroy() | |
2343 | end)) | |
2344 | end | |
2345 | function groundwind(type, pos, scale, value, speed) | |
2346 | local type = type | |
2347 | local rng = Instance.new("Part", char) | |
2348 | rng.Anchored = true | |
2349 | rng.BrickColor = origcolor | |
2350 | rng.CanCollide = false | |
2351 | rng.FormFactor = 3 | |
2352 | rng.Name = "Ring" | |
2353 | rng.Size = Vector3.new(1, 1, 1) | |
2354 | rng.Transparency = 0 | |
2355 | rng.TopSurface = 0 | |
2356 | rng.BottomSurface = 0 | |
2357 | rng.CFrame = pos | |
2358 | local rngm = Instance.new("SpecialMesh", rng) | |
2359 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2360 | rngm.Scale = scale | |
2361 | local scaler2 = 1 | |
2362 | if type == "Add" then | |
2363 | scaler2 = 1 * value | |
2364 | elseif type == "Divide" then | |
2365 | scaler2 = 1 / value | |
2366 | end | |
2367 | coroutine.resume(coroutine.create(function() | |
2368 | for i = 0, 10, 0.1 do | |
2369 | swait() | |
2370 | if type == "Add" then | |
2371 | scaler2 = scaler2 - 0.01 * value | |
2372 | elseif type == "Divide" then | |
2373 | scaler2 = scaler2 - 0.01 / value | |
2374 | end | |
2375 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
2376 | rng.Transparency = rng.Transparency + 0.01 | |
2377 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2) | |
2378 | end | |
2379 | rng:Destroy() | |
2380 | end)) | |
2381 | end | |
2382 | function CameraManager() | |
2383 | if TwoD and not CamInterrupt then | |
2384 | if Humanoid.Health > 0 then | |
2385 | Camera.CameraSubject = Humanoid | |
2386 | Camera.CameraType = "Scriptable" | |
2387 | Humanoid.AutoRotate = false | |
2388 | if Booleans.GyroUse then | |
2389 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2390 | else | |
2391 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2392 | end | |
2393 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2394 | if Booleans.CamFollow then | |
2395 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2396 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2397 | else | |
2398 | CPart.Position = RootPart.Position | |
2399 | end | |
2400 | else | |
2401 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2402 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2403 | end | |
2404 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2405 | else | |
2406 | Camera.CameraSubject = Humanoid | |
2407 | Camera.CameraType = "Custom" | |
2408 | end | |
2409 | end | |
2410 | end | |
2411 | function sphere(bonuspeed, type, pos, scale, value, color) | |
2412 | local type = type | |
2413 | local rng = Instance.new("Part", char) | |
2414 | rng.Anchored = true | |
2415 | rng.BrickColor = color | |
2416 | rng.CanCollide = false | |
2417 | rng.FormFactor = 3 | |
2418 | rng.Name = "Ring" | |
2419 | rng.Material = "Neon" | |
2420 | rng.Size = Vector3.new(1, 1, 1) | |
2421 | rng.Transparency = 0 | |
2422 | rng.TopSurface = 0 | |
2423 | rng.BottomSurface = 0 | |
2424 | rng.CFrame = pos | |
2425 | local rngm = Instance.new("SpecialMesh", rng) | |
2426 | rngm.MeshType = "Sphere" | |
2427 | rngm.Scale = scale | |
2428 | if rainbowmode == true then | |
2429 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2430 | end | |
2431 | local scaler2 = 1 | |
2432 | if type == "Add" then | |
2433 | scaler2 = 1 * value | |
2434 | elseif type == "Divide" then | |
2435 | scaler2 = 1 / value | |
2436 | end | |
2437 | coroutine.resume(coroutine.create(function() | |
2438 | for i = 0, 10 / bonuspeed, 0.1 do | |
2439 | swait() | |
2440 | if rainbowmode == true then | |
2441 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2442 | end | |
2443 | if type == "Add" then | |
2444 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2445 | elseif type == "Divide" then | |
2446 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2447 | end | |
2448 | if chaosmode == true then | |
2449 | rng.BrickColor = BrickColor.random() | |
2450 | end | |
2451 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2452 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
2453 | end | |
2454 | rng:Destroy() | |
2455 | end)) | |
2456 | end | |
2457 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
2458 | local type = type | |
2459 | local rng = Instance.new("Part", char) | |
2460 | rng.Anchored = true | |
2461 | rng.BrickColor = color | |
2462 | rng.CanCollide = false | |
2463 | rng.FormFactor = 3 | |
2464 | rng.Name = "Ring" | |
2465 | rng.Material = "Neon" | |
2466 | rng.Size = Vector3.new(1, 1, 1) | |
2467 | rng.Transparency = 0 | |
2468 | rng.TopSurface = 0 | |
2469 | rng.BottomSurface = 0 | |
2470 | rng.CFrame = pos | |
2471 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2472 | local rngm = Instance.new("SpecialMesh", rng) | |
2473 | rngm.MeshType = "Sphere" | |
2474 | rngm.Scale = vt(x1, y1, z1) | |
2475 | if rainbowmode == true then | |
2476 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2477 | end | |
2478 | local scaler2 = 1 | |
2479 | local speeder = FastSpeed | |
2480 | if type == "Add" then | |
2481 | scaler2 = 1 * value | |
2482 | elseif type == "Divide" then | |
2483 | scaler2 = 1 / value | |
2484 | end | |
2485 | coroutine.resume(coroutine.create(function() | |
2486 | for i = 0, 10 / bonuspeed, 0.1 do | |
2487 | swait() | |
2488 | if rainbowmode == true then | |
2489 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2490 | end | |
2491 | if type == "Add" then | |
2492 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2493 | elseif type == "Divide" then | |
2494 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2495 | end | |
2496 | if chaosmode == true then | |
2497 | rng.BrickColor = BrickColor.random() | |
2498 | end | |
2499 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2500 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2501 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2502 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2503 | end | |
2504 | rng:Destroy() | |
2505 | end)) | |
2506 | end | |
2507 | function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
2508 | local type = type | |
2509 | local rng = Instance.new("Part", char) | |
2510 | rng.Anchored = true | |
2511 | rng.BrickColor = color | |
2512 | rng.CanCollide = false | |
2513 | rng.FormFactor = 3 | |
2514 | rng.Name = "Ring" | |
2515 | rng.Material = "Neon" | |
2516 | rng.Size = Vector3.new(1, 1, 1) | |
2517 | rng.Transparency = 1 | |
2518 | rng.TopSurface = 0 | |
2519 | rng.BottomSurface = 0 | |
2520 | rng.CFrame = pos | |
2521 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2522 | local rngm = Instance.new("SpecialMesh", rng) | |
2523 | rngm.MeshType = "Sphere" | |
2524 | rngm.Scale = vt(x1, y1, z1) | |
2525 | if rainbowmode == true then | |
2526 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2527 | end | |
2528 | local scaler2 = 1 | |
2529 | local speeder = FastSpeed | |
2530 | if type == "Add" then | |
2531 | scaler2 = 1 * value | |
2532 | elseif type == "Divide" then | |
2533 | scaler2 = 1 / value | |
2534 | end | |
2535 | coroutine.resume(coroutine.create(function() | |
2536 | for i = 0, 10 / bonuspeed, 0.1 do | |
2537 | swait() | |
2538 | if rainbowmode == true then | |
2539 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2540 | end | |
2541 | if type == "Add" then | |
2542 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2543 | elseif type == "Divide" then | |
2544 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2545 | end | |
2546 | if chaosmode == true then | |
2547 | rng.BrickColor = BrickColor.random() | |
2548 | end | |
2549 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2550 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2551 | rng.Transparency = rng.Transparency - 0.01 * bonuspeed | |
2552 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2553 | end | |
2554 | rng:Destroy() | |
2555 | end)) | |
2556 | end | |
2557 | function dmg(dude) | |
2558 | if dude.Name ~= Character then | |
2559 | local bgf = Instance.new("BodyGyro", dude.Head) | |
2560 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0) | |
2561 | local val = Instance.new("BoolValue", dude) | |
2562 | val.Name = "IsHit" | |
2563 | local ds = coroutine.wrap(function() | |
2564 | dude:WaitForChild("Head"):BreakJoints() | |
2565 | wait(0.5) | |
2566 | targetted = nil | |
2567 | CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3) | |
2568 | coroutine.resume(coroutine.create(function() | |
2569 | for i, v in pairs(dude:GetChildren()) do | |
2570 | if v:IsA("Accessory") then | |
2571 | v:Destroy() | |
2572 | end | |
2573 | if v:IsA("Humanoid") then | |
2574 | v:Destroy() | |
2575 | end | |
2576 | if v:IsA("CharacterMesh") then | |
2577 | v:Destroy() | |
2578 | end | |
2579 | if v:IsA("Model") then | |
2580 | v:Destroy() | |
2581 | end | |
2582 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2583 | for x, o in pairs(v:GetChildren()) do | |
2584 | if o:IsA("Decal") then | |
2585 | o:Destroy() | |
2586 | end | |
2587 | end | |
2588 | coroutine.resume(coroutine.create(function() | |
2589 | v.Material = "Neon" | |
2590 | v.CanCollide = false | |
2591 | local bld = Instance.new("ParticleEmitter", v) | |
2592 | bld.LightEmission = 1 | |
2593 | bld.Texture = "rbxassetid://284205403" | |
2594 | bld.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
2595 | bld.Rate = 50 | |
2596 | bld.Lifetime = NumberRange.new(1) | |
2597 | bld.Size = NumberSequence.new({ | |
2598 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
2599 | NumberSequenceKeypoint.new(1, 0, 0) | |
2600 | }) | |
2601 | bld.Transparency = NumberSequence.new({ | |
2602 | NumberSequenceKeypoint.new(0, 0, 0), | |
2603 | NumberSequenceKeypoint.new(1, 1, 0) | |
2604 | }) | |
2605 | bld.Speed = NumberRange.new(0, 0) | |
2606 | bld.VelocitySpread = 50000 | |
2607 | bld.Rotation = NumberRange.new(-500, 500) | |
2608 | bld.RotSpeed = NumberRange.new(-500, 500) | |
2609 | local sbs = Instance.new("BodyPosition", v) | |
2610 | sbs.P = 3000 | |
2611 | sbs.D = 1000 | |
2612 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2613 | sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) | |
2614 | v.Color = Color3.new(1, 1, 1) | |
2615 | coroutine.resume(coroutine.create(function() | |
2616 | for i = 0, 49 do | |
2617 | swait(1) | |
2618 | v.Transparency = v.Transparency + 0.02 | |
2619 | end | |
2620 | CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1) | |
2621 | bld.Speed = NumberRange.new(1, 5) | |
2622 | bld.Acceleration = vt(0, 10, 0) | |
2623 | wait(0.5) | |
2624 | bld.Enabled = false | |
2625 | wait(3) | |
2626 | v:Destroy() | |
2627 | dude:Destroy() | |
2628 | end)) | |
2629 | end)) | |
2630 | end | |
2631 | end | |
2632 | end)) | |
2633 | end) | |
2634 | ds() | |
2635 | end | |
2636 | end | |
2637 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2638 | if SinglePlayer then | |
2639 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
2640 | end | |
2641 | local List = {} | |
2642 | for i, v in pairs(workspace:GetChildren()) do | |
2643 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then | |
2644 | table.insert(List, v) | |
2645 | end | |
2646 | end | |
2647 | return List | |
2648 | end | |
2649 | function FaceMouse() | |
2650 | Cam = workspace.CurrentCamera | |
2651 | return { | |
2652 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
2653 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2654 | } | |
2655 | end | |
2656 | function FaceMouse2() | |
2657 | Cam = workspace.CurrentCamera | |
2658 | return { | |
2659 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
2660 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2661 | } | |
2662 | end | |
2663 | local ModeOfGlitch = 1 | |
2664 | local storehumanoidWS = 16 | |
2665 | function ExtinctiveHeartbreak() | |
2666 | local targetted | |
2667 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2668 | targetted = mouse.Target.Parent | |
2669 | end | |
2670 | if targetted ~= nil then | |
2671 | attack = true | |
2672 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1) | |
2673 | for i = 0, 9 do | |
2674 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2675 | end | |
2676 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2677 | local originalpos = root.CFrame | |
2678 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2) | |
2679 | for i = 0, 9 do | |
2680 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2681 | end | |
2682 | hum.WalkSpeed = 0 | |
2683 | targetted.Head.Anchored = true | |
2684 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2685 | for i = 0, 2, 0.1 do | |
2686 | swait() | |
2687 | 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(0)), 0.4) | |
2688 | 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(0), math.rad(0)), 0.4) | |
2689 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4) | |
2690 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
2691 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4) | |
2692 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4) | |
2693 | end | |
2694 | coroutine.resume(coroutine.create(function() | |
2695 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso")) | |
2696 | bld.LightEmission = 0.1 | |
2697 | bld.Texture = "rbxassetid://284205403" | |
2698 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
2699 | bld.Rate = 500 | |
2700 | bld.Lifetime = NumberRange.new(1) | |
2701 | bld.Size = NumberSequence.new({ | |
2702 | NumberSequenceKeypoint.new(0, 2, 0), | |
2703 | NumberSequenceKeypoint.new(1, 0, 0) | |
2704 | }) | |
2705 | bld.Acceleration = vt(0, -25, 0) | |
2706 | bld.Transparency = NumberSequence.new({ | |
2707 | NumberSequenceKeypoint.new(0, 0, 0), | |
2708 | NumberSequenceKeypoint.new(1, 0, 0) | |
2709 | }) | |
2710 | bld.Speed = NumberRange.new(10, 50) | |
2711 | bld.EmissionDirection = "Front" | |
2712 | bld.VelocitySpread = 25 | |
2713 | bld.Rotation = NumberRange.new(-500, 500) | |
2714 | bld.RotSpeed = NumberRange.new(-500, 500) | |
2715 | end)) | |
2716 | coroutine.resume(coroutine.create(function() | |
2717 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso")) | |
2718 | bld.LightEmission = 0.1 | |
2719 | bld.Texture = "rbxassetid://284205403" | |
2720 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
2721 | bld.Rate = 500 | |
2722 | bld.Lifetime = NumberRange.new(1) | |
2723 | bld.Size = NumberSequence.new({ | |
2724 | NumberSequenceKeypoint.new(0, 2, 0), | |
2725 | NumberSequenceKeypoint.new(1, 0, 0) | |
2726 | }) | |
2727 | bld.Acceleration = vt(0, -25, 0) | |
2728 | bld.Transparency = NumberSequence.new({ | |
2729 | NumberSequenceKeypoint.new(0, 0, 0), | |
2730 | NumberSequenceKeypoint.new(1, 0, 0) | |
2731 | }) | |
2732 | bld.Speed = NumberRange.new(10, 50) | |
2733 | bld.EmissionDirection = "Front" | |
2734 | bld.VelocitySpread = 25 | |
2735 | bld.Rotation = NumberRange.new(-500, 500) | |
2736 | bld.RotSpeed = NumberRange.new(-500, 500) | |
2737 | end)) | |
2738 | CameraEnshaking(5, 5) | |
2739 | game:GetService("Debris"):AddItem(bld, 3) | |
2740 | dmg(targetted) | |
2741 | CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1) | |
2742 | for i = 0, 1, 0.1 do | |
2743 | swait() | |
2744 | 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(0)), 0.8) | |
2745 | 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(0), math.rad(0)), 0.8) | |
2746 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8) | |
2747 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8) | |
2748 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
2749 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8) | |
2750 | end | |
2751 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1) | |
2752 | for i = 0, 9 do | |
2753 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2754 | end | |
2755 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2756 | root.CFrame = originalpos | |
2757 | for i = 0, 9 do | |
2758 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2759 | end | |
2760 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2761 | bld.Enabled = false | |
2762 | attack = false | |
2763 | hum.WalkSpeed = storehumanoidWS | |
2764 | end | |
2765 | end | |
2766 | function PureBomb() | |
2767 | attack = true | |
2768 | local orb = Instance.new("Part", char) | |
2769 | orb.Anchored = true | |
2770 | orb.BrickColor = BrickColor.new("Toothpaste") | |
2771 | orb.CanCollide = false | |
2772 | orb.FormFactor = 3 | |
2773 | orb.Name = "Ring" | |
2774 | orb.Material = "Neon" | |
2775 | orb.Size = Vector3.new(1, 1, 1) | |
2776 | orb.Transparency = 0 | |
2777 | orb.TopSurface = 0 | |
2778 | orb.BottomSurface = 0 | |
2779 | local orbm = Instance.new("SpecialMesh", orb) | |
2780 | orbm.MeshType = "Sphere" | |
2781 | orbm.Name = "SizeMesh" | |
2782 | orbm.Scale = vt(0, 0, 0) | |
2783 | local scaled = 0.1 | |
2784 | local posid = 0 | |
2785 | CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1) | |
2786 | for i = 0, 5, 0.1 do | |
2787 | swait() | |
2788 | scaled = scaled - 0.001 | |
2789 | posid = posid - scaled | |
2790 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
2791 | orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled) | |
2792 | sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10) | |
2793 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1) | |
2794 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1) | |
2795 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2796 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
2797 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1) | |
2798 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1) | |
2799 | end | |
2800 | for i = 0, 2, 0.1 do | |
2801 | swait() | |
2802 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
2803 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
2804 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
2805 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4) | |
2806 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4) | |
2807 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4) | |
2808 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
2809 | end | |
2810 | coroutine.resume(coroutine.create(function() | |
2811 | orb.Anchored = false | |
2812 | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) | |
2813 | local a = Instance.new("Part", workspace) | |
2814 | a.Name = "Direction" | |
2815 | a.Anchored = true | |
2816 | a.BrickColor = bc("Bright red") | |
2817 | a.Material = "Neon" | |
2818 | a.Transparency = 1 | |
2819 | a.CanCollide = false | |
2820 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
2821 | local ignore = orb | |
2822 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2823 | a.BottomSurface = 10 | |
2824 | a.TopSurface = 10 | |
2825 | local distance = (orb.CFrame.p - position).magnitude | |
2826 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2827 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2828 | orb.CFrame = a.CFrame | |
2829 | a:Destroy() | |
2830 | local bv = Instance.new("BodyVelocity") | |
2831 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2832 | bv.velocity = orb.CFrame.lookVector * 125 | |
2833 | bv.Parent = orb | |
2834 | local hitted = false | |
2835 | game:GetService("Debris"):AddItem(orb, 15) | |
2836 | wait() | |
2837 | local hit = orb.Touched:connect(function(hit) | |
2838 | if hitted == false then | |
2839 | hitted = true | |
2840 | CameraEnshaking(10, 2.5) | |
2841 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
2842 | MagniDamage(orb, 65, 65, 90, 0, "Normal") | |
2843 | sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste")) | |
2844 | sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste")) | |
2845 | for i = 0, 9 do | |
2846 | sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0) | |
2847 | sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0) | |
2848 | end | |
2849 | orb.Anchored = true | |
2850 | orb.Transparency = 1 | |
2851 | wait(8) | |
2852 | orb:Destroy() | |
2853 | end | |
2854 | end) | |
2855 | end)) | |
2856 | for i = 0, 1, 0.1 do | |
2857 | swait() | |
2858 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
2859 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
2860 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4) | |
2861 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4) | |
2862 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4) | |
2863 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
2864 | end | |
2865 | attack = false | |
2866 | end | |
2867 | function ChaosGroundStrike() | |
2868 | attack = true | |
2869 | for i = 0, 2, 0.1 do | |
2870 | swait() | |
2871 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
2872 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
2873 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2874 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2875 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
2876 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
2877 | end | |
2878 | CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1) | |
2879 | CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1) | |
2880 | CameraEnshaking(4, 12) | |
2881 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
2882 | if v:FindFirstChild("Head") then | |
2883 | dmg(v) | |
2884 | end | |
2885 | end | |
2886 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random()) | |
2887 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random()) | |
2888 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random()) | |
2889 | for i = 0, 2, 0.1 do | |
2890 | swait() | |
2891 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2892 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2893 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
2894 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
2895 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
2896 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
2897 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
2898 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
2899 | end | |
2900 | attack = false | |
2901 | end | |
2902 | function ChaosBegone() | |
2903 | attack = true | |
2904 | chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color) | |
2905 | for i = 0, 10, 0.1 do | |
2906 | swait() | |
2907 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
2908 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
2909 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2910 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2911 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
2912 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
2913 | end | |
2914 | chatfunc("DIE!!", BrickColor.random().Color) | |
2915 | CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1) | |
2916 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1) | |
2917 | CameraEnshaking(5, 25) | |
2918 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
2919 | if v:FindFirstChild("Head") then | |
2920 | dmg(v) | |
2921 | end | |
2922 | end | |
2923 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random()) | |
2924 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random()) | |
2925 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random()) | |
2926 | for i = 0, 3, 0.1 do | |
2927 | swait() | |
2928 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2929 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2930 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2931 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
2932 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
2933 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
2934 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
2935 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
2936 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
2937 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
2938 | end | |
2939 | attack = false | |
2940 | end | |
2941 | function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon) | |
2942 | local orb = Instance.new("Part", char) | |
2943 | orb.Anchored = true | |
2944 | orb.BrickColor = color | |
2945 | orb.CanCollide = false | |
2946 | orb.FormFactor = 3 | |
2947 | orb.Name = "Ring" | |
2948 | orb.Material = "Neon" | |
2949 | orb.Size = Vector3.new(1, 1, 1) | |
2950 | orb.Transparency = 0 | |
2951 | orb.TopSurface = 0 | |
2952 | orb.BottomSurface = 0 | |
2953 | local orbm = Instance.new("SpecialMesh", orb) | |
2954 | orbm.MeshType = "Sphere" | |
2955 | orb.CFrame = positted | |
2956 | orbm.Name = "SizeMesh" | |
2957 | orbm.Scale = vt(1, 1, 1) | |
2958 | CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1) | |
2959 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor) | |
2960 | coroutine.resume(coroutine.create(function() | |
2961 | wait(timer) | |
2962 | CameraEnshaking(3, ShakePower) | |
2963 | orb.Transparency = 1 | |
2964 | MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal") | |
2965 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor) | |
2966 | CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7) | |
2967 | wait(3) | |
2968 | orb:Destroy() | |
2969 | end)) | |
2970 | end | |
2971 | function orb_spawn(positted, timer) | |
2972 | local randomcol = math.random(1, 2) | |
2973 | local orb = Instance.new("Part", char) | |
2974 | orb.Anchored = true | |
2975 | if randomcol == 1 then | |
2976 | orb.BrickColor = BrickColor.new("White") | |
2977 | elseif randomcol == 2 then | |
2978 | orb.BrickColor = BrickColor.new("Really black") | |
2979 | end | |
2980 | orb.CanCollide = false | |
2981 | orb.FormFactor = 3 | |
2982 | orb.Name = "Ring" | |
2983 | orb.Material = "Neon" | |
2984 | orb.Size = Vector3.new(1, 1, 1) | |
2985 | orb.Transparency = 0 | |
2986 | orb.TopSurface = 0 | |
2987 | orb.BottomSurface = 0 | |
2988 | local orbm = Instance.new("SpecialMesh", orb) | |
2989 | orbm.MeshType = "Sphere" | |
2990 | orb.CFrame = positted | |
2991 | orbm.Name = "SizeMesh" | |
2992 | orbm.Scale = vt(1, 1, 1) | |
2993 | CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1) | |
2994 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor) | |
2995 | for i = 0, 2 do | |
2996 | sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0) | |
2997 | end | |
2998 | coroutine.resume(coroutine.create(function() | |
2999 | wait(timer) | |
3000 | CameraEnshaking(3, 2) | |
3001 | orb.Transparency = 1 | |
3002 | MagniDamage(orb, 17.5, 10, 50, 0, "Normal") | |
3003 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor) | |
3004 | for i = 0, 4 do | |
3005 | sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0) | |
3006 | end | |
3007 | CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7) | |
3008 | wait(3) | |
3009 | orb:Destroy() | |
3010 | end)) | |
3011 | end | |
3012 | function scattercorrupt() | |
3013 | attack = true | |
3014 | local rot = 0 | |
3015 | local randomrotations = math.random(1, 2) | |
3016 | local lookv = 2.5 | |
3017 | local power = 5 | |
3018 | sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple")) | |
3019 | sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple")) | |
3020 | for i = 0, 9 do | |
3021 | sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0) | |
3022 | end | |
3023 | CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6) | |
3024 | CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5) | |
3025 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1) | |
3026 | CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75) | |
3027 | CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5) | |
3028 | local hite = Instance.new("Part", char) | |
3029 | hite.Anchored = true | |
3030 | hite.CanCollide = false | |
3031 | hite.FormFactor = 3 | |
3032 | hite.Name = "Ring" | |
3033 | hite.Material = "Neon" | |
3034 | hite.Size = Vector3.new(1, 1, 1) | |
3035 | hite.Transparency = 1 | |
3036 | hite.TopSurface = 0 | |
3037 | hite.BottomSurface = 0 | |
3038 | hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0) | |
3039 | local rem = Instance.new("Part", char) | |
3040 | rem.Anchored = true | |
3041 | rem.CanCollide = false | |
3042 | rem.FormFactor = 3 | |
3043 | rem.Name = "Ring" | |
3044 | rem.Material = "Neon" | |
3045 | rem.Size = Vector3.new(1, 1, 1) | |
3046 | rem.Transparency = 1 | |
3047 | rem.TopSurface = 0 | |
3048 | rem.BottomSurface = 0 | |
3049 | rem.CFrame = hite.CFrame | |
3050 | local rem2 = rem:Clone() | |
3051 | rem2.Parent = char | |
3052 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3053 | local rem3 = rem:Clone() | |
3054 | rem3.Parent = char | |
3055 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
3056 | local rem4 = rem:Clone() | |
3057 | rem4.Parent = char | |
3058 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
3059 | hite:Destroy() | |
3060 | coroutine.resume(coroutine.create(function() | |
3061 | for i = 0, 24 do | |
3062 | swait(1) | |
3063 | if randomrotations == 1 then | |
3064 | rot = rot + 1 | |
3065 | elseif randomrotations == 2 then | |
3066 | rot = rot - 1 | |
3067 | end | |
3068 | power = power + 0.5 | |
3069 | lookv = lookv + 7.5 | |
3070 | rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0) | |
3071 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3072 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
3073 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
3074 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3075 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3076 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3077 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3078 | end | |
3079 | end)) | |
3080 | attack = false | |
3081 | end | |
3082 | function yinyangi() | |
3083 | attack = true | |
3084 | for i = 0, 2, 0.1 do | |
3085 | swait() | |
3086 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2) | |
3087 | 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(20)), 0.2) | |
3088 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2) | |
3089 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3090 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
3091 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
3092 | end | |
3093 | local bv = Instance.new("BodyVelocity") | |
3094 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
3095 | bv.velocity = root.CFrame.lookVector * 175 | |
3096 | bv.Parent = root | |
3097 | for Rotations = 0, 9 do | |
3098 | for i = 0, 1, 0.5 do | |
3099 | swait() | |
3100 | bv.velocity = root.CFrame.lookVector * 175 | |
3101 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
3102 | 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(20)), 0.5) | |
3103 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5) | |
3104 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3105 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3106 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3107 | end | |
3108 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3109 | for i = 0, 1, 0.5 do | |
3110 | swait() | |
3111 | bv.velocity = root.CFrame.lookVector * 175 | |
3112 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
3113 | 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(20)), 0.5) | |
3114 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5) | |
3115 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3116 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3117 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3118 | end | |
3119 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3120 | for i = 0, 1, 0.5 do | |
3121 | swait() | |
3122 | bv.velocity = root.CFrame.lookVector * 175 | |
3123 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
3124 | 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(20)), 0.5) | |
3125 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5) | |
3126 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3127 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3128 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3129 | end | |
3130 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3131 | for i = 0, 1, 0.5 do | |
3132 | swait() | |
3133 | bv.velocity = root.CFrame.lookVector * 175 | |
3134 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
3135 | 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(20)), 0.5) | |
3136 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5) | |
3137 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3138 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3139 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3140 | end | |
3141 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3142 | end | |
3143 | bv:Destroy() | |
3144 | attack = false | |
3145 | end | |
3146 | function Wip() | |
3147 | attack = true | |
3148 | local rngb = Instance.new("Part", char) | |
3149 | rngb.Anchored = true | |
3150 | rngb.BrickColor = origcolor | |
3151 | rngb.CanCollide = false | |
3152 | rngb.FormFactor = 3 | |
3153 | rngb.Name = "Ring" | |
3154 | rngb.Material = "Neon" | |
3155 | rngb.Size = Vector3.new(1, 0.05, 1) | |
3156 | rngb.Transparency = 1 | |
3157 | rngb.TopSurface = 0 | |
3158 | rngb.BottomSurface = 0 | |
3159 | local rngmb = Instance.new("SpecialMesh", rngb) | |
3160 | rngmb.MeshType = "Brick" | |
3161 | rngmb.Name = "SizeMesh" | |
3162 | rngmb.Scale = vt(0, 1, 0) | |
3163 | local orb = rngb:Clone() | |
3164 | orb.Parent = char | |
3165 | orb.Transparency = 0 | |
3166 | orb.BrickColor = BrickColor.new("White") | |
3167 | orb.Size = vt(1, 1, 1) | |
3168 | local orbmish = orb.SizeMesh | |
3169 | orbmish.Scale = vt(0, 0, 0) | |
3170 | orbmish.MeshType = "Sphere" | |
3171 | local orbe = rngb:Clone() | |
3172 | orbe.Parent = char | |
3173 | orbe.Transparency = 0.5 | |
3174 | orbe.BrickColor = BrickColor.new("New Yeller") | |
3175 | orbe.Size = vt(1, 1, 1) | |
3176 | local orbmish2 = orbe.SizeMesh | |
3177 | orbmish2.Scale = vt(0, 0, 0) | |
3178 | orbmish2.MeshType = "Sphere" | |
3179 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3180 | rngb:Destroy() | |
3181 | for i = 0, 5, 0.1 do | |
3182 | swait() | |
3183 | if rainbowmode == true then | |
3184 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3185 | end | |
3186 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3187 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3188 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
3189 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
3190 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
3191 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
3192 | 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(0)), 0.3) | |
3193 | 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(10), math.rad(0)), 0.3) | |
3194 | RootPart.CFrame = FaceMouse()[1] | |
3195 | end | |
3196 | orbe.Transparency = 1 | |
3197 | orb.Transparency = 1 | |
3198 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
3199 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1) | |
3200 | local a = Instance.new("Part", Character) | |
3201 | a.Name = "Direction" | |
3202 | a.Anchored = true | |
3203 | a.BrickColor = bc("White") | |
3204 | a.Material = "Neon" | |
3205 | a.Transparency = 0 | |
3206 | a.Shape = "Cylinder" | |
3207 | a.CanCollide = false | |
3208 | local a2 = Instance.new("Part", Character) | |
3209 | a2.Name = "Direction" | |
3210 | a2.Anchored = true | |
3211 | a2.BrickColor = bc("New Yeller") | |
3212 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
3213 | a2.Material = "Neon" | |
3214 | a2.Transparency = 0.5 | |
3215 | a2.Shape = "Cylinder" | |
3216 | a2.CanCollide = false | |
3217 | local ba = Instance.new("Part", Character) | |
3218 | ba.Name = "HitDirect" | |
3219 | ba.Anchored = true | |
3220 | ba.BrickColor = bc("Really black") | |
3221 | ba.Material = "Neon" | |
3222 | ba.Transparency = 1 | |
3223 | ba.CanCollide = false | |
3224 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3225 | local ignore = Character | |
3226 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3227 | a.BottomSurface = 10 | |
3228 | a.TopSurface = 10 | |
3229 | a2.BottomSurface = 10 | |
3230 | a2.TopSurface = 10 | |
3231 | local distance = (orb.CFrame.p - position).magnitude | |
3232 | a.Size = Vector3.new(distance, 1, 1) | |
3233 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3234 | a2.Size = Vector3.new(distance, 1, 1) | |
3235 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3236 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3237 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3238 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3239 | game:GetService("Debris"):AddItem(a, 20) | |
3240 | game:GetService("Debris"):AddItem(a2, 20) | |
3241 | game:GetService("Debris"):AddItem(ba, 20) | |
3242 | local msh = Instance.new("SpecialMesh", a) | |
3243 | msh.MeshType = "Cylinder" | |
3244 | msh.Scale = vt(1, 25, 25) | |
3245 | local msh2 = Instance.new("SpecialMesh", a2) | |
3246 | msh2.MeshType = "Cylinder" | |
3247 | msh2.Scale = vt(1, 30, 30) | |
3248 | for i = 0, 10, 0.1 do | |
3249 | swait() | |
3250 | CameraEnshaking(1, 5) | |
3251 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
3252 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3253 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3254 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3255 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3256 | distance = (orb.CFrame.p - position).magnitude | |
3257 | if typrot == 1 then | |
3258 | rotation = rotation + 2.5 | |
3259 | elseif typrot == 2 then | |
3260 | rotation = rotation - 2.5 | |
3261 | end | |
3262 | RootPart.CFrame = FaceMouse()[1] | |
3263 | a.Size = Vector3.new(distance, 1, 1) | |
3264 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3265 | a2.Size = Vector3.new(distance, 1, 1) | |
3266 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3267 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3268 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3269 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3270 | msh.Scale = msh.Scale - vt(0, 0.25, 0.25) | |
3271 | msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3) | |
3272 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
3273 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
3274 | MagniDamage(ba, 30, 500, 60000, 0, "Normal") | |
3275 | end | |
3276 | a:Destroy() | |
3277 | a2:Destroy() | |
3278 | ba:Destroy() | |
3279 | orb:Destroy() | |
3280 | orbe:Destroy() | |
3281 | attack = false | |
3282 | end | |
3283 | function UniversalSpark() | |
3284 | attack = true | |
3285 | local rngb = Instance.new("Part", char) | |
3286 | rngb.Anchored = true | |
3287 | rngb.BrickColor = origcolor | |
3288 | rngb.CanCollide = false | |
3289 | rngb.FormFactor = 3 | |
3290 | rngb.Name = "Ring" | |
3291 | rngb.Material = "Neon" | |
3292 | rngb.Size = Vector3.new(1, 0.05, 1) | |
3293 | rngb.Transparency = 1 | |
3294 | rngb.TopSurface = 0 | |
3295 | rngb.BottomSurface = 0 | |
3296 | local rngmb = Instance.new("SpecialMesh", rngb) | |
3297 | rngmb.MeshType = "Brick" | |
3298 | rngmb.Name = "SizeMesh" | |
3299 | rngmb.Scale = vt(0, 1, 0) | |
3300 | local orb = rngb:Clone() | |
3301 | orb.Parent = char | |
3302 | orb.Transparency = 0 | |
3303 | orb.BrickColor = BrickColor.new("White") | |
3304 | orb.Size = vt(1, 1, 1) | |
3305 | local orbmish = orb.SizeMesh | |
3306 | orbmish.Scale = vt(0, 0, 0) | |
3307 | orbmish.MeshType = "Sphere" | |
3308 | local orbe = rngb:Clone() | |
3309 | orbe.Parent = char | |
3310 | orbe.Transparency = 0.5 | |
3311 | orbe.BrickColor = BrickColor.new("New Yeller") | |
3312 | orbe.Size = vt(1, 1, 1) | |
3313 | local orbmish2 = orbe.SizeMesh | |
3314 | orbmish2.Scale = vt(0, 0, 0) | |
3315 | orbmish2.MeshType = "Sphere" | |
3316 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3317 | rngb:Destroy() | |
3318 | for i = 0, 5, 0.1 do | |
3319 | swait() | |
3320 | if rainbowmode == true then | |
3321 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3322 | end | |
3323 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3324 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3325 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
3326 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
3327 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
3328 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
3329 | 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(0)), 0.3) | |
3330 | 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(10), math.rad(0)), 0.3) | |
3331 | RootPart.CFrame = FaceMouse()[1] | |
3332 | end | |
3333 | orbe.Transparency = 1 | |
3334 | orb.Transparency = 1 | |
3335 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
3336 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1) | |
3337 | CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1) | |
3338 | CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1) | |
3339 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1) | |
3340 | CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1) | |
3341 | CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85) | |
3342 | CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1) | |
3343 | local xd = Instance.new("Sound", char) | |
3344 | xd.SoundId = "rbxassetid://445796828" | |
3345 | xd.Pitch = 0.75 | |
3346 | xd.Looped = true | |
3347 | xd.Volume = 1.25 | |
3348 | xd:Play() | |
3349 | local a = Instance.new("Part", Character) | |
3350 | a.Name = "Direction" | |
3351 | a.Anchored = true | |
3352 | a.BrickColor = bc("Alder") | |
3353 | a.Color = MAINRUINCOLOR.Color | |
3354 | a.Material = "Neon" | |
3355 | a.Transparency = 0.5 | |
3356 | a.Shape = "Cylinder" | |
3357 | a.CanCollide = false | |
3358 | local a2 = Instance.new("Part", Character) | |
3359 | a2.Name = "Direction" | |
3360 | a2.Anchored = true | |
3361 | a2.BrickColor = bc("New Yeller") | |
3362 | a2.Color = MAINRUINCOLOR.Color | |
3363 | a2.Material = "Neon" | |
3364 | a2.Transparency = 0.5 | |
3365 | a2.Shape = "Cylinder" | |
3366 | a2.CanCollide = false | |
3367 | local ba = Instance.new("Part", Character) | |
3368 | ba.Name = "HitDirect" | |
3369 | ba.Anchored = true | |
3370 | ba.BrickColor = bc("Really black") | |
3371 | ba.Material = "Neon" | |
3372 | ba.Transparency = 1 | |
3373 | ba.CanCollide = false | |
3374 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3375 | local ignore = Character | |
3376 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3377 | a.BottomSurface = 10 | |
3378 | a.TopSurface = 10 | |
3379 | a2.BottomSurface = 10 | |
3380 | a2.TopSurface = 10 | |
3381 | local distance = (orb.CFrame.p - position).magnitude | |
3382 | a.Size = Vector3.new(distance, 1, 1) | |
3383 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3384 | a2.Size = Vector3.new(distance, 1, 1) | |
3385 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3386 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3387 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3388 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3389 | game:GetService("Debris"):AddItem(a, 60) | |
3390 | game:GetService("Debris"):AddItem(a2, 60) | |
3391 | game:GetService("Debris"):AddItem(ba, 60) | |
3392 | local outerscale = 0 | |
3393 | local msh = Instance.new("SpecialMesh", a) | |
3394 | msh.MeshType = "Cylinder" | |
3395 | msh.Scale = vt(1, 0, 0) | |
3396 | local msh2 = Instance.new("SpecialMesh", a2) | |
3397 | msh2.MeshType = "Cylinder" | |
3398 | msh2.Scale = vt(1, 0, 0) | |
3399 | for i = 0, 2, 0.1 do | |
3400 | swait() | |
3401 | CameraEnshaking(1, 1) | |
3402 | msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20) | |
3403 | msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15) | |
3404 | outerscale = outerscale - 0.015 | |
3405 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3406 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3407 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3408 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3409 | distance = (orb.CFrame.p - position).magnitude | |
3410 | if typrot == 1 then | |
3411 | rotation = rotation + 2.5 | |
3412 | elseif typrot == 2 then | |
3413 | rotation = rotation - 2.5 | |
3414 | end | |
3415 | RootPart.CFrame = FaceMouse()[1] | |
3416 | a.Size = Vector3.new(distance, 1, 1) | |
3417 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3418 | a2.Size = Vector3.new(distance, 1, 1) | |
3419 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3420 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3421 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3422 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3423 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3424 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3425 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3426 | end | |
3427 | for z = 0, 2 do | |
3428 | for i = 0, 4, 0.1 do | |
3429 | swait() | |
3430 | CameraEnshaking(1, 1) | |
3431 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3432 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3433 | outerscale = outerscale + 0.015 | |
3434 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3435 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3436 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3437 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3438 | distance = (orb.CFrame.p - position).magnitude | |
3439 | if typrot == 1 then | |
3440 | rotation = rotation + 2.5 | |
3441 | elseif typrot == 2 then | |
3442 | rotation = rotation - 2.5 | |
3443 | end | |
3444 | RootPart.CFrame = FaceMouse()[1] | |
3445 | a.Size = Vector3.new(distance, 1, 1) | |
3446 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3447 | a2.Size = Vector3.new(distance, 1, 1) | |
3448 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3449 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3450 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3451 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3452 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3453 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3454 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3455 | end | |
3456 | for i = 0, 4, 0.1 do | |
3457 | swait() | |
3458 | CameraEnshaking(1, 1) | |
3459 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3460 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3461 | outerscale = outerscale - 0.015 | |
3462 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3463 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3464 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3465 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3466 | distance = (orb.CFrame.p - position).magnitude | |
3467 | if typrot == 1 then | |
3468 | rotation = rotation + 2.5 | |
3469 | elseif typrot == 2 then | |
3470 | rotation = rotation - 2.5 | |
3471 | end | |
3472 | RootPart.CFrame = FaceMouse()[1] | |
3473 | a.Size = Vector3.new(distance, 1, 1) | |
3474 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3475 | a2.Size = Vector3.new(distance, 1, 1) | |
3476 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3477 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3478 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3479 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3480 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3481 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3482 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3483 | end | |
3484 | end | |
3485 | for i = 0, 4, 0.1 do | |
3486 | swait() | |
3487 | CameraEnshaking(1, 1) | |
3488 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3489 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3490 | xd.Volume = xd.Volume - 0.025 | |
3491 | a.Transparency = a.Transparency + 0.025 | |
3492 | a2.Transparency = a2.Transparency + 0.025 | |
3493 | outerscale = outerscale - 0.015 | |
3494 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3495 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3496 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3497 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3498 | distance = (orb.CFrame.p - position).magnitude | |
3499 | if typrot == 1 then | |
3500 | rotation = rotation + 2.5 | |
3501 | elseif typrot == 2 then | |
3502 | rotation = rotation - 2.5 | |
3503 | end | |
3504 | RootPart.CFrame = FaceMouse()[1] | |
3505 | a.Size = Vector3.new(distance, 1, 1) | |
3506 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3507 | a2.Size = Vector3.new(distance, 1, 1) | |
3508 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3509 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3510 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3511 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3512 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3513 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3514 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3515 | end | |
3516 | xd:Destroy() | |
3517 | a:Destroy() | |
3518 | a2:Destroy() | |
3519 | ba:Destroy() | |
3520 | orb:Destroy() | |
3521 | orbe:Destroy() | |
3522 | attack = false | |
3523 | end | |
3524 | function resetmode() | |
3525 | rainbowmode = false | |
3526 | chaosmode = false | |
3527 | RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0)) | |
3528 | ModeOfGlitch = 1 | |
3529 | storehumanoidWS = 16 | |
3530 | for i, v in pairs(mw2:GetChildren()) do | |
3531 | if v:IsA("Part") then | |
3532 | v.BrickColor = BrickColor.new("Really red") | |
3533 | v.Material = "Neon" | |
3534 | end | |
3535 | end | |
3536 | for i, v in pairs(mw1:GetChildren()) do | |
3537 | if v:IsA("Part") then | |
3538 | v.Transparency = 1 | |
3539 | v.BrickColor = BrickColor.new("Really red") | |
3540 | v.Material = "Neon" | |
3541 | end | |
3542 | end | |
3543 | MAINRUINCOLOR = BrickColor.new("Really red") | |
3544 | hum.WalkSpeed = 16 | |
3545 | newTheme("rbxassetid://415898123", 0, 1, 10) | |
3546 | for i, v in pairs(m:GetChildren()) do | |
3547 | if v:IsA("Part") then | |
3548 | v.BrickColor = BrickColor.new("Really black") | |
3549 | v.Material = "Glass" | |
3550 | end | |
3551 | end | |
3552 | for i, v in pairs(m2:GetChildren()) do | |
3553 | if v:IsA("Part") then | |
3554 | v.BrickColor = BrickColor.new("Crimson") | |
3555 | v.Material = "Granite" | |
3556 | end | |
3557 | end | |
3558 | for i, v in pairs(m3:GetChildren()) do | |
3559 | if v:IsA("Part") then | |
3560 | v.BrickColor = BrickColor.new("Really red") | |
3561 | v.Material = "Neon" | |
3562 | end | |
3563 | end | |
3564 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3565 | if v:IsA("Part") then | |
3566 | v.Transparency = 1 | |
3567 | v.BrickColor = BrickColor.new("White") | |
3568 | v.Material = "Neon" | |
3569 | end | |
3570 | end | |
3571 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3572 | if v:IsA("Part") then | |
3573 | v.Transparency = 1 | |
3574 | v.BrickColor = BrickColor.new("White") | |
3575 | v.Material = "Neon" | |
3576 | end | |
3577 | end | |
3578 | end | |
3579 | function attackone() | |
3580 | attack = true | |
3581 | for i = 0, 1, 0.1 do | |
3582 | swait() | |
3583 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2) | |
3584 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2) | |
3585 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
3586 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
3587 | RH.C0 = clerp(RH.C0, cf(1, -1 - 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)), 0.2) | |
3588 | 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(10)), 0.2) | |
3589 | end | |
3590 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1) | |
3591 | local hitb = Instance.new("Part", char) | |
3592 | hitb.Anchored = true | |
3593 | hitb.CanCollide = false | |
3594 | hitb.FormFactor = 3 | |
3595 | hitb.Name = "Ring" | |
3596 | hitb.Material = "Neon" | |
3597 | hitb.Size = Vector3.new(1, 1, 1) | |
3598 | hitb.Transparency = 1 | |
3599 | hitb.TopSurface = 0 | |
3600 | hitb.BottomSurface = 0 | |
3601 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
3602 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
3603 | hitb:Destroy() | |
3604 | for i = 0, 1, 0.1 do | |
3605 | swait() | |
3606 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4) | |
3607 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4) | |
3608 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
3609 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
3610 | RH.C0 = clerp(RH.C0, cf(1, -1 - 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(-40)), 0.4) | |
3611 | 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(-10)), 0.4) | |
3612 | end | |
3613 | attack = false | |
3614 | end | |
3615 | function attacktwo() | |
3616 | attack = true | |
3617 | for i = 0, 1, 0.1 do | |
3618 | swait() | |
3619 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2) | |
3620 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
3621 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
3622 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
3623 | RH.C0 = clerp(RH.C0, cf(1, -1 - 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)), 0.2) | |
3624 | 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(10)), 0.2) | |
3625 | end | |
3626 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1) | |
3627 | local hitb = Instance.new("Part", char) | |
3628 | hitb.Anchored = true | |
3629 | hitb.CanCollide = false | |
3630 | hitb.FormFactor = 3 | |
3631 | hitb.Name = "Ring" | |
3632 | hitb.Material = "Neon" | |
3633 | hitb.Size = Vector3.new(1, 1, 1) | |
3634 | hitb.Transparency = 1 | |
3635 | hitb.TopSurface = 0 | |
3636 | hitb.BottomSurface = 0 | |
3637 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
3638 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
3639 | hitb:Destroy() | |
3640 | for i = 0, 1, 0.1 do | |
3641 | swait() | |
3642 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4) | |
3643 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4) | |
3644 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
3645 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
3646 | 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(-5), math.rad(0), math.rad(-40)), 0.4) | |
3647 | 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(-10)), 0.4) | |
3648 | end | |
3649 | attack = false | |
3650 | end | |
3651 | function attackthree() | |
3652 | attack = true | |
3653 | for i = 0, 1, 0.1 do | |
3654 | swait() | |
3655 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
3656 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3) | |
3657 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
3658 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
3659 | 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(0)), 0.3) | |
3660 | 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(10), math.rad(0)), 0.3) | |
3661 | end | |
3662 | local distlook = 5 | |
3663 | for i = 0, 4 do | |
3664 | swait(2) | |
3665 | CameraEnshaking(2, 3) | |
3666 | local hite = Instance.new("Part", char) | |
3667 | hite.Anchored = true | |
3668 | hite.CanCollide = false | |
3669 | hite.FormFactor = 3 | |
3670 | hite.Name = "Ring" | |
3671 | hite.Material = "Neon" | |
3672 | hite.Size = Vector3.new(1, 1, 1) | |
3673 | hite.Transparency = 1 | |
3674 | hite.TopSurface = 0 | |
3675 | hite.BottomSurface = 0 | |
3676 | hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook | |
3677 | sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR) | |
3678 | sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR) | |
3679 | MagniDamage(hite, 10, 15, 35, 0, "Normal") | |
3680 | for i = 0, 2 do | |
3681 | sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
3682 | sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
3683 | sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
3684 | end | |
3685 | CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1) | |
3686 | CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
3687 | game:GetService("Debris"):AddItem(hite, 5) | |
3688 | distlook = distlook + 10 | |
3689 | end | |
3690 | attack = false | |
3691 | end | |
3692 | local attacktype = 1 | |
3693 | mouse.Button1Down:connect(function() | |
3694 | if attack == false and attacktype == 1 then | |
3695 | attacktype = 2 | |
3696 | attackone() | |
3697 | elseif attack == false and attacktype == 2 then | |
3698 | attacktype = 3 | |
3699 | attacktwo() | |
3700 | elseif attack == false and attacktype == 3 then | |
3701 | attacktype = 1 | |
3702 | attackthree() | |
3703 | elseif attack == false and attacktype == 4 then | |
3704 | attacktype = 1 | |
3705 | end | |
3706 | end) | |
3707 | mouse.KeyDown:connect(function(k) | |
3708 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
3709 | ModeOfGlitch = 2 | |
3710 | storehumanoidWS = 16 | |
3711 | hum.WalkSpeed = 16 | |
3712 | rainbowmode = false | |
3713 | chaosmode = false | |
3714 | RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1)) | |
3715 | newTheme("rbxassetid://1119453744", 20.25, 1, 1) | |
3716 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
3717 | for i, v in pairs(mw2:GetChildren()) do | |
3718 | if v:IsA("Part") then | |
3719 | v.BrickColor = MAINRUINCOLOR | |
3720 | v.Material = "Neon" | |
3721 | end | |
3722 | end | |
3723 | for i, v in pairs(mw1:GetChildren()) do | |
3724 | if v:IsA("Part") then | |
3725 | v.Transparency = 1 | |
3726 | v.BrickColor = MAINRUINCOLOR | |
3727 | v.Material = "Neon" | |
3728 | end | |
3729 | end | |
3730 | for i, v in pairs(m:GetChildren()) do | |
3731 | if v:IsA("Part") then | |
3732 | v.BrickColor = BrickColor.new("White") | |
3733 | v.Material = "Ice" | |
3734 | end | |
3735 | end | |
3736 | for i, v in pairs(m2:GetChildren()) do | |
3737 | if v:IsA("Part") then | |
3738 | v.BrickColor = BrickColor.new("Pastel light blue") | |
3739 | v.Material = "Glass" | |
3740 | end | |
3741 | end | |
3742 | for i, v in pairs(m3:GetChildren()) do | |
3743 | if v:IsA("Part") then | |
3744 | v.BrickColor = BrickColor.new("Toothpaste") | |
3745 | v.Material = "Neon" | |
3746 | end | |
3747 | end | |
3748 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3749 | if v:IsA("Part") then | |
3750 | v.Transparency = 1 | |
3751 | v.BrickColor = BrickColor.new("White") | |
3752 | v.Material = "Neon" | |
3753 | end | |
3754 | end | |
3755 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3756 | if v:IsA("Part") then | |
3757 | v.Transparency = 1 | |
3758 | v.BrickColor = BrickColor.new("White") | |
3759 | v.Material = "Neon" | |
3760 | end | |
3761 | end | |
3762 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
3763 | resetmode() | |
3764 | end | |
3765 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
3766 | ModeOfGlitch = 3 | |
3767 | storehumanoidWS = 16 | |
3768 | hum.WalkSpeed = 16 | |
3769 | rainbowmode = false | |
3770 | chaosmode = false | |
3771 | RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1)) | |
3772 | newTheme("rbxassetid://1509634377", 58.15, 1,2) | |
3773 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
3774 | for i, v in pairs(mw2:GetChildren()) do | |
3775 | if v:IsA("Part") then | |
3776 | v.BrickColor = MAINRUINCOLOR | |
3777 | v.Material = "Neon" | |
3778 | end | |
3779 | end | |
3780 | for i, v in pairs(mw1:GetChildren()) do | |
3781 | if v:IsA("Part") then | |
3782 | v.Transparency = 1 | |
3783 | v.BrickColor = MAINRUINCOLOR | |
3784 | v.Material = "Neon" | |
3785 | end | |
3786 | end | |
3787 | for i, v in pairs(m:GetChildren()) do | |
3788 | if v:IsA("Part") then | |
3789 | v.BrickColor = BrickColor.new("Black") | |
3790 | v.Material = "Ice" | |
3791 | end | |
3792 | end | |
3793 | for i, v in pairs(m2:GetChildren()) do | |
3794 | if v:IsA("Part") then | |
3795 | v.BrickColor = BrickColor.new("Dark indigo") | |
3796 | v.Material = "Glass" | |
3797 | end | |
3798 | end | |
3799 | for i, v in pairs(m3:GetChildren()) do | |
3800 | if v:IsA("Part") then | |
3801 | v.BrickColor = BrickColor.new("Royal purple") | |
3802 | v.Material = "Neon" | |
3803 | end | |
3804 | end | |
3805 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3806 | if v:IsA("Part") then | |
3807 | v.Transparency = 1 | |
3808 | v.BrickColor = BrickColor.new("White") | |
3809 | v.Material = "Neon" | |
3810 | end | |
3811 | end | |
3812 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3813 | if v:IsA("Part") then | |
3814 | v.Transparency = 1 | |
3815 | v.BrickColor = BrickColor.new("White") | |
3816 | v.Material = "Neon" | |
3817 | end | |
3818 | end | |
3819 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
3820 | resetmode() | |
3821 | end | |
3822 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
3823 | ModeOfGlitch = 4 | |
3824 | storehumanoidWS = 16 | |
3825 | hum.WalkSpeed = 16 | |
3826 | rainbowmode = false | |
3827 | chaosmode = true | |
3828 | RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color) | |
3829 | newTheme("rbxassetid://415898123", 0, 1, 10) | |
3830 | MAINRUINCOLOR = BrickColor.new("Black") | |
3831 | for i, v in pairs(mw2:GetChildren()) do | |
3832 | if v:IsA("Part") then | |
3833 | v.BrickColor = MAINRUINCOLOR | |
3834 | v.Material = "Neon" | |
3835 | end | |
3836 | end | |
3837 | for i, v in pairs(mw1:GetChildren()) do | |
3838 | if v:IsA("Part") then | |
3839 | v.Transparency = 0.75 | |
3840 | v.BrickColor = BrickColor.random() | |
3841 | v.Material = "Neon" | |
3842 | end | |
3843 | end | |
3844 | for i, v in pairs(m:GetChildren()) do | |
3845 | if v:IsA("Part") then | |
3846 | v.BrickColor = BrickColor.new("Black") | |
3847 | v.Material = "Neon" | |
3848 | end | |
3849 | end | |
3850 | for i, v in pairs(m2:GetChildren()) do | |
3851 | if v:IsA("Part") then | |
3852 | v.BrickColor = BrickColor.random() | |
3853 | v.Material = "Neon" | |
3854 | end | |
3855 | end | |
3856 | for i, v in pairs(m3:GetChildren()) do | |
3857 | if v:IsA("Part") then | |
3858 | v.BrickColor = BrickColor.new("Black") | |
3859 | v.Material = "Neon" | |
3860 | end | |
3861 | end | |
3862 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3863 | if v:IsA("Part") then | |
3864 | v.Transparency = 1 | |
3865 | v.BrickColor = BrickColor.new("White") | |
3866 | v.Material = "Neon" | |
3867 | end | |
3868 | end | |
3869 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3870 | if v:IsA("Part") then | |
3871 | v.Transparency = 1 | |
3872 | v.BrickColor = BrickColor.new("White") | |
3873 | v.Material = "Neon" | |
3874 | end | |
3875 | end | |
3876 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
3877 | resetmode() | |
3878 | end | |
3879 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
3880 | ModeOfGlitch = 5 | |
3881 | ||
3882 | storehumanoidWS = 16 | |
3883 | hum.WalkSpeed = 16 | |
3884 | rainbowmode = false | |
3885 | chaosmode = false | |
3886 | RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255)) | |
3887 | newTheme("rbxassetid://723652641", 10, 1, 3.2) | |
3888 | ModeOfGlitch = 1 | |
3889 | MAINRUINCOLOR = BrickColor.new("Really black") | |
3890 | for i, v in pairs(mw2:GetChildren()) do | |
3891 | if v:IsA("Part") then | |
3892 | v.BrickColor = MAINRUINCOLOR | |
3893 | v.Material = "Neon" | |
3894 | end | |
3895 | end | |
3896 | for i, v in pairs(mw1:GetChildren()) do | |
3897 | if v:IsA("Part") then | |
3898 | v.Transparency = 0 | |
3899 | v.BrickColor = MAINRUINCOLOR | |
3900 | v.Material = "Neon" | |
3901 | end | |
3902 | end | |
3903 | for i, v in pairs(m:GetChildren()) do | |
3904 | if v:IsA("Part") then | |
3905 | v.BrickColor = BrickColor.new("Really black") | |
3906 | v.Material = "Ice" | |
3907 | end | |
3908 | end | |
3909 | for i, v in pairs(m2:GetChildren()) do | |
3910 | if v:IsA("Part") then | |
3911 | v.BrickColor = BrickColor.new("Really black") | |
3912 | v.Material = "Ice" | |
3913 | end | |
3914 | end | |
3915 | for i, v in pairs(m3:GetChildren()) do | |
3916 | if v:IsA("Part") then | |
3917 | v.BrickColor = BrickColor.new("Really black") | |
3918 | v.Material = "Neon" | |
3919 | end | |
3920 | end | |
3921 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3922 | if v:IsA("Part") then | |
3923 | v.Transparency = 1 | |
3924 | v.BrickColor = BrickColor.new("White") | |
3925 | v.Material = "Neon" | |
3926 | end | |
3927 | end | |
3928 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3929 | if v:IsA("Part") then | |
3930 | v.Transparency = 1 | |
3931 | v.BrickColor = BrickColor.new("White") | |
3932 | v.Material = "Neon" | |
3933 | end | |
3934 | end | |
3935 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
3936 | resetmode() | |
3937 | end | |
3938 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
3939 | ModeOfGlitch = 6 | |
3940 | storehumanoidWS = 75 | |
3941 | hum.WalkSpeed = 75 | |
3942 | rainbowmode = false | |
3943 | chaosmode = false | |
3944 | RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1)) | |
3945 | newTheme("rbxassetid://519067542", 0, 1, 1) | |
3946 | MAINRUINCOLOR = BrickColor.new("Really black") | |
3947 | for i, v in pairs(mw2:GetChildren()) do | |
3948 | if v:IsA("Part") then | |
3949 | v.BrickColor = BrickColor.new("White") | |
3950 | v.Material = "Neon" | |
3951 | end | |
3952 | end | |
3953 | for i, v in pairs(mw1:GetChildren()) do | |
3954 | if v:IsA("Part") then | |
3955 | v.Transparency = 0 | |
3956 | v.BrickColor = BrickColor.new("Really black") | |
3957 | v.Material = "Neon" | |
3958 | end | |
3959 | end | |
3960 | for i, v in pairs(m:GetChildren()) do | |
3961 | if v:IsA("Part") then | |
3962 | v.BrickColor = BrickColor.new("White") | |
3963 | v.Material = "Ice" | |
3964 | end | |
3965 | end | |
3966 | for i, v in pairs(m2:GetChildren()) do | |
3967 | if v:IsA("Part") then | |
3968 | v.BrickColor = BrickColor.new("Really black") | |
3969 | v.Material = "Ice" | |
3970 | end | |
3971 | end | |
3972 | for i, v in pairs(m3:GetChildren()) do | |
3973 | if v:IsA("Part") then | |
3974 | v.BrickColor = BrickColor.new("White") | |
3975 | v.Material = "Neon" | |
3976 | end | |
3977 | end | |
3978 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3979 | if v:IsA("Part") then | |
3980 | v.Transparency = 1 | |
3981 | v.BrickColor = BrickColor.new("White") | |
3982 | v.Material = "Neon" | |
3983 | end | |
3984 | end | |
3985 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3986 | if v:IsA("Part") then | |
3987 | v.Transparency = 1 | |
3988 | v.BrickColor = BrickColor.new("White") | |
3989 | v.Material = "Neon" | |
3990 | end | |
3991 | end | |
3992 | ||
3993 | ||
3994 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
3995 | resetmode() | |
3996 | end | |
3997 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
3998 | ModeOfGlitch = 6127843 | |
3999 | storehumanoidWS = 50 | |
4000 | hum.WalkSpeed = 50 | |
4001 | rainbowmode = true | |
4002 | chaosmode = false | |
4003 | RecolorTextAndRename("StarLight", Color3.new(1, 1, 1), Color3.new(1, 1, 1)) | |
4004 | newTheme("rbxassetid://152539141", 0, 1, 1) | |
4005 | MAINRUINCOLOR = BrickColor.new("White") | |
4006 | for i, v in pairs(mw2:GetChildren()) do | |
4007 | if v:IsA("Part") then | |
4008 | v.BrickColor = MAINRUINCOLOR | |
4009 | v.Material = "Neon" | |
4010 | end | |
4011 | end | |
4012 | for i, v in pairs(mw1:GetChildren()) do | |
4013 | if v:IsA("Part") then | |
4014 | v.Transparency = 0 | |
4015 | v.BrickColor = MAINRUINCOLOR | |
4016 | v.Material = "Neon" | |
4017 | end | |
4018 | end | |
4019 | for i, v in pairs(m:GetChildren()) do | |
4020 | if v:IsA("Part") then | |
4021 | v.BrickColor = BrickColor.new("White") | |
4022 | v.Material = "Neon" | |
4023 | end | |
4024 | end | |
4025 | for i, v in pairs(m2:GetChildren()) do | |
4026 | if v:IsA("Part") then | |
4027 | v.BrickColor = BrickColor.new("White") | |
4028 | v.Material = "Neon" | |
4029 | end | |
4030 | end | |
4031 | for i, v in pairs(m3:GetChildren()) do | |
4032 | if v:IsA("Part") then | |
4033 | v.BrickColor = BrickColor.new("White") | |
4034 | v.Material = "Neon" | |
4035 | end | |
4036 | end | |
4037 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4038 | if v:IsA("Part") then | |
4039 | v.Transparency = 1 | |
4040 | v.BrickColor = BrickColor.new("White") | |
4041 | v.Material = "Neon" | |
4042 | end | |
4043 | end | |
4044 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4045 | if v:IsA("Part") then | |
4046 | v.Transparency = 1 | |
4047 | v.BrickColor = BrickColor.new("White") | |
4048 | v.Material = "Neon" | |
4049 | end | |
4050 | end | |
4051 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
4052 | resetmode() | |
4053 | end | |
4054 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
4055 | ModeOfGlitch = 1000000 | |
4056 | storehumanoidWS = 100 | |
4057 | hum.WalkSpeed = 100 | |
4058 | rainbowmode = false | |
4059 | chaosmode = false | |
4060 | RecolorTextAndRename("True Starlight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1)) | |
4061 | newTheme("rbxassetid://614032233", 0, 1, 1) | |
4062 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
4063 | for i, v in pairs(mw2:GetChildren()) do | |
4064 | if v:IsA("Part") then | |
4065 | v.BrickColor = MAINRUINCOLOR | |
4066 | v.Material = "Neon" | |
4067 | end | |
4068 | end | |
4069 | for i, v in pairs(mw1:GetChildren()) do | |
4070 | if v:IsA("Part") then | |
4071 | v.Transparency = 0 | |
4072 | v.BrickColor = MAINRUINCOLOR | |
4073 | v.Material = "Neon" | |
4074 | end | |
4075 | end | |
4076 | for i, v in pairs(m:GetChildren()) do | |
4077 | if v:IsA("Part") then | |
4078 | v.Color = Color3.new(0.5, 0, 1) | |
4079 | v.Material = "Neon" | |
4080 | end | |
4081 | end | |
4082 | for i, v in pairs(m2:GetChildren()) do | |
4083 | if v:IsA("Part") then | |
4084 | v.Color = Color3.new(0.25, 0, 1) | |
4085 | v.Material = "Neon" | |
4086 | end | |
4087 | end | |
4088 | for i, v in pairs(m3:GetChildren()) do | |
4089 | if v:IsA("Part") then | |
4090 | v.Color = Color3.new(0.45, 0, 1) | |
4091 | v.Material = "Neon" | |
4092 | end | |
4093 | end | |
4094 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4095 | if v:IsA("Part") then | |
4096 | v.Transparency = 0 | |
4097 | v.Color = Color3.new(0.25, 0, 1) | |
4098 | v.Material = "Neon" | |
4099 | end | |
4100 | end | |
4101 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4102 | if v:IsA("Part") then | |
4103 | v.Transparency = 0 | |
4104 | v.Color = Color3.new(0.5, 0, 1) | |
4105 | v.Material = "Neon" | |
4106 | end | |
4107 | end | |
4108 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
4109 | resetmode() | |
4110 | end | |
4111 | if k == "l" and toggleTag == false then | |
4112 | toggleTag = true | |
4113 | text.TextTransparency = 0 | |
4114 | text.TextStrokeTransparency = 0 | |
4115 | elseif k == "l" and toggleTag == true then | |
4116 | toggleTag = false | |
4117 | text.TextTransparency = 1 | |
4118 | text.TextStrokeTransparency = 1 | |
4119 | end | |
4120 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
4121 | ExtinctiveHeartbreak() | |
4122 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
4123 | PureBomb() | |
4124 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
4125 | scattercorrupt() | |
4126 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
4127 | ChaosGroundStrike() | |
4128 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
4129 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
4130 | UniversalSpark() | |
4131 | elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then | |
4132 | scattercorrupt() | |
4133 | wait(1) | |
4134 | yinyangi() | |
4135 | elseif k == "l" and attack == false and ModeOfGlitch == 5 then | |
4136 | scattercorrupt() | |
4137 | scattercorrupt() | |
4138 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
4139 | yinyangi() | |
4140 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
4141 | Wip() | |
4142 | end | |
4143 | if k == "l" and attack == false and ModeOfGlitch == 4 then | |
4144 | ChaosBegone() | |
4145 | end | |
4146 | end) | |
4147 | coroutine.resume(coroutine.create(function() | |
4148 | while true do | |
4149 | swait(2) | |
4150 | if rainbowmode == true or ModeOfGlitch == 6 then | |
4151 | sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0) | |
4152 | end | |
4153 | end | |
4154 | end)) | |
4155 | coroutine.resume(coroutine.create(function() | |
4156 | while true do | |
4157 | swait(0.5) | |
4158 | if ModeOfGlitch == 1000000 then | |
4159 | sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0) | |
4160 | end | |
4161 | end | |
4162 | end)) | |
4163 | coroutine.resume(coroutine.create(function() | |
4164 | while true do | |
4165 | swait(2) | |
4166 | if chaosmode == true then | |
4167 | RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color) | |
4168 | for i, v in pairs(mw1:GetChildren()) do | |
4169 | if v:IsA("Part") then | |
4170 | v.Transparency = 0.75 | |
4171 | v.BrickColor = BrickColor.random() | |
4172 | v.Material = "Neon" | |
4173 | end | |
4174 | end | |
4175 | for i, v in pairs(m2:GetChildren()) do | |
4176 | if v:IsA("Part") then | |
4177 | v.BrickColor = BrickColor.random() | |
4178 | v.Material = "Neon" | |
4179 | end | |
4180 | end | |
4181 | end | |
4182 | end | |
4183 | end)) | |
4184 | Humanoid.Name = "STARGLITCHER" | |
4185 | Humanoid.MaxHealth = math.huge | |
4186 | Humanoid.Health = math.huge | |
4187 | Instance.new("ForceField", char).Visible = false | |
4188 | Humanoid.Animator.Parent = nil | |
4189 | idleanim = 0.4 | |
4190 | while true do | |
4191 | if rainbowmode == true then | |
4192 | RecolorTextAndRename("StarLight", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500)) | |
4193 | MAINRUINCOLOR = BrickColor.new("White") | |
4194 | for i, v in pairs(m:GetChildren()) do | |
4195 | if v:IsA("Part") then | |
4196 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4197 | end | |
4198 | end | |
4199 | for i, v in pairs(m2:GetChildren()) do | |
4200 | if v:IsA("Part") then | |
4201 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4202 | end | |
4203 | end | |
4204 | for i, v in pairs(m3:GetChildren()) do | |
4205 | if v:IsA("Part") then | |
4206 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4207 | end | |
4208 | end | |
4209 | for i, v in pairs(mw1:GetChildren()) do | |
4210 | if v:IsA("Part") then | |
4211 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4212 | v.Material = "Neon" | |
4213 | end | |
4214 | end | |
4215 | for i, v in pairs(mw2:GetChildren()) do | |
4216 | if v:IsA("Part") then | |
4217 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4218 | v.Material = "Neon" | |
4219 | end | |
4220 | end | |
4221 | end | |
4222 | CameraManager() | |
4223 | swait() | |
4224 | lwing1weld.C1 = clerp(lwing1weld.C1, cf(2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(12.5 + 5 * math.cos(sine / 32))), 0.3) | |
4225 | lwing2weld.C1 = clerp(lwing2weld.C1, cf(3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(25 + 7.5 * math.cos(sine / 32))), 0.3) | |
4226 | lwing3weld.C1 = clerp(lwing3weld.C1, cf(3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(37.5 + 10 * math.cos(sine / 32))), 0.3) | |
4227 | lwing4weld.C1 = clerp(lwing4weld.C1, cf(4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(50 + 12.5 * math.cos(sine / 32))), 0.3) | |
4228 | lwing5weld.C1 = clerp(lwing5weld.C1, cf(5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(62.5 + 15 * math.cos(sine / 32))), 0.3) | |
4229 | lwing6weld.C1 = clerp(lwing6weld.C1, cf(6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(75 + 17.5 * math.cos(sine / 32))), 0.3) | |
4230 | rwing1weld.C1 = clerp(rwing1weld.C1, cf(-2, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(5 + 10 * math.cos(sine / 32)), math.rad(0), math.rad(-12.5 - 5 * math.cos(sine / 32))), 0.3) | |
4231 | rwing2weld.C1 = clerp(rwing2weld.C1, cf(-3, 1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(10 + 15 * math.cos(sine / 32)), math.rad(0), math.rad(-25 - 7.5 * math.cos(sine / 32))), 0.3) | |
4232 | rwing3weld.C1 = clerp(rwing3weld.C1, cf(-3.75, 2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(15 + 20 * math.cos(sine / 32)), math.rad(0), math.rad(-37.5 - 10 * math.cos(sine / 32))), 0.3) | |
4233 | rwing4weld.C1 = clerp(rwing4weld.C1, cf(-4.75, 3, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(20 + 25 * math.cos(sine / 32)), math.rad(0), math.rad(-50 - 12.5 * math.cos(sine / 32))), 0.3) | |
4234 | rwing5weld.C1 = clerp(rwing5weld.C1, cf(-5.75, 4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(25 + 30 * math.cos(sine / 32)), math.rad(0), math.rad(-62.5 - 15 * math.cos(sine / 32))), 0.3) | |
4235 | rwing6weld.C1 = clerp(rwing6weld.C1, cf(-6.75, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(30 + 35 * math.cos(sine / 32)), math.rad(0), math.rad(-75 - 17.5 * math.cos(sine / 32))), 0.3) | |
4236 | sine = sine + change | |
4237 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
4238 | local velderp = RootPart.Velocity.y | |
4239 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
4240 | if equipped == true or equipped == false then | |
4241 | if attack == false then | |
4242 | idle = idle + 1 | |
4243 | else | |
4244 | idle = 0 | |
4245 | end | |
4246 | if not (idle >= 500) or attack == false then | |
4247 | end | |
4248 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
4249 | Anim = "Jump" | |
4250 | if attack == false then | |
4251 | 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(-5), math.rad(0), math.rad(-20)), 0.1) | |
4252 | 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)), 0.1) | |
4253 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
4254 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1) | |
4255 | 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)), 0.1) | |
4256 | 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)), 0.1) | |
4257 | end | |
4258 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
4259 | Anim = "Fall" | |
4260 | if attack == false then | |
4261 | 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(-5), math.rad(0), math.rad(-20)), 0.1) | |
4262 | 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)), 0.1) | |
4263 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
4264 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
4265 | RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1) | |
4266 | LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1) | |
4267 | end | |
4268 | elseif torvel < 1 and hitfloor ~= nil then | |
4269 | Anim = "Idle" | |
4270 | if attack == false then | |
4271 | if ModeOfGlitch == 1 then | |
4272 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10 - 2.5 * math.cos(sine / 32)), math.rad(-20), math.rad(0)), 0.1) | |
4273 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 32))), 0.1) | |
4274 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(10 - 2 * math.cos(sine / 32)), math.rad(0), math.rad(20)), 0.1) | |
4275 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 32)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(-20 - 5 * math.cos(sine / 0.465))), 0.1) | |
4276 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1) | |
4277 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
4278 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
4279 | 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(-7.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
4280 | 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(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
4281 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
4282 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1) | |
4283 | RW.C0 = clerp(RW.C0, cf(0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(30 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-100 - 2.5 * math.cos(sine / 28))), 0.1) | |
4284 | LW.C0 = clerp(LW.C0, cf(-0.85, 0.5 + 0.1 * math.cos(sine / 28), -0.65) * angles(math.rad(40 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(90 + 2.5 * math.cos(sine / 28))), 0.1) | |
4285 | elseif ModeOfGlitch == 3 then | |
4286 | 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(0 - 1 * math.cos(sine / 34))), 0.1) | |
4287 | 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(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
4288 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(-20)), 0.1) | |
4289 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1) | |
4290 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(-20), math.rad(30 + 2.5 * math.cos(sine / 25))), 0.1) | |
4291 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1) | |
4292 | elseif ModeOfGlitch == 4 then | |
4293 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(20)), 0.1) | |
4294 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.025 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-1.5), math.rad(0), math.rad(-20)), 0.1) | |
4295 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 32)) * angles(math.rad(20 - 0.5 * math.cos(sine / 32)), math.rad(0), math.rad(0)), 0.1) | |
4296 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1) | |
4297 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1) | |
4298 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1) | |
4299 | elseif ModeOfGlitch == 5 then | |
4300 | 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(0 + 1 * math.cos(sine / 34))), 0.1) | |
4301 | 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(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
4302 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
4303 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1) | |
4304 | RW.C0 = clerp(RW.C0, cf(1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.1) | |
4305 | LW.C0 = clerp(LW.C0, cf(-1, 0.5 + 0.1 * math.cos(sine / 28), 0.45) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
4306 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
4307 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.1) | |
4308 | 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)), 0.1) | |
4309 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(0 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
4310 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1) | |
4311 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20 + 2.5 * math.cos(sine / 28))), 0.1) | |
4312 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20 - 2.5 * math.cos(sine / 28))), 0.1) | |
4313 | end | |
4314 | end | |
4315 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
4316 | Anim = "Walk" | |
4317 | if attack == false then | |
4318 | if ModeOfGlitch == 1 then | |
4319 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
4320 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
4321 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1) | |
4322 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 5 * math.cos(sine / 0.325)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 + 5 * math.cos(sine / 8))), 0.1) | |
4323 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1) | |
4324 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
4325 | elseif ModeOfGlitch == 4 then | |
4326 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(5 + 25 * math.cos(sine / 12))), 0.1) | |
4327 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 8)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 12)), math.rad(-5 + 25 * math.cos(sine / 12))), 0.1) | |
4328 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 8)) * angles(math.rad(12.5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 12))), 0.1) | |
4329 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30 - 5 * math.cos(sine / 0.5265)), math.rad(0 - 5 * math.cos(sine / 0.25)), math.rad(0 - 5 * math.cos(sine / 0.465))), 0.1) | |
4330 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(10 - 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.123)), math.rad(5 + 2.5 * math.cos(sine / 0.6))), 0.1) | |
4331 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(10 + 15 * math.cos(sine / 12)), math.rad(0 + 2.5 * math.cos(sine / 0.664)), math.rad(-5 + 2.5 * math.cos(sine / 0.23))), 0.1) | |
4332 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then | |
4333 | RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
4334 | LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1) | |
4335 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.15 - 0.1 * math.cos(sine / 4)) * angles(math.rad(5), math.rad(0), math.rad(0 - 5 * math.cos(sine / 8))), 0.1) | |
4336 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 5 * math.cos(sine / 8))), 0.1) | |
4337 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 8)), math.rad(0), math.rad(10 - 10 * math.cos(sine / 4))), 0.1) | |
4338 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 8)), math.rad(0), math.rad(-10 + 10 * math.cos(sine / 4))), 0.1) | |
4339 | end | |
4340 | end | |
4341 | elseif torvel >= 22 and hitfloor ~= nil then | |
4342 | Anim = "Run" | |
4343 | if attack == false then | |
4344 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then | |
4345 | RH.C0 = clerp(RH.C0, cf(1, -0.75 - 0.25 * math.cos(sine / 3), -0.25 - 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1) | |
4346 | LH.C0 = clerp(LH.C0, cf(-1, -0.75 + 0.25 * math.cos(sine / 3), -0.25 + 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1) | |
4347 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.125 + 0.125 * math.cos(sine / 3)) * angles(math.rad(20), math.rad(0), math.rad(0 - 15 * math.cos(sine / 6))), 0.1) | |
4348 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10 + 2.5 * math.cos(sine / 100)), math.rad(0), math.rad(0 + 15 * math.cos(sine / 6))), 0.1) | |
4349 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0 - 155 * math.cos(sine / 6)), math.rad(0), math.rad(5 - 10 * math.cos(sine / 3))), 0.1) | |
4350 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0 + 155 * math.cos(sine / 6)), math.rad(0), math.rad(-5 + 10 * math.cos(sine / 3))), 0.1) | |
4351 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
4352 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2) | |
4353 | 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(20)), 0.2) | |
4354 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2) | |
4355 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
4356 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(30 + 2.5 * math.cos(sine / 28))), 0.2) | |
4357 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30 - 2.5 * math.cos(sine / 28))), 0.2) | |
4358 | end | |
4359 | end | |
4360 | end | |
4361 | end | |
4362 | end |