SHOW:
|
|
- or go back to the newest paste.
1 | --Pandora's chara v2-- | |
2 | ---------------------------------------------------------------- | |
3 | print([[ | |
4 | --made by Ozzak Thailon | |
5 | --FE code by ??? | |
6 | --Edited by bacon_hairkid9 | |
7 | --Redited by micheal | |
8 | --Enjoy! :> | |
9 | ||
10 | ]]) | |
11 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
12 | local Player,game,owner = owner,game | |
13 | local RealPlayer = Player | |
14 | do | |
15 | local rp = RealPlayer | |
16 | script.Parent = rp.Character | |
17 | ||
18 | --RemoteEvent for communicating | |
19 | local Event = Instance.new("RemoteEvent") | |
20 | Event.Name = "UserInput_Event" | |
21 | ||
22 | --Fake event to make stuff like Mouse.KeyDown work | |
23 | local function fakeEvent() | |
24 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
25 | t.connect = t.Connect | |
26 | return t | |
27 | end | |
28 | ||
29 | --Creating fake input objects with fake variables | |
30 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
31 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
32 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
33 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
34 | end} | |
35 | --Merged 2 functions into one by checking amount of arguments | |
36 | CAS.UnbindAction = CAS.BindAction | |
37 | ||
38 | --This function will trigger the events that have been :Connect()'ed | |
39 | local function te(self,ev,...) | |
40 | local t = m[ev] | |
41 | if t and t._fakeEvent then | |
42 | for _,f in pairs(t.Functions) do | |
43 | f(...) | |
44 | end | |
45 | end | |
46 | end | |
47 | m.TrigEvent = te | |
48 | UIS.TrigEvent = te | |
49 | ||
50 | Event.OnServerEvent:Connect(function(plr,io) | |
51 | if plr~=rp then return end | |
52 | m.Target = io.Target | |
53 | m.Hit = io.Hit | |
54 | if not io.isMouse then | |
55 | local b = io.UserInputState == Enum.UserInputState.Begin | |
56 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
57 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
58 | end | |
59 | for _,t in pairs(CAS.Actions) do | |
60 | for _,k in pairs(t.Keys) do | |
61 | if k==io.KeyCode then | |
62 | t.Function(t.Name,io.UserInputState,io) | |
63 | end | |
64 | end | |
65 | end | |
66 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
67 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
68 | end | |
69 | end) | |
70 | Event.Parent = NLS([==[ | |
71 | local Player = game:GetService("Players").LocalPlayer | |
72 | local Event = script:WaitForChild("UserInput_Event") | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local UIS = game:GetService("UserInputService") | |
76 | local input = function(io,a) | |
77 | if a then return end | |
78 | --Since InputObject is a client-side instance, we create and pass table instead | |
79 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
80 | end | |
81 | UIS.InputBegan:Connect(input) | |
82 | UIS.InputEnded:Connect(input) | |
83 | ||
84 | local h,t | |
85 | --Give the server mouse data 30 times every second, but only if the values changed | |
86 | --If player is not moving their mouse, client won't fire events | |
87 | while wait(1/30) do | |
88 | if h~=Mouse.Hit or t~=Mouse.Target then | |
89 | h,t=Mouse.Hit,Mouse.Target | |
90 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
91 | end | |
92 | end]==],Player.Character) | |
93 | ||
94 | ----Sandboxed game object that allows the usage of client-side methods and services | |
95 | --Real game object | |
96 | local _rg = game | |
97 | ||
98 | --Metatable for fake service | |
99 | local fsmt = { | |
100 | __index = function(self,k) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s[k] end | |
103 | end, | |
104 | __newindex = function(self,k,v) | |
105 | local s = rawget(self,"_RealService") | |
106 | if s then s[k]=v end | |
107 | end, | |
108 | __call = function(self,...) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then return s(...) end | |
111 | end | |
112 | } | |
113 | local function FakeService(t,RealService) | |
114 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
115 | return setmetatable(t,fsmt) | |
116 | end | |
117 | ||
118 | --Fake game object | |
119 | local g = { | |
120 | GetService = function(self,s) | |
121 | return self[s] | |
122 | end, | |
123 | Players = FakeService({ | |
124 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
125 | },"Players"), | |
126 | UserInputService = FakeService(UIS,"UserInputService"), | |
127 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
128 | } | |
129 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
130 | g.service = g.GetService | |
131 | ||
132 | g.RunService = FakeService({ | |
133 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
134 | BindToRenderStep = function(self,name,_,fun) | |
135 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
136 | end, | |
137 | UnbindFromRenderStep = function(self,name) | |
138 | self._btrs[name]:Disconnect() | |
139 | end, | |
140 | },"RunService") | |
141 | ||
142 | setmetatable(g,{ | |
143 | __index=function(self,s) | |
144 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
145 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
146 | end, | |
147 | __newindex = fsmt.__newindex, | |
148 | __call = fsmt.__call | |
149 | }) | |
150 | --Changing owner to fake player object to support owner:GetMouse() | |
151 | game,owner = g,g.Players.LocalPlayer | |
152 | end | |
153 | ||
154 | Player = owner | |
155 | PlayerGui = Player.PlayerGui | |
156 | Cam = workspace.CurrentCamera | |
157 | Backpack = Player.Backpack | |
158 | Character = Player.Character | |
159 | Humanoid = Character.Humanoid | |
160 | Mouse = Player:GetMouse() | |
161 | RootPart = Character["HumanoidRootPart"] | |
162 | Torso = Character["Torso"] | |
163 | Head = Character["Head"] | |
164 | RightArm = Character["Right Arm"] | |
165 | LeftArm = Character["Left Arm"] | |
166 | RightLeg = Character["Right Leg"] | |
167 | LeftLeg = Character["Left Leg"] | |
168 | RootJoint = RootPart["RootJoint"] | |
169 | Neck = Torso["Neck"] | |
170 | RightShoulder = Torso["Right Shoulder"] | |
171 | LeftShoulder = Torso["Left Shoulder"] | |
172 | RightHip = Torso["Right Hip"] | |
173 | LeftHip = Torso["Left Hip"] | |
174 | ||
175 | Character = Player.Character | |
176 | Humanoid = Character.Humanoid | |
177 | ||
178 | ------------------------------------------------------- | |
179 | ||
180 | local FavIDs = { | |
181 | 340106355, --Nefl Crystals | |
182 | 927529620, --Dimension | |
183 | 876981900, --Fantasy | |
184 | 398987889, --Ordinary Days | |
185 | 1117396305, --Oh wait, it's you. | |
186 | 885996042, --Action Winter Journey | |
187 | 919231299, --Sprawling Idiot Effigy | |
188 | 743466274, --Good Day Sunshine | |
189 | 727411183, --Knife Fight | |
190 | 1402748531, --The Earth Is Counting On You! | |
191 | 595230126 --Robot Language | |
192 | } | |
193 | ||
194 | ||
195 | ||
196 | wait(0.2) | |
197 | local plr = game:service'Players'.LocalPlayer | |
198 | local char = plr.Character | |
199 | local hum = char.Humanoid | |
200 | local hed = char.Head | |
201 | local root = char.HumanoidRootPart | |
202 | local rootj = root.RootJoint | |
203 | local tors = char.Torso | |
204 | local ra = char["Right Arm"] | |
205 | local la = char["Left Arm"] | |
206 | local rl = char["Right Leg"] | |
207 | local ll = char["Left Leg"] | |
208 | local neck = tors["Neck"] | |
209 | local mouse = plr:GetMouse() | |
210 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
211 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
212 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
213 | local maincolor = BrickColor.new("Institutional white") | |
214 | ||
215 | ------------------------------------------------------- | |
216 | --Start Good Stuff-- | |
217 | ------------------------------------------------------- | |
218 | cam = game.Workspace.CurrentCamera | |
219 | CF = CFrame.new | |
220 | angles = CFrame.Angles | |
221 | attack = false | |
222 | Euler = CFrame.fromEulerAnglesXYZ | |
223 | Rad = math.rad | |
224 | IT = Instance.new | |
225 | BrickC = BrickColor.new | |
226 | Cos = math.cos | |
227 | Acos = math.acos | |
228 | Sin = math.sin | |
229 | Asin = math.asin | |
230 | Abs = math.abs | |
231 | Mrandom = math.random | |
232 | Floor = math.floor | |
233 | ------------------------------------------------------- | |
234 | --End Good Stuff-- | |
235 | ------------------------------------------------------- | |
236 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
237 | RSH, LSH = nil, nil | |
238 | RW = Instance.new("Weld") | |
239 | LW = Instance.new("Weld") | |
240 | RH = tors["Right Hip"] | |
241 | LH = tors["Left Hip"] | |
242 | RSH = tors["Right Shoulder"] | |
243 | LSH = tors["Left Shoulder"] | |
244 | RSH.Parent = nil | |
245 | LSH.Parent = nil | |
246 | RW.Name = "RW" | |
247 | RW.Part0 = tors | |
248 | RW.C0 = CF(1.5, 0.5, 0) | |
249 | RW.C1 = CF(0, 0.5, 0) | |
250 | RW.Part1 = ra | |
251 | RW.Parent = tors | |
252 | LW.Name = "LW" | |
253 | LW.Part0 = tors | |
254 | LW.C0 = CF(-1.5, 0.5, 0) | |
255 | LW.C1 = CF(0, 0.5, 0) | |
256 | LW.Part1 = la | |
257 | LW.Parent = tors | |
258 | Effects = {} | |
259 | ------------------------------------------------------- | |
260 | --Start HeartBeat-- | |
261 | ------------------------------------------------------- | |
262 | ArtificialHB = Instance.new("BindableEvent", script) | |
263 | ArtificialHB.Name = "Heartbeat" | |
264 | script:WaitForChild("Heartbeat") | |
265 | ||
266 | frame = 1 / 60 | |
267 | tf = 0 | |
268 | allowframeloss = false | |
269 | tossremainder = false | |
270 | ||
271 | ||
272 | lastframe = tick() | |
273 | script.Heartbeat:Fire() | |
274 | ||
275 | ||
276 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
277 | tf = tf + s | |
278 | if tf >= frame then | |
279 | if allowframeloss then | |
280 | script.Heartbeat:Fire() | |
281 | lastframe = tick() | |
282 | else | |
283 | for i = 1, math.floor(tf / frame) do | |
284 | script.Heartbeat:Fire() | |
285 | end | |
286 | lastframe = tick() | |
287 | end | |
288 | if tossremainder then | |
289 | tf = 0 | |
290 | else | |
291 | tf = tf - frame * math.floor(tf / frame) | |
292 | end | |
293 | end | |
294 | end) | |
295 | ------------------------------------------------------- | |
296 | --End HeartBeat-- | |
297 | ------------------------------------------------------- | |
298 | ||
299 | ------------------------------------------------------- | |
300 | --Start Important Functions-- | |
301 | ------------------------------------------------------- | |
302 | function swait(num) | |
303 | if num == 0 or num == nil then | |
304 | game:service("RunService").Stepped:wait(0) | |
305 | else | |
306 | for i = 0, num do | |
307 | game:service("RunService").Stepped:wait(0) | |
308 | end | |
309 | end | |
310 | end | |
311 | function thread(f) | |
312 | coroutine.resume(coroutine.create(f)) | |
313 | end | |
314 | function clerp(a, b, t) | |
315 | local qa = { | |
316 | QuaternionFromCFrame(a) | |
317 | } | |
318 | local qb = { | |
319 | QuaternionFromCFrame(b) | |
320 | } | |
321 | local ax, ay, az = a.x, a.y, a.z | |
322 | local bx, by, bz = b.x, b.y, b.z | |
323 | local _t = 1 - t | |
324 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
325 | end | |
326 | function QuaternionFromCFrame(cf) | |
327 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
328 | local trace = m00 + m11 + m22 | |
329 | if trace > 0 then | |
330 | local s = math.sqrt(1 + trace) | |
331 | local recip = 0.5 / s | |
332 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
333 | else | |
334 | local i = 0 | |
335 | if m00 < m11 then | |
336 | i = 1 | |
337 | end | |
338 | if m22 > (i == 0 and m00 or m11) then | |
339 | i = 2 | |
340 | end | |
341 | if i == 0 then | |
342 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
343 | local recip = 0.5 / s | |
344 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
345 | elseif i == 1 then | |
346 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
347 | local recip = 0.5 / s | |
348 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
349 | elseif i == 2 then | |
350 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
351 | local recip = 0.5 / s | |
352 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
353 | end | |
354 | end | |
355 | end | |
356 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
357 | local xs, ys, zs = x + x, y + y, z + z | |
358 | local wx, wy, wz = w * xs, w * ys, w * zs | |
359 | local xx = x * xs | |
360 | local xy = x * ys | |
361 | local xz = x * zs | |
362 | local yy = y * ys | |
363 | local yz = y * zs | |
364 | local zz = z * zs | |
365 | 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)) | |
366 | end | |
367 | function QuaternionSlerp(a, b, t) | |
368 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
369 | local startInterp, finishInterp | |
370 | if cosTheta >= 1.0E-4 then | |
371 | if 1 - cosTheta > 1.0E-4 then | |
372 | local theta = math.acos(cosTheta) | |
373 | local invSinTheta = 1 / Sin(theta) | |
374 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
375 | finishInterp = Sin(t * theta) * invSinTheta | |
376 | else | |
377 | startInterp = 1 - t | |
378 | finishInterp = t | |
379 | end | |
380 | elseif 1 + cosTheta > 1.0E-4 then | |
381 | local theta = math.acos(-cosTheta) | |
382 | local invSinTheta = 1 / Sin(theta) | |
383 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
384 | finishInterp = Sin(t * theta) * invSinTheta | |
385 | else | |
386 | startInterp = t - 1 | |
387 | finishInterp = t | |
388 | end | |
389 | 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 | |
390 | end | |
391 | function rayCast(Position, Direction, Range, Ignore) | |
392 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
393 | end | |
394 | local RbxUtility = LoadLibrary("RbxUtility") | |
395 | local Create = RbxUtility.Create | |
396 | ||
397 | ------------------------------------------------------- | |
398 | --Start Damage Function-- | |
399 | ------------------------------------------------------- | |
400 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
401 | if hit.Parent == nil then | |
402 | return | |
403 | end | |
404 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
405 | for _, v in pairs(hit.Parent:children()) do | |
406 | if v:IsA("Humanoid") then | |
407 | h = v | |
408 | end | |
409 | end | |
410 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
411 | ||
412 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
413 | end | |
414 | ||
415 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
416 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
417 | if hit.Parent.DebounceHit.Value == true then | |
418 | return | |
419 | end | |
420 | end | |
421 | if insta == true then | |
422 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
423 | end | |
424 | local c = Create("ObjectValue"){ | |
425 | Name = "creator", | |
426 | Value = game:service("Players").LocalPlayer, | |
427 | Parent = h, | |
428 | } | |
429 | game:GetService("Debris"):AddItem(c, .5) | |
430 | if HitSound ~= nil and HitPitch ~= nil then | |
431 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
432 | end | |
433 | local Damage = math.random(minim, maxim) | |
434 | local blocked = false | |
435 | local block = hit.Parent:findFirstChild("Block") | |
436 | if block ~= nil then | |
437 | if block.className == "IntValue" then | |
438 | if block.Value > 0 then | |
439 | blocked = true | |
440 | block.Value = block.Value - 1 | |
441 | print(block.Value) | |
442 | end | |
443 | end | |
444 | end | |
445 | if blocked == false then | |
446 | h.Health = h.Health - Damage | |
447 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
448 | else | |
449 | h.Health = h.Health - (Damage / 2) | |
450 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
451 | end | |
452 | if Type == "Knockdown" then | |
453 | local hum = hit.Parent.Humanoid | |
454 | hum.PlatformStand = true | |
455 | coroutine.resume(coroutine.create(function(HHumanoid) | |
456 | swait(1) | |
457 | HHumanoid.PlatformStand = false | |
458 | end), hum) | |
459 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
460 | local bodvol = Create("BodyVelocity"){ | |
461 | velocity = angle * knockback, | |
462 | P = 5000, | |
463 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
464 | Parent = hit, | |
465 | } | |
466 | local rl = Create("BodyAngularVelocity"){ | |
467 | P = 3000, | |
468 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
469 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
470 | Parent = hit, | |
471 | } | |
472 | game:GetService("Debris"):AddItem(bodvol, .5) | |
473 | game:GetService("Debris"):AddItem(rl, .5) | |
474 | elseif Type == "Normal" then | |
475 | local vp = Create("BodyVelocity"){ | |
476 | P = 500, | |
477 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
478 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
479 | } | |
480 | if knockback > 0 then | |
481 | vp.Parent = hit.Parent.Torso | |
482 | end | |
483 | game:GetService("Debris"):AddItem(vp, .5) | |
484 | elseif Type == "Up" then | |
485 | local bodyVelocity = Create("BodyVelocity"){ | |
486 | velocity = Vector3.new(0, 20, 0), | |
487 | P = 5000, | |
488 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
489 | Parent = hit, | |
490 | } | |
491 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
492 | elseif Type == "DarkUp" then | |
493 | coroutine.resume(coroutine.create(function() | |
494 | for i = 0, 1, 0.1 do | |
495 | swait() | |
496 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
497 | end | |
498 | end)) | |
499 | local bodyVelocity = Create("BodyVelocity"){ | |
500 | velocity = Vector3.new(0, 20, 0), | |
501 | P = 5000, | |
502 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
503 | Parent = hit, | |
504 | } | |
505 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
506 | elseif Type == "Snare" then | |
507 | local bp = Create("BodyPosition"){ | |
508 | P = 2000, | |
509 | D = 100, | |
510 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
511 | position = hit.Parent.Torso.Position, | |
512 | Parent = hit.Parent.Torso, | |
513 | } | |
514 | game:GetService("Debris"):AddItem(bp, 1) | |
515 | elseif Type == "Freeze" then | |
516 | local BodPos = Create("BodyPosition"){ | |
517 | P = 50000, | |
518 | D = 1000, | |
519 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
520 | position = hit.Parent.Torso.Position, | |
521 | Parent = hit.Parent.Torso, | |
522 | } | |
523 | local BodGy = Create("BodyGyro") { | |
524 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
525 | P = 20e+003, | |
526 | Parent = hit.Parent.Torso, | |
527 | cframe = hit.Parent.Torso.CFrame, | |
528 | } | |
529 | hit.Parent.Torso.Anchored = true | |
530 | coroutine.resume(coroutine.create(function(Part) | |
531 | swait(1.5) | |
532 | Part.Anchored = false | |
533 | end), hit.Parent.Torso) | |
534 | game:GetService("Debris"):AddItem(BodPos, 3) | |
535 | game:GetService("Debris"):AddItem(BodGy, 3) | |
536 | end | |
537 | local debounce = Create("BoolValue"){ | |
538 | Name = "DebounceHit", | |
539 | Parent = hit.Parent, | |
540 | Value = true, | |
541 | } | |
542 | game:GetService("Debris"):AddItem(debounce, Delay) | |
543 | c = Create("ObjectValue"){ | |
544 | Name = "creator", | |
545 | Value = Player, | |
546 | Parent = h, | |
547 | } | |
548 | game:GetService("Debris"):AddItem(c, .5) | |
549 | end | |
550 | end | |
551 | ------------------------------------------------------- | |
552 | --End Damage Function-- | |
553 | ------------------------------------------------------- | |
554 | --Switcher------------------------------------- | |
555 | ||
556 | ||
557 | local effectTorso = Instance.new("Sparkles", char.Torso) | |
558 | effectTorso.SparkleColor = Color3.new(0, 85, 255) | |
559 | effectTorso.Enabled = false | |
560 | ||
561 | local animation = Instance.new("NumberValue", char) | |
562 | animation.Value = 1 | |
563 | animation.Name = "Animation" | |
564 | ||
565 | local animation2 = Instance.new("NumberValue", char) | |
566 | animation2.Value = 1 | |
567 | animation2.Name = "mode" | |
568 | ||
569 | ------------------------------------------------------- | |
570 | --Start Damage Function Customization-- | |
571 | ------------------------------------------------------- | |
572 | function ShowDamage(Pos, Text, Time, Color) | |
573 | local Rate = (1 / 30) | |
574 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
575 | local Text = (Text or "") | |
576 | local Time = (Time or 2) | |
577 | local Color = (Color or Color3.new(1, 0, 1)) | |
578 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
579 | EffectPart.Anchored = true | |
580 | local BillboardGui = Create("BillboardGui"){ | |
581 | Size = UDim2.new(3, 0, 3, 0), | |
582 | Adornee = EffectPart, | |
583 | Parent = EffectPart, | |
584 | } | |
585 | local TextLabel = Create("TextLabel"){ | |
586 | BackgroundTransparency = 1, | |
587 | Size = UDim2.new(1, 0, 1, 0), | |
588 | Text = Text, | |
589 | Font = "Bodoni", | |
590 | TextColor3 = Color, | |
591 | TextScaled = true, | |
592 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
593 | Parent = BillboardGui, | |
594 | } | |
595 | game.Debris:AddItem(EffectPart, (Time)) | |
596 | EffectPart.Parent = game:GetService("Workspace") | |
597 | delay(0, function() | |
598 | local Frames = (Time / Rate) | |
599 | for Frame = 1, Frames do | |
600 | wait(Rate) | |
601 | local Percent = (Frame / Frames) | |
602 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
603 | TextLabel.TextTransparency = Percent | |
604 | end | |
605 | if EffectPart and EffectPart.Parent then | |
606 | EffectPart:Destroy() | |
607 | end | |
608 | end) | |
609 | end | |
610 | ------------------------------------------------------- | |
611 | --End Damage Function Customization-- | |
612 | ------------------------------------------------------- | |
613 | ||
614 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
615 | for _, c in pairs(workspace:children()) do | |
616 | local hum = c:findFirstChild("Humanoid") | |
617 | if hum ~= nil then | |
618 | local head = c:findFirstChild("Head") | |
619 | if head ~= nil then | |
620 | local targ = head.Position - Part.Position | |
621 | local mag = targ.magnitude | |
622 | if magni >= mag and c.Name ~= plr.Name then | |
623 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
624 | end | |
625 | end | |
626 | end | |
627 | end | |
628 | end | |
629 | ||
630 | ||
631 | CFuncs = { | |
632 | Part = { | |
633 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
634 | local Part = Create("Part")({ | |
635 | Parent = Parent, | |
636 | Reflectance = Reflectance, | |
637 | Transparency = Transparency, | |
638 | CanCollide = false, | |
639 | Locked = true, | |
640 | BrickColor = BrickColor.new(tostring(BColor)), | |
641 | Name = Name, | |
642 | Size = Size, | |
643 | Material = Material | |
644 | }) | |
645 | RemoveOutlines(Part) | |
646 | return Part | |
647 | end | |
648 | }, | |
649 | Mesh = { | |
650 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
651 | local Msh = Create(Mesh)({ | |
652 | Parent = Part, | |
653 | Offset = OffSet, | |
654 | Scale = Scale | |
655 | }) | |
656 | if Mesh == "SpecialMesh" then | |
657 | Msh.MeshType = MeshType | |
658 | Msh.MeshId = MeshId | |
659 | end | |
660 | return Msh | |
661 | end | |
662 | }, | |
663 | Mesh = { | |
664 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
665 | local Msh = Create(Mesh)({ | |
666 | Parent = Part, | |
667 | Offset = OffSet, | |
668 | Scale = Scale | |
669 | }) | |
670 | if Mesh == "SpecialMesh" then | |
671 | Msh.MeshType = MeshType | |
672 | Msh.MeshId = MeshId | |
673 | end | |
674 | return Msh | |
675 | end | |
676 | }, | |
677 | Weld = { | |
678 | Create = function(Parent, Part0, Part1, C0, C1) | |
679 | local Weld = Create("Weld")({ | |
680 | Parent = Parent, | |
681 | Part0 = Part0, | |
682 | Part1 = Part1, | |
683 | C0 = C0, | |
684 | C1 = C1 | |
685 | }) | |
686 | return Weld | |
687 | end | |
688 | }, | |
689 | Sound = { | |
690 | Create = function(id, par, vol, pit) | |
691 | coroutine.resume(coroutine.create(function() | |
692 | local S = Create("Sound")({ | |
693 | Volume = vol, | |
694 | Pitch = pit or 1, | |
695 | SoundId = id, | |
696 | Parent = par or workspace | |
697 | }) | |
698 | wait() | |
699 | S:play() | |
700 | game:GetService("Debris"):AddItem(S, 6) | |
701 | end)) | |
702 | end | |
703 | }, | |
704 | ParticleEmitter = { | |
705 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
706 | local fp = Create("ParticleEmitter")({ | |
707 | Parent = Parent, | |
708 | Color = ColorSequence.new(Color1, Color2), | |
709 | LightEmission = LightEmission, | |
710 | Size = Size, | |
711 | Texture = Texture, | |
712 | Transparency = Transparency, | |
713 | ZOffset = ZOffset, | |
714 | Acceleration = Accel, | |
715 | Drag = Drag, | |
716 | LockedToPart = LockedToPart, | |
717 | VelocityInheritance = VelocityInheritance, | |
718 | EmissionDirection = EmissionDirection, | |
719 | Enabled = Enabled, | |
720 | Lifetime = LifeTime, | |
721 | Rate = Rate, | |
722 | Rotation = Rotation, | |
723 | RotSpeed = RotSpeed, | |
724 | Speed = Speed, | |
725 | VelocitySpread = VelocitySpread | |
726 | }) | |
727 | return fp | |
728 | end | |
729 | } | |
730 | } | |
731 | function RemoveOutlines(part) | |
732 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
733 | end | |
734 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
735 | local Part = Create("Part")({ | |
736 | formFactor = FormFactor, | |
737 | Parent = Parent, | |
738 | Reflectance = Reflectance, | |
739 | Transparency = Transparency, | |
740 | CanCollide = false, | |
741 | Locked = true, | |
742 | BrickColor = BrickColor.new(tostring(BColor)), | |
743 | Name = Name, | |
744 | Size = Size, | |
745 | Material = Material | |
746 | }) | |
747 | RemoveOutlines(Part) | |
748 | return Part | |
749 | end | |
750 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
751 | local Msh = Create(Mesh)({ | |
752 | Parent = Part, | |
753 | Offset = OffSet, | |
754 | Scale = Scale | |
755 | }) | |
756 | if Mesh == "SpecialMesh" then | |
757 | Msh.MeshType = MeshType | |
758 | Msh.MeshId = MeshId | |
759 | end | |
760 | return Msh | |
761 | end | |
762 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
763 | local Weld = Create("Weld")({ | |
764 | Parent = Parent, | |
765 | Part0 = Part0, | |
766 | Part1 = Part1, | |
767 | C0 = C0, | |
768 | C1 = C1 | |
769 | }) | |
770 | return Weld | |
771 | end | |
772 | ||
773 | ||
774 | ------------------------------------------------------- | |
775 | --Start Effect Function-- | |
776 | ------------------------------------------------------- | |
777 | EffectModel = Instance.new("Model", char) | |
778 | Effects = { | |
779 | Block = { | |
780 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
781 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
782 | prt.Anchored = true | |
783 | prt.CFrame = cframe | |
784 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
785 | game:GetService("Debris"):AddItem(prt, 10) | |
786 | if Type == 1 or Type == nil then | |
787 | table.insert(Effects, { | |
788 | prt, | |
789 | "Block1", | |
790 | delay, | |
791 | x3, | |
792 | y3, | |
793 | z3, | |
794 | msh | |
795 | }) | |
796 | elseif Type == 2 then | |
797 | table.insert(Effects, { | |
798 | prt, | |
799 | "Block2", | |
800 | delay, | |
801 | x3, | |
802 | y3, | |
803 | z3, | |
804 | msh | |
805 | }) | |
806 | else | |
807 | table.insert(Effects, { | |
808 | prt, | |
809 | "Block3", | |
810 | delay, | |
811 | x3, | |
812 | y3, | |
813 | z3, | |
814 | msh | |
815 | }) | |
816 | end | |
817 | end | |
818 | }, | |
819 | Sphere = { | |
820 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
821 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
822 | prt.Anchored = true | |
823 | prt.CFrame = cframe | |
824 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
825 | game:GetService("Debris"):AddItem(prt, 10) | |
826 | table.insert(Effects, { | |
827 | prt, | |
828 | "Cylinder", | |
829 | delay, | |
830 | x3, | |
831 | y3, | |
832 | z3, | |
833 | msh | |
834 | }) | |
835 | end | |
836 | }, | |
837 | Cylinder = { | |
838 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
839 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
840 | prt.Anchored = true | |
841 | prt.CFrame = cframe | |
842 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
843 | game:GetService("Debris"):AddItem(prt, 10) | |
844 | table.insert(Effects, { | |
845 | prt, | |
846 | "Cylinder", | |
847 | delay, | |
848 | x3, | |
849 | y3, | |
850 | z3, | |
851 | msh | |
852 | }) | |
853 | end | |
854 | }, | |
855 | Wave = { | |
856 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
857 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
858 | prt.Anchored = true | |
859 | prt.CFrame = cframe | |
860 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
861 | game:GetService("Debris"):AddItem(prt, 10) | |
862 | table.insert(Effects, { | |
863 | prt, | |
864 | "Cylinder", | |
865 | delay, | |
866 | x3 / 60, | |
867 | y3 / 60, | |
868 | z3 / 60, | |
869 | msh | |
870 | }) | |
871 | end | |
872 | }, | |
873 | Ring = { | |
874 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
875 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
876 | prt.Anchored = true | |
877 | prt.CFrame = cframe | |
878 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
879 | game:GetService("Debris"):AddItem(prt, 10) | |
880 | table.insert(Effects, { | |
881 | prt, | |
882 | "Cylinder", | |
883 | delay, | |
884 | x3, | |
885 | y3, | |
886 | z3, | |
887 | msh | |
888 | }) | |
889 | end | |
890 | }, | |
891 | Break = { | |
892 | Create = function(brickcolor, cframe, x1, y1, z1) | |
893 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
894 | prt.Anchored = true | |
895 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
896 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
897 | local num = math.random(10, 50) / 1000 | |
898 | game:GetService("Debris"):AddItem(prt, 10) | |
899 | table.insert(Effects, { | |
900 | prt, | |
901 | "Shatter", | |
902 | num, | |
903 | prt.CFrame, | |
904 | math.random() - math.random(), | |
905 | 0, | |
906 | math.random(50, 100) / 100 | |
907 | }) | |
908 | end | |
909 | }, | |
910 | Spiral = { | |
911 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
912 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
913 | prt.Anchored = true | |
914 | prt.CFrame = cframe | |
915 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
916 | game:GetService("Debris"):AddItem(prt, 10) | |
917 | table.insert(Effects, { | |
918 | prt, | |
919 | "Cylinder", | |
920 | delay, | |
921 | x3, | |
922 | y3, | |
923 | z3, | |
924 | msh | |
925 | }) | |
926 | end | |
927 | }, | |
928 | Push = { | |
929 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
930 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
931 | prt.Anchored = true | |
932 | prt.CFrame = cframe | |
933 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
934 | game:GetService("Debris"):AddItem(prt, 10) | |
935 | table.insert(Effects, { | |
936 | prt, | |
937 | "Cylinder", | |
938 | delay, | |
939 | x3, | |
940 | y3, | |
941 | z3, | |
942 | msh | |
943 | }) | |
944 | end | |
945 | } | |
946 | } | |
947 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
948 | local fp = IT("Part") | |
949 | fp.formFactor = formfactor | |
950 | fp.Parent = parent | |
951 | fp.Reflectance = reflectance | |
952 | fp.Transparency = transparency | |
953 | fp.CanCollide = false | |
954 | fp.Locked = true | |
955 | fp.BrickColor = brickcolor | |
956 | fp.Name = name | |
957 | fp.Size = size | |
958 | fp.Position = tors.Position | |
959 | RemoveOutlines(fp) | |
960 | fp.Material = "SmoothPlastic" | |
961 | fp:BreakJoints() | |
962 | return fp | |
963 | end | |
964 | ||
965 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
966 | local mesh = IT(Mesh) | |
967 | mesh.Parent = part | |
968 | if Mesh == "SpecialMesh" then | |
969 | mesh.MeshType = meshtype | |
970 | if meshid ~= "nil" then | |
971 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
972 | end | |
973 | end | |
974 | mesh.Offset = offset | |
975 | mesh.Scale = scale | |
976 | return mesh | |
977 | end | |
978 | ||
979 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
980 | local type = type | |
981 | local rng = Instance.new("Part", char) | |
982 | rng.Anchored = true | |
983 | rng.BrickColor = color | |
984 | rng.CanCollide = false | |
985 | rng.FormFactor = 3 | |
986 | rng.Name = "Ring" | |
987 | rng.Material = "Neon" | |
988 | rng.Size = Vector3.new(1, 1, 1) | |
989 | rng.Transparency = 0 | |
990 | rng.TopSurface = 0 | |
991 | rng.BottomSurface = 0 | |
992 | rng.CFrame = pos | |
993 | local rngm = Instance.new("SpecialMesh", rng) | |
994 | rngm.MeshType = MType | |
995 | rngm.Scale = scale | |
996 | local scaler2 = 1 | |
997 | if type == "Add" then | |
998 | scaler2 = 1 * value | |
999 | elseif type == "Divide" then | |
1000 | scaler2 = 1 / value | |
1001 | end | |
1002 | coroutine.resume(coroutine.create(function() | |
1003 | for i = 0, 10 / bonuspeed, 0.1 do | |
1004 | swait() | |
1005 | if type == "Add" then | |
1006 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1007 | elseif type == "Divide" then | |
1008 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1009 | end | |
1010 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1011 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1012 | end | |
1013 | rng:Destroy() | |
1014 | end)) | |
1015 | end | |
1016 | ||
1017 | function Eviscerate(dude) | |
1018 | if dude.Name ~= char then | |
1019 | local bgf = IT("BodyGyro", dude.Head) | |
1020 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1021 | local val = IT("BoolValue", dude) | |
1022 | val.Name = "IsHit" | |
1023 | local ds = coroutine.wrap(function() | |
1024 | dude:WaitForChild("Head"):BreakJoints() | |
1025 | wait(0.5) | |
1026 | target = nil | |
1027 | coroutine.resume(coroutine.create(function() | |
1028 | for i, v in pairs(dude:GetChildren()) do | |
1029 | if v:IsA("Accessory") then | |
1030 | v:Destroy() | |
1031 | end | |
1032 | if v:IsA("Humanoid") then | |
1033 | v:Destroy() | |
1034 | end | |
1035 | if v:IsA("CharacterMesh") then | |
1036 | v:Destroy() | |
1037 | end | |
1038 | if v:IsA("Model") then | |
1039 | v:Destroy() | |
1040 | end | |
1041 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1042 | for x, o in pairs(v:GetChildren()) do | |
1043 | if o:IsA("Decal") then | |
1044 | o:Destroy() | |
1045 | end | |
1046 | end | |
1047 | coroutine.resume(coroutine.create(function() | |
1048 | v.Material = "Neon" | |
1049 | v.CanCollide = false | |
1050 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1051 | PartEmmit1.LightEmission = 1 | |
1052 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1053 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1054 | PartEmmit1.Rate = 150 | |
1055 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1056 | PartEmmit1.Size = NumberSequence.new({ | |
1057 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1058 | NumberSequenceKeypoint.new(1, 0, 0) | |
1059 | }) | |
1060 | PartEmmit1.Transparency = NumberSequence.new({ | |
1061 | NumberSequenceKeypoint.new(0, 0, 0), | |
1062 | NumberSequenceKeypoint.new(1, 1, 0) | |
1063 | }) | |
1064 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1065 | PartEmmit1.VelocitySpread = 30000 | |
1066 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1067 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1068 | local BodPoss = IT("BodyPosition", v) | |
1069 | BodPoss.P = 3000 | |
1070 | BodPoss.D = 1000 | |
1071 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1072 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1073 | v.Color = maincolor.Color | |
1074 | coroutine.resume(coroutine.create(function() | |
1075 | for i = 0, 49 do | |
1076 | swait(1) | |
1077 | v.Transparency = v.Transparency + 0.08 | |
1078 | end | |
1079 | wait(0.5) | |
1080 | PartEmmit1.Enabled = false | |
1081 | wait(3) | |
1082 | v:Destroy() | |
1083 | dude:Destroy() | |
1084 | end)) | |
1085 | end)) | |
1086 | end | |
1087 | end | |
1088 | end)) | |
1089 | end) | |
1090 | ds() | |
1091 | end | |
1092 | end | |
1093 | ||
1094 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1095 | if SinglePlayer then | |
1096 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1097 | end | |
1098 | local List = {} | |
1099 | for i, v in pairs(workspace:GetChildren()) do | |
1100 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1101 | table.insert(List, v) | |
1102 | end | |
1103 | end | |
1104 | return List | |
1105 | end | |
1106 | ||
1107 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1108 | local type = type | |
1109 | local rng = Instance.new("Part", char) | |
1110 | rng.Anchored = true | |
1111 | rng.BrickColor = color | |
1112 | rng.CanCollide = false | |
1113 | rng.FormFactor = 3 | |
1114 | rng.Name = "Ring" | |
1115 | rng.Material = "Neon" | |
1116 | rng.Size = Vector3.new(1, 1, 1) | |
1117 | rng.Transparency = 0 | |
1118 | rng.TopSurface = 0 | |
1119 | rng.BottomSurface = 0 | |
1120 | rng.CFrame = pos | |
1121 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1122 | local rngm = Instance.new("SpecialMesh", rng) | |
1123 | rngm.MeshType = MType | |
1124 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1125 | local scaler2 = 1 | |
1126 | local speeder = FastSpeed | |
1127 | if type == "Add" then | |
1128 | scaler2 = 1 * value | |
1129 | elseif type == "Divide" then | |
1130 | scaler2 = 1 / value | |
1131 | end | |
1132 | coroutine.resume(coroutine.create(function() | |
1133 | for i = 0, 10 / bonuspeed, 0.1 do | |
1134 | swait() | |
1135 | if type == "Add" then | |
1136 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1137 | elseif type == "Divide" then | |
1138 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1139 | end | |
1140 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1141 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1142 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1143 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1144 | end | |
1145 | rng:Destroy() | |
1146 | end)) | |
1147 | end | |
1148 | ||
1149 | function SoulSteal(dude) | |
1150 | if dude.Name ~= char then | |
1151 | local bgf = IT("BodyGyro", dude.Head) | |
1152 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1153 | local val = IT("BoolValue", dude) | |
1154 | val.Name = "IsHit" | |
1155 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1156 | local soulst = coroutine.wrap(function() | |
1157 | local soul = Instance.new("Part",dude) | |
1158 | soul.Size = Vector3.new(1,1,1) | |
1159 | soul.CanCollide = false | |
1160 | soul.Anchored = false | |
1161 | soul.Position = torso.Position | |
1162 | soul.Transparency = 1 | |
1163 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1164 | PartEmmit1.LightEmission = 1 | |
1165 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1166 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1167 | PartEmmit1.Rate = 250 | |
1168 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1169 | PartEmmit1.Size = NumberSequence.new({ | |
1170 | NumberSequenceKeypoint.new(0, 1, 0), | |
1171 | NumberSequenceKeypoint.new(1, 0, 0) | |
1172 | }) | |
1173 | PartEmmit1.Transparency = NumberSequence.new({ | |
1174 | NumberSequenceKeypoint.new(0, 0, 0), | |
1175 | NumberSequenceKeypoint.new(1, 1, 0) | |
1176 | }) | |
1177 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1178 | PartEmmit1.VelocitySpread = 30000 | |
1179 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1180 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1181 | local BodPoss = IT("BodyPosition", soul) | |
1182 | BodPoss.P = 3000 | |
1183 | BodPoss.D = 1000 | |
1184 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1185 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1186 | wait(1.6) | |
1187 | soul.Touched:connect(function(hit) | |
1188 | if hit.Parent == char then | |
1189 | soul:Destroy() | |
1190 | end | |
1191 | end) | |
1192 | wait(1.2) | |
1193 | while soul do | |
1194 | swait() | |
1195 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1196 | BodPoss.Position = tors.Position | |
1197 | end | |
1198 | end) | |
1199 | soulst() | |
1200 | end | |
1201 | end | |
1202 | function FaceMouse() | |
1203 | local Cam = workspace.CurrentCamera | |
1204 | return { | |
1205 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1206 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1207 | } | |
1208 | end | |
1209 | ||
1210 | BTAUNT = Instance.new("Sound", tors) | |
1211 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1382488262" | |
1212 | BTAUNT.Volume = 10 | |
1213 | BTAUNT.Pitch = 1 | |
1214 | BTAUNT.Looped = true | |
1215 | BTAUNT.TimePosition = 0.2 | |
1216 | ||
1217 | BTAUNT1 = Instance.new("Sound", tors) | |
1218 | BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=0" | |
1219 | BTAUNT1.Volume = 10 | |
1220 | BTAUNT1.Pitch = 1 | |
1221 | BTAUNT1.Looped = true | |
1222 | BTAUNT1.TimePosition = 0.2 | |
1223 | ||
1224 | BTAUNT3 = Instance.new("Sound", tors) | |
1225 | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=969583926" | |
1226 | BTAUNT3.Volume = 10 | |
1227 | BTAUNT3.Pitch = 1 | |
1228 | BTAUNT3.Looped = true | |
1229 | BTAUNT3.TimePosition = 0.2 | |
1230 | ||
1231 | BTAUNT2 = Instance.new("Sound", tors) | |
1232 | BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=431213856" | |
1233 | BTAUNT2.Volume = 10 | |
1234 | BTAUNT2.Pitch = 1 | |
1235 | BTAUNT2.Looped = true | |
1236 | BTAUNT2.TimePosition = 0.2 | |
1237 | ------------------------------------------------------ | |
1238 | --End Effect Function-- | |
1239 | ------------------------------------------------------- | |
1240 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1241 | local NSound = nil | |
1242 | coroutine.resume(coroutine.create(function() | |
1243 | NSound = IT("Sound", PARENT) | |
1244 | NSound.Volume = VOLUME | |
1245 | NSound.Pitch = PITCH | |
1246 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1247 | swait() | |
1248 | NSound:play() | |
1249 | game:GetService("Debris"):AddItem(NSound, 50) | |
1250 | end)) | |
1251 | return NSound | |
1252 | end | |
1253 | function CameraEnshaking(Length, Intensity) | |
1254 | coroutine.resume(coroutine.create(function() | |
1255 | local intensity = 1 * Intensity | |
1256 | local rotM = 0.01 * Intensity | |
1257 | for i = 0, Length, 0.1 do | |
1258 | swait() | |
1259 | intensity = intensity - 0.05 * Intensity / Length | |
1260 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1261 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1262 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1263 | end | |
1264 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1265 | end)) | |
1266 | end | |
1267 | ------------------------------------------------------- | |
1268 | --End Important Functions-- | |
1269 | ------------------------------------------------------- | |
1270 | ||
1271 | ||
1272 | ------------------------------------------------------- | |
1273 | --Start Customization-- | |
1274 | ------------------------------------------------------- | |
1275 | local Player_Size = 1 | |
1276 | if Player_Size ~= 1 then | |
1277 | root.Size = root.Size * Player_Size | |
1278 | tors.Size = tors.Size * Player_Size | |
1279 | hed.Size = hed.Size * Player_Size | |
1280 | ra.Size = ra.Size * Player_Size | |
1281 | la.Size = la.Size * Player_Size | |
1282 | rl.Size = rl.Size * Player_Size | |
1283 | ll.Size = ll.Size * Player_Size | |
1284 | ---------------------------------------------------------------------------------- | |
1285 | rootj.Parent = root | |
1286 | neck.Parent = tors | |
1287 | RW.Parent = tors | |
1288 | LW.Parent = tors | |
1289 | RH.Parent = tors | |
1290 | LH.Parent = tors | |
1291 | ---------------------------------------------------------------------------------- | |
1292 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1293 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1294 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1295 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1296 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1297 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1298 | ---------------------------------------------------------------------------------- | |
1299 | 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)) | |
1300 | 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)) | |
1301 | 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)) | |
1302 | 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)) | |
1303 | --hat.Parent = Character | |
1304 | end | |
1305 | ---------------------------------------------------------------------------------- | |
1306 | ---------------------------------------------------------------------------------- | |
1307 | local equipped = false | |
1308 | local idle = 0 | |
1309 | local change = 1 | |
1310 | local val = 0 | |
1311 | local toim = 0 | |
1312 | local idleanim = 0.4 | |
1313 | local sine = 0 | |
1314 | local Sit = 1 | |
1315 | ---------------------------------------------------------------------------------- | |
1316 | hum.WalkSpeed = 8 | |
1317 | hum.JumpPower = 57 | |
1318 | hum.Animator.Parent = nil | |
1319 | ---------------------------------------------------------------------------------- | |
1320 | local Blobby = Instance.new("Part", char) | |
1321 | Blobby.Name = "Blob" | |
1322 | Blobby.CanCollide = false | |
1323 | Blobby.BrickColor = BrickColor.new("Really Black") | |
1324 | Blobby.Transparency = 0 | |
1325 | Blobby.Material = "Plastic" | |
1326 | Blobby.Size = Vector3.new(1, 1, 2) | |
1327 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
1328 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
1329 | ||
1330 | local Weld = Instance.new("Weld", Blobby) | |
1331 | Weld.Part0 = ra | |
1332 | Weld.Part1 = Blobby | |
1333 | Weld.C1 = CFrame.new(0, -2, 1.1) | |
1334 | Weld.C0 = CFrame.Angles(Rad(-86),0,0) | |
1335 | ||
1336 | local M2 = Instance.new("SpecialMesh") | |
1337 | M2.Parent = Blobby | |
1338 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
1339 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
1340 | M2.Scale = Vector3.new(2, 2, 2) | |
1341 | ||
1342 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
1343 | naeeym2.AlwaysOnTop = true | |
1344 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1345 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1346 | naeeym2.Adornee = hed | |
1347 | naeeym2.Name = "Name" | |
1348 | --naeeym2.PlayerToHideFrom = Player | |
1349 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1350 | tecks2.BackgroundTransparency = 1 | |
1351 | tecks2.TextScaled = true | |
1352 | tecks2.BorderSizePixel = 0 | |
1353 | tecks2.Text = "Fight Me" | |
1354 | tecks2.Font = Enum.Font.Bodoni | |
1355 | tecks2.TextSize = 30 | |
1356 | tecks2.TextStrokeTransparency = 0 | |
1357 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
1358 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1359 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1360 | tecks2.Parent = naeeym2]] | |
1361 | ------------------------------------------------------- | |
1362 | --End Customization-- | |
1363 | ------------------------------------------------------- | |
1364 | ||
1365 | ------------------------------------------------------- | |
1366 | --Start Attacks N Stuff-- | |
1367 | ------------------------------------------------------- | |
1368 | local naeeym2 = Instance.new("BillboardGui",char) | |
1369 | naeeym2.AlwaysOnTop = true | |
1370 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1371 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1372 | naeeym2.Adornee = hed | |
1373 | naeeym2.Name = "Name" | |
1374 | ||
1375 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1376 | tecks2.BackgroundTransparency = 1 | |
1377 | tecks2.TextScaled = true | |
1378 | tecks2.BorderSizePixel = 0 | |
1379 | tecks2.Text = "Grrrrrr" | |
1380 | tecks2.Font = "Garamond" | |
1381 | tecks2.TextSize = 30 | |
1382 | tecks2.TextStrokeTransparency = 0 | |
1383 | tecks2.TextColor3 = BrickColor.new('Really black').Color | |
1384 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
1385 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1386 | tecks2.Parent = naeeym2 | |
1387 | textfag = tecks2 | |
1388 | tecks2.Text = "Why you reseting,idiot?!" | |
1389 | wait(2) | |
1390 | tecks2.Text = "DIE ALREADY!" | |
1391 | wait(1) | |
1392 | tecks2.Text = "Pandora’s chara" | |
1393 | BTAUNT:Play() | |
1394 | animation.Value = 1 | |
1395 | coroutine.resume(coroutine.create(function() | |
1396 | while textfag ~= nil do | |
1397 | swait() | |
1398 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1399 | textfag.Rotation = math.random(-3,3) | |
1400 | end | |
1401 | end)) | |
1402 | ||
1403 | hed.face.Texture = "http://www.roblox.com/asset/?id=946610608" | |
1404 | for i,v in pairs(char:children()) do | |
1405 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then | |
1406 | v:Remove() | |
1407 | end | |
1408 | end | |
1409 | shirt = Instance.new("Shirt", char) | |
1410 | shirt.Name = "Shirt" | |
1411 | pants = Instance.new("Pants", char) | |
1412 | pants.Name = "Pants" | |
1413 | char.Shirt.ShirtTemplate = "rbxassetid://1533635803" | |
1414 | char.Pants.PantsTemplate = "rbxassetid://1460022985" | |
1415 | local Hair2 = Instance.new("Part", char) | |
1416 | Hair2.Name = "Hair2" | |
1417 | Hair2.CanCollide = false | |
1418 | Hair2.BrickColor = BrickColor.new("CGA brown") | |
1419 | Hair2.Transparency = 0 | |
1420 | Hair2.Material = "Plastic" | |
1421 | Hair2.Size = Vector3.new(1, 1, 2) | |
1422 | Hair2.TopSurface = Enum.SurfaceType.Smooth | |
1423 | Hair2.BottomSurface = Enum.SurfaceType.Smooth | |
1424 | ||
1425 | local Weld = Instance.new("Weld", Hair2) | |
1426 | Weld.Part0 = hed | |
1427 | Weld.Part1 = Hair2 | |
1428 | Weld.C1 = CFrame.new(0,-0.1,0.60) | |
1429 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
1430 | ||
1431 | local M2 = Instance.new("SpecialMesh") | |
1432 | M2.Parent = Hair2 | |
1433 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
1434 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
1435 | M2.Scale = Vector3.new(1, 1, 1) | |
1436 | local l = game.Lighting | |
1437 | local sky = Instance.new("Sky",l) | |
1438 | l.TimeOfDay = "00:00:00" | |
1439 | l.Brightness = 1 | |
1440 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
1441 | ---------------------------------------------------------------------------------- | |
1442 | wait() | |
1443 | player = game.Players.LocalPlayer | |
1444 | torso = player.Character:WaitForChild("Torso") | |
1445 | mouse = player:GetMouse() | |
1446 | ||
1447 | mouse.KeyDown:connect(function(key) | |
1448 | if key == "t" then | |
1449 | dist = (torso.Position - mouse.Hit.p).magnitude | |
1450 | if dist <= 10000 then | |
1451 | torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) | |
1452 | end | |
1453 | end | |
1454 | end) | |
1455 | ---------------------------------------------------------------------------------- | |
1456 | local AddInstance = function(Object, ...) | |
1457 | local Obj = Instance.new(Object) | |
1458 | for i,v in next,(...) do | |
1459 | Obj[i] = v | |
1460 | end | |
1461 | return Obj | |
1462 | end | |
1463 | ---------------------------------------------------- | |
1464 | local Reaper = AddInstance("Part",{ | |
1465 | Parent = hed, | |
1466 | CFrame = hed.CFrame, | |
1467 | formFactor = "Symmetric", | |
1468 | Size = Vector3.new(1, 1, 1), | |
1469 | CanCollide = false, | |
1470 | TopSurface = "Smooth", | |
1471 | BottomSurface = "Smooth", | |
1472 | Locked = true, | |
1473 | }) | |
1474 | local Weld = AddInstance("Weld",{ | |
1475 | Parent = Reaper, | |
1476 | Part0 = hed, | |
1477 | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), | |
1478 | Part1 = Reaper, | |
1479 | }) | |
1480 | local Mesh = AddInstance("SpecialMesh",{ | |
1481 | Parent = Reaper, | |
1482 | MeshId = "rbxassetid://83499032", | |
1483 | TextureId = "rbxassetid://184744284", | |
1484 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
1485 | VertexColor = Vector3.new(0.3, 0.3, 0.3), | |
1486 | }) | |
1487 | ------------------------------------------------------- | |
1488 | wait() | |
1489 | plr = game.Players.LocalPlayer | |
1490 | char = plr.Character | |
1491 | mouse = plr:GetMouse() | |
1492 | whitecolor = Color3.new(1,1,1) | |
1493 | epicmode = false | |
1494 | normal = true | |
1495 | for i,v in pairs(char:GetChildren()) do | |
1496 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1497 | v:Destroy() | |
1498 | end | |
1499 | end | |
1500 | local shirt = Instance.new("Shirt",char) | |
1501 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1533635803" | |
1502 | local pants = Instance.new("Pants",char) | |
1503 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=1460022985" | |
1504 | local bdycolors = char["Body Colors"] | |
1505 | bdycolors.HeadColor3 = whitecolor | |
1506 | bdycolors.LeftArmColor3 = whitecolor | |
1507 | bdycolors.LeftLegColor3 = whitecolor | |
1508 | bdycolors.RightArmColor3 = whitecolor | |
1509 | bdycolors.RightLegColor3 = whitecolor | |
1510 | bdycolors.TorsoColor3 = whitecolor | |
1511 | for i,v in pairs(char:GetChildren()) do | |
1512 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1513 | v:Destroy() | |
1514 | end | |
1515 | end | |
1516 | ---------------------------------------------------------------------- | |
1517 | Circle = nil | |
1518 | CircleParts = {} | |
1519 | Equipped = false | |
1520 | ||
1521 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1522 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1523 | end | |
1524 | Equipped = true | |
1525 | Circle = Instance.new("Model") | |
1526 | Circle.Name = "Circle" | |
1527 | Angle = 0 | |
1528 | for i = 1, 1 do | |
1529 | local CirclePart = Instance.new("Part") | |
1530 | CirclePart.Name = "CirclePart" | |
1531 | CirclePart.Transparency = 1 | |
1532 | CirclePart.BrickColor = BrickColor.new("Really black") | |
1533 | CirclePart.Material = Enum.Material.Plastic | |
1534 | CirclePart.Shape = Enum.PartType.Block | |
1535 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
1536 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
1537 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
1538 | CirclePart.Anchored = true | |
1539 | CirclePart.CanCollide = false | |
1540 | CirclePart.Locked = true | |
1541 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
1542 | local Aura = Instance.new('ParticleEmitter') | |
1543 | Aura.Name = "Aura" | |
1544 | Aura.Texture = "rbxassetid://771221224" | |
1545 | Aura.Parent = CirclePart | |
1546 | Aura.LightEmission = 0 | |
1547 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
1548 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) | |
1549 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
1550 | Aura.LockedToPart = false | |
1551 | Aura.Lifetime = NumberRange.new(1) | |
1552 | Aura.Rate = 50 | |
1553 | Aura.Speed = NumberRange.new(2.5) | |
1554 | Aura.SpreadAngle = Vector2.new(80,80) | |
1555 | local BlockMesh = Instance.new("BlockMesh") | |
1556 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
1557 | BlockMesh.Parent = CirclePart | |
1558 | CirclePart.Parent = Circle | |
1559 | local Star = Instance.new("Decal", CirclePart) | |
1560 | Star.Texture = "http://www.roblox.com/asset/?id=249559138" | |
1561 | Star.Face = "Top" | |
1562 | local Light = Instance.new("PointLight", CirclePart) | |
1563 | Light.Color = Color3.new(.20,0,0) | |
1564 | Light.Brightness = 100 | |
1565 | Light.Range = 15 | |
1566 | table.insert(CircleParts, CirclePart) | |
1567 | end | |
1568 | Spawn(function() | |
1569 | while Equipped and Humanoid.Parent and Torso.Parent do | |
1570 | if Angle == 360 then | |
1571 | Angle = 0 | |
1572 | end | |
1573 | Angle = Angle + 0.05 | |
1574 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
1575 | if Hit then | |
1576 | if not Circle.Parent then | |
1577 | Circle.Parent = Character | |
1578 | end | |
1579 | for i, v in pairs(CircleParts) do | |
1580 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
1581 | end | |
1582 | else | |
1583 | Circle.Parent = nil | |
1584 | end | |
1585 | wait() | |
1586 | end | |
1587 | end) | |
1588 | ||
1589 | function chatfunc(text, color) | |
1590 | local chat = coroutine.wrap(function() | |
1591 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
1592 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
1593 | end | |
1594 | local naeeym2 = Instance.new("BillboardGui", char) | |
1595 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
1596 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
1597 | naeeym2.Adornee = hed | |
1598 | naeeym2.Name = "TalkingBillBoard" | |
1599 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
1600 | tecks2.BackgroundTransparency = 1 | |
1601 | tecks2.BorderSizePixel = 0 | |
1602 | tecks2.Text = "" | |
1603 | tecks2.Font = "SciFi" | |
1604 | tecks2.TextSize = 30 | |
1605 | tecks2.TextStrokeTransparency = 0 | |
1606 | tecks2.TextColor3 = color | |
1607 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1608 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
1609 | local tecks3 = Instance.new("TextLabel", naeeym2) | |
1610 | tecks3.BackgroundTransparency = 1 | |
1611 | tecks3.BorderSizePixel = 0 | |
1612 | tecks3.Text = "" | |
1613 | tecks3.Font = "SciFi" | |
1614 | tecks3.TextSize = 30 | |
1615 | tecks3.TextStrokeTransparency = 0 | |
1616 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
1617 | tecks3.TextStrokeColor3 = color | |
1618 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
1619 | coroutine.resume(coroutine.create(function() | |
1620 | while true do | |
1621 | swait(1) | |
1622 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
1623 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
1624 | tecks2.Rotation = math.random(-5, 5) | |
1625 | tecks3.Rotation = math.random(-5, 5) | |
1626 | end | |
1627 | end)) | |
1628 | for i = 1, string.len(text) do | |
1629 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
1630 | tecks2.Text = string.sub(text, 1, i) | |
1631 | tecks3.Text = string.sub(text, 1, i) | |
1632 | swait(1) | |
1633 | end | |
1634 | wait(1) | |
1635 | local randomrot = math.random(1, 2) | |
1636 | if randomrot == 1 then | |
1637 | for i = 1, 50 do | |
1638 | swait() | |
1639 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
1640 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1641 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
1642 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
1643 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1644 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
1645 | end | |
1646 | elseif randomrot == 2 then | |
1647 | for i = 1, 50 do | |
1648 | swait() | |
1649 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
1650 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1651 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
1652 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
1653 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1654 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
1655 | end | |
1656 | end | |
1657 | naeeym2:Destroy() | |
1658 | end) | |
1659 | chat() | |
1660 | end | |
1661 | function Ban() | |
1662 | attack = true | |
1663 | for i = 0, 2.6, 0.1 do | |
1664 | swait() | |
1665 | 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(-60)), 0.2) | |
1666 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2) | |
1667 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2) | |
1668 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2) | |
1669 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
1670 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2) | |
1671 | end | |
1672 | Cso("357417055", tors, 10, 1) | |
1673 | CameraEnshaking(2, 15) | |
1674 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1675 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1676 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1677 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
1678 | if v:FindFirstChild("Head") then | |
1679 | Eviscerate(v) | |
1680 | end | |
1681 | end | |
1682 | for i = 0, 3, 0.1 do | |
1683 | swait() | |
1684 | 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(-15)), 0.3) | |
1685 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3) | |
1686 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3) | |
1687 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
1688 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
1689 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3) | |
1690 | end | |
1691 | attack = false | |
1692 | end | |
1693 | function fail() | |
1694 | chatfunc("You have failed.", BrickColor.new("Really red").Color) | |
1695 | Cso("907331307", hed, 3.5, 1) | |
1696 | attack = true | |
1697 | hum.WalkSpeed = 2.01 | |
1698 | for i = 0,1.2,0.1 do | |
1699 | swait() | |
1700 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1701 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1702 | 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) | |
1703 | 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) | |
1704 | 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) | |
1705 | 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) | |
1706 | end | |
1707 | for i = 0,1.2,0.1 do | |
1708 | swait() | |
1709 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1710 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1711 | 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) | |
1712 | 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) | |
1713 | 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) | |
1714 | 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) | |
1715 | end | |
1716 | for i = 0,1.2,0.1 do | |
1717 | swait() | |
1718 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1719 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1720 | 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) | |
1721 | 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) | |
1722 | 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) | |
1723 | 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) | |
1724 | end | |
1725 | for i = 0,1.2,0.1 do | |
1726 | swait() | |
1727 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1728 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1729 | 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) | |
1730 | 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) | |
1731 | 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) | |
1732 | 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) | |
1733 | end | |
1734 | for i = 0,1.2,0.1 do | |
1735 | swait() | |
1736 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1737 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1738 | 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) | |
1739 | 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) | |
1740 | 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) | |
1741 | 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) | |
1742 | end | |
1743 | for i = 0,1.2,0.1 do | |
1744 | swait() | |
1745 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1746 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1747 | 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) | |
1748 | 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) | |
1749 | 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) | |
1750 | 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) | |
1751 | end | |
1752 | hum.WalkSpeed = 16 | |
1753 | attack = false | |
1754 | end | |
1755 | function special_hell() | |
1756 | chatfunc("welcome to my special hell.", BrickColor.new("Really red").Color) | |
1757 | wait(2) | |
1758 | CHOICE = 6 | |
1759 | Cso("464600985", hed, 3.5, 1) | |
1760 | local killsky = Instance.new('Sky', game:GetService'Lighting') | |
1761 | killsky.SkyboxBk = "rbxassetid://818983932" | |
1762 | killsky.SkyboxDn = "rbxassetid://818983932" | |
1763 | killsky.SkyboxFt = "rbxassetid://818983932" | |
1764 | killsky.SkyboxLf = "rbxassetid://818983932" | |
1765 | killsky.SkyboxRt = "rbxassetid://818983932" | |
1766 | killsky.SkyboxUp = "rbxassetid://818983932" | |
1767 | --- | |
1768 | killsky.StarCount = 0 | |
1769 | killsky.SunAngularSize = 0 | |
1770 | killsky.MoonAngularSize = 0 | |
1771 | killsky.MoonTextureId = "" | |
1772 | killsky.CelestialBodiesShown = false | |
1773 | game.Lighting.FogColor = Color3.new(255,0,0) | |
1774 | game.Lighting.FogEnd = 1500 | |
1775 | if HITFLOOR ~= nil then | |
1776 | ATTACK = false | |
1777 | Rooted = false | |
1778 | local RINGSPIN = true | |
1779 | local CONSTRUCTING = true | |
1780 | local RING = CreatePart(3, Effects, "Neon", 0, 5, "Really red", "Ring", VT(0,0,0)) | |
1781 | RING.Color = C3(0,0,0) | |
1782 | MakeForm(RING,"Cyl") | |
1783 | RING.CFrame = CF(HITPOS) | |
1784 | coroutine.resume(coroutine.create(function() | |
1785 | repeat | |
1786 | Swait() | |
1787 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1788 | until CONSTRUCTING == false | |
1789 | repeat | |
1790 | Swait() | |
1791 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1792 | until RINGSPIN == false | |
1793 | for i = 1, 25 do | |
1794 | Swait() | |
1795 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1796 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1797 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1798 | RING.Transparency = RING.Transparency + 1/25 | |
1799 | end | |
1800 | RING:remove() | |
1801 | end)) | |
1802 | for i = 1, 15 do | |
1803 | Swait() | |
1804 | RING.Size = RING.Size + VT(0,0,0) | |
1805 | RING.Transparency = RING.Transparency - 1/15 | |
1806 | end | |
1807 | end | |
1808 | hum.WalkSpeed = 16 | |
1809 | attack = false | |
1810 | end | |
1811 | function ultra() | |
1812 | attack = true | |
1813 | hum.WalkSpeed = 0 | |
1814 | BTAUNT:Remove() | |
1815 | hed.face.Texture = "http://www.roblox.com/asset/?id=495377787" | |
1816 | local Fire = IT("Sound",Character.Torso) | |
1817 | Fire.SoundId = "rbxassetid://192104941" | |
1818 | Fire.Looped = true | |
1819 | Fire.Pitch = 1 | |
1820 | Fire.Volume = 1 | |
1821 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
1822 | fire.Lifetime = NumberRange.new(0.5) | |
1823 | fire.Speed = NumberRange.new(1, 3) | |
1824 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
1825 | fire.Rate = 0 | |
1826 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
1827 | fire.LightEmission = 0.6 | |
1828 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
1829 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
1830 | Fire:Play() | |
1831 | BTAUNT1:Play() | |
1832 | fire.Enabled = true | |
1833 | fire.Rate =2000 | |
1834 | BTAUNT1:Remove() | |
1835 | chatfunc("AHHHHHHHHHH HELP!!", BrickColor.new("Really red").Color) | |
1836 | wait(1) | |
1837 | for i = 0,18,0.1 do | |
1838 | swait() | |
1839 | 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) | |
1840 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1841 | 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) | |
1842 | 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) | |
1843 | 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) | |
1844 | LW.C0 = clerp(LW.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) | |
1845 | end | |
1846 | chatfunc("Time to die :)", BrickColor.new("Really red").Color) | |
1847 | wait(1) | |
1848 | for i = 0,1.2,0.1 do | |
1849 | swait() | |
1850 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1851 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1852 | 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) | |
1853 | 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) | |
1854 | 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) | |
1855 | 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) | |
1856 | end | |
1857 | for i = 0,1.2,0.1 do | |
1858 | swait() | |
1859 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1860 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1861 | 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) | |
1862 | 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) | |
1863 | 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) | |
1864 | 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) | |
1865 | end | |
1866 | tecks2:Remove() | |
1867 | fire:Remove() | |
1868 | Fire:Stop() | |
1869 | local BC = char["Body Colors"] | |
1870 | BC.HeadColor = BrickColor.new("Really black") | |
1871 | BC.LeftArmColor = BrickColor.new("Really black") | |
1872 | BC.LeftLegColor = BrickColor.new("Really black") | |
1873 | BC.RightArmColor = BrickColor.new("Really black") | |
1874 | BC.RightLegColor = BrickColor.new("Really black") | |
1875 | BC.TorsoColor = BrickColor.new("Really black") | |
1876 | tecks2:Remove() | |
1877 | BTAUNT3:Play() | |
1878 | local naeeym2 = Instance.new("BillboardGui",char) | |
1879 | naeeym2.AlwaysOnTop = true | |
1880 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1881 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
1882 | naeeym2.Adornee = hed | |
1883 | naeeym2.Name = "Name" | |
1884 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1885 | tecks2.BackgroundTransparency = 1 | |
1886 | tecks2.TextScaled = true | |
1887 | tecks2.BorderSizePixel = 0 | |
1888 | tecks2.Font = "Garamond" | |
1889 | tecks2.TextSize = 30 | |
1890 | tecks2.TextStrokeTransparency = 0 | |
1891 | tecks2.TextColor3 = BrickColor.new('Really black').Color | |
1892 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
1893 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1894 | tecks2.Parent = naeeym2 | |
1895 | textfag = tecks2 | |
1896 | wait(1) | |
1897 | tecks2.Text = "Ultra Pandora’s Chara" | |
1898 | animation.Value = 2 | |
1899 | coroutine.resume(coroutine.create(function() | |
1900 | while textfag ~= nil do | |
1901 | swait() | |
1902 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1903 | textfag.Rotation = math.random(-3,3) | |
1904 | end | |
1905 | end)) | |
1906 | hed.face.Texture = "http://www.roblox.com/asset/?id=435233416" | |
1907 | ------------------- | |
1908 | Spawn(function() | |
1909 | while Equipped and Humanoid.Parent and Torso.Parent do | |
1910 | if Angle == 360 then | |
1911 | Angle = 0 | |
1912 | end | |
1913 | Angle = Angle + 0.05 | |
1914 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
1915 | if Hit then | |
1916 | if not Circle.Parent then | |
1917 | Circle.Parent = Character | |
1918 | end | |
1919 | for i, v in pairs(CircleParts) do | |
1920 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
1921 | end | |
1922 | else | |
1923 | Circle.Parent = nil | |
1924 | end | |
1925 | wait() | |
1926 | end | |
1927 | end) | |
1928 | attack = false | |
1929 | hum.WalkSpeed = 75 | |
1930 | end | |
1931 | function hate() | |
1932 | chatfunc("i've got a question for you.", BrickColor.new("Really red").Color) | |
1933 | wait(3) | |
1934 | chatfunc("do you know black means?.", BrickColor.new("Really red").Color) | |
1935 | wait(3) | |
1936 | attack = true | |
1937 | Cso("464600985", hed, 3.5, 1) | |
1938 | local orb = Instance.new("Part", char) | |
1939 | orb.Anchored = true | |
1940 | orb.BrickColor = BrickC("Really black") | |
1941 | orb.CanCollide = false | |
1942 | orb.FormFactor = 3 | |
1943 | orb.Name = "Ring" | |
1944 | orb.Material = "Neon" | |
1945 | orb.Size = Vector3.new(1, 1, 1) | |
1946 | orb.Transparency = 0 | |
1947 | orb.TopSurface = 0 | |
1948 | orb.BottomSurface = 0 | |
1949 | local orbm = Instance.new("SpecialMesh", orb) | |
1950 | orbm.MeshType = "Sphere" | |
1951 | orbm.Name = "SizeMesh" | |
1952 | orbm.Scale = Vector3.new(0, 0, 0) | |
1953 | local scaled = 0.1 | |
1954 | local posid = 0 | |
1955 | for i = 0, 12, 0.1 do | |
1956 | swait() | |
1957 | scaled = scaled + 0.001 | |
1958 | posid = posid - scaled | |
1959 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
1960 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
1961 | 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) | |
1962 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1963 | 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) | |
1964 | 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) | |
1965 | 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) | |
1966 | 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) | |
1967 | end | |
1968 | hed.face.Texture = "http://www.roblox.com/asset/?id=435233416" | |
1969 | chatfunc("it's HATE :)", BrickColor.new("Really red").Color) | |
1970 | wait(3) | |
1971 | chatfunc("and i have a LOT of it to share", BrickColor.new("Really red").Color) | |
1972 | wait(2) | |
1973 | for i = 0, 2, 0.1 do | |
1974 | swait() | |
1975 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1976 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1977 | 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) | |
1978 | 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) | |
1979 | 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) | |
1980 | 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) | |
1981 | end | |
1982 | coroutine.resume(coroutine.create(function() | |
1983 | orb.Anchored = false | |
1984 | CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1) | |
1985 | local a = Instance.new("Part", workspace) | |
1986 | a.Name = "Direction" | |
1987 | a.Anchored = true | |
1988 | a.BrickColor = BrickC("Really black") | |
1989 | a.Material = "Neon" | |
1990 | a.Transparency = 1 | |
1991 | a.CanCollide = false | |
1992 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
1993 | local ignore = orb | |
1994 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1995 | a.BottomSurface = 10 | |
1996 | a.TopSurface = 10 | |
1997 | local distance = (orb.CFrame.p - position).magnitude | |
1998 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1999 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2000 | orb.CFrame = a.CFrame | |
2001 | a:Destroy() | |
2002 | local bv = Instance.new("BodyVelocity") | |
2003 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2004 | bv.velocity = orb.CFrame.lookVector * 125 | |
2005 | bv.Parent = orb | |
2006 | local hitted = false | |
2007 | game:GetService("Debris"):AddItem(orb, 15) | |
2008 | swait() | |
2009 | local hit = orb.Touched:connect(function(hit) | |
2010 | if hitted == false then | |
2011 | hitted = true | |
2012 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
2013 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 25)) do | |
2014 | if v:FindFirstChild("Head") then | |
2015 | Eviscerate(v) | |
2016 | end | |
2017 | end | |
2018 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere") | |
2019 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere") | |
2020 | for i = 0, 9 do | |
2021 | 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") | |
2022 | 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") | |
2023 | end | |
2024 | orb.Anchored = true | |
2025 | orb.Transparency = 1 | |
2026 | wait(8) | |
2027 | orb:Destroy() | |
2028 | end | |
2029 | end) | |
2030 | end)) | |
2031 | for i = 0, 1, 0.1 do | |
2032 | swait() | |
2033 | 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) | |
2034 | 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) | |
2035 | 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) | |
2036 | 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) | |
2037 | 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) | |
2038 | 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) | |
2039 | end | |
2040 | hed.face.Texture = "http://www.roblox.com/asset/?id=946610608" | |
2041 | attack = false | |
2042 | end | |
2043 | function THUNDERCLAP() | |
2044 | attack = true | |
2045 | for i = 0, 15, 0.1 do | |
2046 | swait() | |
2047 | 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) | |
2048 | 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) | |
2049 | 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) | |
2050 | 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) | |
2051 | 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) | |
2052 | 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) | |
2053 | end | |
2054 | CFuncs.Sound.Create("rbxassetid://907528019", root, 1.85, 1) | |
2055 | for i = 0, 7, 0.1 do | |
2056 | swait() | |
2057 | 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) | |
2058 | 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) | |
2059 | 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) | |
2060 | 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) | |
2061 | 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) | |
2062 | 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) | |
2063 | end | |
2064 | ||
2065 | Magic(1, "Add", root.CFrame, Vector3.new(50, 100, 50), 4, BrickC("Really black"), "Sphere") | |
2066 | Magic(1, "Add", root.CFrame, Vector3.new(30, 60, 30), 4, BrickC("Really black"), "Sphere") | |
2067 | Magic(1, "Add", root.CFrame, Vector3.new(3, 600, 3), 4, BrickC("Really black"), "Sphere") | |
2068 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 500000)) do | |
2069 | if v:FindFirstChild("Head") then | |
2070 | Eviscerate(v) | |
2071 | end | |
2072 | end | |
2073 | CFuncs["Sound"].Create("rbxassetid://138213851", char, 2,1.2) | |
2074 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,1.2) | |
2075 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 3,1.05) | |
2076 | for i = 0, 7, 0.1 do | |
2077 | swait() | |
2078 | 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) | |
2079 | 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) | |
2080 | 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) | |
2081 | 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) | |
2082 | 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) | |
2083 | 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) | |
2084 | end | |
2085 | attack = false | |
2086 | end | |
2087 | function TUSKOR661() | |
2088 | attack = true | |
2089 | M2.Scale = Vector3.new(5, 5, 5) | |
2090 | chatfunc("MU HAHAHAHHAHAHAHHAH", BrickColor.new("Really red").Color) | |
2091 | Cso("464600985", hed, 3.5, 1) | |
2092 | hed.face.Texture = "http://www.roblox.com/asset/?id=2381712419" | |
2093 | for i = 0, 15, 0.1 do | |
2094 | swait() | |
2095 | hum.CameraOffset = Vector3.new(0, 8, 0) | |
2096 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 8 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.2) | |
2097 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2098 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
2099 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
2100 | 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) | |
2101 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
2102 | end | |
2103 | for i = 0, 15, 0.1 do | |
2104 | swait() | |
2105 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 8 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.2) | |
2106 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2107 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
2108 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
2109 | 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) | |
2110 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
2111 | end | |
2112 | wait(0.1) | |
2113 | for i = 0, 15, 0.1 do | |
2114 | swait() | |
2115 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 8 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.2) | |
2116 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2117 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
2118 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
2119 | 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) | |
2120 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-30), Rad(-90)), 0.2) | |
2121 | end | |
2122 | Cso("483458132", char, 10, .7) | |
2123 | CameraEnshaking(6, 65) | |
2124 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2125 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2126 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -5, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
2127 | Effects.Ring.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04) | |
2128 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04) | |
2129 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02) | |
2130 | Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01) | |
2131 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really black"), "Sphere") | |
2132 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Really black"), "Sphere") | |
2133 | Magic(1, "Add", root.CFrame, Vector3.new(1, 100000, 1), 0.5, BrickColor.new("Really black"), "Sphere") | |
2134 | Magic(1, "Add", root.CFrame, Vector3.new(1, 1, 1), 0.75, BrickColor.new("Really black"), "Sphere") | |
2135 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 99999999999.5)) do | |
2136 | if v:FindFirstChild("Head") then | |
2137 | Eviscerate(v) | |
2138 | end | |
2139 | end | |
2140 | for i = 0, 15, 0.1 do | |
2141 | swait() | |
2142 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(75), Rad(0), Rad(0)), 0.2) | |
2143 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2144 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
2145 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
2146 | 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) | |
2147 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2) | |
2148 | end | |
2149 | hed.face.Texture = "http://www.roblox.com/asset/?id=2381712419" | |
2150 | M2.Scale = Vector3.new(1, 1, 1) | |
2151 | attack = false | |
2152 | end | |
2153 | ------------------------------------------------------- | |
2154 | --End Attacks N Stuff-- | |
2155 | ------------------------------------------------------- | |
2156 | mouse.KeyDown:connect(function(key) | |
2157 | if attack == false then | |
2158 | if key == "y" then | |
2159 | Cso("246480487", tors, 10, 1) | |
2160 | elseif key == 'q' then | |
2161 | fail() | |
2162 | elseif key == 'h' then | |
2163 | special_hell() | |
2164 | elseif key == 'f' then | |
2165 | ultra() | |
2166 | elseif key == 'z' then | |
2167 | hate() | |
2168 | elseif key == 'g' then | |
2169 | TUSKOR661() | |
2170 | elseif key == 'b' then | |
2171 | THUNDERCLAP() | |
2172 | elseif key == 'm' then | |
2173 | Cso("525166232", hed, 100, 1) | |
2174 | end | |
2175 | end | |
2176 | end) | |
2177 | mouse.Button1Down:connect(function(key) | |
2178 | if attack == false then | |
2179 | Ban() | |
2180 | end | |
2181 | end) | |
2182 | ||
2183 | ||
2184 | ||
2185 | ||
2186 | ||
2187 | ------------------------------------------------------- | |
2188 | --Start Animations-- | |
2189 | ------------------------------------------------------- | |
2190 | while true do | |
2191 | swait() | |
2192 | sine = sine + change | |
2193 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2194 | local velderp = root.Velocity.y | |
2195 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2196 | if equipped == true or equipped == false then | |
2197 | if attack == false then | |
2198 | idle = idle + 1 | |
2199 | else | |
2200 | idle = 0 | |
2201 | end | |
2202 | if 1 < root.Velocity.y and hitfloor == nil then | |
2203 | Anim = "Jump" | |
2204 | if attack == false then | |
2205 | 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) | |
2206 | 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) | |
2207 | 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) | |
2208 | 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) | |
2209 | 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) | |
2210 | 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) | |
2211 | end | |
2212 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2213 | Anim = "Fall" | |
2214 | if attack == false then | |
2215 | 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) | |
2216 | 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) | |
2217 | 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.15) | |
2218 | 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.15) | |
2219 | 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) | |
2220 | 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) | |
2221 | end | |
2222 | elseif torvel < 1 and hitfloor ~= nil then | |
2223 | Anim = "Idle" | |
2224 | change = 1 | |
2225 | if attack == false then | |
2226 | ||
2227 | if animation.Value == 1 then | |
2228 | ||
2229 | ||
2230 | ||
2231 | 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.15) | |
2232 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2233 | 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) | |
2234 | 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) | |
2235 | 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) | |
2236 | 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) | |
2237 | ||
2238 | else | |
2239 | ||
2240 | if animation.Value == 2 then | |
2241 | ||
2242 | ||
2243 | 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) | |
2244 | 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) | |
2245 | 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) | |
2246 | 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) | |
2247 | 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) | |
2248 | 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) | |
2249 | ||
2250 | ||
2251 | else | |
2252 | ||
2253 | ||
2254 | if animation.Value == 3 then | |
2255 | ||
2256 | ||
2257 | ||
2258 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10)), 0.15) | |
2259 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2260 | 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(-10)), 0.15) | |
2261 | 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(6)), 0.15) | |
2262 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(21), Rad(11), Rad(-90 - 2.5 * Sin(sine / 20))), 0.1) | |
2263 | LW.C0 = clerp(LW.C0, CF(-.8, 0.3 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(8), Rad(5), Rad(90 + 2.5 * Sin(sine / 20))), 0.1) | |
2264 | ||
2265 | ||
2266 | else | |
2267 | ||
2268 | ||
2269 | if animation.Value == 4 then | |
2270 | ||
2271 | ||
2272 | 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(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.08) | |
2273 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.08) | |
2274 | 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.08) | |
2275 | 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.08) | |
2276 | RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08) | |
2277 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
2278 | ||
2279 | ||
2280 | ||
2281 | else | |
2282 | ||
2283 | ||
2284 | ||
2285 | if animation.Value == 10 then | |
2286 | ||
2287 | ||
2288 | ||
2289 | 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(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15) | |
2290 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3) | |
2291 | 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.15) | |
2292 | 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.15) | |
2293 | 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(43 + 4.5 * Sin(sine / 12))), 0.1) | |
2294 | 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(-43 - 4.5 * Sin(sine / 12))), 0.1) | |
2295 | ||
2296 | ||
2297 | ||
2298 | ||
2299 | end | |
2300 | ||
2301 | ||
2302 | end | |
2303 | ||
2304 | end | |
2305 | end | |
2306 | ||
2307 | ||
2308 | end | |
2309 | ||
2310 | end | |
2311 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2312 | Anim = "Walk" | |
2313 | change = 1 | |
2314 | if attack == false then | |
2315 | ||
2316 | if animation.Value == 1 then | |
2317 | ||
2318 | ||
2319 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
2320 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2321 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2322 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2323 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * 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) | |
2324 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * 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) | |
2325 | ||
2326 | else | |
2327 | ||
2328 | if animation.Value == 2 then | |
2329 | ||
2330 | ||
2331 | 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) | |
2332 | 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) | |
2333 | 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) | |
2334 | 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) | |
2335 | 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) | |
2336 | 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) | |
2337 | ||
2338 | ||
2339 | else | |
2340 | ||
2341 | ||
2342 | if animation.Value == 3 then | |
2343 | ||
2344 | ||
2345 | ||
2346 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(10)), 0.15) | |
2347 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2348 | 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(-10)), 0.15) | |
2349 | 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(6)), 0.15) | |
2350 | RW.C0 = clerp(RW.C0, CF(.8, 0.5 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(21), Rad(11), Rad(-90 - 2.5 * Sin(sine / 20))), 0.1) | |
2351 | LW.C0 = clerp(LW.C0, CF(-.8, 0.3 + 0.05 * Sin(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * angles(Rad(8), Rad(5), Rad(90 + 2.5 * Sin(sine / 20))), 0.1) | |
2352 | ||
2353 | ||
2354 | else | |
2355 | ||
2356 | ||
2357 | if animation.Value == 4 then | |
2358 | ||
2359 | ||
2360 | 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(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.08) | |
2361 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.08) | |
2362 | 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.08) | |
2363 | 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.08) | |
2364 | RW.C0 = clerp(RW.C0, CF(1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08) | |
2365 | LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08) | |
2366 | ||
2367 | ||
2368 | ||
2369 | else | |
2370 | ||
2371 | ||
2372 | ||
2373 | if animation.Value == 10 then | |
2374 | ||
2375 | ||
2376 | ||
2377 | 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(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15) | |
2378 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 12.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.3) | |
2379 | 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.15) | |
2380 | 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.15) | |
2381 | 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(43 + 4.5 * Sin(sine / 12))), 0.1) | |
2382 | 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(-43 - 4.5 * Sin(sine / 12))), 0.1) | |
2383 | ||
2384 | ||
2385 | ||
2386 | ||
2387 | end | |
2388 | ||
2389 | ||
2390 | end | |
2391 | ||
2392 | end | |
2393 | end | |
2394 | ||
2395 | ||
2396 | end | |
2397 | ||
2398 | end | |
2399 | elseif torvel >= 25 and hitfloor ~= nil then | |
2400 | Anim = "Sprint" | |
2401 | change = 1.35 | |
2402 | if attack == false then | |
2403 | 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) | |
2404 | 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) | |
2405 | 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) | |
2406 | 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) | |
2407 | 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) | |
2408 | 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) | |
2409 | end | |
2410 | end | |
2411 | end | |
2412 | if 0 < #Effects then | |
2413 | - | for [pe = 1, #Effects do |
2413 | + | for e = 1, #Effects do |
2414 | if Effects[e] ~= nil then | |
2415 | local Thing = Effects[e] | |
2416 | if Thing ~= nil then | |
2417 | local Part = Thing[1] | |
2418 | local Mode = Thing[2] | |
2419 | local Delay = Thing[3] | |
2420 | local IncX = Thing[4] | |
2421 | local IncY = Thing[5] | |
2422 | local IncZ = Thing[6] | |
2423 | if 1 >= Thing[1].Transparency then | |
2424 | if Thing[2] == "Block1" then | |
2425 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2426 | local Mesh = Thing[1].Mesh | |
2427 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2428 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2429 | elseif Thing[2] == "Block2" then | |
2430 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2431 | local Mesh = Thing[7] | |
2432 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2433 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2434 | elseif Thing[2] == "Block3" then | |
2435 | 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) | |
2436 | local Mesh = Thing[7] | |
2437 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2438 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2439 | elseif Thing[2] == "Cylinder" then | |
2440 | local Mesh = Thing[1].Mesh | |
2441 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2442 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2443 | elseif Thing[2] == "Blood" then | |
2444 | local Mesh = Thing[7] | |
2445 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2446 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2447 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2448 | elseif Thing[2] == "Elec" then | |
2449 | local Mesh = Thing[1].Mesh | |
2450 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2451 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2452 | elseif Thing[2] == "Disappear" then | |
2453 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2454 | elseif Thing[2] == "Shatter" then | |
2455 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2456 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2457 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2458 | Thing[6] = Thing[6] + Thing[5] | |
2459 | end | |
2460 | else | |
2461 | Part.Parent = nil | |
2462 | table.remove(Effects, e) | |
2463 | end | |
2464 | end | |
2465 | end | |
2466 | end | |
2467 | end | |
2468 | end | |
2469 | ------------------------------------------------------- | |
2470 | --End Animations And Script-- | |
2471 | ------------------------------------------------------- |