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