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