SHOW:
|
|
- or go back to the newest paste.
1 | - | --------------- |
1 | + | |
2 | - | --Ultimate poot v2.9.5-- |
2 | + | |
3 | - | ---------------------------------------------------------------- |
3 | + | |
4 | - | print([[ |
4 | + | |
5 | - | --made by Makhail07 |
5 | + | |
6 | - | --FE code by Mokiros |
6 | + | |
7 | - | --Edited by HeavyThePootisMan333 |
7 | + | |
8 | - | --fixed by saba1520/kisslarge -- |
8 | + | |
9 | - | --Discord: [GRID-EEST]HeavyThePootisMan333#7955 |
9 | + | |
10 | - | -------------------------------- |
10 | + | |
11 | - | hello good sir |
11 | + | |
12 | - | Don't leak pls |
12 | + | |
13 | - | Enjoy ;) |
13 | + | |
14 | - | -------------------------------- |
14 | + | |
15 | - | ]]) |
15 | + | |
16 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent then | |
34 | for _,f in pairs(t.Functions) do | |
35 | f(...) | |
36 | end | |
37 | end | |
38 | end | |
39 | m.TrigEvent = te | |
40 | UIS.TrigEvent = te | |
41 | ||
42 | Event.OnServerEvent:Connect(function(plr,io) | |
43 | if plr~=rp then return end | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | if not io.isMouse then | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = game:GetService("Players").LocalPlayer | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local Mouse = Player:GetMouse() | |
67 | local UIS = game:GetService("UserInputService") | |
68 | local input = function(io,a) | |
69 | if a then return end | |
70 | --Since InputObject is a client-side instance, we create and pass table instead | |
71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
72 | end | |
73 | UIS.InputBegan:Connect(input) | |
74 | UIS.InputEnded:Connect(input) | |
75 | ||
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then return s[k] end | |
95 | end, | |
96 | __newindex = function(self,k,v) | |
97 | local s = rawget(self,"_RealService") | |
98 | if s then s[k]=v end | |
99 | end, | |
100 | __call = function(self,...) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s(...) end | |
103 | end | |
104 | } | |
105 | local function FakeService(t,RealService) | |
106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
107 | return setmetatable(t,fsmt) | |
108 | end | |
109 | ||
110 | --Fake game object | |
111 | local g = { | |
112 | GetService = function(self,s) | |
113 | return self[s] | |
114 | end, | |
115 | Players = FakeService({ | |
116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
117 | },"Players"), | |
118 | UserInputService = FakeService(UIS,"UserInputService"), | |
119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
120 | } | |
121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
122 | g.service = g.GetService | |
123 | ||
124 | g.RunService = FakeService({ | |
125 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
126 | BindToRenderStep = function(self,name,_,fun) | |
127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
128 | end, | |
129 | UnbindFromRenderStep = function(self,name) | |
130 | self._btrs[name]:Disconnect() | |
131 | end, | |
132 | },"RunService") | |
133 | ||
134 | setmetatable(g,{ | |
135 | __index=function(self,s) | |
136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
138 | end, | |
139 | __newindex = fsmt.__newindex, | |
140 | __call = fsmt.__call | |
141 | }) | |
142 | --Changing owner to fake player object to support owner:GetMouse() | |
143 | game,owner = g,g.Players.LocalPlayer | |
144 | end | |
145 | ||
146 | Player = owner | |
147 | PlayerGui = Player.PlayerGui | |
148 | Cam = workspace.CurrentCamera | |
149 | Backpack = Player.Backpack | |
150 | Character = Player.Character | |
151 | Humanoid = Character.Humanoid | |
152 | Mouse = Player:GetMouse() | |
153 | RootPart = Character["HumanoidRootPart"] | |
154 | Torso = Character["Torso"] | |
155 | Head = Character["Head"] | |
156 | RightArm = Character["Right Arm"] | |
157 | LeftArm = Character["Left Arm"] | |
158 | RightLeg = Character["Right Leg"] | |
159 | LeftLeg = Character["Left Leg"] | |
160 | RootJoint = RootPart["RootJoint"] | |
161 | Neck = Torso["Neck"] | |
162 | RightShoulder = Torso["Right Shoulder"] | |
163 | LeftShoulder = Torso["Left Shoulder"] | |
164 | RightHip = Torso["Right Hip"] | |
165 | LeftHip = Torso["Left Hip"] | |
166 | ||
167 | Character = Player.Character | |
168 | Humanoid = Character.Humanoid | |
169 | ||
170 | IT = Instance.new | |
171 | CF = CFrame.new | |
172 | VT = Vector3.new | |
173 | RAD = math.rad | |
174 | C3 = Color3.new | |
175 | UD2 = UDim2.new | |
176 | BRICKC = BrickColor.new | |
177 | ANGLES = CFrame.Angles | |
178 | EULER = CFrame.fromEulerAnglesXYZ | |
179 | COS = math.cos | |
180 | ACOS = math.acos | |
181 | SIN = math.sin | |
182 | ASIN = math.asin | |
183 | ABS = math.abs | |
184 | MRANDOM = math.random | |
185 | FLOOR = math.floor | |
186 | ||
187 | --//=================================\\ | |
188 | --|| USEFUL VALUES | |
189 | --\\=================================// | |
190 | ||
191 | Animation_Speed = 3 | |
192 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
193 | local Speed = 25 | |
194 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
195 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
196 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
197 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
198 | local DAMAGEMULTIPLIER = 1 | |
199 | local ANIM = "Idle" | |
200 | local ATTACK = false | |
201 | local EQUIPPED = false | |
202 | local HOLD = false | |
203 | local COMBO = 1 | |
204 | local Rooted = false | |
205 | local SINE = 0 | |
206 | local KEYHOLD = false | |
207 | local CHANGE = 2 / Animation_Speed | |
208 | local WALKINGANIM = false | |
209 | local VALUE1 = false | |
210 | local VALUE2 = false | |
211 | local ROBLOXIDLEANIMATION = IT("Animation") | |
212 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
213 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
214 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
215 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
216 | WEAPONGUI.Name = "Weapon GUI" | |
217 | local Effects = IT("Folder", Character) | |
218 | Effects.Name = "Effects" | |
219 | local ANIMATOR = Humanoid.Animator | |
220 | local ANIMATE = Character.Animate | |
221 | local UNANCHOR = true | |
222 | local PLAYMAINANIM = true | |
223 | local BOLTSOUNDS = {168586621,168586586,178452241} | |
224 | ||
225 | --//=================================\\ | |
226 | --\\=================================// | |
227 | ||
228 | wait(1) | |
229 | plr = game.Players.LocalPlayer | |
230 | char = plr.Character | |
231 | mouse = plr:GetMouse() | |
232 | whitecolor = Color3.new(255,255,255) | |
233 | epicmode = false | |
234 | normal = true | |
235 | for i,v in pairs(char:GetChildren()) do | |
236 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
237 | v:Destroy() | |
238 | end | |
239 | end | |
240 | local shirt = Instance.new("Shirt",char) | |
241 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
242 | local pants = Instance.new("Pants",char) | |
243 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=138981718" | |
244 | local bdycolors = char["Body Colors"] | |
245 | bdycolors.HeadColor3 = whitecolor | |
246 | bdycolors.LeftArmColor3 = whitecolor | |
247 | bdycolors.LeftLegColor3 = whitecolor | |
248 | bdycolors.RightArmColor3 = whitecolor | |
249 | bdycolors.RightLegColor3 = whitecolor | |
250 | bdycolors.TorsoColor3 = whitecolor | |
251 | for i,v in pairs(char:GetChildren()) do | |
252 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
253 | v:Destroy() | |
254 | end | |
255 | - | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=144423481" |
255 | + | |
256 | --//=================================\\ | |
257 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
258 | --\\=================================// | |
259 | ||
260 | ArtificialHB = Instance.new("BindableEvent", script) | |
261 | ArtificialHB.Name = "ArtificialHB" | |
262 | ||
263 | script:WaitForChild("ArtificialHB") | |
264 | ||
265 | frame = Frame_Speed | |
266 | tf = 0 | |
267 | allowframeloss = false | |
268 | tossremainder = false | |
269 | lastframe = tick() | |
270 | script.ArtificialHB:Fire() | |
271 | ||
272 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
273 | tf = tf + s | |
274 | if tf >= frame then | |
275 | if allowframeloss then | |
276 | script.ArtificialHB:Fire() | |
277 | lastframe = tick() | |
278 | else | |
279 | for i = 1, math.floor(tf / frame) do | |
280 | script.ArtificialHB:Fire() | |
281 | end | |
282 | lastframe = tick() | |
283 | end | |
284 | if tossremainder then | |
285 | tf = 0 | |
286 | else | |
287 | tf = tf - frame * math.floor(tf / frame) | |
288 | end | |
289 | end | |
290 | end) | |
291 | ||
292 | --//=================================\\ | |
293 | --\\=================================// | |
294 | ||
295 | --//=================================\\ | |
296 | --|| SOME FUNCTIONS | |
297 | --\\=================================// | |
298 | -------1 | |
299 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
300 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
301 | end | |
302 | ||
303 | function PositiveAngle(NUMBER) | |
304 | if NUMBER >= 0 then | |
305 | NUMBER = 0 | |
306 | end | |
307 | return NUMBER | |
308 | end | |
309 | ||
310 | function NegativeAngle(NUMBER) | |
311 | if NUMBER <= 0 then | |
312 | NUMBER = 0 | |
313 | end | |
314 | return NUMBER | |
315 | end | |
316 | ||
317 | function Swait(NUMBER) | |
318 | if NUMBER == 0 or NUMBER == nil then | |
319 | ArtificialHB.Event:wait() | |
320 | else | |
321 | for i = 1, NUMBER do | |
322 | ArtificialHB.Event:wait() | |
323 | end | |
324 | end | |
325 | end | |
326 | ||
327 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
328 | local NEWMESH = IT(MESH) | |
329 | if MESH == "SpecialMesh" then | |
330 | NEWMESH.MeshType = MESHTYPE | |
331 | if MESHID ~= "nil" and MESHID ~= "" then | |
332 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
333 | end | |
334 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
335 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
336 | end | |
337 | end | |
338 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
339 | NEWMESH.Scale = SCALE | |
340 | NEWMESH.Parent = PARENT | |
341 | return NEWMESH | |
342 | end | |
343 | ||
344 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
345 | local NEWPART = IT("Part") | |
346 | NEWPART.formFactor = FORMFACTOR | |
347 | NEWPART.Reflectance = REFLECTANCE | |
348 | NEWPART.Transparency = TRANSPARENCY | |
349 | NEWPART.CanCollide = false | |
350 | NEWPART.Locked = true | |
351 | NEWPART.Anchored = true | |
352 | if ANCHOR == false then | |
353 | NEWPART.Anchored = false | |
354 | end | |
355 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
356 | NEWPART.Name = NAME | |
357 | NEWPART.Size = SIZE | |
358 | NEWPART.Position = Torso.Position | |
359 | NEWPART.Material = MATERIAL | |
360 | NEWPART:BreakJoints() | |
361 | NEWPART.Parent = PARENT | |
362 | return NEWPART | |
363 | end | |
364 | ||
365 | local function weldBetween(a, b) | |
366 | local weldd = Instance.new("ManualWeld") | |
367 | weldd.Part0 = a | |
368 | weldd.Part1 = b | |
369 | weldd.C0 = CFrame.new() | |
370 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
371 | weldd.Parent = a | |
372 | return weldd | |
373 | end | |
374 | ||
375 | ||
376 | function QuaternionFromCFrame(cf) | |
377 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
378 | local trace = m00 + m11 + m22 | |
379 | if trace > 0 then | |
380 | local s = math.sqrt(1 + trace) | |
381 | local recip = 0.5 / s | |
382 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
383 | else | |
384 | local i = 0 | |
385 | if m11 > m00 then | |
386 | i = 1 | |
387 | end | |
388 | if m22 > (i == 0 and m00 or m11) then | |
389 | i = 2 | |
390 | end | |
391 | if i == 0 then | |
392 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
393 | local recip = 0.5 / s | |
394 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
395 | elseif i == 1 then | |
396 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
397 | local recip = 0.5 / s | |
398 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
399 | elseif i == 2 then | |
400 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
401 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
402 | end | |
403 | end | |
404 | end | |
405 | ||
406 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
407 | local xs, ys, zs = x + x, y + y, z + z | |
408 | local wx, wy, wz = w * xs, w * ys, w * zs | |
409 | local xx = x * xs | |
410 | local xy = x * ys | |
411 | local xz = x * zs | |
412 | local yy = y * ys | |
413 | local yz = y * zs | |
414 | local zz = z * zs | |
415 | 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)) | |
416 | end | |
417 | ||
418 | function QuaternionSlerp(a, b, t) | |
419 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
420 | local startInterp, finishInterp; | |
421 | if cosTheta >= 0.0001 then | |
422 | if (1 - cosTheta) > 0.0001 then | |
423 | local theta = ACOS(cosTheta) | |
424 | local invSinTheta = 1 / SIN(theta) | |
425 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
426 | finishInterp = SIN(t * theta) * invSinTheta | |
427 | else | |
428 | startInterp = 1 - t | |
429 | finishInterp = t | |
430 | end | |
431 | else | |
432 | if (1 + cosTheta) > 0.0001 then | |
433 | local theta = ACOS(-cosTheta) | |
434 | local invSinTheta = 1 / SIN(theta) | |
435 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
436 | finishInterp = SIN(t * theta) * invSinTheta | |
437 | else | |
438 | startInterp = t - 1 | |
439 | finishInterp = t | |
440 | end | |
441 | end | |
442 | 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 | |
443 | end | |
444 | ||
445 | function Clerp(a, b, t) | |
446 | local qa = {QuaternionFromCFrame(a)} | |
447 | local qb = {QuaternionFromCFrame(b)} | |
448 | local ax, ay, az = a.x, a.y, a.z | |
449 | local bx, by, bz = b.x, b.y, b.z | |
450 | local _t = 1 - t | |
451 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
452 | end | |
453 | ||
454 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
455 | local frame = IT("Frame") | |
456 | frame.BackgroundTransparency = TRANSPARENCY | |
457 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
458 | frame.Position = POSITION | |
459 | frame.Size = SIZE | |
460 | frame.BackgroundColor3 = COLOR | |
461 | frame.BorderColor3 = BORDERCOLOR | |
462 | frame.Name = NAME | |
463 | frame.Parent = PARENT | |
464 | return frame | |
465 | end | |
466 | ||
467 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
468 | local label = IT("TextLabel") | |
469 | label.BackgroundTransparency = 1 | |
470 | label.Size = UD2(1, 0, 1, 0) | |
471 | label.Position = UD2(0, 0, 0, 0) | |
472 | label.TextColor3 = TEXTCOLOR | |
473 | label.TextStrokeColor3 = BRICKC"Really white".Color | |
474 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
475 | label.TextTransparency = TRANSPARENCY | |
476 | label.FontSize = TEXTFONTSIZE | |
477 | label.Font = TEXTFONT | |
478 | label.BorderSizePixel = BORDERSIZEPIXEL | |
479 | label.TextScaled = false | |
480 | label.Text = TEXT | |
481 | label.Name = NAME | |
482 | label.Parent = PARENT | |
483 | return label | |
484 | end | |
485 | ||
486 | function NoOutlines(PART) | |
487 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
488 | end | |
489 | ||
490 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
491 | local NEWWELD = IT(TYPE) | |
492 | NEWWELD.Part0 = PART0 | |
493 | NEWWELD.Part1 = PART1 | |
494 | NEWWELD.C0 = C0 | |
495 | NEWWELD.C1 = C1 | |
496 | NEWWELD.Parent = PARENT | |
497 | return NEWWELD | |
498 | end | |
499 | ||
500 | local S = IT("Sound") | |
501 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
502 | local NEWSOUND = nil | |
503 | coroutine.resume(coroutine.create(function() | |
504 | NEWSOUND = S:Clone() | |
505 | NEWSOUND.Parent = PARENT | |
506 | NEWSOUND.Volume = VOLUME | |
507 | NEWSOUND.Pitch = PITCH | |
508 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
509 | NEWSOUND:play() | |
510 | NEWSOUND.Name = "Audio" | |
511 | if DOESLOOP == true then | |
512 | NEWSOUND.Looped = true | |
513 | else | |
514 | repeat Swait() until NEWSOUND.Playing == false | |
515 | NEWSOUND:remove() | |
516 | end | |
517 | end)) | |
518 | return NEWSOUND | |
519 | end | |
520 | ||
521 | function CFrameFromTopBack(at, top, back) | |
522 | local right = top:Cross(back) | |
523 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
524 | end | |
525 | ||
526 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
527 | function WACKYEFFECT(Table) | |
528 | local TYPE = (Table.EffectType or "Sphere") | |
529 | local SIZE = (Table.Size or VT(1,1,1)) | |
530 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
531 | local TRANSPARENCY = (Table.Transparency or 0) | |
532 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
533 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
534 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
535 | local ROTATION1 = (Table.RotationX or 0) | |
536 | local ROTATION2 = (Table.RotationY or 0) | |
537 | local ROTATION3 = (Table.RotationZ or 0) | |
538 | local MATERIAL = (Table.Material or "Neon") | |
539 | local COLOR = (Table.Color or C3(1,1,1)) | |
540 | local TIME = (Table.Time or 45) | |
541 | local SOUNDID = (Table.SoundID or nil) | |
542 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
543 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
544 | coroutine.resume(coroutine.create(function() | |
545 | local PLAYSSOUND = false | |
546 | local SOUND = nil | |
547 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
548 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
549 | PLAYSSOUND = true | |
550 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
551 | end | |
552 | EFFECT.Color = COLOR | |
553 | local MSH = nil | |
554 | if TYPE == "Sphere" then | |
555 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
556 | elseif TYPE == "Block" then | |
557 | MSH = IT("BlockMesh",EFFECT) | |
558 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
559 | elseif TYPE == "Box" then | |
560 | MSH = IT("BlockMesh",EFFECT) | |
561 | MSH.Scale = SIZE | |
562 | elseif TYPE == "Wave" then | |
563 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
564 | elseif TYPE == "Ring" then | |
565 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
566 | elseif TYPE == "Slash" then | |
567 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
568 | elseif TYPE == "Round Slash" then | |
569 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
570 | elseif TYPE == "Swirl" then | |
571 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
572 | elseif TYPE == "Skull" then | |
573 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
574 | elseif TYPE == "Crystal" then | |
575 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
576 | end | |
577 | if MSH ~= nil then | |
578 | local MOVESPEED = nil | |
579 | if MOVEDIRECTION ~= nil then | |
580 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
581 | end | |
582 | local GROWTH = SIZE - ENDSIZE | |
583 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
584 | if TYPE == "Block" then | |
585 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
586 | else | |
587 | EFFECT.CFrame = CFRAME | |
588 | end | |
589 | for LOOP = 1, TIME do | |
590 | Swait() | |
591 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
592 | if TYPE == "Wave" then | |
593 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
594 | end | |
595 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
596 | if TYPE == "Block" then | |
597 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
598 | else | |
599 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
600 | end | |
601 | if MOVEDIRECTION ~= nil then | |
602 | local ORI = EFFECT.Orientation | |
603 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
604 | EFFECT.Orientation = ORI | |
605 | end | |
606 | end | |
607 | if PLAYSSOUND == false then | |
608 | EFFECT:remove() | |
609 | else | |
610 | repeat Swait() until SOUND.Playing == false | |
611 | EFFECT:remove() | |
612 | end | |
613 | else | |
614 | if PLAYSSOUND == false then | |
615 | EFFECT:remove() | |
616 | else | |
617 | repeat Swait() until SOUND.Playing == false | |
618 | EFFECT:remove() | |
619 | end | |
620 | end | |
621 | end)) | |
622 | end | |
623 | ||
624 | function Shatter(Part) | |
625 | if Part.Transparency == 0 then | |
626 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
627 | Debris:AddItem(SOUNDPART,5) | |
628 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
629 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
630 | local SIZESET = SIZE/4 | |
631 | local XOffset = Part.Size.X*1.5/SIZESET | |
632 | local YOffset = Part.Size.Y*1.5/SIZESET | |
633 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
634 | for x = 1, math.ceil(XOffset) do | |
635 | for y = 1, math.ceil(YOffset) do | |
636 | for z = 1, math.ceil(ZOffset) do | |
637 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
638 | SHARD.CanCollide = true | |
639 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
640 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
641 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
642 | end | |
643 | end | |
644 | end | |
645 | end | |
646 | Part:remove() | |
647 | end | |
648 | ||
649 | function MakeForm(PART,TYPE) | |
650 | if TYPE == "Cyl" then | |
651 | local MSH = IT("CylinderMesh",PART) | |
652 | elseif TYPE == "Ball" then | |
653 | local MSH = IT("SpecialMesh",PART) | |
654 | MSH.MeshType = "Sphere" | |
655 | elseif TYPE == "Wedge" then | |
656 | local MSH = IT("SpecialMesh",PART) | |
657 | MSH.MeshType = "Wedge" | |
658 | end | |
659 | end | |
660 | ||
661 | Debris = game:GetService("Debris") | |
662 | ||
663 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
664 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
665 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
666 | end | |
667 | ||
668 | function turnto(position) | |
669 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
670 | end | |
671 | ||
672 | -------1 | |
673 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
674 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
675 | end | |
676 | ||
677 | function PositiveAngle(NUMBER) | |
678 | if NUMBER >= 0 then | |
679 | NUMBER = 0 | |
680 | end | |
681 | return NUMBER | |
682 | end | |
683 | ||
684 | function NegativeAngle(NUMBER) | |
685 | if NUMBER <= 0 then | |
686 | NUMBER = 0 | |
687 | end | |
688 | return NUMBER | |
689 | end | |
690 | ||
691 | function Swait(NUMBER) | |
692 | if NUMBER == 0 or NUMBER == nil then | |
693 | ArtificialHB.Event:wait() | |
694 | else | |
695 | for i = 1, NUMBER do | |
696 | ArtificialHB.Event:wait() | |
697 | end | |
698 | end | |
699 | end | |
700 | ||
701 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
702 | local NEWMESH = IT(MESH) | |
703 | if MESH == "SpecialMesh" then | |
704 | NEWMESH.MeshType = MESHTYPE | |
705 | if MESHID ~= "nil" and MESHID ~= "" then | |
706 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
707 | end | |
708 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
709 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
710 | end | |
711 | end | |
712 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
713 | NEWMESH.Scale = SCALE | |
714 | NEWMESH.Parent = PARENT | |
715 | return NEWMESH | |
716 | end | |
717 | ||
718 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
719 | local NEWPART = IT("Part") | |
720 | NEWPART.formFactor = FORMFACTOR | |
721 | NEWPART.Reflectance = REFLECTANCE | |
722 | NEWPART.Transparency = TRANSPARENCY | |
723 | NEWPART.CanCollide = false | |
724 | NEWPART.Locked = true | |
725 | NEWPART.Anchored = true | |
726 | if ANCHOR == false then | |
727 | NEWPART.Anchored = false | |
728 | end | |
729 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
730 | NEWPART.Name = NAME | |
731 | NEWPART.Size = SIZE | |
732 | NEWPART.Position = Torso.Position | |
733 | NEWPART.Material = MATERIAL | |
734 | NEWPART:BreakJoints() | |
735 | NEWPART.Parent = PARENT | |
736 | return NEWPART | |
737 | end | |
738 | ||
739 | local function weldBetween(a, b) | |
740 | local weldd = Instance.new("ManualWeld") | |
741 | weldd.Part0 = a | |
742 | weldd.Part1 = b | |
743 | weldd.C0 = CFrame.new() | |
744 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
745 | weldd.Parent = a | |
746 | return weldd | |
747 | end | |
748 | ||
749 | ||
750 | function QuaternionFromCFrame(cf) | |
751 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
752 | local trace = m00 + m11 + m22 | |
753 | if trace > 0 then | |
754 | local s = math.sqrt(1 + trace) | |
755 | local recip = 0.5 / s | |
756 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
757 | else | |
758 | local i = 0 | |
759 | if m11 > m00 then | |
760 | i = 1 | |
761 | end | |
762 | if m22 > (i == 0 and m00 or m11) then | |
763 | i = 2 | |
764 | end | |
765 | if i == 0 then | |
766 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
767 | local recip = 0.5 / s | |
768 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
769 | elseif i == 1 then | |
770 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
771 | local recip = 0.5 / s | |
772 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
773 | elseif i == 2 then | |
774 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
775 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
776 | end | |
777 | end | |
778 | end | |
779 | ||
780 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
781 | local xs, ys, zs = x + x, y + y, z + z | |
782 | local wx, wy, wz = w * xs, w * ys, w * zs | |
783 | local xx = x * xs | |
784 | local xy = x * ys | |
785 | local xz = x * zs | |
786 | local yy = y * ys | |
787 | local yz = y * zs | |
788 | local zz = z * zs | |
789 | 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)) | |
790 | end | |
791 | ||
792 | function QuaternionSlerp(a, b, t) | |
793 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
794 | local startInterp, finishInterp; | |
795 | if cosTheta >= 0.0001 then | |
796 | if (1 - cosTheta) > 0.0001 then | |
797 | local theta = ACOS(cosTheta) | |
798 | local invSinTheta = 1 / SIN(theta) | |
799 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
800 | finishInterp = SIN(t * theta) * invSinTheta | |
801 | else | |
802 | startInterp = 1 - t | |
803 | finishInterp = t | |
804 | end | |
805 | else | |
806 | if (1 + cosTheta) > 0.0001 then | |
807 | local theta = ACOS(-cosTheta) | |
808 | local invSinTheta = 1 / SIN(theta) | |
809 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
810 | finishInterp = SIN(t * theta) * invSinTheta | |
811 | else | |
812 | startInterp = t - 1 | |
813 | finishInterp = t | |
814 | end | |
815 | end | |
816 | 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 | |
817 | end | |
818 | ||
819 | function Clerp(a, b, t) | |
820 | local qa = {QuaternionFromCFrame(a)} | |
821 | local qb = {QuaternionFromCFrame(b)} | |
822 | local ax, ay, az = a.x, a.y, a.z | |
823 | local bx, by, bz = b.x, b.y, b.z | |
824 | local _t = 1 - t | |
825 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
826 | end | |
827 | ||
828 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
829 | local frame = IT("Frame") | |
830 | frame.BackgroundTransparency = TRANSPARENCY | |
831 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
832 | frame.Position = POSITION | |
833 | frame.Size = SIZE | |
834 | frame.BackgroundColor3 = COLOR | |
835 | frame.BorderColor3 = BORDERCOLOR | |
836 | frame.Name = NAME | |
837 | frame.Parent = PARENT | |
838 | return frame | |
839 | end | |
840 | ||
841 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
842 | local label = IT("TextLabel") | |
843 | label.BackgroundTransparency = 1 | |
844 | label.Size = UD2(1, 0, 1, 0) | |
845 | label.Position = UD2(0, 0, 0, 0) | |
846 | label.TextColor3 = TEXTCOLOR | |
847 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
848 | label.TextTransparency = TRANSPARENCY | |
849 | label.FontSize = TEXTFONTSIZE | |
850 | label.Font = TEXTFONT | |
851 | label.BorderSizePixel = BORDERSIZEPIXEL | |
852 | label.TextScaled = false | |
853 | label.Text = TEXT | |
854 | label.Name = NAME | |
855 | label.Parent = PARENT | |
856 | return label | |
857 | end | |
858 | ||
859 | function NoOutlines(PART) | |
860 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
861 | end | |
862 | ||
863 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
864 | local NEWWELD = IT(TYPE) | |
865 | NEWWELD.Part0 = PART0 | |
866 | NEWWELD.Part1 = PART1 | |
867 | NEWWELD.C0 = C0 | |
868 | NEWWELD.C1 = C1 | |
869 | NEWWELD.Parent = PARENT | |
870 | return NEWWELD | |
871 | end | |
872 | ||
873 | local S = IT("Sound") | |
874 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
875 | local NEWSOUND = nil | |
876 | coroutine.resume(coroutine.create(function() | |
877 | NEWSOUND = S:Clone() | |
878 | NEWSOUND.Parent = PARENT | |
879 | NEWSOUND.Volume = VOLUME | |
880 | NEWSOUND.Pitch = PITCH | |
881 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
882 | NEWSOUND:play() | |
883 | if DOESLOOP == true then | |
884 | NEWSOUND.Looped = true | |
885 | else | |
886 | repeat wait(1) until NEWSOUND.Playing == false | |
887 | NEWSOUND:remove() | |
888 | end | |
889 | end)) | |
890 | return NEWSOUND | |
891 | end | |
892 | ||
893 | local EyeSizes={ | |
894 | NumberSequenceKeypoint.new(0,2,0), | |
895 | NumberSequenceKeypoint.new(1,0,0) | |
896 | } | |
897 | local EyeTrans={ | |
898 | NumberSequenceKeypoint.new(0,0.5,0), | |
899 | NumberSequenceKeypoint.new(1,1,0) | |
900 | } | |
901 | local PE=Instance.new("ParticleEmitter",nil) | |
902 | PE.LightEmission=.8 | |
903 | PE.Color = ColorSequence.new(BRICKC("white").Color,BRICKC("Really White").Color) | |
904 | PE.Size=NumberSequence.new(EyeSizes) | |
905 | PE.Transparency=NumberSequence.new(EyeTrans) | |
906 | PE.Lifetime=NumberRange.new(0.35,1) | |
907 | PE.Rotation=NumberRange.new(0,360) | |
908 | PE.Rate=100 | |
909 | PE.VelocitySpread = 10000 | |
910 | PE.Acceleration = Vector3.new(0,85,0) | |
911 | PE.Drag = 5 | |
912 | PE.Speed = NumberRange.new(0.1,5) | |
913 | PE.Texture="http://www.roblox.com/asset/?id=1460745664" | |
914 | PE.ZOffset = 0.5 | |
915 | PE.Name = "PE" | |
916 | PE.Enabled = false | |
917 | ||
918 | function Fire(art) | |
919 | local PARTICLES = PE:Clone() | |
920 | PARTICLES.Parent = art | |
921 | PARTICLES.Enabled = true | |
922 | return PARTICLES | |
923 | end | |
924 | ||
925 | function CFrameFromTopBack(at, top, back) | |
926 | local right = top:Cross(back) | |
927 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
928 | end | |
929 | ||
930 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
931 | function WACKYEFFECT(Table) | |
932 | local TYPE = (Table.EffectType or "Sphere") | |
933 | local SIZE = (Table.Size or VT(1,1,1)) | |
934 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
935 | local TRANSPARENCY = (Table.Transparency or 0) | |
936 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
937 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
938 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
939 | local ROTATION1 = (Table.RotationX or 0) | |
940 | local ROTATION2 = (Table.RotationY or 0) | |
941 | local ROTATION3 = (Table.RotationZ or 0) | |
942 | local MATERIAL = (Table.Material or "Neon") | |
943 | local COLOR = (Table.Color or C3(255,255,255)) | |
944 | local TIME = (Table.Time or 45) | |
945 | local SOUNDID = (Table.SoundID or nil) | |
946 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
947 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
948 | coroutine.resume(coroutine.create(function() | |
949 | local PLAYSSOUND = false | |
950 | local SOUND = nil | |
951 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really black"), "Effect", VT(1,1,1), true) | |
952 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
953 | PLAYSSOUND = true | |
954 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
955 | end | |
956 | EFFECT.Color = COLOR | |
957 | local MSH = nil | |
958 | if TYPE == "Sphere" then | |
959 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
960 | elseif TYPE == "Block" or TYPE == "Box" then | |
961 | MSH = IT("BlockMesh",EFFECT) | |
962 | MSH.Scale = SIZE | |
963 | elseif TYPE == "Wave" then | |
964 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
965 | elseif TYPE == "Ring" then | |
966 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
967 | elseif TYPE == "Slash" then | |
968 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
969 | elseif TYPE == "Round Slash" then | |
970 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
971 | elseif TYPE == "Swirl" then | |
972 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
973 | elseif TYPE == "Skull" then | |
974 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
975 | elseif TYPE == "Crystal" then | |
976 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
977 | end | |
978 | if MSH ~= nil then | |
979 | local MOVESPEED = nil | |
980 | if MOVEDIRECTION ~= nil then | |
981 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
982 | end | |
983 | local GROWTH = SIZE - ENDSIZE | |
984 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
985 | if TYPE == "Block" then | |
986 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
987 | else | |
988 | EFFECT.CFrame = CFRAME | |
989 | end | |
990 | for LOOP = 1, TIME+1 do | |
991 | Swait() | |
992 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
993 | if TYPE == "Wave" then | |
994 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
995 | end | |
996 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
997 | if TYPE == "Block" then | |
998 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
999 | else | |
1000 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1001 | end | |
1002 | if MOVEDIRECTION ~= nil then | |
1003 | local ORI = EFFECT.Orientation | |
1004 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1005 | EFFECT.Orientation = ORI | |
1006 | end | |
1007 | end | |
1008 | if PLAYSSOUND == false then | |
1009 | EFFECT:remove() | |
1010 | else | |
1011 | repeat wait(1) until SOUND.Playing == false | |
1012 | EFFECT:remove() | |
1013 | end | |
1014 | else | |
1015 | if PLAYSSOUND == false then | |
1016 | EFFECT:remove() | |
1017 | else | |
1018 | repeat Swait() until SOUND.Playing == false | |
1019 | EFFECT:remove() | |
1020 | end | |
1021 | end | |
1022 | end)) | |
1023 | end | |
1024 | ||
1025 | function MakeForm(PART,TYPE) | |
1026 | if TYPE == "Cyl" then | |
1027 | local MSH = IT("CylinderMesh",PART) | |
1028 | elseif TYPE == "Ball" then | |
1029 | local MSH = IT("SpecialMesh",PART) | |
1030 | MSH.MeshType = "Sphere" | |
1031 | elseif TYPE == "Wedge" then | |
1032 | local MSH = IT("SpecialMesh",PART) | |
1033 | MSH.MeshType = "Wedge" | |
1034 | end | |
1035 | end | |
1036 | ||
1037 | Debris = game:GetService("Debris") | |
1038 | ||
1039 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1040 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1041 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1042 | end | |
1043 | ||
1044 | local HATWELD = nil | |
1045 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
1046 | PLAYMAINANIM = false | |
1047 | if WhichPose == "Cast1" then | |
1048 | for i=0, Time, 0.1 / Animation_Speed do | |
1049 | Swait() | |
1050 | if Magic == true then | |
1051 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1052 | end | |
1053 | if Gyro ~= nil and Gyro ~= false then | |
1054 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1055 | end | |
1056 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
1057 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
1058 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1059 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1060 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1061 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1062 | end | |
1063 | elseif WhichPose == "Cast2" then | |
1064 | for i=0, Time, 0.1 / Animation_Speed do | |
1065 | Swait() | |
1066 | if Magic == true then | |
1067 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1068 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1069 | end | |
1070 | if Gyro ~= nil and Gyro ~= false then | |
1071 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1072 | end | |
1073 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1074 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1075 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1076 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1077 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1078 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1079 | end | |
1080 | elseif WhichPose == "RightArmUp" then | |
1081 | for i=0, Time, 0.1 / Animation_Speed do | |
1082 | Swait() | |
1083 | if Magic == true then | |
1084 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1085 | end | |
1086 | if Gyro ~= nil and Gyro ~= false then | |
1087 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1088 | end | |
1089 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
1090 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1091 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1092 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1093 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1094 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1095 | end | |
1096 | elseif WhichPose == "Taunt" then | |
1097 | for i=0, Time, 0.1 / Animation_Speed do | |
1098 | Swait() | |
1099 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1100 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1101 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1102 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1103 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1104 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1105 | end | |
1106 | ||
1107 | CreateSound(1466932232,Torso,10,1,false) | |
1108 | for i=0, Time*2, 0.1 / Animation_Speed do | |
1109 | Swait() | |
1110 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1111 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1112 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1113 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1114 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1115 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1116 | end | |
1117 | for i=0, Time, 0.1 / Animation_Speed do | |
1118 | Swait() | |
1119 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1123 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1125 | ||
1126 | end | |
1127 | ||
1128 | elseif WhichPose == "Prepare key" then | |
1129 | for i=0, Time, 0.1 / Animation_Speed do | |
1130 | Swait() | |
1131 | if Gyro ~= nil and Gyro ~= false then | |
1132 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1133 | end | |
1134 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
1135 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
1136 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1137 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1138 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1139 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1140 | end | |
1141 | elseif WhichPose == "Turn key" then | |
1142 | for i=0, Time, 0.1 / Animation_Speed do | |
1143 | Swait() | |
1144 | if Gyro ~= nil and Gyro ~= false then | |
1145 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1146 | end | |
1147 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
1148 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
1149 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1150 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1151 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1152 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1153 | end | |
1154 | end | |
1155 | PLAYMAINANIM = true | |
1156 | end | |
1157 | ||
1158 | --Lightning({Color = C3(255,255,255), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false}) | |
1159 | function Lightning(Table) | |
1160 | local Color = Table.Color or C3(255,255,255) | |
1161 | local StartPos = Table.Start or Torso.Position | |
1162 | local EndPos = Table.End or Mouse.Hit.p | |
1163 | local SegmentLength = Table.SegmentL or 2 | |
1164 | local Thickness = Table.Thickness or 0.1 | |
1165 | local Dissapear = Table.DoesFade or false | |
1166 | local Parent = Table.Ignore or Character | |
1167 | local MaxDist = Table.MaxDist or 400 | |
1168 | local Branches = Table.Branches or false | |
1169 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
1170 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
1171 | local LIGHTNINGMODEL = IT("Model",Effects) | |
1172 | LIGHTNINGMODEL.Name = "Lightning" | |
1173 | local LastBolt = nil | |
1174 | for E = 1, DISTANCE do | |
1175 | local ExtraSize = (DISTANCE-E)/15 | |
1176 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Really black"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
1177 | PART.Color = Color | |
1178 | MakeForm(PART,"Cyl") | |
1179 | if LastBolt == nil then | |
1180 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1181 | else | |
1182 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1183 | end | |
1184 | LastBolt = PART | |
1185 | if Branches == true then | |
1186 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
1187 | if CHOICE == 1 then | |
1188 | local LASTBRANCH = nil | |
1189 | for i = 1, MRANDOM(2,5) do | |
1190 | local ExtraSize2 = ((DISTANCE-E)/25)/i | |
1191 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Really black"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
1192 | PART.Color = Color | |
1193 | MakeForm(PART,"Cyl") | |
1194 | if LASTBRANCH == nil then | |
1195 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1196 | else | |
1197 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
1198 | end | |
1199 | LASTBRANCH = PART | |
1200 | end | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | if Dissapear == true then | |
1205 | coroutine.resume(coroutine.create(function() | |
1206 | for i = 1, 10 do | |
1207 | Swait() | |
1208 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
1209 | if c.ClassName == "Part" then | |
1210 | c.Transparency = i/10 | |
1211 | end | |
1212 | end | |
1213 | end | |
1214 | LIGHTNINGMODEL:remove() | |
1215 | end)) | |
1216 | elseif Dissapear == false then | |
1217 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
1218 | end | |
1219 | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
1220 | end | |
1221 | ||
1222 | --//=================================\\ | |
1223 | --|| WEAPON CREATION | |
1224 | --\\=================================// | |
1225 | ------- | |
1226 | ---- | |
1227 | Humanoid.DisplayDistanceType = "None" | |
1228 | local naeeym2 = IT("BillboardGui",Character) | |
1229 | naeeym2.AlwaysOnTop = true | |
1230 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1231 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1232 | naeeym2.MaxDistance = 75 | |
1233 | naeeym2.Adornee = Character.Head | |
1234 | naeeym2.Name = "Name" | |
1235 | local tecks2 = IT("TextLabel",naeeym2) | |
1236 | tecks2.BackgroundTransparency = 1 | |
1237 | tecks2.TextScaled = true | |
1238 | tecks2.BorderSizePixel = 0 | |
1239 | tecks2.Text = "" | |
1240 | tecks2.Font = "Fantasy" | |
1241 | tecks2.TextSize = 30 | |
1242 | tecks2.TextStrokeTransparency = 0 | |
1243 | tecks2.TextColor3 = C3(0,0,0) | |
1244 | tecks2.TextStrokeColor3 = C3(0,0,0) | |
1245 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1246 | tecks2.Parent = naeeym2 | |
1247 | local top = Instance.new("Shirt") | |
1248 | top.ShirtTemplate = "rbxassetid://0" | |
1249 | top.Parent = Character | |
1250 | top.Name = "Cloth" | |
1251 | local bottom = Instance.new("Pants") | |
1252 | bottom.PantsTemplate = "rbxassetid://0" | |
1253 | bottom.Parent = Character | |
1254 | bottom.Name = "Cloth" | |
1255 | --------------------- | |
1256 | if Character:FindFirstChildOfClass("Accessory") then | |
1257 | Character:FindFirstChildOfClass("Accessory"):remove() | |
1258 | elseif Character:FindFirstChildOfClass("Hat") then | |
1259 | Character:FindFirstChildOfClass("Hat"):remove() | |
1260 | end | |
1261 | if Head:FindFirstChild("face") then | |
1262 | Head.face.Texture = "rbxassetid://" | |
1263 | end | |
1264 | ||
1265 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
1266 | PRT.Color = C3(255,255,255) | |
1267 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
1268 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
1269 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
1270 | PRT.Color = C3(255,255,255) | |
1271 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1272 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
1273 | ||
1274 | local LASTPART = Head | |
1275 | for i = 1, 20 do | |
1276 | local MATH = (1-(i/25)) | |
1277 | if LASTPART == Head then | |
1278 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1279 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1280 | LASTPART = Horn | |
1281 | Horn.Color = C3((i*3-3)/255,255,255) | |
1282 | else | |
1283 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1284 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
1285 | LASTPART = Horn | |
1286 | Horn.Color = C3((i*3-3)/255,255,255) | |
1287 | end | |
1288 | end | |
1289 | local LASTPART = Head | |
1290 | for i = 1, 20 do | |
1291 | local MATH = (1-(i/25)) | |
1292 | if LASTPART == Head then | |
1293 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1294 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
1295 | LASTPART = Horn | |
1296 | Horn.Color = C3((i*3-3)/255,255,255) | |
1297 | else | |
1298 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1299 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
1300 | LASTPART = Horn | |
1301 | Horn.Color = C3((i*3-3)/255,255,255) | |
1302 | end | |
1303 | end | |
1304 | ||
1305 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false) | |
1306 | MakeForm(Eye,"Ball") | |
1307 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1308 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false) | |
1309 | MakeForm(Eye,"Ball") | |
1310 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1311 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.1,1,1)/2,false) | |
1312 | MakeForm(Eye,"Ball") | |
1313 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1314 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.1,1,1)/2,false) | |
1315 | MakeForm(Eye,"Ball") | |
1316 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1317 | ||
1318 | ||
1319 | local A = IT("Attachment",Torso) | |
1320 | A.Position = VT(1,1.3,0) | |
1321 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1322 | local B = IT("Attachment",Torso) | |
1323 | B.Position = VT(-1.3,-0.6,0) | |
1324 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1325 | local ChainLink = IT("Beam",Torso) | |
1326 | ChainLink.Texture = "rbxassetid://73042633" | |
1327 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
1328 | ChainLink.TextureSpeed = 1 | |
1329 | ChainLink.FaceCamera = true | |
1330 | ChainLink.Width0 = 1 | |
1331 | ChainLink.Width1 = 1 | |
1332 | ChainLink.TextureLength = 3 | |
1333 | ChainLink.Attachment0 = A | |
1334 | ChainLink.Attachment1 = B | |
1335 | ChainLink.CurveSize0 = 1.6 | |
1336 | ChainLink.CurveSize1 = 1.6 | |
1337 | ChainLink.FaceCamera = true | |
1338 | ChainLink.Transparency = NumberSequence.new(0) | |
1339 | local ChainLink = IT("Beam",Torso) | |
1340 | ChainLink.Texture = "rbxassetid://73042633" | |
1341 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
1342 | ChainLink.TextureSpeed = 1 | |
1343 | ChainLink.FaceCamera = true | |
1344 | ChainLink.Width0 = 1 | |
1345 | ChainLink.Width1 = 1 | |
1346 | ChainLink.TextureLength = 3 | |
1347 | ChainLink.Attachment0 = B | |
1348 | ChainLink.Attachment1 = A | |
1349 | ChainLink.CurveSize0 = 1.6 | |
1350 | ChainLink.CurveSize1 = 1.6 | |
1351 | ChainLink.FaceCamera = true | |
1352 | ChainLink.Transparency = NumberSequence.new(0) | |
1353 | local A = IT("Attachment",Torso) | |
1354 | A.Position = VT(1.3,-0.85,0) | |
1355 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1356 | local B = IT("Attachment",Torso) | |
1357 | B.Position = VT(-1,2,0) | |
1358 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1359 | local ChainLink = IT("Beam",Torso) | |
1360 | ChainLink.Texture = "rbxassetid://73042633" | |
1361 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
1362 | ChainLink.TextureSpeed = 1 | |
1363 | ChainLink.FaceCamera = true | |
1364 | ChainLink.Width0 = 1 | |
1365 | ChainLink.Width1 = 1 | |
1366 | ChainLink.TextureLength = 3 | |
1367 | ChainLink.Attachment0 = A | |
1368 | ChainLink.Attachment1 = B | |
1369 | ChainLink.CurveSize0 = 1.3 | |
1370 | ChainLink.CurveSize1 = 1.3 | |
1371 | ChainLink.FaceCamera = true | |
1372 | ChainLink.Transparency = NumberSequence.new(0) | |
1373 | local ChainLink = IT("Beam",Torso) | |
1374 | ChainLink.Texture = "rbxassetid://73042633" | |
1375 | ChainLink.Color = ColorSequence.new(C3(58,125,21)) | |
1376 | ChainLink.TextureSpeed = 1 | |
1377 | ChainLink.FaceCamera = true | |
1378 | ChainLink.Width0 = 1 | |
1379 | ChainLink.Width1 = 1 | |
1380 | ChainLink.TextureLength = 3 | |
1381 | ChainLink.Attachment0 = B | |
1382 | ChainLink.Attachment1 = A | |
1383 | ChainLink.CurveSize0 = 1.3 | |
1384 | ChainLink.CurveSize1 = 1.3 | |
1385 | ChainLink.FaceCamera = true | |
1386 | ChainLink.Transparency = NumberSequence.new(0) | |
1387 | ||
1388 | for _, c in pairs(Character:GetDescendants()) do | |
1389 | if c and c.Parent then | |
1390 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
1391 | local ACCESSORY = c.Parent | |
1392 | c.Parent = Character | |
1393 | if c then | |
1394 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
1395 | weldBetween(Head,c) | |
1396 | else | |
1397 | weldBetween(Torso,c) | |
1398 | end | |
1399 | end | |
1400 | ACCESSORY:remove() | |
1401 | elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1402 | c.Material = "Neon" | |
1403 | c.Color = C3(255,255,255) | |
1404 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1405 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1406 | end | |
1407 | if c == Head then | |
1408 | if c:FindFirstChild("face") then | |
1409 | c.face:remove() | |
1410 | end | |
1411 | end | |
1412 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1413 | c.Color = C3(255,255,255) | |
1414 | c.Material = "Neon" | |
1415 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
1416 | c:remove() | |
1417 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1418 | ||
1419 | end | |
1420 | end | |
1421 | end | |
1422 | local BODY = {} | |
1423 | for _, c in pairs(Character:GetDescendants()) do | |
1424 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1425 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1426 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1427 | end | |
1428 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1429 | elseif c:IsA("JointInstance") then | |
1430 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1431 | end | |
1432 | end | |
1433 | function refit() | |
1434 | Character.Parent = workspace | |
1435 | for e = 1, #BODY do | |
1436 | if BODY[e] ~= nil then | |
1437 | local STUFF = BODY[e] | |
1438 | local PART = STUFF[1] | |
1439 | local PARENT = STUFF[2] | |
1440 | local MATERIAL = STUFF[3] | |
1441 | local COLOR = STUFF[4] | |
1442 | local TRANSPARENCY = STUFF[5] | |
1443 | --local SIZE = STUFF[6] | |
1444 | local NAME = STUFF[7] | |
1445 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1446 | PART.Material = MATERIAL | |
1447 | PART.Transparency = TRANSPARENCY | |
1448 | PART.Name = NAME | |
1449 | end | |
1450 | if PART.Parent ~= PARENT then | |
1451 | Humanoid:remove() | |
1452 | PART.Parent = PARENT | |
1453 | Humanoid = IT("Humanoid",Character) | |
1454 | end | |
1455 | end | |
1456 | end | |
1457 | end | |
1458 | ||
1459 | local SKILLTEXTCOLOR = C3(255,255,255) | |
1460 | local SKILLFONT = "Fantasy" | |
1461 | local SKILLTEXTSIZE = 6 | |
1462 | ||
1463 | Humanoid.Died:connect(function() | |
1464 | refit() | |
1465 | end) | |
1466 | ||
1467 | z = Instance.new("Sound", char) | |
1468 | z.SoundId = "rbxassetid://1873219898" | |
1469 | z.Looped = true | |
1470 | z.Pitch = 1 | |
1471 | z.Volume = 1 | |
1472 | wait(.01) | |
1473 | z:Play() | |
1474 | ------------------------ | |
1475 | ||
1476 | local FavIDs = { | |
1477 | 340106355, --Nefl Crystals | |
1478 | 927529620, --Dimension | |
1479 | 876981900, --Fantasy | |
1480 | 398987889, --Ordinary Days | |
1481 | 1117396305, --Oh wait, it's you. | |
1482 | - | z.SoundId = "rbxassetid://0" |
1482 | + | |
1483 | 919231299, --Sprawling Idiot Effigy | |
1484 | 743466274, --Good Day Sunshine | |
1485 | 727411183, --Knife Fight | |
1486 | 1402748531, --The Earth Is Counting On You! | |
1487 | 595230126 --Robot Language | |
1488 | } | |
1489 | ||
1490 | ||
1491 | --The reality of my life isn't real but a Universe -makhail07 | |
1492 | wait(0.2) | |
1493 | local plr = game:service'Players'.LocalPlayer | |
1494 | print('poot is '..plr.Name) | |
1495 | local char = plr.Character | |
1496 | local hum = char.Humanoid | |
1497 | local hed = char.Head | |
1498 | local root = char.HumanoidRootPart | |
1499 | local rootj = root.RootJoint | |
1500 | local tors = char.Torso | |
1501 | local ra = char["Right Arm"] | |
1502 | local la = char["Left Arm"] | |
1503 | local rl = char["Right Leg"] | |
1504 | local ll = char["Left Leg"] | |
1505 | local neck = tors["Neck"] | |
1506 | local mouse = plr:GetMouse() | |
1507 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
1508 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
1509 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
1510 | local maincolor = BrickColor.new("Institutional white") | |
1511 | ||
1512 | ------------------------------------------------------- | |
1513 | --Start Good Stuff-- | |
1514 | ------------------------------------------------------- | |
1515 | cam = game.Workspace.CurrentCamera | |
1516 | CF = CFrame.new | |
1517 | angles = CFrame.Angles | |
1518 | attack = false | |
1519 | Euler = CFrame.fromEulerAnglesXYZ | |
1520 | Rad = math.rad | |
1521 | IT = Instance.new | |
1522 | BrickC = BrickColor.new | |
1523 | Cos = math.cos | |
1524 | Acos = math.acos | |
1525 | Sin = math.sin | |
1526 | Asin = math.asin | |
1527 | Abs = math.abs | |
1528 | Mrandom = math.random | |
1529 | Floor = math.floor | |
1530 | ------------------------------------------------------- | |
1531 | --End Good Stuff-- | |
1532 | ------------------------------------------------------- | |
1533 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1534 | RSH, LSH = nil, nil | |
1535 | RW = Instance.new("Weld") | |
1536 | LW = Instance.new("Weld") | |
1537 | RH = tors["Right Hip"] | |
1538 | LH = tors["Left Hip"] | |
1539 | RSH = tors["Right Shoulder"] | |
1540 | LSH = tors["Left Shoulder"] | |
1541 | RSH.Parent = nil | |
1542 | LSH.Parent = nil | |
1543 | RW.Name = "RW" | |
1544 | RW.Part0 = tors | |
1545 | RW.C0 = CF(1.5, 0.5, 0) | |
1546 | RW.C1 = CF(0, 0.5, 0) | |
1547 | RW.Part1 = ra | |
1548 | RW.Parent = tors | |
1549 | LW.Name = "LW" | |
1550 | LW.Part0 = tors | |
1551 | LW.C0 = CF(-1.5, 0.5, 0) | |
1552 | LW.C1 = CF(0, 0.5, 0) | |
1553 | LW.Part1 = la | |
1554 | LW.Parent = tors | |
1555 | Effects = {} | |
1556 | ------------------------------------------------------- | |
1557 | --Start HeartBeat-- | |
1558 | ------------------------------------------------------- | |
1559 | ArtificialHB = Instance.new("BindableEvent", script) | |
1560 | ArtificialHB.Name = "Heartbeat" | |
1561 | script:WaitForChild("Heartbeat") | |
1562 | ||
1563 | frame = 1 / 60 | |
1564 | tf = 0 | |
1565 | allowframeloss = false | |
1566 | tossremainder = false | |
1567 | ||
1568 | ||
1569 | lastframe = tick() | |
1570 | script.Heartbeat:Fire() | |
1571 | ||
1572 | ||
1573 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1574 | tf = tf + s | |
1575 | if tf >= frame then | |
1576 | if allowframeloss then | |
1577 | script.Heartbeat:Fire() | |
1578 | lastframe = tick() | |
1579 | else | |
1580 | for i = 1, math.floor(tf / frame) do | |
1581 | script.Heartbeat:Fire() | |
1582 | end | |
1583 | lastframe = tick() | |
1584 | end | |
1585 | if tossremainder then | |
1586 | tf = 0 | |
1587 | else | |
1588 | tf = tf - frame * math.floor(tf / frame) | |
1589 | end | |
1590 | end | |
1591 | end) | |
1592 | ------------------------------------------------------- | |
1593 | --End HeartBeat-- | |
1594 | ------------------------------------------------------- | |
1595 | ||
1596 | ------------------------------------------------------- | |
1597 | --Start Important Functions-- | |
1598 | ------------------------------------------------------- | |
1599 | function swait(num) | |
1600 | if num == 0 or num == nil then | |
1601 | game:service("RunService").Stepped:wait(0) | |
1602 | else | |
1603 | for i = 0, num do | |
1604 | game:service("RunService").Stepped:wait(0) | |
1605 | end | |
1606 | end | |
1607 | end | |
1608 | function thread(f) | |
1609 | coroutine.resume(coroutine.create(f)) | |
1610 | end | |
1611 | function clerp(a, b, t) | |
1612 | local qa = { | |
1613 | QuaternionFromCFrame(a) | |
1614 | } | |
1615 | local qb = { | |
1616 | QuaternionFromCFrame(b) | |
1617 | } | |
1618 | local ax, ay, az = a.x, a.y, a.z | |
1619 | local bx, by, bz = b.x, b.y, b.z | |
1620 | local _t = 1 - t | |
1621 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1622 | end | |
1623 | function QuaternionFromCFrame(cf) | |
1624 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1625 | local trace = m00 + m11 + m22 | |
1626 | if trace > 0 then | |
1627 | local s = math.sqrt(1 + trace) | |
1628 | local recip = 0.5 / s | |
1629 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1630 | else | |
1631 | local i = 0 | |
1632 | if m00 < m11 then | |
1633 | i = 1 | |
1634 | end | |
1635 | if m22 > (i == 0 and m00 or m11) then | |
1636 | i = 2 | |
1637 | end | |
1638 | if i == 0 then | |
1639 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1640 | local recip = 0.5 / s | |
1641 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1642 | elseif i == 1 then | |
1643 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1644 | local recip = 0.5 / s | |
1645 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1646 | elseif i == 2 then | |
1647 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1648 | local recip = 0.5 / s | |
1649 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1650 | end | |
1651 | end | |
1652 | end | |
1653 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1654 | local xs, ys, zs = x + x, y + y, z + z | |
1655 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1656 | local xx = x * xs | |
1657 | local xy = x * ys | |
1658 | local xz = x * zs | |
1659 | local yy = y * ys | |
1660 | local yz = y * zs | |
1661 | local zz = z * zs | |
1662 | 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)) | |
1663 | end | |
1664 | function QuaternionSlerp(a, b, t) | |
1665 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1666 | local startInterp, finishInterp | |
1667 | if cosTheta >= 1.0E-4 then | |
1668 | if 1 - cosTheta > 1.0E-4 then | |
1669 | local theta = math.acos(cosTheta) | |
1670 | local invSinTheta = 1 / Sin(theta) | |
1671 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
1672 | finishInterp = Sin(t * theta) * invSinTheta | |
1673 | else | |
1674 | startInterp = 1 - t | |
1675 | finishInterp = t | |
1676 | end | |
1677 | elseif 1 + cosTheta > 1.0E-4 then | |
1678 | local theta = math.acos(-cosTheta) | |
1679 | local invSinTheta = 1 / Sin(theta) | |
1680 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
1681 | finishInterp = Sin(t * theta) * invSinTheta | |
1682 | else | |
1683 | startInterp = t - 1 | |
1684 | finishInterp = t | |
1685 | end | |
1686 | 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 | |
1687 | end | |
1688 | function rayCast(Position, Direction, Range, Ignore) | |
1689 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
1690 | end | |
1691 | local RbxUtility = LoadLibrary("RbxUtility") | |
1692 | local Create = RbxUtility.Create | |
1693 | ||
1694 | ||
1695 | ||
1696 | function swait(num) | |
1697 | if num == 0 or num == nil then | |
1698 | game:service("RunService").Stepped:wait(0) | |
1699 | else | |
1700 | for i = 0, num do | |
1701 | game:service("RunService").Stepped:wait(0) | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | function thread(f) | |
1706 | coroutine.resume(coroutine.create(f)) | |
1707 | end | |
1708 | function clerp(a, b, t) | |
1709 | local qa = { | |
1710 | QuaternionFromCFrame(a) | |
1711 | } | |
1712 | local qb = { | |
1713 | QuaternionFromCFrame(b) | |
1714 | } | |
1715 | local ax, ay, az = a.x, a.y, a.z | |
1716 | local bx, by, bz = b.x, b.y, b.z | |
1717 | local _t = 1 - t | |
1718 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1719 | end | |
1720 | function QuaternionFromCFrame(cf) | |
1721 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1722 | local trace = m00 + m11 + m22 | |
1723 | if trace > 0 then | |
1724 | local s = math.sqrt(1 + trace) | |
1725 | local recip = 0.5 / s | |
1726 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1727 | else | |
1728 | local i = 0 | |
1729 | if m00 < m11 then | |
1730 | i = 1 | |
1731 | end | |
1732 | if m22 > (i == 0 and m00 or m11) then | |
1733 | i = 2 | |
1734 | end | |
1735 | if i == 0 then | |
1736 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1737 | local recip = 0.5 / s | |
1738 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1739 | elseif i == 1 then | |
1740 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1741 | local recip = 0.5 / s | |
1742 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1743 | elseif i == 2 then | |
1744 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1745 | local recip = 0.5 / s | |
1746 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1747 | end | |
1748 | end | |
1749 | end | |
1750 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1751 | local xs, ys, zs = x + x, y + y, z + z | |
1752 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1753 | local xx = x * xs | |
1754 | local xy = x * ys | |
1755 | local xz = x * zs | |
1756 | local yy = y * ys | |
1757 | local yz = y * zs | |
1758 | local zz = z * zs | |
1759 | 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)) | |
1760 | end | |
1761 | function QuaternionSlerp(a, b, t) | |
1762 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1763 | local startInterp, finishInterp | |
1764 | if cosTheta >= 1.0E-4 then | |
1765 | if 1 - cosTheta > 1.0E-4 then | |
1766 | local theta = math.acos(cosTheta) | |
1767 | local invSinTheta = 1 / Sin(theta) | |
1768 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
1769 | finishInterp = Sin(t * theta) * invSinTheta | |
1770 | else | |
1771 | startInterp = 1 - t | |
1772 | finishInterp = t | |
1773 | end | |
1774 | elseif 1 + cosTheta > 1.0E-4 then | |
1775 | local theta = math.acos(-cosTheta) | |
1776 | local invSinTheta = 1 / Sin(theta) | |
1777 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
1778 | finishInterp = Sin(t * theta) * invSinTheta | |
1779 | else | |
1780 | startInterp = t - 1 | |
1781 | finishInterp = t | |
1782 | end | |
1783 | 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 | |
1784 | end | |
1785 | function rayCast(Position, Direction, Range, Ignore) | |
1786 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
1787 | end | |
1788 | local RbxUtility = LoadLibrary("RbxUtility") | |
1789 | local Create = RbxUtility.Create | |
1790 | ------------------------------------------------------- | |
1791 | --Start Damage Function-- | |
1792 | ------------------------------------------------------- | |
1793 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1794 | if hit.Parent == nil then | |
1795 | return | |
1796 | end | |
1797 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1798 | for _, v in pairs(hit.Parent:children()) do | |
1799 | if v:IsA("Humanoid") then | |
1800 | h = v | |
1801 | end | |
1802 | end | |
1803 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1804 | ||
1805 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1806 | end | |
1807 | ||
1808 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1809 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
1810 | if hit.Parent.DebounceHit.Value == true then | |
1811 | return | |
1812 | end | |
1813 | end | |
1814 | if insta == true then | |
1815 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1816 | end | |
1817 | local c = Create("ObjectValue"){ | |
1818 | Name = "creator", | |
1819 | Value = game:service("Players").LocalPlayer, | |
1820 | Parent = h, | |
1821 | } | |
1822 | game:GetService("Debris"):AddItem(c, .5) | |
1823 | if HitSound ~= nil and HitPitch ~= nil then | |
1824 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1825 | end | |
1826 | local Damage = math.random(minim, maxim) | |
1827 | local blocked = false | |
1828 | local block = hit.Parent:findFirstChild("Block") | |
1829 | if block ~= nil then | |
1830 | if block.className == "IntValue" then | |
1831 | if block.Value > 0 then | |
1832 | blocked = true | |
1833 | block.Value = block.Value - 1 | |
1834 | print(block.Value) | |
1835 | end | |
1836 | end | |
1837 | end | |
1838 | if blocked == false then | |
1839 | h.Health = h.Health - Damage | |
1840 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
1841 | else | |
1842 | h.Health = h.Health - (Damage / 2) | |
1843 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
1844 | end | |
1845 | if Type == "Knockdown" then | |
1846 | local hum = hit.Parent.Humanoid | |
1847 | hum.PlatformStand = true | |
1848 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1849 | swait(1) | |
1850 | HHumanoid.PlatformStand = false | |
1851 | end), hum) | |
1852 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
1853 | local bodvol = Create("BodyVelocity"){ | |
1854 | velocity = angle * knockback, | |
1855 | P = 5000, | |
1856 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
1857 | Parent = hit, | |
1858 | } | |
1859 | local rl = Create("BodyAngularVelocity"){ | |
1860 | P = 3000, | |
1861 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1862 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1863 | Parent = hit, | |
1864 | } | |
1865 | game:GetService("Debris"):AddItem(bodvol, .5) | |
1866 | game:GetService("Debris"):AddItem(rl, .5) | |
1867 | elseif Type == "Normal" then | |
1868 | local vp = Create("BodyVelocity"){ | |
1869 | P = 500, | |
1870 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1871 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
1872 | } | |
1873 | if knockback > 0 then | |
1874 | vp.Parent = hit.Parent.Torso | |
1875 | end | |
1876 | game:GetService("Debris"):AddItem(vp, .5) | |
1877 | elseif Type == "Up" then | |
1878 | local bodyVelocity = Create("BodyVelocity"){ | |
1879 | velocity = Vector3.new(0, 20, 0), | |
1880 | P = 5000, | |
1881 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
1882 | Parent = hit, | |
1883 | } | |
1884 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
1885 | elseif Type == "DarkUp" then | |
1886 | coroutine.resume(coroutine.create(function() | |
1887 | for i = 0, 1, 0.1 do | |
1888 | swait() | |
1889 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
1890 | end | |
1891 | end)) | |
1892 | local bodyVelocity = Create("BodyVelocity"){ | |
1893 | velocity = Vector3.new(0, 20, 0), | |
1894 | P = 5000, | |
1895 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
1896 | Parent = hit, | |
1897 | } | |
1898 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1899 | elseif Type == "Snare" then | |
1900 | local bp = Create("BodyPosition"){ | |
1901 | P = 2000, | |
1902 | D = 100, | |
1903 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1904 | position = hit.Parent.Torso.Position, | |
1905 | Parent = hit.Parent.Torso, | |
1906 | } | |
1907 | game:GetService("Debris"):AddItem(bp, 1) | |
1908 | elseif Type == "Freeze" then | |
1909 | local BodPos = Create("BodyPosition"){ | |
1910 | P = 50000, | |
1911 | D = 1000, | |
1912 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1913 | position = hit.Parent.Torso.Position, | |
1914 | Parent = hit.Parent.Torso, | |
1915 | } | |
1916 | local BodGy = Create("BodyGyro") { | |
1917 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
1918 | P = 20e+003, | |
1919 | Parent = hit.Parent.Torso, | |
1920 | cframe = hit.Parent.Torso.CFrame, | |
1921 | } | |
1922 | hit.Parent.Torso.Anchored = true | |
1923 | coroutine.resume(coroutine.create(function(Part) | |
1924 | swait(1.5) | |
1925 | Part.Anchored = false | |
1926 | end), hit.Parent.Torso) | |
1927 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1928 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1929 | end | |
1930 | local debounce = Create("BoolValue"){ | |
1931 | Name = "DebounceHit", | |
1932 | Parent = hit.Parent, | |
1933 | Value = true, | |
1934 | } | |
1935 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1936 | c = Create("ObjectValue"){ | |
1937 | Name = "creator", | |
1938 | Value = Player, | |
1939 | Parent = h, | |
1940 | } | |
1941 | game:GetService("Debris"):AddItem(c, .5) | |
1942 | end | |
1943 | end | |
1944 | ------------------------------------------------------- | |
1945 | --Start Damage Function-- | |
1946 | ------------------------------------------------------- | |
1947 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1948 | if hit.Parent == nil then | |
1949 | return | |
1950 | end | |
1951 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1952 | for _, v in pairs(hit.Parent:children()) do | |
1953 | if v:IsA("Humanoid") then | |
1954 | h = v | |
1955 | end | |
1956 | end | |
1957 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1958 | ||
1959 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1960 | end | |
1961 | ||
1962 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1963 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
1964 | if hit.Parent.DebounceHit.Value == true then | |
1965 | return | |
1966 | end | |
1967 | end | |
1968 | if insta == true then | |
1969 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1970 | end | |
1971 | local c = Create("ObjectValue"){ | |
1972 | Name = "creator", | |
1973 | Value = game:service("Players").LocalPlayer, | |
1974 | Parent = h, | |
1975 | } | |
1976 | game:GetService("Debris"):AddItem(c, .5) | |
1977 | if HitSound ~= nil and HitPitch ~= nil then | |
1978 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1979 | end | |
1980 | local Damage = math.random(minim, maxim) | |
1981 | local blocked = false | |
1982 | local block = hit.Parent:findFirstChild("Block") | |
1983 | if block ~= nil then | |
1984 | if block.className == "IntValue" then | |
1985 | if block.Value > 0 then | |
1986 | blocked = true | |
1987 | block.Value = block.Value - 1 | |
1988 | print(block.Value) | |
1989 | end | |
1990 | end | |
1991 | end | |
1992 | if blocked == false then | |
1993 | h.Health = h.Health - Damage | |
1994 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
1995 | else | |
1996 | h.Health = h.Health - (Damage / 2) | |
1997 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
1998 | end | |
1999 | if Type == "Knockdown" then | |
2000 | local hum = hit.Parent.Humanoid | |
2001 | hum.PlatformStand = true | |
2002 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2003 | swait(1) | |
2004 | HHumanoid.PlatformStand = false | |
2005 | end), hum) | |
2006 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
2007 | local bodvol = Create("BodyVelocity"){ | |
2008 | velocity = angle * knockback, | |
2009 | P = 5000, | |
2010 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2011 | Parent = hit, | |
2012 | } | |
2013 | local rl = Create("BodyAngularVelocity"){ | |
2014 | P = 3000, | |
2015 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2016 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2017 | Parent = hit, | |
2018 | } | |
2019 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2020 | game:GetService("Debris"):AddItem(rl, .5) | |
2021 | elseif Type == "Normal" then | |
2022 | local vp = Create("BodyVelocity"){ | |
2023 | P = 500, | |
2024 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
2025 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
2026 | } | |
2027 | if knockback > 0 then | |
2028 | vp.Parent = hit.Parent.Torso | |
2029 | end | |
2030 | game:GetService("Debris"):AddItem(vp, .5) | |
2031 | elseif Type == "Up" then | |
2032 | local bodyVelocity = Create("BodyVelocity"){ | |
2033 | velocity = Vector3.new(0, 20, 0), | |
2034 | P = 5000, | |
2035 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2036 | Parent = hit, | |
2037 | } | |
2038 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
2039 | elseif Type == "DarkUp" then | |
2040 | coroutine.resume(coroutine.create(function() | |
2041 | for i = 0, 1, 0.1 do | |
2042 | swait() | |
2043 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
2044 | end | |
2045 | end)) | |
2046 | local bodyVelocity = Create("BodyVelocity"){ | |
2047 | velocity = Vector3.new(0, 20, 0), | |
2048 | P = 5000, | |
2049 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2050 | Parent = hit, | |
2051 | } | |
2052 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2053 | elseif Type == "Snare" then | |
2054 | local bp = Create("BodyPosition"){ | |
2055 | P = 2000, | |
2056 | D = 100, | |
2057 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2058 | position = hit.Parent.Torso.Position, | |
2059 | Parent = hit.Parent.Torso, | |
2060 | } | |
2061 | game:GetService("Debris"):AddItem(bp, 1) | |
2062 | elseif Type == "Freeze" then | |
2063 | local BodPos = Create("BodyPosition"){ | |
2064 | P = 50000, | |
2065 | D = 1000, | |
2066 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2067 | position = hit.Parent.Torso.Position, | |
2068 | Parent = hit.Parent.Torso, | |
2069 | } | |
2070 | local BodGy = Create("BodyGyro") { | |
2071 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
2072 | P = 20e+003, | |
2073 | Parent = hit.Parent.Torso, | |
2074 | cframe = hit.Parent.Torso.CFrame, | |
2075 | } | |
2076 | hit.Parent.Torso.Anchored = true | |
2077 | coroutine.resume(coroutine.create(function(Part) | |
2078 | swait(1.5) | |
2079 | Part.Anchored = false | |
2080 | end), hit.Parent.Torso) | |
2081 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2082 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2083 | end | |
2084 | local debounce = Create("BoolValue"){ | |
2085 | Name = "DebounceHit", | |
2086 | Parent = hit.Parent, | |
2087 | Value = true, | |
2088 | } | |
2089 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2090 | c = Create("ObjectValue"){ | |
2091 | Name = "creator", | |
2092 | Value = Player, | |
2093 | Parent = h, | |
2094 | } | |
2095 | game:GetService("Debris"):AddItem(c, .5) | |
2096 | end | |
2097 | end | |
2098 | ||
2099 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
2100 | if hit.Parent == nil then | |
2101 | return | |
2102 | end | |
2103 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2104 | for _, v in pairs(hit.Parent:children()) do | |
2105 | if v:IsA("Humanoid") then | |
2106 | h = v | |
2107 | end | |
2108 | end | |
2109 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
2110 | ||
2111 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
2112 | end | |
2113 | ||
2114 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
2115 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
2116 | if hit.Parent.DebounceHit.Value == true then | |
2117 | return | |
2118 | end | |
2119 | end | |
2120 | if insta == true then | |
2121 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
2122 | end | |
2123 | local c = Create("ObjectValue"){ | |
2124 | Name = "creator", | |
2125 | Value = game:service("Players").LocalPlayer, | |
2126 | Parent = h, | |
2127 | } | |
2128 | game:GetService("Debris"):AddItem(c, .5) | |
2129 | if HitSound ~= nil and HitPitch ~= nil then | |
2130 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
2131 | end | |
2132 | local Damage = math.random(minim, maxim) | |
2133 | local blocked = false | |
2134 | local block = hit.Parent:findFirstChild("Block") | |
2135 | if block ~= nil then | |
2136 | if block.className == "IntValue" then | |
2137 | if block.Value > 0 then | |
2138 | blocked = true | |
2139 | block.Value = block.Value - 1 | |
2140 | print(block.Value) | |
2141 | end | |
2142 | end | |
2143 | end | |
2144 | if blocked == false then | |
2145 | h.Health = h.Health - Damage | |
2146 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2147 | else | |
2148 | h.Health = h.Health - (Damage / 2) | |
2149 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2150 | end | |
2151 | if Type == "Knockdown" then | |
2152 | local hum = hit.Parent.Humanoid | |
2153 | hum.PlatformStand = true | |
2154 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2155 | swait(1) | |
2156 | HHumanoid.PlatformStand = false | |
2157 | end), hum) | |
2158 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
2159 | local bodvol = Create("BodyVelocity"){ | |
2160 | velocity = angle * knockback, | |
2161 | P = 5000, | |
2162 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2163 | Parent = hit, | |
2164 | } | |
2165 | local rl = Create("BodyAngularVelocity"){ | |
2166 | P = 3000, | |
2167 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2168 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2169 | Parent = hit, | |
2170 | } | |
2171 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2172 | game:GetService("Debris"):AddItem(rl, .5) | |
2173 | elseif Type == "Normal" then | |
2174 | local vp = Create("BodyVelocity"){ | |
2175 | P = 500, | |
2176 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
2177 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
2178 | } | |
2179 | if knockback > 0 then | |
2180 | vp.Parent = hit.Parent.Torso | |
2181 | end | |
2182 | game:GetService("Debris"):AddItem(vp, .5) | |
2183 | elseif Type == "Up" then | |
2184 | local bodyVelocity = Create("BodyVelocity"){ | |
2185 | velocity = Vector3.new(0, 20, 0), | |
2186 | P = 5000, | |
2187 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2188 | Parent = hit, | |
2189 | } | |
2190 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
2191 | elseif Type == "DarkUp" then | |
2192 | coroutine.resume(coroutine.create(function() | |
2193 | for i = 0, 1, 0.1 do | |
2194 | swait() | |
2195 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
2196 | end | |
2197 | end)) | |
2198 | local bodyVelocity = Create("BodyVelocity"){ | |
2199 | velocity = Vector3.new(0, 20, 0), | |
2200 | P = 5000, | |
2201 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2202 | Parent = hit, | |
2203 | } | |
2204 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2205 | elseif Type == "Snare" then | |
2206 | local bp = Create("BodyPosition"){ | |
2207 | P = 2000, | |
2208 | D = 100, | |
2209 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2210 | position = hit.Parent.Torso.Position, | |
2211 | Parent = hit.Parent.Torso, | |
2212 | } | |
2213 | game:GetService("Debris"):AddItem(bp, 1) | |
2214 | elseif Type == "Freeze" then | |
2215 | local BodPos = Create("BodyPosition"){ | |
2216 | P = 50000, | |
2217 | D = 1000, | |
2218 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2219 | position = hit.Parent.Torso.Position, | |
2220 | Parent = hit.Parent.Torso, | |
2221 | } | |
2222 | local BodGy = Create("BodyGyro") { | |
2223 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
2224 | P = 20e+003, | |
2225 | Parent = hit.Parent.Torso, | |
2226 | cframe = hit.Parent.Torso.CFrame, | |
2227 | } | |
2228 | hit.Parent.Torso.Anchored = true | |
2229 | coroutine.resume(coroutine.create(function(Part) | |
2230 | swait(1.5) | |
2231 | Part.Anchored = false | |
2232 | end), hit.Parent.Torso) | |
2233 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2234 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2235 | end | |
2236 | local debounce = Create("BoolValue"){ | |
2237 | Name = "DebounceHit", | |
2238 | Parent = hit.Parent, | |
2239 | Value = true, | |
2240 | } | |
2241 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2242 | c = Create("ObjectValue"){ | |
2243 | Name = "creator", | |
2244 | Value = Player, | |
2245 | Parent = h, | |
2246 | } | |
2247 | ||
2248 | end | |
2249 | end | |
2250 | ------------------------------------------------------- | |
2251 | --End Damage Function-- | |
2252 | ------------------------------------------------------- | |
2253 | ||
2254 | ------------------------------------------------------- | |
2255 | --Start Damage Function Customization-- | |
2256 | ------------------------------------------------------- | |
2257 | function ShowDamage(Pos, Text, Time, Color) | |
2258 | local Rate = (1 / 30) | |
2259 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
2260 | local Text = (Text or "") | |
2261 | local Time = (Time or 2) | |
2262 | local Color = (Color or Color3.new(1, 0, 1)) | |
2263 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
2264 | EffectPart.Anchored = true | |
2265 | local BillboardGui = Create("BillboardGui"){ | |
2266 | Size = UDim2.new(3, 0, 3, 0), | |
2267 | Adornee = EffectPart, | |
2268 | Parent = EffectPart, | |
2269 | } | |
2270 | local TextLabel = Create("TextLabel"){ | |
2271 | BackgroundTransparency = 1, | |
2272 | Size = UDim2.new(1, 0, 1, 0), | |
2273 | Text = Text, | |
2274 | Font = "Bodoni", | |
2275 | TextColor3 = Color, | |
2276 | TextScaled = true, | |
2277 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
2278 | Parent = BillboardGui, | |
2279 | } | |
2280 | game.Debris:AddItem(EffectPart, (Time)) | |
2281 | EffectPart.Parent = game:GetService("Workspace") | |
2282 | delay(0, function() | |
2283 | local Frames = (Time / Rate) | |
2284 | for Frame = 1, Frames do | |
2285 | wait(Rate) | |
2286 | local Percent = (Frame / Frames) | |
2287 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
2288 | TextLabel.TextTransparency = Percent | |
2289 | end | |
2290 | if EffectPart and EffectPart.Parent then | |
2291 | EffectPart:Destroy() | |
2292 | end | |
2293 | end) | |
2294 | end | |
2295 | ------------------------------------------------------- | |
2296 | --End Damage Function Customization-- | |
2297 | ------------------------------------------------------- | |
2298 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
2299 | for _, c in pairs(workspace:children()) do | |
2300 | local hum = c:findFirstChild("Humanoid") | |
2301 | if hum ~= nil then | |
2302 | local head = c:findFirstChild("Head") | |
2303 | if head ~= nil then | |
2304 | local targ = head.Position - Part.Position | |
2305 | local mag = targ.magnitude | |
2306 | if magni >= mag and c.Name ~= plr.Name then | |
2307 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
2308 | end | |
2309 | end | |
2310 | end | |
2311 | end | |
2312 | end | |
2313 | ||
2314 | ||
2315 | CFuncs = { | |
2316 | Part = { | |
2317 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
2318 | local Part = Create("Part")({ | |
2319 | Parent = Parent, | |
2320 | Reflectance = Reflectance, | |
2321 | Transparency = Transparency, | |
2322 | CanCollide = false, | |
2323 | Locked = true, | |
2324 | BrickColor = BrickColor.new(tostring(BColor)), | |
2325 | Name = Name, | |
2326 | Size = Size, | |
2327 | Material = Material | |
2328 | }) | |
2329 | RemoveOutlines(Part) | |
2330 | return Part | |
2331 | end | |
2332 | }, | |
2333 | Mesh = { | |
2334 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2335 | local Msh = Create(Mesh)({ | |
2336 | Parent = Part, | |
2337 | Offset = OffSet, | |
2338 | Scale = Scale | |
2339 | }) | |
2340 | if Mesh == "SpecialMesh" then | |
2341 | Msh.MeshType = MeshType | |
2342 | Msh.MeshId = MeshId | |
2343 | end | |
2344 | return Msh | |
2345 | end | |
2346 | }, | |
2347 | Mesh = { | |
2348 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2349 | local Msh = Create(Mesh)({ | |
2350 | Parent = Part, | |
2351 | Offset = OffSet, | |
2352 | Scale = Scale | |
2353 | }) | |
2354 | if Mesh == "SpecialMesh" then | |
2355 | Msh.MeshType = MeshType | |
2356 | Msh.MeshId = MeshId | |
2357 | end | |
2358 | return Msh | |
2359 | end | |
2360 | }, | |
2361 | Weld = { | |
2362 | Create = function(Parent, Part0, Part1, C0, C1) | |
2363 | local Weld = Create("Weld")({ | |
2364 | Parent = Parent, | |
2365 | Part0 = Part0, | |
2366 | Part1 = Part1, | |
2367 | C0 = C0, | |
2368 | C1 = C1 | |
2369 | }) | |
2370 | return Weld | |
2371 | end | |
2372 | }, | |
2373 | Sound = { | |
2374 | Create = function(id, par, vol, pit) | |
2375 | coroutine.resume(coroutine.create(function() | |
2376 | local S = Create("Sound")({ | |
2377 | Volume = vol, | |
2378 | Pitch = pit or 1, | |
2379 | SoundId = id, | |
2380 | Parent = par or workspace | |
2381 | }) | |
2382 | wait() | |
2383 | S:play() | |
2384 | game:GetService("Debris"):AddItem(S, 6) | |
2385 | end)) | |
2386 | end | |
2387 | }, | |
2388 | ParticleEmitter = { | |
2389 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
2390 | local fp = Create("ParticleEmitter")({ | |
2391 | Parent = Parent, | |
2392 | Color = ColorSequence.new(Color1, Color2), | |
2393 | LightEmission = LightEmission, | |
2394 | Size = Size, | |
2395 | Texture = Texture, | |
2396 | Transparency = Transparency, | |
2397 | ZOffset = ZOffset, | |
2398 | Acceleration = Accel, | |
2399 | Drag = Drag, | |
2400 | LockedToPart = LockedToPart, | |
2401 | VelocityInheritance = VelocityInheritance, | |
2402 | EmissionDirection = EmissionDirection, | |
2403 | Enabled = Enabled, | |
2404 | Lifetime = LifeTime, | |
2405 | Rate = Rate, | |
2406 | Rotation = Rotation, | |
2407 | RotSpeed = RotSpeed, | |
2408 | Speed = Speed, | |
2409 | VelocitySpread = VelocitySpread | |
2410 | }) | |
2411 | return fp | |
2412 | end | |
2413 | } | |
2414 | } | |
2415 | function RemoveOutlines(part) | |
2416 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
2417 | end | |
2418 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
2419 | local Part = Create("Part")({ | |
2420 | formFactor = FormFactor, | |
2421 | Parent = Parent, | |
2422 | Reflectance = Reflectance, | |
2423 | Transparency = Transparency, | |
2424 | CanCollide = false, | |
2425 | Locked = true, | |
2426 | BrickColor = BrickColor.new(tostring(BColor)), | |
2427 | Name = Name, | |
2428 | Size = Size, | |
2429 | Material = Material | |
2430 | }) | |
2431 | RemoveOutlines(Part) | |
2432 | return Part | |
2433 | end | |
2434 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2435 | local Msh = Create(Mesh)({ | |
2436 | Parent = Part, | |
2437 | Offset = OffSet, | |
2438 | Scale = Scale | |
2439 | }) | |
2440 | if Mesh == "SpecialMesh" then | |
2441 | Msh.MeshType = MeshType | |
2442 | Msh.MeshId = MeshId | |
2443 | end | |
2444 | return Msh | |
2445 | end | |
2446 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
2447 | local Weld = Create("Weld")({ | |
2448 | Parent = Parent, | |
2449 | Part0 = Part0, | |
2450 | Part1 = Part1, | |
2451 | C0 = C0, | |
2452 | C1 = C1 | |
2453 | }) | |
2454 | return Weld | |
2455 | end | |
2456 | ||
2457 | ||
2458 | ||
2459 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
2460 | for _, c in pairs(workspace:children()) do | |
2461 | local hum = c:findFirstChild("Humanoid") | |
2462 | if hum ~= nil then | |
2463 | local head = c:findFirstChild("Head") | |
2464 | if head ~= nil then | |
2465 | local targ = head.Position - Part.Position | |
2466 | local mag = targ.magnitude | |
2467 | if magni >= mag and c.Name ~= plr.Name then | |
2468 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
2469 | end | |
2470 | end | |
2471 | end | |
2472 | end | |
2473 | end | |
2474 | ||
2475 | ||
2476 | CFuncs = { | |
2477 | Part = { | |
2478 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
2479 | local Part = Create("Part")({ | |
2480 | Parent = Parent, | |
2481 | Reflectance = Reflectance, | |
2482 | Transparency = Transparency, | |
2483 | CanCollide = false, | |
2484 | Locked = true, | |
2485 | BrickColor = BrickColor.new(tostring(BColor)), | |
2486 | Name = Name, | |
2487 | Size = Size, | |
2488 | Material = Material | |
2489 | }) | |
2490 | RemoveOutlines(Part) | |
2491 | return Part | |
2492 | end | |
2493 | }, | |
2494 | Mesh = { | |
2495 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2496 | local Msh = Create(Mesh)({ | |
2497 | Parent = Part, | |
2498 | Offset = OffSet, | |
2499 | Scale = Scale | |
2500 | }) | |
2501 | if Mesh == "SpecialMesh" then | |
2502 | Msh.MeshType = MeshType | |
2503 | Msh.MeshId = MeshId | |
2504 | end | |
2505 | return Msh | |
2506 | end | |
2507 | }, | |
2508 | Mesh = { | |
2509 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2510 | local Msh = Create(Mesh)({ | |
2511 | Parent = Part, | |
2512 | Offset = OffSet, | |
2513 | Scale = Scale | |
2514 | }) | |
2515 | if Mesh == "SpecialMesh" then | |
2516 | Msh.MeshType = MeshType | |
2517 | Msh.MeshId = MeshId | |
2518 | end | |
2519 | return Msh | |
2520 | end | |
2521 | }, | |
2522 | Weld = { | |
2523 | Create = function(Parent, Part0, Part1, C0, C1) | |
2524 | local Weld = Create("Weld")({ | |
2525 | Parent = Parent, | |
2526 | Part0 = Part0, | |
2527 | Part1 = Part1, | |
2528 | C0 = C0, | |
2529 | C1 = C1 | |
2530 | }) | |
2531 | return Weld | |
2532 | end | |
2533 | }, | |
2534 | Sound = { | |
2535 | Create = function(id, par, vol, pit) | |
2536 | coroutine.resume(coroutine.create(function() | |
2537 | local S = Create("Sound")({ | |
2538 | Volume = vol, | |
2539 | Pitch = pit or 1, | |
2540 | SoundId = id, | |
2541 | Parent = par or workspace | |
2542 | }) | |
2543 | wait() | |
2544 | S:play() | |
2545 | game:GetService("Debris"):AddItem(S, 6) | |
2546 | end)) | |
2547 | end | |
2548 | }, | |
2549 | ParticleEmitter = { | |
2550 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
2551 | local fp = Create("ParticleEmitter")({ | |
2552 | Parent = Parent, | |
2553 | Color = ColorSequence.new(Color1, Color2), | |
2554 | LightEmission = LightEmission, | |
2555 | Size = Size, | |
2556 | Texture = Texture, | |
2557 | Transparency = Transparency, | |
2558 | ZOffset = ZOffset, | |
2559 | Acceleration = Accel, | |
2560 | Drag = Drag, | |
2561 | LockedToPart = LockedToPart, | |
2562 | VelocityInheritance = VelocityInheritance, | |
2563 | EmissionDirection = EmissionDirection, | |
2564 | Enabled = Enabled, | |
2565 | Lifetime = LifeTime, | |
2566 | Rate = Rate, | |
2567 | Rotation = Rotation, | |
2568 | RotSpeed = RotSpeed, | |
2569 | Speed = Speed, | |
2570 | VelocitySpread = VelocitySpread | |
2571 | }) | |
2572 | return fp | |
2573 | end | |
2574 | } | |
2575 | } | |
2576 | function RemoveOutlines(part) | |
2577 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
2578 | end | |
2579 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
2580 | local Part = Create("Part")({ | |
2581 | formFactor = FormFactor, | |
2582 | Parent = Parent, | |
2583 | Reflectance = Reflectance, | |
2584 | Transparency = Transparency, | |
2585 | CanCollide = false, | |
2586 | Locked = true, | |
2587 | BrickColor = BrickColor.new(tostring(BColor)), | |
2588 | Name = Name, | |
2589 | Size = Size, | |
2590 | Material = Material | |
2591 | }) | |
2592 | RemoveOutlines(Part) | |
2593 | return Part | |
2594 | end | |
2595 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2596 | local Msh = Create(Mesh)({ | |
2597 | Parent = Part, | |
2598 | Offset = OffSet, | |
2599 | Scale = Scale | |
2600 | }) | |
2601 | if Mesh == "SpecialMesh" then | |
2602 | Msh.MeshType = MeshType | |
2603 | Msh.MeshId = MeshId | |
2604 | end | |
2605 | return Msh | |
2606 | end | |
2607 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
2608 | local Weld = Create("Weld")({ | |
2609 | Parent = Parent, | |
2610 | Part0 = Part0, | |
2611 | Part1 = Part1, | |
2612 | C0 = C0, | |
2613 | C1 = C1 | |
2614 | }) | |
2615 | return Weld | |
2616 | end | |
2617 | ||
2618 | ||
2619 | ------------------------------------------------------- | |
2620 | --Start Effect Function-- | |
2621 | ------------------------------------------------------- | |
2622 | EffectModel = Instance.new("Model", char) | |
2623 | Effects = { | |
2624 | Block = { | |
2625 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
2626 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2627 | prt.Anchored = true | |
2628 | prt.CFrame = cframe | |
2629 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2630 | game:GetService("Debris"):AddItem(prt, 10) | |
2631 | if Type == 1 or Type == nil then | |
2632 | table.insert(Effects, { | |
2633 | prt, | |
2634 | "Block1", | |
2635 | delay, | |
2636 | x3, | |
2637 | y3, | |
2638 | z3, | |
2639 | msh | |
2640 | }) | |
2641 | elseif Type == 2 then | |
2642 | table.insert(Effects, { | |
2643 | prt, | |
2644 | "Block2", | |
2645 | delay, | |
2646 | x3, | |
2647 | y3, | |
2648 | z3, | |
2649 | msh | |
2650 | }) | |
2651 | else | |
2652 | table.insert(Effects, { | |
2653 | prt, | |
2654 | "Block3", | |
2655 | delay, | |
2656 | x3, | |
2657 | y3, | |
2658 | z3, | |
2659 | msh | |
2660 | }) | |
2661 | end | |
2662 | end | |
2663 | }, | |
2664 | Sphere = { | |
2665 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2666 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2667 | prt.Anchored = true | |
2668 | prt.CFrame = cframe | |
2669 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2670 | game:GetService("Debris"):AddItem(prt, 10) | |
2671 | table.insert(Effects, { | |
2672 | prt, | |
2673 | "Cylinder", | |
2674 | delay, | |
2675 | x3, | |
2676 | y3, | |
2677 | z3, | |
2678 | msh | |
2679 | }) | |
2680 | end | |
2681 | }, | |
2682 | Cylinder = { | |
2683 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2684 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2685 | prt.Anchored = true | |
2686 | prt.CFrame = cframe | |
2687 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2688 | game:GetService("Debris"):AddItem(prt, 10) | |
2689 | table.insert(Effects, { | |
2690 | prt, | |
2691 | "Cylinder", | |
2692 | delay, | |
2693 | x3, | |
2694 | y3, | |
2695 | z3, | |
2696 | msh | |
2697 | }) | |
2698 | end | |
2699 | }, | |
2700 | Wave = { | |
2701 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2702 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2703 | prt.Anchored = true | |
2704 | prt.CFrame = cframe | |
2705 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
2706 | game:GetService("Debris"):AddItem(prt, 10) | |
2707 | table.insert(Effects, { | |
2708 | prt, | |
2709 | "Cylinder", | |
2710 | delay, | |
2711 | x3 / 60, | |
2712 | y3 / 60, | |
2713 | z3 / 60, | |
2714 | msh | |
2715 | }) | |
2716 | end | |
2717 | }, | |
2718 | Ring = { | |
2719 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2720 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2721 | prt.Anchored = true | |
2722 | prt.CFrame = cframe | |
2723 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2724 | game:GetService("Debris"):AddItem(prt, 10) | |
2725 | table.insert(Effects, { | |
2726 | prt, | |
2727 | "Cylinder", | |
2728 | delay, | |
2729 | x3, | |
2730 | y3, | |
2731 | z3, | |
2732 | msh | |
2733 | }) | |
2734 | end | |
2735 | }, | |
2736 | Break = { | |
2737 | Create = function(brickcolor, cframe, x1, y1, z1) | |
2738 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
2739 | prt.Anchored = true | |
2740 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2741 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2742 | local num = math.random(10, 50) / 1000 | |
2743 | game:GetService("Debris"):AddItem(prt, 10) | |
2744 | table.insert(Effects, { | |
2745 | prt, | |
2746 | "Shatter", | |
2747 | num, | |
2748 | prt.CFrame, | |
2749 | math.random() - math.random(), | |
2750 | 0, | |
2751 | math.random(50, 100) / 100 | |
2752 | }) | |
2753 | end | |
2754 | }, | |
2755 | Spiral = { | |
2756 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2757 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2758 | prt.Anchored = true | |
2759 | prt.CFrame = cframe | |
2760 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2761 | game:GetService("Debris"):AddItem(prt, 10) | |
2762 | table.insert(Effects, { | |
2763 | prt, | |
2764 | "Cylinder", | |
2765 | delay, | |
2766 | x3, | |
2767 | y3, | |
2768 | z3, | |
2769 | msh | |
2770 | }) | |
2771 | end | |
2772 | }, | |
2773 | Push = { | |
2774 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2775 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
2776 | prt.Anchored = true | |
2777 | prt.CFrame = cframe | |
2778 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
2779 | game:GetService("Debris"):AddItem(prt, 10) | |
2780 | table.insert(Effects, { | |
2781 | prt, | |
2782 | "Cylinder", | |
2783 | delay, | |
2784 | x3, | |
2785 | y3, | |
2786 | z3, | |
2787 | msh | |
2788 | }) | |
2789 | end | |
2790 | } | |
2791 | } | |
2792 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
2793 | local fp = IT("Part") | |
2794 | fp.formFactor = formfactor | |
2795 | fp.Parent = parent | |
2796 | fp.Reflectance = reflectance | |
2797 | fp.Transparency = transparency | |
2798 | fp.CanCollide = false | |
2799 | fp.Locked = true | |
2800 | fp.BrickColor = brickcolor | |
2801 | fp.Name = name | |
2802 | fp.Size = size | |
2803 | fp.Position = tors.Position | |
2804 | RemoveOutlines(fp) | |
2805 | fp.Material = "SmoothPlastic" | |
2806 | fp:BreakJoints() | |
2807 | return fp | |
2808 | end | |
2809 | ||
2810 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
2811 | local mesh = IT(Mesh) | |
2812 | mesh.Parent = part | |
2813 | if Mesh == "SpecialMesh" then | |
2814 | mesh.MeshType = meshtype | |
2815 | if meshid ~= "nil" then | |
2816 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
2817 | end | |
2818 | end | |
2819 | mesh.Offset = offset | |
2820 | mesh.Scale = scale | |
2821 | return mesh | |
2822 | end | |
2823 | ||
2824 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
2825 | local type = type | |
2826 | local rng = Instance.new("Part", char) | |
2827 | rng.Anchored = true | |
2828 | rng.BrickColor = color | |
2829 | rng.CanCollide = false | |
2830 | rng.FormFactor = 3 | |
2831 | rng.Name = "Ring" | |
2832 | rng.Material = "Neon" | |
2833 | rng.Size = Vector3.new(1, 1, 1) | |
2834 | rng.Transparency = 0 | |
2835 | rng.TopSurface = 0 | |
2836 | rng.BottomSurface = 0 | |
2837 | rng.CFrame = pos | |
2838 | local rngm = Instance.new("SpecialMesh", rng) | |
2839 | rngm.MeshType = MType | |
2840 | rngm.Scale = scale | |
2841 | local scaler2 = 1 | |
2842 | if type == "Add" then | |
2843 | scaler2 = 1 * value | |
2844 | elseif type == "Divide" then | |
2845 | scaler2 = 1 / value | |
2846 | end | |
2847 | coroutine.resume(coroutine.create(function() | |
2848 | for i = 0, 10 / bonuspeed, 0.1 do | |
2849 | swait() | |
2850 | if type == "Add" then | |
2851 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2852 | elseif type == "Divide" then | |
2853 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2854 | end | |
2855 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2856 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
2857 | end | |
2858 | rng:Destroy() | |
2859 | end)) | |
2860 | end | |
2861 | ||
2862 | function Eviscerate(dude) | |
2863 | if dude.Name ~= char then | |
2864 | local bgf = IT("BodyGyro", dude.Head) | |
2865 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
2866 | local val = IT("BoolValue", dude) | |
2867 | val.Name = "IsHit" | |
2868 | local ds = coroutine.wrap(function() | |
2869 | dude:WaitForChild("Head"):BreakJoints() | |
2870 | wait(0.5) | |
2871 | target = nil | |
2872 | coroutine.resume(coroutine.create(function() | |
2873 | for i, v in pairs(dude:GetChildren()) do | |
2874 | if v:IsA("Accessory") then | |
2875 | v:Destroy() | |
2876 | end | |
2877 | if v:IsA("Humanoid") then | |
2878 | v:Destroy() | |
2879 | end | |
2880 | if v:IsA("CharacterMesh") then | |
2881 | v:Destroy() | |
2882 | end | |
2883 | if v:IsA("Model") then | |
2884 | v:Destroy() | |
2885 | end | |
2886 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2887 | for x, o in pairs(v:GetChildren()) do | |
2888 | if o:IsA("Decal") then | |
2889 | o:Destroy() | |
2890 | end | |
2891 | end | |
2892 | coroutine.resume(coroutine.create(function() | |
2893 | v.Material = "Neon" | |
2894 | v.CanCollide = false | |
2895 | local PartEmmit1 = IT("ParticleEmitter", v) | |
2896 | PartEmmit1.LightEmission = 1 | |
2897 | PartEmmit1.Texture = "rbxassetid://284205403" | |
2898 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
2899 | PartEmmit1.Rate = 150 | |
2900 | PartEmmit1.Lifetime = NumberRange.new(1) | |
2901 | PartEmmit1.Size = NumberSequence.new({ | |
2902 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
2903 | NumberSequenceKeypoint.new(1, 0, 0) | |
2904 | }) | |
2905 | PartEmmit1.Transparency = NumberSequence.new({ | |
2906 | NumberSequenceKeypoint.new(0, 0, 0), | |
2907 | NumberSequenceKeypoint.new(1, 1, 0) | |
2908 | }) | |
2909 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
2910 | PartEmmit1.VelocitySpread = 30000 | |
2911 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
2912 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
2913 | local BodPoss = IT("BodyPosition", v) | |
2914 | BodPoss.P = 3000 | |
2915 | BodPoss.D = 1000 | |
2916 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2917 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
2918 | v.Color = maincolor.Color | |
2919 | coroutine.resume(coroutine.create(function() | |
2920 | for i = 0, 49 do | |
2921 | swait(1) | |
2922 | v.Transparency = v.Transparency + 0.08 | |
2923 | end | |
2924 | wait(0.5) | |
2925 | PartEmmit1.Enabled = false | |
2926 | wait(3) | |
2927 | v:Destroy() | |
2928 | dude:Destroy() | |
2929 | end)) | |
2930 | end)) | |
2931 | end | |
2932 | end | |
2933 | end)) | |
2934 | end) | |
2935 | ds() | |
2936 | end | |
2937 | end | |
2938 | ||
2939 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2940 | if SinglePlayer then | |
2941 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
2942 | end | |
2943 | local List = {} | |
2944 | for i, v in pairs(workspace:GetChildren()) do | |
2945 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
2946 | table.insert(List, v) | |
2947 | end | |
2948 | end | |
2949 | return List | |
2950 | end | |
2951 | ||
2952 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
2953 | local type = type | |
2954 | local rng = Instance.new("Part", char) | |
2955 | rng.Anchored = true | |
2956 | rng.BrickColor = color | |
2957 | rng.CanCollide = false | |
2958 | rng.FormFactor = 3 | |
2959 | rng.Name = "Ring" | |
2960 | rng.Material = "Neon" | |
2961 | rng.Size = Vector3.new(1, 1, 1) | |
2962 | rng.Transparency = 0 | |
2963 | rng.TopSurface = 0 | |
2964 | rng.BottomSurface = 0 | |
2965 | rng.CFrame = pos | |
2966 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2967 | local rngm = Instance.new("SpecialMesh", rng) | |
2968 | rngm.MeshType = MType | |
2969 | rngm.Scale = Vector3.new(x1, y1, z1) | |
2970 | local scaler2 = 1 | |
2971 | local speeder = FastSpeed | |
2972 | if type == "Add" then | |
2973 | scaler2 = 1 * value | |
2974 | elseif type == "Divide" then | |
2975 | scaler2 = 1 / value | |
2976 | end | |
2977 | coroutine.resume(coroutine.create(function() | |
2978 | for i = 0, 10 / bonuspeed, 0.1 do | |
2979 | swait() | |
2980 | if type == "Add" then | |
2981 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2982 | elseif type == "Divide" then | |
2983 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2984 | end | |
2985 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2986 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2987 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2988 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2989 | end | |
2990 | rng:Destroy() | |
2991 | end)) | |
2992 | end | |
2993 | ||
2994 | function SoulSteal(dude) | |
2995 | if dude.Name ~= char then | |
2996 | local bgf = IT("BodyGyro", dude.Head) | |
2997 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
2998 | local val = IT("BoolValue", dude) | |
2999 | val.Name = "IsHit" | |
3000 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
3001 | local soulst = coroutine.wrap(function() | |
3002 | local soul = Instance.new("Part",dude) | |
3003 | soul.Size = Vector3.new(1,1,1) | |
3004 | soul.CanCollide = false | |
3005 | soul.Anchored = false | |
3006 | soul.Position = torso.Position | |
3007 | soul.Transparency = 1 | |
3008 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
3009 | PartEmmit1.LightEmission = 1 | |
3010 | PartEmmit1.Texture = "rbxassetid://569507414" | |
3011 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3012 | PartEmmit1.Rate = 250 | |
3013 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
3014 | PartEmmit1.Size = NumberSequence.new({ | |
3015 | NumberSequenceKeypoint.new(0, 1, 0), | |
3016 | NumberSequenceKeypoint.new(1, 0, 0) | |
3017 | }) | |
3018 | PartEmmit1.Transparency = NumberSequence.new({ | |
3019 | NumberSequenceKeypoint.new(0, 0, 0), | |
3020 | NumberSequenceKeypoint.new(1, 1, 0) | |
3021 | }) | |
3022 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
3023 | PartEmmit1.VelocitySpread = 30000 | |
3024 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
3025 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
3026 | local BodPoss = IT("BodyPosition", soul) | |
3027 | BodPoss.P = 3000 | |
3028 | BodPoss.D = 1000 | |
3029 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3030 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
3031 | wait(1.6) | |
3032 | soul.Touched:connect(function(hit) | |
3033 | if hit.Parent == char then | |
3034 | soul:Destroy() | |
3035 | end | |
3036 | end) | |
3037 | wait(1.2) | |
3038 | while soul do | |
3039 | swait() | |
3040 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3041 | BodPoss.Position = tors.Position | |
3042 | end | |
3043 | end) | |
3044 | soulst() | |
3045 | end | |
3046 | end | |
3047 | function FaceMouse() | |
3048 | local Cam = workspace.CurrentCamera | |
3049 | return { | |
3050 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3051 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3052 | } | |
3053 | end | |
3054 | ------------------------------------------------------- | |
3055 | --Start Effect Function-- | |
3056 | ------------------------------------------------------ | |
3057 | EffectModel = Instance.new("Model", char) | |
3058 | Effects = { | |
3059 | Block = { | |
3060 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
3061 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3062 | prt.Anchored = true | |
3063 | prt.CFrame = cframe | |
3064 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3065 | game:GetService("Debris"):AddItem(prt, 10) | |
3066 | if Type == 1 or Type == nil then | |
3067 | table.insert(Effects, { | |
3068 | prt, | |
3069 | "Block1", | |
3070 | delay, | |
3071 | x3, | |
3072 | y3, | |
3073 | z3, | |
3074 | msh | |
3075 | }) | |
3076 | elseif Type == 2 then | |
3077 | table.insert(Effects, { | |
3078 | prt, | |
3079 | "Block2", | |
3080 | delay, | |
3081 | x3, | |
3082 | y3, | |
3083 | z3, | |
3084 | msh | |
3085 | }) | |
3086 | else | |
3087 | table.insert(Effects, { | |
3088 | prt, | |
3089 | "Block3", | |
3090 | delay, | |
3091 | x3, | |
3092 | y3, | |
3093 | z3, | |
3094 | msh | |
3095 | }) | |
3096 | end | |
3097 | end | |
3098 | }, | |
3099 | Sphere = { | |
3100 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3101 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3102 | prt.Anchored = true | |
3103 | prt.CFrame = cframe | |
3104 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3105 | game:GetService("Debris"):AddItem(prt, 10) | |
3106 | table.insert(Effects, { | |
3107 | prt, | |
3108 | "Cylinder", | |
3109 | delay, | |
3110 | x3, | |
3111 | y3, | |
3112 | z3, | |
3113 | msh | |
3114 | }) | |
3115 | end | |
3116 | }, | |
3117 | Cylinder = { | |
3118 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3119 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3120 | prt.Anchored = true | |
3121 | prt.CFrame = cframe | |
3122 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3123 | game:GetService("Debris"):AddItem(prt, 10) | |
3124 | table.insert(Effects, { | |
3125 | prt, | |
3126 | "Cylinder", | |
3127 | delay, | |
3128 | x3, | |
3129 | y3, | |
3130 | z3, | |
3131 | msh | |
3132 | }) | |
3133 | end | |
3134 | }, | |
3135 | Wave = { | |
3136 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3137 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3138 | prt.Anchored = true | |
3139 | prt.CFrame = cframe | |
3140 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
3141 | game:GetService("Debris"):AddItem(prt, 10) | |
3142 | table.insert(Effects, { | |
3143 | prt, | |
3144 | "Cylinder", | |
3145 | delay, | |
3146 | x3 / 60, | |
3147 | y3 / 60, | |
3148 | z3 / 60, | |
3149 | msh | |
3150 | }) | |
3151 | end | |
3152 | }, | |
3153 | Ring = { | |
3154 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3155 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3156 | prt.Anchored = true | |
3157 | prt.CFrame = cframe | |
3158 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3159 | game:GetService("Debris"):AddItem(prt, 10) | |
3160 | table.insert(Effects, { | |
3161 | prt, | |
3162 | "Cylinder", | |
3163 | delay, | |
3164 | x3, | |
3165 | y3, | |
3166 | z3, | |
3167 | msh | |
3168 | }) | |
3169 | end | |
3170 | }, | |
3171 | Break = { | |
3172 | Create = function(brickcolor, cframe, x1, y1, z1) | |
3173 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
3174 | prt.Anchored = true | |
3175 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3176 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3177 | local num = math.random(10, 50) / 1000 | |
3178 | game:GetService("Debris"):AddItem(prt, 10) | |
3179 | table.insert(Effects, { | |
3180 | prt, | |
3181 | "Shatter", | |
3182 | num, | |
3183 | prt.CFrame, | |
3184 | math.random() - math.random(), | |
3185 | 0, | |
3186 | math.random(50, 100) / 100 | |
3187 | }) | |
3188 | end | |
3189 | }, | |
3190 | Spiral = { | |
3191 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3192 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3193 | prt.Anchored = true | |
3194 | prt.CFrame = cframe | |
3195 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3196 | game:GetService("Debris"):AddItem(prt, 10) | |
3197 | table.insert(Effects, { | |
3198 | prt, | |
3199 | "Cylinder", | |
3200 | delay, | |
3201 | x3, | |
3202 | y3, | |
3203 | z3, | |
3204 | msh | |
3205 | }) | |
3206 | end | |
3207 | }, | |
3208 | Push = { | |
3209 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3210 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3211 | prt.Anchored = true | |
3212 | prt.CFrame = cframe | |
3213 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3214 | game:GetService("Debris"):AddItem(prt, 10) | |
3215 | table.insert(Effects, { | |
3216 | prt, | |
3217 | "Cylinder", | |
3218 | delay, | |
3219 | x3, | |
3220 | y3, | |
3221 | z3, | |
3222 | msh | |
3223 | }) | |
3224 | end | |
3225 | } | |
3226 | } | |
3227 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
3228 | local fp = IT("Part") | |
3229 | fp.formFactor = formfactor | |
3230 | fp.Parent = parent | |
3231 | fp.Reflectance = reflectance | |
3232 | fp.Transparency = transparency | |
3233 | fp.CanCollide = false | |
3234 | fp.Locked = true | |
3235 | fp.BrickColor = brickcolor | |
3236 | fp.Name = name | |
3237 | fp.Size = size | |
3238 | fp.Position = tors.Position | |
3239 | RemoveOutlines(fp) | |
3240 | fp.Material = "SmoothPlastic" | |
3241 | fp:BreakJoints() | |
3242 | return fp | |
3243 | end | |
3244 | ||
3245 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
3246 | local mesh = IT(Mesh) | |
3247 | mesh.Parent = part | |
3248 | if Mesh == "SpecialMesh" then | |
3249 | mesh.MeshType = meshtype | |
3250 | if meshid ~= "nil" then | |
3251 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
3252 | end | |
3253 | end | |
3254 | mesh.Offset = offset | |
3255 | mesh.Scale = scale | |
3256 | return mesh | |
3257 | end | |
3258 | ||
3259 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
3260 | local type = type | |
3261 | local rng = Instance.new("Part", char) | |
3262 | rng.Anchored = true | |
3263 | rng.BrickColor = color | |
3264 | rng.CanCollide = false | |
3265 | rng.FormFactor = 3 | |
3266 | rng.Name = "Ring" | |
3267 | rng.Material = "Neon" | |
3268 | rng.Size = Vector3.new(1, 1, 1) | |
3269 | rng.Transparency = 0 | |
3270 | rng.TopSurface = 0 | |
3271 | rng.BottomSurface = 0 | |
3272 | rng.CFrame = pos | |
3273 | local rngm = Instance.new("SpecialMesh", rng) | |
3274 | rngm.MeshType = MType | |
3275 | rngm.Scale = scale | |
3276 | local scaler2 = 1 | |
3277 | if type == "Add" then | |
3278 | scaler2 = 1 * value | |
3279 | elseif type == "Divide" then | |
3280 | scaler2 = 1 / value | |
3281 | end | |
3282 | coroutine.resume(coroutine.create(function() | |
3283 | for i = 0, 10 / bonuspeed, 0.1 do | |
3284 | swait() | |
3285 | if type == "Add" then | |
3286 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
3287 | elseif type == "Divide" then | |
3288 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
3289 | end | |
3290 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
3291 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
3292 | end | |
3293 | rng:Destroy() | |
3294 | end)) | |
3295 | end | |
3296 | ||
3297 | function Eviscerate(dude) | |
3298 | if dude.Name ~= char then | |
3299 | local bgf = IT("BodyGyro", dude.Head) | |
3300 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
3301 | local val = IT("BoolValue", dude) | |
3302 | val.Name = "IsHit" | |
3303 | local ds = coroutine.wrap(function() | |
3304 | dude:WaitForChild("Head"):BreakJoints() | |
3305 | wait(0.5) | |
3306 | target = nil | |
3307 | coroutine.resume(coroutine.create(function() | |
3308 | for i, v in pairs(dude:GetChildren()) do | |
3309 | if v:IsA("Accessory") then | |
3310 | v:Destroy() | |
3311 | end | |
3312 | if v:IsA("Humanoid") then | |
3313 | v:Destroy() | |
3314 | end | |
3315 | if v:IsA("CharacterMesh") then | |
3316 | v:Destroy() | |
3317 | end | |
3318 | if v:IsA("Model") then | |
3319 | v:Destroy() | |
3320 | end | |
3321 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3322 | for x, o in pairs(v:GetChildren()) do | |
3323 | if o:IsA("Decal") then | |
3324 | o:Destroy() | |
3325 | end | |
3326 | end | |
3327 | coroutine.resume(coroutine.create(function() | |
3328 | v.Material = "Neon" | |
3329 | v.CanCollide = false | |
3330 | local PartEmmit1 = IT("ParticleEmitter", v) | |
3331 | PartEmmit1.LightEmission = 1 | |
3332 | PartEmmit1.Texture = "rbxassetid://284205403" | |
3333 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3334 | PartEmmit1.Rate = 150 | |
3335 | PartEmmit1.Lifetime = NumberRange.new(1) | |
3336 | PartEmmit1.Size = NumberSequence.new({ | |
3337 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
3338 | NumberSequenceKeypoint.new(1, 0, 0) | |
3339 | }) | |
3340 | PartEmmit1.Transparency = NumberSequence.new({ | |
3341 | NumberSequenceKeypoint.new(0, 0, 0), | |
3342 | NumberSequenceKeypoint.new(1, 1, 0) | |
3343 | }) | |
3344 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
3345 | PartEmmit1.VelocitySpread = 30000 | |
3346 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
3347 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
3348 | local BodPoss = IT("BodyPosition", v) | |
3349 | BodPoss.P = 3000 | |
3350 | BodPoss.D = 1000 | |
3351 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3352 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
3353 | v.Color = maincolor.Color | |
3354 | coroutine.resume(coroutine.create(function() | |
3355 | for i = 0, 49 do | |
3356 | swait(1) | |
3357 | v.Transparency = v.Transparency + 0.08 | |
3358 | end | |
3359 | wait(0.5) | |
3360 | PartEmmit1.Enabled = false | |
3361 | wait(3) | |
3362 | v:Destroy() | |
3363 | dude:Destroy() | |
3364 | end)) | |
3365 | end)) | |
3366 | end | |
3367 | end | |
3368 | end)) | |
3369 | end) | |
3370 | ds() | |
3371 | end | |
3372 | end | |
3373 | ||
3374 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3375 | if SinglePlayer then | |
3376 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
3377 | end | |
3378 | local List = {} | |
3379 | for i, v in pairs(workspace:GetChildren()) do | |
3380 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
3381 | table.insert(List, v) | |
3382 | end | |
3383 | end | |
3384 | return List | |
3385 | end | |
3386 | ||
3387 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
3388 | local type = type | |
3389 | local rng = Instance.new("Part", char) | |
3390 | rng.Anchored = true | |
3391 | rng.BrickColor = color | |
3392 | rng.CanCollide = false | |
3393 | rng.FormFactor = 3 | |
3394 | rng.Name = "Ring" | |
3395 | rng.Material = "Neon" | |
3396 | rng.Size = Vector3.new(1, 1, 1) | |
3397 | rng.Transparency = 0 | |
3398 | rng.TopSurface = 0 | |
3399 | rng.BottomSurface = 0 | |
3400 | rng.CFrame = pos | |
3401 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
3402 | local rngm = Instance.new("SpecialMesh", rng) | |
3403 | rngm.MeshType = MType | |
3404 | rngm.Scale = Vector3.new(x1, y1, z1) | |
3405 | local scaler2 = 1 | |
3406 | local speeder = FastSpeed | |
3407 | if type == "Add" then | |
3408 | scaler2 = 1 * value | |
3409 | elseif type == "Divide" then | |
3410 | scaler2 = 1 / value | |
3411 | end | |
3412 | coroutine.resume(coroutine.create(function() | |
3413 | for i = 0, 10 / bonuspeed, 0.1 do | |
3414 | swait() | |
3415 | if type == "Add" then | |
3416 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
3417 | elseif type == "Divide" then | |
3418 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
3419 | end | |
3420 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
3421 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
3422 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
3423 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
3424 | end | |
3425 | rng:Destroy() | |
3426 | end)) | |
3427 | end | |
3428 | ||
3429 | function SoulSteal(dude) | |
3430 | if dude.Name ~= char then | |
3431 | local bgf = IT("BodyGyro", dude.Head) | |
3432 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
3433 | local val = IT("BoolValue", dude) | |
3434 | val.Name = "IsHit" | |
3435 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
3436 | local soulst = coroutine.wrap(function() | |
3437 | local soul = Instance.new("Part",dude) | |
3438 | soul.Size = Vector3.new(1,1,1) | |
3439 | soul.CanCollide = false | |
3440 | soul.Anchored = false | |
3441 | soul.Position = torso.Position | |
3442 | soul.Transparency = 1 | |
3443 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
3444 | PartEmmit1.LightEmission = 1 | |
3445 | PartEmmit1.Texture = "rbxassetid://569507414" | |
3446 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3447 | PartEmmit1.Rate = 250 | |
3448 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
3449 | PartEmmit1.Size = NumberSequence.new({ | |
3450 | NumberSequenceKeypoint.new(0, 1, 0), | |
3451 | NumberSequenceKeypoint.new(1, 0, 0) | |
3452 | }) | |
3453 | PartEmmit1.Transparency = NumberSequence.new({ | |
3454 | NumberSequenceKeypoint.new(0, 0, 0), | |
3455 | NumberSequenceKeypoint.new(1, 1, 0) | |
3456 | }) | |
3457 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
3458 | PartEmmit1.VelocitySpread = 30000 | |
3459 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
3460 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
3461 | local BodPoss = IT("BodyPosition", soul) | |
3462 | BodPoss.P = 3000 | |
3463 | BodPoss.D = 1000 | |
3464 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3465 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
3466 | wait(1.6) | |
3467 | soul.Touched:connect(function(hit) | |
3468 | if hit.Parent == char then | |
3469 | soul:Destroy() | |
3470 | end | |
3471 | end) | |
3472 | wait(1.2) | |
3473 | while soul do | |
3474 | swait() | |
3475 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3476 | BodPoss.Position = tors.Position | |
3477 | end | |
3478 | end) | |
3479 | soulst() | |
3480 | end | |
3481 | end | |
3482 | function FaceMouse() | |
3483 | local Cam = workspace.CurrentCamera | |
3484 | return { | |
3485 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3486 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3487 | } | |
3488 | end | |
3489 | ||
3490 | function ShowDamage(Pos, Text, Time, Color) | |
3491 | local Rate = (1 / 30) | |
3492 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
3493 | local Text = (Text or "") | |
3494 | local Time = (Time or 2) | |
3495 | local Color = (Color or Color3.new(1, 0, 1)) | |
3496 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
3497 | EffectPart.Anchored = true | |
3498 | local BillboardGui = Create("BillboardGui"){ | |
3499 | Size = UDim2.new(3, 0, 3, 0), | |
3500 | Adornee = EffectPart, | |
3501 | Parent = EffectPart, | |
3502 | } | |
3503 | local TextLabel = Create("TextLabel"){ | |
3504 | BackgroundTransparency = 1, | |
3505 | Size = UDim2.new(1, 0, 1, 0), | |
3506 | Text = Text, | |
3507 | Font = "Bodoni", | |
3508 | TextColor3 = Color, | |
3509 | TextScaled = true, | |
3510 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
3511 | Parent = BillboardGui, | |
3512 | } | |
3513 | game.Debris:AddItem(EffectPart, (Time)) | |
3514 | EffectPart.Parent = game:GetService("Workspace") | |
3515 | delay(0, function() | |
3516 | local Frames = (Time / Rate) | |
3517 | for Frame = 1, Frames do | |
3518 | wait(Rate) | |
3519 | local Percent = (Frame / Frames) | |
3520 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
3521 | TextLabel.TextTransparency = Percent | |
3522 | end | |
3523 | if EffectPart and EffectPart.Parent then | |
3524 | EffectPart:Destroy() | |
3525 | end | |
3526 | end) | |
3527 | end | |
3528 | ||
3529 | ||
3530 | EffectModel = Instance.new("Model", char) | |
3531 | Effects = { | |
3532 | Block = { | |
3533 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
3534 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3535 | prt.Anchored = true | |
3536 | prt.CFrame = cframe | |
3537 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3538 | game:GetService("Debris"):AddItem(prt, 10) | |
3539 | if Type == 1 or Type == nil then | |
3540 | table.insert(Effects, { | |
3541 | prt, | |
3542 | "Block1", | |
3543 | delay, | |
3544 | x3, | |
3545 | y3, | |
3546 | z3, | |
3547 | msh | |
3548 | }) | |
3549 | elseif Type == 2 then | |
3550 | table.insert(Effects, { | |
3551 | prt, | |
3552 | "Block2", | |
3553 | delay, | |
3554 | x3, | |
3555 | y3, | |
3556 | z3, | |
3557 | msh | |
3558 | }) | |
3559 | else | |
3560 | table.insert(Effects, { | |
3561 | prt, | |
3562 | "Block3", | |
3563 | delay, | |
3564 | x3, | |
3565 | y3, | |
3566 | z3, | |
3567 | msh | |
3568 | }) | |
3569 | end | |
3570 | end | |
3571 | }, | |
3572 | Sphere = { | |
3573 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3574 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3575 | prt.Anchored = true | |
3576 | prt.CFrame = cframe | |
3577 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3578 | game:GetService("Debris"):AddItem(prt, 10) | |
3579 | table.insert(Effects, { | |
3580 | prt, | |
3581 | "Cylinder", | |
3582 | delay, | |
3583 | x3, | |
3584 | y3, | |
3585 | z3, | |
3586 | msh | |
3587 | }) | |
3588 | end | |
3589 | }, | |
3590 | Cylinder = { | |
3591 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3592 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3593 | prt.Anchored = true | |
3594 | prt.CFrame = cframe | |
3595 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3596 | game:GetService("Debris"):AddItem(prt, 10) | |
3597 | table.insert(Effects, { | |
3598 | prt, | |
3599 | "Cylinder", | |
3600 | delay, | |
3601 | x3, | |
3602 | y3, | |
3603 | z3, | |
3604 | msh | |
3605 | }) | |
3606 | end | |
3607 | }, | |
3608 | Wave = { | |
3609 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3610 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3611 | prt.Anchored = true | |
3612 | prt.CFrame = cframe | |
3613 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
3614 | game:GetService("Debris"):AddItem(prt, 10) | |
3615 | table.insert(Effects, { | |
3616 | prt, | |
3617 | "Cylinder", | |
3618 | delay, | |
3619 | x3 / 60, | |
3620 | y3 / 60, | |
3621 | z3 / 60, | |
3622 | msh | |
3623 | }) | |
3624 | end | |
3625 | }, | |
3626 | Ring = { | |
3627 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3628 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3629 | prt.Anchored = true | |
3630 | prt.CFrame = cframe | |
3631 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3632 | game:GetService("Debris"):AddItem(prt, 10) | |
3633 | table.insert(Effects, { | |
3634 | prt, | |
3635 | "Cylinder", | |
3636 | delay, | |
3637 | x3, | |
3638 | y3, | |
3639 | z3, | |
3640 | msh | |
3641 | }) | |
3642 | end | |
3643 | }, | |
3644 | Break = { | |
3645 | Create = function(brickcolor, cframe, x1, y1, z1) | |
3646 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
3647 | prt.Anchored = true | |
3648 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
3649 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3650 | local num = math.random(10, 50) / 1000 | |
3651 | game:GetService("Debris"):AddItem(prt, 10) | |
3652 | table.insert(Effects, { | |
3653 | prt, | |
3654 | "Shatter", | |
3655 | num, | |
3656 | prt.CFrame, | |
3657 | math.random() - math.random(), | |
3658 | 0, | |
3659 | math.random(50, 100) / 100 | |
3660 | }) | |
3661 | end | |
3662 | }, | |
3663 | Spiral = { | |
3664 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3665 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3666 | prt.Anchored = true | |
3667 | prt.CFrame = cframe | |
3668 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3669 | game:GetService("Debris"):AddItem(prt, 10) | |
3670 | table.insert(Effects, { | |
3671 | prt, | |
3672 | "Cylinder", | |
3673 | delay, | |
3674 | x3, | |
3675 | y3, | |
3676 | z3, | |
3677 | msh | |
3678 | }) | |
3679 | end | |
3680 | }, | |
3681 | Push = { | |
3682 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
3683 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
3684 | prt.Anchored = true | |
3685 | prt.CFrame = cframe | |
3686 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
3687 | game:GetService("Debris"):AddItem(prt, 10) | |
3688 | table.insert(Effects, { | |
3689 | prt, | |
3690 | "Cylinder", | |
3691 | delay, | |
3692 | x3, | |
3693 | y3, | |
3694 | z3, | |
3695 | msh | |
3696 | }) | |
3697 | end | |
3698 | } | |
3699 | } | |
3700 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
3701 | local fp = IT("Part") | |
3702 | fp.formFactor = formfactor | |
3703 | fp.Parent = parent | |
3704 | fp.Reflectance = reflectance | |
3705 | fp.Transparency = transparency | |
3706 | fp.CanCollide = false | |
3707 | fp.Locked = true | |
3708 | fp.BrickColor = brickcolor | |
3709 | fp.Name = name | |
3710 | fp.Size = size | |
3711 | fp.Position = tors.Position | |
3712 | RemoveOutlines(fp) | |
3713 | fp.Material = "SmoothPlastic" | |
3714 | fp:BreakJoints() | |
3715 | return fp | |
3716 | end | |
3717 | ||
3718 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
3719 | local mesh = IT(Mesh) | |
3720 | mesh.Parent = part | |
3721 | if Mesh == "SpecialMesh" then | |
3722 | mesh.MeshType = meshtype | |
3723 | if meshid ~= "nil" then | |
3724 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
3725 | end | |
3726 | end | |
3727 | mesh.Offset = offset | |
3728 | mesh.Scale = scale | |
3729 | return mesh | |
3730 | end | |
3731 | ||
3732 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
3733 | local type = type | |
3734 | local rng = Instance.new("Part", char) | |
3735 | rng.Anchored = true | |
3736 | rng.BrickColor = color | |
3737 | rng.CanCollide = false | |
3738 | rng.FormFactor = 3 | |
3739 | rng.Name = "Ring" | |
3740 | rng.Material = "Neon" | |
3741 | rng.Size = Vector3.new(1, 1, 1) | |
3742 | rng.Transparency = 0 | |
3743 | rng.TopSurface = 0 | |
3744 | rng.BottomSurface = 0 | |
3745 | rng.CFrame = pos | |
3746 | local rngm = Instance.new("SpecialMesh", rng) | |
3747 | rngm.MeshType = MType | |
3748 | rngm.Scale = scale | |
3749 | local scaler2 = 1 | |
3750 | if type == "Add" then | |
3751 | scaler2 = 1 * value | |
3752 | elseif type == "Divide" then | |
3753 | scaler2 = 1 / value | |
3754 | end | |
3755 | coroutine.resume(coroutine.create(function() | |
3756 | for i = 0, 10 / bonuspeed, 0.1 do | |
3757 | swait() | |
3758 | if type == "Add" then | |
3759 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
3760 | elseif type == "Divide" then | |
3761 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
3762 | end | |
3763 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
3764 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
3765 | end | |
3766 | rng:Destroy() | |
3767 | end)) | |
3768 | end | |
3769 | ||
3770 | function Eviscerate(dude) | |
3771 | if dude.Name ~= char then | |
3772 | local bgf = IT("BodyGyro", dude.Head) | |
3773 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
3774 | local val = IT("BoolValue", dude) | |
3775 | val.Name = "IsHit" | |
3776 | local ds = coroutine.wrap(function() | |
3777 | dude:WaitForChild("Head"):BreakJoints() | |
3778 | wait(0.5) | |
3779 | target = nil | |
3780 | coroutine.resume(coroutine.create(function() | |
3781 | for i, v in pairs(dude:GetChildren()) do | |
3782 | if v:IsA("Accessory") then | |
3783 | v:Destroy() | |
3784 | end | |
3785 | if v:IsA("Humanoid") then | |
3786 | v:Destroy() | |
3787 | end | |
3788 | if v:IsA("CharacterMesh") then | |
3789 | v:Destroy() | |
3790 | end | |
3791 | if v:IsA("Model") then | |
3792 | v:Destroy() | |
3793 | end | |
3794 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3795 | for x, o in pairs(v:GetChildren()) do | |
3796 | if o:IsA("Decal") then | |
3797 | o:Destroy() | |
3798 | end | |
3799 | end | |
3800 | coroutine.resume(coroutine.create(function() | |
3801 | v.Material = "Neon" | |
3802 | v.CanCollide = false | |
3803 | local PartEmmit1 = IT("ParticleEmitter", v) | |
3804 | PartEmmit1.LightEmission = 1 | |
3805 | PartEmmit1.Texture = "rbxassetid://1523916715" | |
3806 | PartEmmit1.Color = ColorSequence.new(Color3.new(0, 0, 0)) | |
3807 | PartEmmit1.Rate = 150 | |
3808 | PartEmmit1.Lifetime = NumberRange.new(1) | |
3809 | PartEmmit1.Size = NumberSequence.new({ | |
3810 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
3811 | NumberSequenceKeypoint.new(1, 0, 0) | |
3812 | }) | |
3813 | PartEmmit1.Transparency = NumberSequence.new({ | |
3814 | NumberSequenceKeypoint.new(0, 0, 0), | |
3815 | NumberSequenceKeypoint.new(1, 1, 0) | |
3816 | }) | |
3817 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
3818 | PartEmmit1.VelocitySpread = 30000 | |
3819 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
3820 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
3821 | local BodPoss = IT("BodyPosition", v) | |
3822 | BodPoss.P = 3000 | |
3823 | BodPoss.D = 1000 | |
3824 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3825 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
3826 | v.Color = maincolor.Color | |
3827 | coroutine.resume(coroutine.create(function() | |
3828 | for i = 0, 49 do | |
3829 | swait(1) | |
3830 | v.Transparency = v.Transparency + 0.08 | |
3831 | end | |
3832 | wait(0.5) | |
3833 | PartEmmit1.Enabled = false | |
3834 | wait(3) | |
3835 | v:Destroy() | |
3836 | dude:Destroy() | |
3837 | end)) | |
3838 | end)) | |
3839 | end | |
3840 | end | |
3841 | end)) | |
3842 | end) | |
3843 | ds() | |
3844 | end | |
3845 | end | |
3846 | ||
3847 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3848 | if SinglePlayer then | |
3849 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
3850 | end | |
3851 | local List = {} | |
3852 | for i, v in pairs(workspace:GetChildren()) do | |
3853 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
3854 | table.insert(List, v) | |
3855 | end | |
3856 | end | |
3857 | return List | |
3858 | end | |
3859 | ||
3860 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
3861 | local type = type | |
3862 | local rng = Instance.new("Part", char) | |
3863 | rng.Anchored = true | |
3864 | rng.BrickColor = color | |
3865 | rng.CanCollide = false | |
3866 | rng.FormFactor = 3 | |
3867 | rng.Name = "Ring" | |
3868 | rng.Material = "Neon" | |
3869 | rng.Size = Vector3.new(1, 1, 1) | |
3870 | rng.Transparency = 0 | |
3871 | rng.TopSurface = 0 | |
3872 | rng.BottomSurface = 0 | |
3873 | rng.CFrame = pos | |
3874 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
3875 | local rngm = Instance.new("SpecialMesh", rng) | |
3876 | rngm.MeshType = MType | |
3877 | rngm.Scale = Vector3.new(x1, y1, z1) | |
3878 | local scaler2 = 1 | |
3879 | local speeder = FastSpeed | |
3880 | if type == "Add" then | |
3881 | scaler2 = 1 * value | |
3882 | elseif type == "Divide" then | |
3883 | scaler2 = 1 / value | |
3884 | end | |
3885 | coroutine.resume(coroutine.create(function() | |
3886 | for i = 0, 10 / bonuspeed, 0.1 do | |
3887 | swait() | |
3888 | if type == "Add" then | |
3889 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
3890 | elseif type == "Divide" then | |
3891 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
3892 | end | |
3893 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
3894 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
3895 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
3896 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
3897 | end | |
3898 | rng:Destroy() | |
3899 | end)) | |
3900 | end | |
3901 | ||
3902 | function SoulSteal(dude) | |
3903 | if dude.Name ~= char then | |
3904 | local bgf = IT("BodyGyro", dude.Head) | |
3905 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
3906 | local val = IT("BoolValue", dude) | |
3907 | val.Name = "IsHit" | |
3908 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
3909 | local soulst = coroutine.wrap(function() | |
3910 | local soul = Instance.new("Part",dude) | |
3911 | soul.Size = Vector3.new(1,1,1) | |
3912 | soul.CanCollide = false | |
3913 | soul.Anchored = false | |
3914 | soul.Position = torso.Position | |
3915 | soul.Transparency = 1 | |
3916 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
3917 | PartEmmit1.LightEmission = 1 | |
3918 | PartEmmit1.Texture = "rbxassetid://569507414" | |
3919 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3920 | PartEmmit1.Rate = 250 | |
3921 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
3922 | PartEmmit1.Size = NumberSequence.new({ | |
3923 | NumberSequenceKeypoint.new(0, 1, 0), | |
3924 | NumberSequenceKeypoint.new(1, 0, 0) | |
3925 | }) | |
3926 | PartEmmit1.Transparency = NumberSequence.new({ | |
3927 | NumberSequenceKeypoint.new(0, 0, 0), | |
3928 | NumberSequenceKeypoint.new(1, 1, 0) | |
3929 | }) | |
3930 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
3931 | PartEmmit1.VelocitySpread = 30000 | |
3932 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
3933 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
3934 | local BodPoss = IT("BodyPosition", soul) | |
3935 | BodPoss.P = 3000 | |
3936 | BodPoss.D = 1000 | |
3937 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3938 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
3939 | wait(1.6) | |
3940 | soul.Touched:connect(function(hit) | |
3941 | if hit.Parent == char then | |
3942 | soul:Destroy() | |
3943 | end | |
3944 | end) | |
3945 | wait(1.2) | |
3946 | while soul do | |
3947 | swait() | |
3948 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
3949 | BodPoss.Position = tors.Position | |
3950 | end | |
3951 | end) | |
3952 | soulst() | |
3953 | end | |
3954 | end | |
3955 | function FaceMouse() | |
3956 | local Cam = workspace.CurrentCamera | |
3957 | return { | |
3958 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3959 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3960 | } | |
3961 | end | |
3962 | ------------------------------------------------------- | |
3963 | --End Effect Function-- | |
3964 | ------------------------------------------------------- | |
3965 | ------------------------------------------------------- | |
3966 | --End Important Functions-- | |
3967 | ------------------------------------------------------- | |
3968 | ||
3969 | ||
3970 | ------------------------------------------------------- | |
3971 | --Start Customization-- | |
3972 | ------------------------------------------------------- | |
3973 | local Player_Size = 1 | |
3974 | if Player_Size ~= 1 then | |
3975 | root.Size = root.Size * Player_Size | |
3976 | tors.Size = tors.Size * Player_Size | |
3977 | hed.Size = hed.Size * Player_Size | |
3978 | ra.Size = ra.Size * Player_Size | |
3979 | la.Size = la.Size * Player_Size | |
3980 | rl.Size = rl.Size * Player_Size | |
3981 | ll.Size = ll.Size * Player_Size | |
3982 | ---------------------------------------------------------------------------------- | |
3983 | rootj.Parent = root | |
3984 | neck.Parent = tors | |
3985 | RW.Parent = tors | |
3986 | LW.Parent = tors | |
3987 | RH.Parent = tors | |
3988 | LH.Parent = tors | |
3989 | ---------------------------------------------------------------------------------- | |
3990 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
3991 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
3992 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
3993 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
3994 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
3995 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
3996 | ---------------------------------------------------------------------------------- | |
3997 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
3998 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
3999 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
4000 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
4001 | --hat.Parent = Character | |
4002 | end | |
4003 | ---------------------------------------------------------------------------------- | |
4004 | local equipped = false | |
4005 | local idle = 0 | |
4006 | local change = 1 | |
4007 | local val = 0 | |
4008 | local toim = 0 | |
4009 | local idleanim = 0.4 | |
4010 | local sine = 0 | |
4011 | local Sit = 1 | |
4012 | ---------------------------------------------------------------------------------- | |
4013 | hum.WalkSpeed = 8 | |
4014 | hum.JumpPower = 57 | |
4015 | hum.Animator.Parent = nil | |
4016 | ---------------------------------------------------------------------------------- | |
4017 | ||
4018 | ------------------------------------------------------- | |
4019 | --End Customization-- | |
4020 | ------------------------------------------------------- | |
4021 | ||
4022 | ||
4023 | ------------------------------------------------------- | |
4024 | --Start Attacks N Stuff-- | |
4025 | ------------------------------------------------------- | |
4026 | local naeeym2 = Instance.new("BillboardGui",char) | |
4027 | naeeym2.AlwaysOnTop = true | |
4028 | naeeym2.Size = UDim2.new(5,35,2,35) | |
4029 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
4030 | naeeym2.Adornee = hed | |
4031 | naeeym2.Name = "Name" | |
4032 | ||
4033 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
4034 | tecks2.BackgroundTransparency = 1 | |
4035 | tecks2.TextScaled = true | |
4036 | tecks2.BorderSizePixel = 0 | |
4037 | tecks2.Text = "Lost Nahid Well This IS It" | |
4038 | tecks2.Font = "Garamond" | |
4039 | tecks2.TextSize = 30 | |
4040 | tecks2.TextStrokeTransparency = 0 | |
4041 | tecks2.TextColor3 = BrickColor.new('Pastel Blue').Color | |
4042 | tecks2.TextStrokeColor3 = BrickColor.new('Really bue').Color | |
4043 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
4044 | tecks2.Parent = naeeym2 | |
4045 | textfag = tecks2 | |
4046 | tecks2.Text = "Edited by HeavyThePootisMan333 and made by Makhail07 FE code by Mokiros and fixed by saba1520/kisslarge" | |
4047 | wait(2) | |
4048 | tecks2.Text = "dont leak or die" | |
4049 | wait(1) | |
4050 | tecks2.Text = "Lost Nahid" | |
4051 | - | tecks2.Text = "im dead" |
4051 | + | |
4052 | while textfag ~= nil do | |
4053 | swait() | |
4054 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
4055 | textfag.Rotation = math.random(-3,3) | |
4056 | end | |
4057 | end)) | |
4058 | ||
4059 | ||
4060 | function chatfunc(text, color) | |
4061 | local chat = coroutine.wrap(function() | |
4062 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
4063 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
4064 | - | tecks2.Text = "ultimate Poot" |
4064 | + | |
4065 | local naeeym2 = Instance.new("BillboardGui", char) | |
4066 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
4067 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
4068 | naeeym2.Adornee = hed | |
4069 | naeeym2.Name = "TalkingBillBoard" | |
4070 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
4071 | tecks2.BackgroundTransparency = 1 | |
4072 | tecks2.BorderSizePixel = 0 | |
4073 | tecks2.Text = "" | |
4074 | tecks2.Font = "SciFi" | |
4075 | tecks2.TextSize = 30 | |
4076 | tecks2.TextStrokeTransparency = 0 | |
4077 | tecks2.TextColor3 = color | |
4078 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
4079 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
4080 | local tecks3 = Instance.new("TextLabel", naeeym2) | |
4081 | tecks3.BackgroundTransparency = 1 | |
4082 | tecks3.BorderSizePixel = 0 | |
4083 | tecks3.Text = "" | |
4084 | tecks3.Font = "SciFi" | |
4085 | tecks3.TextSize = 30 | |
4086 | tecks3.TextStrokeTransparency = 0 | |
4087 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
4088 | tecks3.TextStrokeColor3 = color | |
4089 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
4090 | coroutine.resume(coroutine.create(function() | |
4091 | while true do | |
4092 | swait(1) | |
4093 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
4094 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
4095 | tecks2.Rotation = math.random(-5, 5) | |
4096 | tecks3.Rotation = math.random(-5, 5) | |
4097 | end | |
4098 | end)) | |
4099 | for i = 1, string.len(text) do | |
4100 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
4101 | tecks2.Text = string.sub(text, 1, i) | |
4102 | tecks3.Text = string.sub(text, 1, i) | |
4103 | swait(1) | |
4104 | end | |
4105 | wait(1) | |
4106 | local randomrot = math.random(1, 2) | |
4107 | if randomrot == 1 then | |
4108 | for i = 1, 50 do | |
4109 | swait() | |
4110 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
4111 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
4112 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
4113 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
4114 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
4115 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
4116 | end | |
4117 | elseif randomrot == 2 then | |
4118 | for i = 1, 50 do | |
4119 | swait() | |
4120 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
4121 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
4122 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
4123 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
4124 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
4125 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
4126 | end | |
4127 | end | |
4128 | naeeym2:Destroy() | |
4129 | end) | |
4130 | chat() | |
4131 | end | |
4132 | ---------- | |
4133 | function Taunt1() | |
4134 | attack = true | |
4135 | hum.WalkSpeed = 0 | |
4136 | chatfunc("hello good sir", BrickColor.new("Really black").Color) | |
4137 | CFuncs.Sound.Create("rbxassetid://138130777", head, 100, 1) | |
4138 | for i = 0, 9, 0.1 do | |
4139 | swait() | |
4140 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(0)), 0.15) | |
4141 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4142 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(0), Rad(78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(15)), 0.15) | |
4143 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-78), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-15)), 0.15) | |
4144 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12) | |
4145 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4146 | end | |
4147 | attack = false | |
4148 | hum.WalkSpeed = 10 | |
4149 | end | |
4150 | function Taunt2() | |
4151 | attack = true | |
4152 | hum.WalkSpeed = 0 | |
4153 | chatfunc("-Laugh-", BrickColor.new("Really black").Color) | |
4154 | CFuncs.Sound.Create("rbxassetid://221057812", head, 100, 1) | |
4155 | for i = 0, 2, 0.1 do | |
4156 | swait() | |
4157 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
4158 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4159 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4160 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4161 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
4162 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4163 | end | |
4164 | for i = 0, 6, 0.1 do | |
4165 | swait() | |
4166 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
4167 | - | chatfunc("wth what are you doing", BrickColor.new("Really black").Color) |
4167 | + | |
4168 | - | CFuncs.Sound.Create("rbxassetid://609247669", head, 100, 1) |
4168 | + | |
4169 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4170 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4171 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
4172 | end | |
4173 | for i = 0, 2, 0.1 do | |
4174 | swait() | |
4175 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
4176 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4177 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4178 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4179 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
4180 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4181 | end | |
4182 | attack = false | |
4183 | hum.WalkSpeed = 10 | |
4184 | end | |
4185 | function DANCEFORME2() | |
4186 | print("Hehehe") | |
4187 | chatfunc("Nothing Like This....", BrickColor.new("Really black").Color) | |
4188 | CreateSound("1092048938", hed, 10, 1) | |
4189 | attack = true | |
4190 | repeat | |
4191 | for i = 0, 2.6, 0.1 do | |
4192 | swait() | |
4193 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
4194 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1) | |
4195 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4196 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4197 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1) | |
4198 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1) | |
4199 | end | |
4200 | - | print("oh shit rip!!!!!._.") |
4200 | + | |
4201 | - | chatfunc("party!!", BrickColor.new("Really black").Color) |
4201 | + | |
4202 | - | CreateSound("1458638152", hed, 10, 1) |
4202 | + | |
4203 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1) | |
4204 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4205 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4206 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
4207 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
4208 | end | |
4209 | for i = 0, 2.6, 0.1 do | |
4210 | swait() | |
4211 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -0.7 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
4212 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45), Rad(0), Rad(0)), 0.1) | |
4213 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4214 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -.5 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.2 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4215 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(25 + 4.5 * Sin(sine / 12))), 0.1) | |
4216 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 12))), 0.1) | |
4217 | end | |
4218 | for i = 0, 2.6, 0.1 do | |
4219 | swait() | |
4220 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-8 - 2.5 * Sin(sine / 24)), Rad(0)), 0.1) | |
4221 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1) | |
4222 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4223 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1.3 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1) | |
4224 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1) | |
4225 | LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1) | |
4226 | end | |
4227 | until Playing == false | |
4228 | MERKIO2:Stop() | |
4229 | attack = false | |
4230 | hum.WalkSpeed = 16 | |
4231 | end | |
4232 | ||
4233 | function Eyeyeyeyeyeyey_Slammo() | |
4234 | attack = true | |
4235 | hum.WalkSpeed = 0 | |
4236 | local Blobby = IT("Part", char) | |
4237 | Blobby.Name = "Blob" | |
4238 | Blobby.CanCollide = false | |
4239 | Blobby.BrickColor = BrickC("Really black") | |
4240 | Blobby.Transparency = 0 | |
4241 | Blobby.Material = "Plastic" | |
4242 | Blobby.Size = Vector3.new(1, 1, 2) | |
4243 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
4244 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
4245 | ||
4246 | local Weld = IT("Weld", Blobby) | |
4247 | Weld.Part0 = hed | |
4248 | Weld.Part1 = Blobby | |
4249 | Weld.C1 = CF(0, -17.6, 1.4) | |
4250 | Weld.C0 = angles(Rad(0),0,0) | |
4251 | ||
4252 | local M2 = IT("SpecialMesh") | |
4253 | M2.Parent = Blobby | |
4254 | M2.MeshId = "http://www.roblox.com/asset/?id=120607730" | |
4255 | M2.TextureId = "http://www.roblox.com/asset/?id=1032770833" | |
4256 | M2.Scale = Vector3.new(3.3, 3.3, 3.3) | |
4257 | CFuncs.Sound.Create("rbxassetid://135925117", head, 100, 1) | |
4258 | for i = 0, 6, 0.1 do | |
4259 | swait() | |
4260 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.2) | |
4261 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4262 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4263 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
4264 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12) | |
4265 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12) | |
4266 | end | |
4267 | Magic(1, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
4268 | Magic(5, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
4269 | Magic(10, "Add", root.CFrame * CF(0, -1.9, -20), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
4270 | for i, v in pairs(FindNearestHead(root.CFrame.p, 25.5)) do | |
4271 | if v:FindFirstChild("Head") then | |
4272 | Eviscerate(v) | |
4273 | end | |
4274 | end | |
4275 | for i = 0, 6, 0.1 do | |
4276 | swait() | |
4277 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(90 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
4278 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
4279 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(90)), 0.15) | |
4280 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.3 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-90)), 0.15) | |
4281 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12) | |
4282 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12) | |
4283 | end | |
4284 | Blobby:Destroy() | |
4285 | attack = false | |
4286 | hum.WalkSpeed = 10 | |
4287 | end | |
4288 | function LimitlessDivinity() | |
4289 | for i = 0, 2, 0.1 do | |
4290 | swait() | |
4291 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
4292 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4293 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4294 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4295 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(65 - 4.5 * Sin(sine / 20))), 0.3) | |
4296 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(-65 + 4.5 * Sin(sine / 20))), 0.3) | |
4297 | end | |
4298 | local p = Instance.new("Part",char) | |
4299 | p.Anchored = true | |
4300 | p.Size = Vector3.new(0.1,0.1,0.1) | |
4301 | p.BrickColor = BrickC("Really black") | |
4302 | p.Material = "Neon" | |
4303 | p.CFrame = CFrame.new(mouse.Hit.p) | |
4304 | local m = Instance.new("SpecialMesh",p) | |
4305 | m.MeshType = "Sphere" | |
4306 | m.Scale = Vector3.new(80,80,80) | |
4307 | Magic(3, "Add", p.CFrame, Vector3.new(8, 8, 8), 0.15, BrickC("Really black"), "Sphere") | |
4308 | CFuncs["Sound"].Create("rbxassetid://183763506", p, 10, 0.5) | |
4309 | for i = 1, 100 do | |
4310 | swait() | |
4311 | Aura(2.5,-0.5,"Add", p.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-0.025,BrickC("Really black"),25, "Sphere") | |
4312 | m.Scale = m.Scale + Vector3.new(1,1,1) | |
4313 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
4314 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4315 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4316 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4317 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(65 - 4.5 * Sin(sine / 20))), 0.3) | |
4318 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(-65 + 4.5 * Sin(sine / 20))), 0.3) | |
4319 | end | |
4320 | for i = 1,10 do | |
4321 | swait() | |
4322 | m.Scale = m.Scale - Vector3.new(16,16,16) | |
4323 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
4324 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4325 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4326 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4327 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(65 - 4.5 * Sin(sine / 20))), 0.3) | |
4328 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(-65 + 4.5 * Sin(sine / 20))), 0.3) | |
4329 | end | |
4330 | for i = 1,100 do | |
4331 | Aura(5,10,"Add",p.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.2,BrickC("Really black"),0, "Sphere") | |
4332 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
4333 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4334 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4335 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4336 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(65 - 4.5 * Sin(sine / 20))), 0.3) | |
4337 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(-65 + 4.5 * Sin(sine / 20))), 0.3) | |
4338 | end | |
4339 | Magic(1, "Add", p.CFrame, Vector3.new(50, 100, 50), 4, BrickC("Really black"), "Sphere") | |
4340 | Magic(1, "Add", p.CFrame, Vector3.new(30, 60, 30), 4, BrickC("Really black"), "Sphere") | |
4341 | Magic(1, "Add", p.CFrame, Vector3.new(3, 600, 3), 4, BrickC("Really black"), "Sphere") | |
4342 | MagniDamage(p, 60, 50, 100, 0, "Normal") | |
4343 | CFuncs["Sound"].Create("rbxassetid://138213851", p, 2,1.2) | |
4344 | CFuncs["Sound"].Create("rbxassetid://239000203", p, 2,1.2) | |
4345 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 3,1.05) | |
4346 | p.Transparency = 1 | |
4347 | end | |
4348 | function NebulaticManiac() | |
4349 | attack = true | |
4350 | hum.WalkSpeed = 0 | |
4351 | for i = 0,1.2,0.1 do | |
4352 | swait() | |
4353 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
4354 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4355 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
4356 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
4357 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
4358 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1) | |
4359 | end | |
4360 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4361 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4362 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
4363 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
4364 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere") | |
4365 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Really black"), "Sphere") | |
4366 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Really black"), "Sphere") | |
4367 | ||
4368 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
4369 | if v:FindFirstChild("Head") then | |
4370 | Eviscerate(v) | |
4371 | end | |
4372 | end | |
4373 | ||
4374 | for i = 1,4.7,0.1 do | |
4375 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4376 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
4377 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
4378 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
4379 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
4380 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
4381 | end | |
4382 | wait(.6) | |
4383 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4384 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4385 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
4386 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
4387 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere") | |
4388 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Toothpaste"), "Sphere") | |
4389 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01,BrickColor.new("Really black"), "Sphere") | |
4390 | ||
4391 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
4392 | if v:FindFirstChild("Head") then | |
4393 | Eviscerate(v) | |
4394 | end | |
4395 | end | |
4396 | ||
4397 | for i = 1,4.7,0.1 do | |
4398 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4399 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
4400 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
4401 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
4402 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
4403 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
4404 | end | |
4405 | wait(.6) | |
4406 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4407 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4408 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
4409 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
4410 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere") | |
4411 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Really black"), "Sphere") | |
4412 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Really black"), "Sphere") | |
4413 | ||
4414 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
4415 | if v:FindFirstChild("Head") then | |
4416 | Eviscerate(v) | |
4417 | end | |
4418 | end | |
4419 | ||
4420 | for i = 1,4.7,0.1 do | |
4421 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4422 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
4423 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
4424 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
4425 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
4426 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
4427 | end | |
4428 | wait(.6) | |
4429 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4430 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
4431 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
4432 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
4433 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere") | |
4434 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Toothpaste"), "Sphere") | |
4435 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Really black"), "Sphere") | |
4436 | ||
4437 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
4438 | if v:FindFirstChild("Head") then | |
4439 | Eviscerate(v) | |
4440 | end | |
4441 | end | |
4442 | ||
4443 | for i = 1,4.7,0.1 do | |
4444 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
4445 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
4446 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
4447 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
4448 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
4449 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
4450 | end | |
4451 | wait(.6) | |
4452 | attack = false | |
4453 | hum.WalkSpeed = 8 | |
4454 | end | |
4455 | function THUNDERCLAP() | |
4456 | attack = true | |
4457 | ||
4458 | for i = 0, 15, 0.1 do | |
4459 | swait() | |
4460 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3) | |
4461 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4462 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4463 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4464 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(65 - 4.5 * Sin(sine / 20))), 0.3) | |
4465 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(Mrandom(-15, 15)), Rad(-65 + 4.5 * Sin(sine / 20))), 0.3) | |
4466 | end | |
4467 | CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1) | |
4468 | ||
4469 | for i = 0, 7, 0.1 do | |
4470 | swait() | |
4471 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
4472 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4473 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4474 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4475 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(45 - 4.5 * Sin(sine / 20))), 0.3) | |
4476 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(-45 + 4.5 * Sin(sine / 20))), 0.3) | |
4477 | end | |
4478 | ||
4479 | Magic(1, "Add", root.CFrame, Vector3.new(50, 100, 50), 4, BrickC("Really black"), "Sphere") | |
4480 | Magic(1, "Add", root.CFrame, Vector3.new(30, 60, 30), 4, BrickC("Really black"), "Sphere") | |
4481 | Magic(1, "Add", root.CFrame, Vector3.new(3, 600, 3), 4, BrickC("Really black"), "Sphere") | |
4482 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 500000)) do | |
4483 | if v:FindFirstChild("Head") then | |
4484 | Eviscerate(v) | |
4485 | end | |
4486 | end | |
4487 | CFuncs["Sound"].Create("rbxassetid://138213851", char, 2,1.2) | |
4488 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,1.2) | |
4489 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 3,1.05) | |
4490 | for i = 0, 7, 0.1 do | |
4491 | swait() | |
4492 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3) | |
4493 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(0)), 0.3) | |
4494 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
4495 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
4496 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(-45 - 4.5 * Sin(sine / 20))), 0.3) | |
4497 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(45 + 4.5 * Sin(sine / 20))), 0.3) | |
4498 | end | |
4499 | attack = false | |
4500 | end | |
4501 | function Call_Upon_The_Eyes() | |
4502 | attack = true | |
4503 | hum.WalkSpeed = 0 | |
4504 | for i = 0, 6, 0.1 do | |
4505 | swait() | |
4506 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4507 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4508 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
4509 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
4510 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
4511 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4512 | end | |
4513 | Magic(5, "Add", Mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
4514 | Magic(10, "Add", Mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
4515 | Magic(1, "Add", Mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
4516 | Magic(1, "Add", Mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
4517 | ||
4518 | for i, v in pairs(FindNearestHead(Mouse.Hit.p, 14.5)) do | |
4519 | if v:FindFirstChild("Head") then | |
4520 | Eviscerate(v) | |
4521 | end | |
4522 | end | |
4523 | for i = 0, 6, 0.1 do | |
4524 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4525 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4526 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
4527 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
4528 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.2) | |
4529 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
4530 | end | |
4531 | attack = false | |
4532 | hum.WalkSpeed = 10 | |
4533 | end | |
4534 | function Painful_Stomp() | |
4535 | attack = true | |
4536 | for i = 0,5.2,0.1 do | |
4537 | swait() | |
4538 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
4539 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4540 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
4541 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
4542 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
4543 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
4544 | end | |
4545 | ||
4546 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
4547 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
4548 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
4549 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
4550 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
4551 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
4552 | Effects.Ring.Create(BrickColor.Random(), root.CFrame * CF(0, -1.7, 0) * angles(Rad(90),Rad(0),Rad(0)), 2, 2, 2, 8.6, 8.6, 8.6, 0.03) | |
4553 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
4554 | if v:FindFirstChild("Head") then | |
4555 | Eviscerate(v) | |
4556 | end | |
4557 | end | |
4558 | coroutine.resume(coroutine.create(function() | |
4559 | for i = 0,2.8,0.1 do | |
4560 | swait() | |
4561 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
4562 | end | |
4563 | for i = 0,1.8,0.1 do | |
4564 | swait() | |
4565 | hum.CameraOffset = Vector3.new(0,0,0) | |
4566 | end | |
4567 | end)) | |
4568 | for i = 0,3.7,0.1 do | |
4569 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
4570 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4571 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
4572 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
4573 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
4574 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
4575 | end | |
4576 | wait(.6) | |
4577 | attack = false | |
4578 | end | |
4579 | function ShutTheHellUp() | |
4580 | chatfunc("Go Away", BrickColor.new("Really black").Color) | |
4581 | attack = true | |
4582 | hum.WalkSpeed = 2.01 | |
4583 | CFuncs.Sound.Create("rbxassetid://137231742", head, 10, 1) | |
4584 | for i = 0,3,0.1 do | |
4585 | swait() | |
4586 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4587 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
4588 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4589 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4590 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4591 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4592 | end | |
4593 | for i = 0,1.2,0.1 do | |
4594 | - | chatfunc("you suck..", BrickColor.new("Really black").Color) |
4594 | + | |
4595 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4596 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
4597 | - | CFuncs.Sound.Create("rbxassetid://1058417264", head, 10, 1) |
4597 | + | |
4598 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4599 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4600 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4601 | end | |
4602 | for i = 0,1.2,0.1 do | |
4603 | swait() | |
4604 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4605 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
4606 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4607 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4608 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4609 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4610 | end | |
4611 | for i = 0,1.2,0.1 do | |
4612 | swait() | |
4613 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4614 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
4615 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4616 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4617 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4618 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4619 | end | |
4620 | for i = 0,1.2,0.1 do | |
4621 | swait() | |
4622 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.2) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4623 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3) | |
4624 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4625 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4626 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4627 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4628 | end | |
4629 | for i = 0,2,0.1 do | |
4630 | swait() | |
4631 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4632 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
4633 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4634 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4635 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(120), Rad(0), Rad(5)), 0.1) | |
4636 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4637 | end | |
4638 | for i = 0,2,0.1 do | |
4639 | swait() | |
4640 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
4641 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3) | |
4642 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4643 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
4644 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1) | |
4645 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1) | |
4646 | end | |
4647 | hum.WalkSpeed = 16 | |
4648 | attack = false | |
4649 | end | |
4650 | function GlitchedHell() | |
4651 | chatfunc("poot", BrickColor.new("Really white").Color) | |
4652 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
4653 | local HITBODY = mouse.Target.Parent | |
4654 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso") | |
4655 | local HEAD = HITBODY:FindFirstChild("Head") | |
4656 | local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
4657 | if TORS ~= nil and HUMAN ~= nil then | |
4658 | attack = true | |
4659 | hum.WalkSpeed = 0 | |
4660 | root.CFrame = TORS.CFrame * CFrame.new(-1,0,3) | |
4661 | TORS.Anchored = true | |
4662 | CreateSound("333430981", hed, 5, 1) | |
4663 | for i = 1, 25 do | |
4664 | swait() | |
4665 | for _,v in next, char:GetDescendants() do | |
4666 | if(v:IsA'DataModelMesh')then | |
4667 | v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200) | |
4668 | end | |
4669 | end | |
4670 | end | |
4671 | ||
4672 | for _,v in next, char:GetDescendants() do | |
4673 | if(v:IsA'DataModelMesh')then | |
4674 | v.Offset = Vector3.new(0,0,0) | |
4675 | end | |
4676 | end | |
4677 | for i = 0, 1.2, 0.1 do | |
4678 | swait() | |
4679 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3) | |
4680 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
4681 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1) | |
4682 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
4683 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3) | |
4684 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3) | |
4685 | end | |
4686 | wait(.5) | |
4687 | for i = 0, 2.2, 0.1 do | |
4688 | swait() | |
4689 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3) | |
4690 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
4691 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1) | |
4692 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
4693 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
4694 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
4695 | end | |
4696 | ||
4697 | for i = 0, 1.2, 0.1 do | |
4698 | swait() | |
4699 | rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3) | |
4700 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
4701 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1) | |
4702 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3) | |
4703 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3) | |
4704 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3) | |
4705 | end | |
4706 | end | |
4707 | CreateSound("180083298", hed, 10, 1) | |
4708 | attack = false | |
4709 | HITBODY:BreakJoints() | |
4710 | TORS:Remove() | |
4711 | TORS.Anchored = false | |
4712 | attack = false | |
4713 | hum.WalkSpeed = 16 | |
4714 | end | |
4715 | end | |
4716 | function GlitchedTeleport() | |
4717 | CanUse = false | |
4718 | CreateSound("333430981", hed, 5, 1) | |
4719 | for i = 1, 25 do | |
4720 | swait() | |
4721 | ||
4722 | for _,v in next, char:GetDescendants() do | |
4723 | if(v:IsA'DataModelMesh')then | |
4724 | v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200) | |
4725 | end | |
4726 | end | |
4727 | end | |
4728 | ||
4729 | for _,v in next, char:GetDescendants() do | |
4730 | if(v:IsA'DataModelMesh')then | |
4731 | v.Offset = Vector3.new(0,0,0) | |
4732 | end | |
4733 | end | |
4734 | wait(.5) | |
4735 | root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position) | |
4736 | CreateSound("289556450", hed, 10, 1) | |
4737 | for i = 1, 60 do | |
4738 | swait() | |
4739 | ||
4740 | for _,v in next, char:GetDescendants() do | |
4741 | if(v:IsA'DataModelMesh')then | |
4742 | v.Offset = Vector3.new(math.random(-500,500)/200,math.random(-500,500)/200,math.random(-500,500)/200) | |
4743 | end | |
4744 | end | |
4745 | end | |
4746 | ||
4747 | for _,v in next, char:GetDescendants() do | |
4748 | if(v:IsA'DataModelMesh')then | |
4749 | v.Offset = Vector3.new(0,0,0) | |
4750 | end | |
4751 | end | |
4752 | wait(1) | |
4753 | CanUse = true | |
4754 | end | |
4755 | function Up_High_Noon() | |
4756 | print("Oh Man") | |
4757 | chatfunc("Jeez...", BrickColor.new("Pastel Blue").Color) | |
4758 | attack = true | |
4759 | CFuncs.Sound.Create("rbxassetid://0", head, 100, 1) | |
4760 | local orb = Instance.new("Part", char) | |
4761 | orb.Anchored = true | |
4762 | orb.BrickColor = BrickC("Really black") | |
4763 | orb.CanCollide = false | |
4764 | orb.FormFactor = 3 | |
4765 | orb.Name = "Ring" | |
4766 | orb.Material = "Neon" | |
4767 | orb.Size = Vector3.new(1, 1, 1) | |
4768 | orb.Transparency = 0 | |
4769 | orb.TopSurface = 0 | |
4770 | - | print("Oh fuck") |
4770 | + | |
4771 | - | chatfunc("poot ball", BrickColor.new("Pastel Blue").Color) |
4771 | + | |
4772 | orbm.MeshType = "Sphere" | |
4773 | orbm.Name = "SizeMesh" | |
4774 | orbm.Scale = Vector3.new(0, 0, 0) | |
4775 | local scaled = 0.1 | |
4776 | local posid = 0 | |
4777 | for i = 0, 109, 0.1 do | |
4778 | swait() | |
4779 | scaled = scaled + 0.001 | |
4780 | posid = posid - scaled | |
4781 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
4782 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
4783 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
4784 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2) | |
4785 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4786 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4787 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(180)), 0.2) | |
4788 | LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2) | |
4789 | end | |
4790 | coroutine.resume(coroutine.create(function() | |
4791 | orb.Anchored = false | |
4792 | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) | |
4793 | local a = Instance.new("Part", workspace) | |
4794 | a.Name = "Direction" | |
4795 | a.Anchored = true | |
4796 | a.BrickColor = BrickC("Bright red") | |
4797 | a.Material = "Neon" | |
4798 | a.Transparency = 1 | |
4799 | a.CanCollide = false | |
4800 | local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500) | |
4801 | local ignore = orb | |
4802 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4803 | a.BottomSurface = 10 | |
4804 | a.TopSurface = 10 | |
4805 | local distance = (orb.CFrame.p - position).magnitude | |
4806 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
4807 | a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0) | |
4808 | orb.CFrame = a.CFrame | |
4809 | a:Destroy() | |
4810 | local bv = Instance.new("BodyVelocity") | |
4811 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
4812 | bv.velocity = orb.CFrame.lookVector * 125 | |
4813 | bv.Parent = orb | |
4814 | local hitted = false | |
4815 | game:GetService("Debris"):AddItem(orb, 15) | |
4816 | wait() | |
4817 | local hit = orb.Touched:connect(function(hit) | |
4818 | if hitted == false then | |
4819 | hitted = true | |
4820 | coroutine.resume(coroutine.create(function() | |
4821 | for i = 0,1.8,0.1 do | |
4822 | swait() | |
4823 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
4824 | end | |
4825 | for i = 0,1.8,0.1 do | |
4826 | swait() | |
4827 | hum.CameraOffset = Vector3.new(0,0,0) | |
4828 | end | |
4829 | end)) | |
4830 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
4831 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do | |
4832 | if v:FindFirstChild("Head") then | |
4833 | Eviscerate(v) | |
4834 | end | |
4835 | end | |
4836 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere") | |
4837 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere") | |
4838 | for i = 0, 9 do | |
4839 | --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
4840 | --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
4841 | end | |
4842 | orb.Anchored = true | |
4843 | orb.Transparency = 1 | |
4844 | wait(8) | |
4845 | orb:Destroy() | |
4846 | end | |
4847 | end) | |
4848 | end)) | |
4849 | for i = 0, 6, 0.1 do | |
4850 | swait() | |
4851 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
4852 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2) | |
4853 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4854 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4855 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2) | |
4856 | LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2) | |
4857 | end | |
4858 | attack = false | |
4859 | end | |
4860 | function EndMySufferingV2() | |
4861 | chatfunc("Suffering Superior DAB", BrickColor.new("Really black").Color) | |
4862 | attack = true | |
4863 | hum.WalkSpeed = 1.01 | |
4864 | CreateSound("577475178", hed, 10, 1) | |
4865 | for i = 0,18,0.1 do | |
4866 | swait() | |
4867 | rootj.C0=clerp(rootj.C0,RootCF*CF(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(15),math.rad(-10),math.rad(0)),0.15) | |
4868 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
4869 | RH.C0=clerp(RH.C0,CF(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15) | |
4870 | LH.C0=clerp(LH.C0,CF(-1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(-20)),0.15) | |
4871 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5+0.1*math.sin(sine/30), -0.6) * angles(math.rad(-0), math.rad(10), math.rad(-110)), 0.1) | |
4872 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(-0), math.rad(-10), math.rad(-105)), 0.1) | |
4873 | end | |
4874 | attack = false | |
4875 | - | chatfunc("Dab.", BrickColor.new("Really black").Color) |
4875 | + | |
4876 | end | |
4877 | function High_Noon() | |
4878 | print("poot poot") | |
4879 | chatfunc("I Hope You Vanish", BrickColor.new("Pastel Blue").Color) | |
4880 | attack = true | |
4881 | CFuncs.Sound.Create("rbxassetid://0", head, 100, 1) | |
4882 | local orb = Instance.new("Part", char) | |
4883 | orb.Anchored = true | |
4884 | orb.BrickColor = BrickC("Really black") | |
4885 | orb.CanCollide = false | |
4886 | orb.FormFactor = 3 | |
4887 | orb.Name = "Ring" | |
4888 | orb.Material = "Neon" | |
4889 | orb.Size = Vector3.new(1, 1, 1) | |
4890 | orb.Transparency = 0 | |
4891 | orb.TopSurface = 0 | |
4892 | orb.BottomSurface = 0 | |
4893 | - | chatfunc("poot ball", BrickColor.new("Pastel Blue").Color) |
4893 | + | |
4894 | orbm.MeshType = "Sphere" | |
4895 | orbm.Name = "SizeMesh" | |
4896 | orbm.Scale = Vector3.new(0, 0, 0) | |
4897 | local scaled = 0.1 | |
4898 | local posid = 0 | |
4899 | for i = 0, 109, 0.1 do | |
4900 | swait() | |
4901 | scaled = scaled + 0.001 | |
4902 | --posid = posid - scaled | |
4903 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
4904 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
4905 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
4906 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2) | |
4907 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4908 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4909 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 0.2) | |
4910 | LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2) | |
4911 | end | |
4912 | coroutine.resume(coroutine.create(function() | |
4913 | orb.Anchored = false | |
4914 | --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) | |
4915 | local a = Instance.new("Part", workspace) | |
4916 | a.Name = "Direction" | |
4917 | a.Anchored = true | |
4918 | a.BrickColor = BrickC("Bright red") | |
4919 | a.Material = "Neon" | |
4920 | a.Transparency = 1 | |
4921 | a.CanCollide = false | |
4922 | local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500) | |
4923 | local ignore = orb | |
4924 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4925 | a.BottomSurface = 10 | |
4926 | a.TopSurface = 10 | |
4927 | local distance = (orb.CFrame.p - position).magnitude | |
4928 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
4929 | a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0) | |
4930 | orb.CFrame = a.CFrame | |
4931 | a:Destroy() | |
4932 | local bv = Instance.new("BodyVelocity") | |
4933 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
4934 | bv.velocity = orb.CFrame.lookVector * 125 | |
4935 | bv.Parent = orb | |
4936 | local hitted = false | |
4937 | game:GetService("Debris"):AddItem(orb, 15) | |
4938 | wait() | |
4939 | local hit = orb.Touched:connect(function(hit) | |
4940 | if hitted == false then | |
4941 | hitted = true | |
4942 | coroutine.resume(coroutine.create(function() | |
4943 | for i = 0,1.8,0.1 do | |
4944 | swait() | |
4945 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
4946 | end | |
4947 | for i = 0,1.8,0.1 do | |
4948 | swait() | |
4949 | hum.CameraOffset = Vector3.new(0,0,0) | |
4950 | end | |
4951 | end)) | |
4952 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
4953 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do | |
4954 | if v:FindFirstChild("Head") then | |
4955 | Eviscerate(v) | |
4956 | end | |
4957 | end | |
4958 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere") | |
4959 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere") | |
4960 | for i = 0, 9 do | |
4961 | --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
4962 | --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
4963 | end | |
4964 | orb.Anchored = true | |
4965 | orb.Transparency = 1 | |
4966 | wait(8) | |
4967 | orb:Destroy() | |
4968 | end | |
4969 | end) | |
4970 | end)) | |
4971 | for i = 0, 6, 0.1 do | |
4972 | swait() | |
4973 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2) | |
4974 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2) | |
4975 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4976 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2) | |
4977 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2) | |
4978 | LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2) | |
4979 | end | |
4980 | attack = false | |
4981 | end | |
4982 | ||
4983 | ||
4984 | function BURN_IN_HELL() | |
4985 | attack = true | |
4986 | chatfunc("I", BrickColor.random().Color) | |
4987 | for i = 0,5.2,0.1 do | |
4988 | swait() | |
4989 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
4990 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
4991 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
4992 | LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
4993 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1) | |
4994 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1) | |
4995 | end | |
4996 | chatfunc("Hope YOU", BrickColor.random().Color) | |
4997 | wait(2) | |
4998 | CreateSound("331666100", char, 10, 1) | |
4999 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
5000 | - | chatfunc("BURN....", BrickColor.random().Color) |
5000 | + | |
5001 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
5002 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 10.6, 10.6, 0.05) | |
5003 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -1, 0), 2, 2, 2, 10.6, 35.6, 10.6, 0.05) | |
5004 | Effects.Sphere.Create(BrickColor.Random(), root.CFrame * CF(0, -3, 0), 2, 2, 2, 150.6, .4, 150.6, 0.05) | |
5005 | chatfunc("VANISH AT THIS MOMENT!", BrickColor.random().Color) | |
5006 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 52.5)) do | |
5007 | if v:FindFirstChild("Head") then | |
5008 | Eviscerate(v) | |
5009 | SoulSteal(v) | |
5010 | - | chatfunc("IN....", BrickColor.random().Color) |
5010 | + | |
5011 | end | |
5012 | coroutine.resume(coroutine.create(function() | |
5013 | for i = 0,2.8,0.1 do | |
5014 | swait() | |
5015 | hum.CameraOffset = Vector3.new(Mrandom(-3,3),Mrandom(-3,3),Mrandom(-3,3)) | |
5016 | end | |
5017 | for i = 0,1.8,0.1 do | |
5018 | swait() | |
5019 | - | chatfunc("poot bird hell lol", BrickColor.random().Color) |
5019 | + | |
5020 | end | |
5021 | end)) | |
5022 | for i = 0,3.7,0.1 do | |
5023 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15) | |
5024 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
5025 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15) | |
5026 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15) | |
5027 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
5028 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1) | |
5029 | end | |
5030 | wait(.6) | |
5031 | CreateSound("907332997", hed, 10, 1) | |
5032 | attack = false | |
5033 | end | |
5034 | ||
5035 | function Cso(ID, PARENT, VOLUME, PITCH) | |
5036 | local NSound = nil | |
5037 | coroutine.resume(coroutine.create(function() | |
5038 | NSound = IT("Sound", PARENT) | |
5039 | NSound.Volume = VOLUME | |
5040 | NSound.Pitch = PITCH | |
5041 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
5042 | swait() | |
5043 | NSound:play() | |
5044 | game:GetService("Debris"):AddItem(NSound, 10) | |
5045 | end)) | |
5046 | return NSound | |
5047 | end | |
5048 | function OHHHHHHH() | |
5049 | attack = true | |
5050 | Speed = 0 | |
5051 | CreateSound("164320294", hed, 10, 1) | |
5052 | chatfunc("SEE YA", BrickColor.new("Really red").Color) | |
5053 | for i = 0, 12, 0.1 do | |
5054 | swait() | |
5055 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0 + 1 * i * Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.1) | |
5056 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1) | |
5057 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(75), Rad(0 + 5 * Sin(sine / 20)), Rad(10 + 5 * Sin(sine / 20))), 0.1) | |
5058 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(143), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1) | |
5059 | end | |
5060 | CreateSound("164320294", hed, 10, 1) | |
5061 | chatfunc("Back", BrickColor.new("Really blue").Color) | |
5062 | for i = 0, 6, 0.1 do | |
5063 | swait() | |
5064 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 4500 * Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
5065 | - | CreateSound("663306786", hed, 10, 1) |
5065 | + | |
5066 | - | chatfunc("help me.", BrickColor.new("Really red").Color) |
5066 | + | |
5067 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(156), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1) | |
5068 | end | |
5069 | Speed = 56 | |
5070 | attack = false | |
5071 | end | |
5072 | function Gum() | |
5073 | attack = true | |
5074 | - | CreateSound("663307468", hed, 10, 1) |
5074 | + | |
5075 | - | chatfunc("ahhhhhhhhhhhhhhh", BrickColor.new("Really black").Color) |
5075 | + | |
5076 | swait(2) | |
5077 | repeat | |
5078 | swait() | |
5079 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.2) | |
5080 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.2) | |
5081 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 + 5 * Sin(sine / 20)), Rad(10 + 5 * Sin(sine / 20))), 0.2) | |
5082 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-90)), 0.2) | |
5083 | until Senses.TimePosition > 2.7 | |
5084 | for i = 0, 3, 0.1 do | |
5085 | swait() | |
5086 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size) * angles(Rad(-30), Rad(0), Rad(0)), 0.5) | |
5087 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.5) | |
5088 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(10)), 0.5) | |
5089 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-90)), 0.5) | |
5090 | end | |
5091 | root.Anchored = true | |
5092 | repeat | |
5093 | swait() | |
5094 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -2.7 + 0.1* Player_Size) * angles(Rad(90), Rad(0), Rad(0)), 0.5) | |
5095 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.5) | |
5096 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(10)), 0.5) | |
5097 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-90)), 0.5) | |
5098 | until Senses.Playing == false | |
5099 | Speed = 56 | |
5100 | attack = false | |
5101 | root.Anchored = false | |
5102 | end | |
5103 | function WoodyGotWood() | |
5104 | attack = true | |
5105 | Speed = 0 | |
5106 | local Woodlenny = Cso("1953695670", hed, 6, 1) | |
5107 | swait(2) | |
5108 | repeat | |
5109 | swait() | |
5110 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 5)) * angles(Rad(20), Rad(0), Rad(5)), 0.2) | |
5111 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20), Rad(0), Rad(-5 - 15 * Sin(sine / 20))), 0.2) | |
5112 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 5)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(10)), 0.2) | |
5113 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 5)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(0), Rad(-10)), 0.2) | |
5114 | until Woodlenny.TimePosition > 3.6 | |
5115 | root.Anchored = true | |
5116 | repeat | |
5117 | swait() | |
5118 | for i = 0, 2, 0.1 do | |
5119 | swait() | |
5120 | - | local Woodlenny = Cso("1764642350", hed, 6, 1) |
5120 | + | |
5121 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.5) | |
5122 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(90)), 0.5) | |
5123 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-90)), 0.5) | |
5124 | end | |
5125 | for i = 0, 1.6, 0.1 do | |
5126 | swait() | |
5127 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -2.4 + 0.1* Player_Size) * angles(Rad(-90), Rad(0), Rad(0)), 0.5) | |
5128 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)), 0.5) | |
5129 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(75)), 0.5) | |
5130 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(-75)), 0.5) | |
5131 | end | |
5132 | until Woodlenny.Playing == false | |
5133 | Speed = 56 | |
5134 | attack = false | |
5135 | root.Anchored = false | |
5136 | end | |
5137 | function GalaBomb() | |
5138 | attack = true | |
5139 | chatfunc("DIE DIE DIE", BrickColor.new("Really white").Color) | |
5140 | Cso("506001681", hed, 3.5, 1) | |
5141 | local orb = Instance.new("Part", char) | |
5142 | orb.Anchored = true | |
5143 | orb.BrickColor = BrickC("Really black") | |
5144 | orb.CanCollide = false | |
5145 | orb.FormFactor = 3 | |
5146 | orb.Name = "Ring" | |
5147 | orb.Material = "Neon" | |
5148 | orb.Size = Vector3.new(1, 1, 1) | |
5149 | orb.Transparency = 0 | |
5150 | orb.TopSurface = 0 | |
5151 | orb.BottomSurface = 0 | |
5152 | local orbm = Instance.new("SpecialMesh", orb) | |
5153 | - | chatfunc("pooty poot poot.", BrickColor.new("Really white").Color) |
5153 | + | |
5154 | orbm.Name = "SizeMesh" | |
5155 | orbm.Scale = Vector3.new(0, 0, 0) | |
5156 | local scaled = 0.1 | |
5157 | local posid = 0 | |
5158 | for i = 0, 12, 0.1 do | |
5159 | swait() | |
5160 | scaled = scaled + 0.001 | |
5161 | posid = posid - scaled | |
5162 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
5163 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
5164 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(0)), 0.1) | |
5165 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(-25)), 0.1) | |
5166 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(6)), 0.1) | |
5167 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-6)), 0.1) | |
5168 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(170), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.1) | |
5169 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(6), Rad(Mrandom(-15, 15)), Rad(-5 + 4.5 * Sin(sine / 20))), 0.1) | |
5170 | end | |
5171 | for i = 0, 2, 0.1 do | |
5172 | swait() | |
5173 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(-30)), 0.1) | |
5174 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(30)), 0.1) | |
5175 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(6)), 0.1) | |
5176 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-6)), 0.1) | |
5177 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(215), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.1) | |
5178 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(6), Rad(Mrandom(-15, 15)), Rad(-5 + 4.5 * Sin(sine / 20))), 0.1) | |
5179 | end | |
5180 | coroutine.resume(coroutine.create(function() | |
5181 | orb.Anchored = false | |
5182 | CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1) | |
5183 | local a = Instance.new("Part", workspace) | |
5184 | a.Name = "Direction" | |
5185 | a.Anchored = true | |
5186 | a.BrickColor = BrickC("Really black") | |
5187 | a.Material = "Neon" | |
5188 | a.Transparency = 1 | |
5189 | a.CanCollide = false | |
5190 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
5191 | local ignore = orb | |
5192 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5193 | a.BottomSurface = 10 | |
5194 | a.TopSurface = 10 | |
5195 | local distance = (orb.CFrame.p - position).magnitude | |
5196 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
5197 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
5198 | orb.CFrame = a.CFrame | |
5199 | a:Destroy() | |
5200 | local bv = Instance.new("BodyVelocity") | |
5201 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
5202 | bv.velocity = orb.CFrame.lookVector * 125 | |
5203 | bv.Parent = orb | |
5204 | local hitted = false | |
5205 | game:GetService("Debris"):AddItem(orb, 15) | |
5206 | swait() | |
5207 | local hit = orb.Touched:connect(function(hit) | |
5208 | if hitted == false then | |
5209 | hitted = true | |
5210 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
5211 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 25)) do | |
5212 | if v:FindFirstChild("Head") then | |
5213 | Eviscerate(v) | |
5214 | end | |
5215 | end | |
5216 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere") | |
5217 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere") | |
5218 | for i = 0, 9 do | |
5219 | Aura(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, BrickC("Really black"), 0, "Sphere") | |
5220 | Aura(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, BrickC("Really black"), 0, "Sphere") | |
5221 | end | |
5222 | orb.Anchored = true | |
5223 | orb.Transparency = 1 | |
5224 | wait(8) | |
5225 | orb:Destroy() | |
5226 | end | |
5227 | end) | |
5228 | end)) | |
5229 | for i = 0, 1, 0.1 do | |
5230 | swait() | |
5231 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(30)), 0.3) | |
5232 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(-30)), 0.3) | |
5233 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(6)), 0.3) | |
5234 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-6)), 0.3) | |
5235 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.3) | |
5236 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(6), Rad(Mrandom(-15, 15)), Rad(-5 + 4.5 * Sin(sine / 20))), 0.3) | |
5237 | end | |
5238 | attack = false | |
5239 | end | |
5240 | ------------------------------------------------------- | |
5241 | --End Attacks N Stuff-- | |
5242 | ------------------------------------------------------- | |
5243 | mouse.KeyDown:connect(function(key) | |
5244 | if attack == false then | |
5245 | if key == 't' then | |
5246 | Taunt1() | |
5247 | elseif key == 'y' then | |
5248 | Taunt2() | |
5249 | elseif key == 'p' then | |
5250 | DANCEFORME2() | |
5251 | elseif key == 'c' then | |
5252 | LimitlessDivinity() | |
5253 | elseif key == 'v' then | |
5254 | NebulaticManiac() | |
5255 | elseif key == 'b' then | |
5256 | THUNDERCLAP() | |
5257 | elseif key == 'n' then | |
5258 | Call_Upon_The_Eyes() | |
5259 | elseif key == 'm' then | |
5260 | Painful_Stomp() | |
5261 | elseif key == 'l' then | |
5262 | ShutTheHellUp() | |
5263 | elseif key == 'q' then | |
5264 | GlitchedHell() | |
5265 | elseif key == 'k' then | |
5266 | GlitchedTeleport() | |
5267 | elseif key == 'j' then | |
5268 | Gum() | |
5269 | elseif key == 'g' then | |
5270 | WoodyGotWood() | |
5271 | elseif key == 'u' then | |
5272 | GalaBomb() | |
5273 | elseif key == 'f' then | |
5274 | Up_High_Noon() | |
5275 | elseif key == 'e' then | |
5276 | EndMySufferingV2() | |
5277 | elseif key == 'z' then | |
5278 | High_Noon() | |
5279 | elseif key == 'x' then | |
5280 | Eyeyeyeyeyeyey_Slammo() | |
5281 | elseif key == 'h' then | |
5282 | OHHHHHHH() | |
5283 | elseif key == 'r' then | |
5284 | BURN_IN_HELL() | |
5285 | end | |
5286 | end | |
5287 | end) | |
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | ||
5293 | ||
5294 | ||
5295 | ||
5296 | ||
5297 | ||
5298 | ||
5299 | ------------------------------------------------------- | |
5300 | --Start Animations-- | |
5301 | ------------------------------------------------------- | |
5302 | while true do | |
5303 | swait() | |
5304 | sine = sine + change | |
5305 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
5306 | local velderp = root.Velocity.y | |
5307 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
5308 | if equipped == true or equipped == false then | |
5309 | if attack == false then | |
5310 | idle = idle + 1 | |
5311 | else | |
5312 | idle = 0 | |
5313 | end | |
5314 | if 1 < root.Velocity.y and hitfloor == nil then | |
5315 | Anim = "Jump" | |
5316 | if attack == false then | |
5317 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
5318 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
5319 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
5320 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
5321 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
5322 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
5323 | end | |
5324 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
5325 | Anim = "Fall" | |
5326 | if attack == false then | |
5327 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
5328 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
5329 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
5330 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
5331 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
5332 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
5333 | end | |
5334 | elseif torvel < 1 and hitfloor ~= nil then | |
5335 | Anim = "Idle" | |
5336 | change = 1 | |
5337 | if attack == false then | |
5338 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15) | |
5339 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 7.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3) | |
5340 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.15) | |
5341 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(8)), 0.15) | |
5342 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(10), Rad(-.6), Rad(15 + 6.5 * Sin(sine / 20))), 0.1) | |
5343 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-10), Rad(-.6), Rad(-15 - 6.5 * Sin(sine / 20))), 0.1) | |
5344 | end | |
5345 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
5346 | Anim = "Walk" | |
5347 | change = 1 | |
5348 | if attack == false then | |
5349 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
5350 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
5351 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5352 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5353 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1) | |
5354 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
5355 | end | |
5356 | elseif torvel >= 25 and hitfloor ~= nil then | |
5357 | Anim = "Sprint" | |
5358 | change = 1.35 | |
5359 | if attack == false then | |
5360 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
5361 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
5362 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5363 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
5364 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
5365 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
5366 | end | |
5367 | end | |
5368 | end | |
5369 | if 0 < #Effects then | |
5370 | for e = 1, #Effects do | |
5371 | if Effects[e] ~= nil then | |
5372 | local Thing = Effects[e] | |
5373 | if Thing ~= nil then | |
5374 | local Part = Thing[1] | |
5375 | local Mode = Thing[2] | |
5376 | local Delay = Thing[3] | |
5377 | local IncX = Thing[4] | |
5378 | local IncY = Thing[5] | |
5379 | local IncZ = Thing[6] | |
5380 | if 1 >= Thing[1].Transparency then | |
5381 | if Thing[2] == "Block1" then | |
5382 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
5383 | local Mesh = Thing[1].Mesh | |
5384 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
5385 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5386 | elseif Thing[2] == "Block2" then | |
5387 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
5388 | local Mesh = Thing[7] | |
5389 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
5390 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5391 | elseif Thing[2] == "Block3" then | |
5392 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
5393 | local Mesh = Thing[7] | |
5394 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
5395 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5396 | elseif Thing[2] == "Cylinder" then | |
5397 | local Mesh = Thing[1].Mesh | |
5398 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
5399 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5400 | elseif Thing[2] == "Blood" then | |
5401 | local Mesh = Thing[7] | |
5402 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
5403 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
5404 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5405 | elseif Thing[2] == "Elec" then | |
5406 | local Mesh = Thing[1].Mesh | |
5407 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
5408 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5409 | elseif Thing[2] == "Disappear" then | |
5410 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5411 | elseif Thing[2] == "Shatter" then | |
5412 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
5413 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
5414 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
5415 | Thing[6] = Thing[6] + Thing[5] | |
5416 | end | |
5417 | else | |
5418 | Part.Parent = nil | |
5419 | table.remove(Effects, e) | |
5420 | end | |
5421 | end | |
5422 | end | |
5423 | end | |
5424 | end | |
5425 | end | |
5426 | ------------------------------------------------------- | |
5427 | --End Animations And Script-- | |
5428 | ------------------------------------------------------- |