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(17, 17, 17)) | |
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 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
754 | local NEWWELD = IT(TYPE) | |
755 | NEWWELD.Part0 = PART0 | |
756 | NEWWELD.Part1 = PART1 | |
757 | NEWWELD.C0 = C0 | |
758 | NEWWELD.C1 = C1 | |
759 | NEWWELD.Parent = PARENT | |
760 | return NEWWELD | |
761 | end | |
762 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
763 | local NEWMESH = IT(MESH) | |
764 | if MESH == "SpecialMesh" then | |
765 | NEWMESH.MeshType = MESHTYPE | |
766 | if MESHID ~= "nil" and MESHID ~= "" then | |
767 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
768 | end | |
769 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
770 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
771 | end | |
772 | end | |
773 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
774 | NEWMESH.Scale = SCALE | |
775 | NEWMESH.Parent = PARENT | |
776 | return NEWMESH | |
777 | end | |
778 | ||
779 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Red", "Top Hat", Vector3.new(1,1,1),false) | |
780 | PRT.Color = Color3.new(236, 236, 236) | |
781 | local TopHat = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.87,0), CF(0, 0, 0)) | |
782 | CreateMesh("SpecialMesh", PRT, "FileMesh", "1033213385", "", Vector3.new(1,1,1)*1.05, Vector3.new(0,0,0)) | |
783 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Red", "Top Hat", Vector3.new(1,1,1),false) | |
784 | PRT.Color = Color3.new(27, 42, 53) | |
785 | EffectModel = Instance.new("Model", char) | |
786 | Effects = { | |
787 | Block = { | |
788 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
789 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
790 | prt.Anchored = true | |
791 | prt.CFrame = cframe | |
792 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
793 | game:GetService("Debris"):AddItem(prt, 10) | |
794 | if Type == 1 or Type == nil then | |
795 | table.insert(Effects, { | |
796 | prt, | |
797 | "Block1", | |
798 | delay, | |
799 | x3, | |
800 | y3, | |
801 | z3, | |
802 | msh | |
803 | }) | |
804 | elseif Type == 2 then | |
805 | table.insert(Effects, { | |
806 | prt, | |
807 | "Block2", | |
808 | delay, | |
809 | x3, | |
810 | y3, | |
811 | z3, | |
812 | msh | |
813 | }) | |
814 | else | |
815 | table.insert(Effects, { | |
816 | prt, | |
817 | "Block3", | |
818 | delay, | |
819 | x3, | |
820 | y3, | |
821 | z3, | |
822 | msh | |
823 | }) | |
824 | end | |
825 | end | |
826 | }, | |
827 | Sphere = { | |
828 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
829 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
830 | prt.Anchored = true | |
831 | prt.CFrame = cframe | |
832 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
833 | game:GetService("Debris"):AddItem(prt, 10) | |
834 | table.insert(Effects, { | |
835 | prt, | |
836 | "Cylinder", | |
837 | delay, | |
838 | x3, | |
839 | y3, | |
840 | z3, | |
841 | msh | |
842 | }) | |
843 | end | |
844 | }, | |
845 | Cylinder = { | |
846 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
847 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
848 | prt.Anchored = true | |
849 | prt.CFrame = cframe | |
850 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
851 | game:GetService("Debris"):AddItem(prt, 10) | |
852 | table.insert(Effects, { | |
853 | prt, | |
854 | "Cylinder", | |
855 | delay, | |
856 | x3, | |
857 | y3, | |
858 | z3, | |
859 | msh | |
860 | }) | |
861 | end | |
862 | }, | |
863 | Wave = { | |
864 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
865 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
866 | prt.Anchored = true | |
867 | prt.CFrame = cframe | |
868 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
869 | Cso("158037267", tors, 10, 1) | |
870 | chatfunc("print (''Slash'')", BrickColor.new("Really red").Color) | |
871 | wait(0,35) | |
872 | game:GetService("Debris"):AddItem(prt, 10) | |
873 | table.insert(Effects, { | |
874 | prt, | |
875 | "Cylinder", | |
876 | delay, | |
877 | x3 / 60, | |
878 | y3 / 60, | |
879 | z3 / 60, | |
880 | msh | |
881 | }) | |
882 | end | |
883 | }, | |
884 | Ring = { | |
885 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
886 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
887 | prt.Anchored = true | |
888 | prt.CFrame = cframe | |
889 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
890 | game:GetService("Debris"):AddItem(prt, 10) | |
891 | table.insert(Effects, { | |
892 | prt, | |
893 | "Cylinder", | |
894 | delay, | |
895 | x3, | |
896 | y3, | |
897 | z3, | |
898 | msh | |
899 | }) | |
900 | end | |
901 | }, | |
902 | Break = { | |
903 | Create = function(brickcolor, cframe, x1, y1, z1) | |
904 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
905 | prt.Anchored = true | |
906 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
907 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
908 | local num = math.random(10, 50) / 1000 | |
909 | game:GetService("Debris"):AddItem(prt, 10) | |
910 | table.insert(Effects, { | |
911 | prt, | |
912 | "Shatter", | |
913 | num, | |
914 | prt.CFrame, | |
915 | math.random() - math.random(), | |
916 | 0, | |
917 | math.random(50, 100) / 100 | |
918 | }) | |
919 | end | |
920 | }, | |
921 | Spiral = { | |
922 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
923 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
924 | prt.Anchored = true | |
925 | prt.CFrame = cframe | |
926 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
927 | game:GetService("Debris"):AddItem(prt, 10) | |
928 | table.insert(Effects, { | |
929 | prt, | |
930 | "Cylinder", | |
931 | delay, | |
932 | x3, | |
933 | y3, | |
934 | z3, | |
935 | msh | |
936 | }) | |
937 | end | |
938 | }, | |
939 | Push = { | |
940 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
941 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
942 | prt.Anchored = true | |
943 | prt.CFrame = cframe | |
944 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
945 | game:GetService("Debris"):AddItem(prt, 10) | |
946 | table.insert(Effects, { | |
947 | prt, | |
948 | "Cylinder", | |
949 | delay, | |
950 | x3, | |
951 | y3, | |
952 | z3, | |
953 | msh | |
954 | }) | |
955 | end | |
956 | } | |
957 | } | |
958 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
959 | local fp = IT("Part") | |
960 | fp.formFactor = formfactor | |
961 | fp.Parent = parent | |
962 | fp.Reflectance = reflectance | |
963 | fp.Transparency = transparency | |
964 | fp.CanCollide = false | |
965 | fp.Locked = true | |
966 | fp.BrickColor = brickcolor | |
967 | fp.Name = name | |
968 | fp.Size = size | |
969 | fp.Position = tors.Position | |
970 | RemoveOutlines(fp) | |
971 | fp.Material = "SmoothPlastic" | |
972 | fp:BreakJoints() | |
973 | return fp | |
974 | end | |
975 | ||
976 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
977 | local mesh = IT(Mesh) | |
978 | mesh.Parent = part | |
979 | if Mesh == "SpecialMesh" then | |
980 | mesh.MeshType = meshtype | |
981 | if meshid ~= "nil" then | |
982 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
983 | end | |
984 | end | |
985 | mesh.Offset = offset | |
986 | mesh.Scale = scale | |
987 | return mesh | |
988 | end | |
989 | ||
990 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
991 | local type = type | |
992 | local rng = Instance.new("Part", char) | |
993 | rng.Anchored = true | |
994 | rng.BrickColor = color | |
995 | rng.CanCollide = false | |
996 | rng.FormFactor = 3 | |
997 | rng.Name = "Ring" | |
998 | rng.Material = "Neon" | |
999 | rng.Size = Vector3.new(1, 1, 1) | |
1000 | rng.Transparency = 0 | |
1001 | rng.TopSurface = 0 | |
1002 | rng.BottomSurface = 0 | |
1003 | rng.CFrame = pos | |
1004 | local rngm = Instance.new("SpecialMesh", rng) | |
1005 | rngm.MeshType = MType | |
1006 | rngm.Scale = scale | |
1007 | local scaler2 = 1 | |
1008 | if type == "Add" then | |
1009 | scaler2 = 1 * value | |
1010 | elseif type == "Divide" then | |
1011 | scaler2 = 1 / value | |
1012 | end | |
1013 | coroutine.resume(coroutine.create(function() | |
1014 | for i = 0, 10 / bonuspeed, 0.1 do | |
1015 | swait() | |
1016 | if type == "Add" then | |
1017 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1018 | elseif type == "Divide" then | |
1019 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1020 | end | |
1021 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1022 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1023 | end | |
1024 | rng:Destroy() | |
1025 | end)) | |
1026 | end | |
1027 | ||
1028 | function Eviscerate(dude) | |
1029 | if dude.Name ~= char then | |
1030 | local bgf = IT("BodyGyro", dude.Head) | |
1031 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1032 | local val = IT("BoolValue", dude) | |
1033 | val.Name = "IsHit" | |
1034 | local ds = coroutine.wrap(function() | |
1035 | dude:WaitForChild("Head"):BreakJoints() | |
1036 | wait(0.5) | |
1037 | target = nil | |
1038 | coroutine.resume(coroutine.create(function() | |
1039 | for i, v in pairs(dude:GetChildren()) do | |
1040 | if v:IsA("Accessory") then | |
1041 | v:Destroy() | |
1042 | end | |
1043 | if v:IsA("Humanoid") then | |
1044 | v:Destroy() | |
1045 | end | |
1046 | if v:IsA("CharacterMesh") then | |
1047 | v:Destroy() | |
1048 | end | |
1049 | if v:IsA("Model") then | |
1050 | v:Destroy() | |
1051 | end | |
1052 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1053 | for x, o in pairs(v:GetChildren()) do | |
1054 | if o:IsA("Decal") then | |
1055 | o:Destroy() | |
1056 | end | |
1057 | end | |
1058 | coroutine.resume(coroutine.create(function() | |
1059 | v.Material = "Neon" | |
1060 | v.CanCollide = false | |
1061 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1062 | PartEmmit1.LightEmission = 1 | |
1063 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1064 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1065 | PartEmmit1.Rate = 150 | |
1066 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1067 | PartEmmit1.Size = NumberSequence.new({ | |
1068 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1069 | NumberSequenceKeypoint.new(1, 0, 0) | |
1070 | }) | |
1071 | PartEmmit1.Transparency = NumberSequence.new({ | |
1072 | NumberSequenceKeypoint.new(0, 0, 0), | |
1073 | NumberSequenceKeypoint.new(1, 1, 0) | |
1074 | }) | |
1075 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1076 | PartEmmit1.VelocitySpread = 30000 | |
1077 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1078 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1079 | local BodPoss = IT("BodyPosition", v) | |
1080 | BodPoss.P = 3000 | |
1081 | BodPoss.D = 1000 | |
1082 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1083 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1084 | v.Color = maincolor.Color | |
1085 | coroutine.resume(coroutine.create(function() | |
1086 | for i = 0, 49 do | |
1087 | swait(1) | |
1088 | v.Transparency = v.Transparency + 0.08 | |
1089 | end | |
1090 | wait(0.5) | |
1091 | PartEmmit1.Enabled = false | |
1092 | wait(3) | |
1093 | v:Destroy() | |
1094 | dude:Destroy() | |
1095 | end)) | |
1096 | end)) | |
1097 | end | |
1098 | end | |
1099 | end)) | |
1100 | end) | |
1101 | ds() | |
1102 | end | |
1103 | end | |
1104 | ||
1105 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1106 | if SinglePlayer then | |
1107 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1108 | end | |
1109 | local List = {} | |
1110 | for i, v in pairs(workspace:GetChildren()) do | |
1111 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1112 | table.insert(List, v) | |
1113 | end | |
1114 | end | |
1115 | return List | |
1116 | end | |
1117 | ||
1118 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1119 | local type = type | |
1120 | local rng = Instance.new("Part", char) | |
1121 | rng.Anchored = true | |
1122 | rng.BrickColor = color | |
1123 | rng.CanCollide = false | |
1124 | rng.FormFactor = 3 | |
1125 | rng.Name = "Ring" | |
1126 | rng.Material = "Neon" | |
1127 | rng.Size = Vector3.new(1, 1, 1) | |
1128 | rng.Transparency = 0 | |
1129 | rng.TopSurface = 0 | |
1130 | rng.BottomSurface = 0 | |
1131 | rng.CFrame = pos | |
1132 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1133 | local rngm = Instance.new("SpecialMesh", rng) | |
1134 | rngm.MeshType = MType | |
1135 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1136 | local scaler2 = 1 | |
1137 | local speeder = FastSpeed | |
1138 | if type == "Add" then | |
1139 | scaler2 = 1 * value | |
1140 | elseif type == "Divide" then | |
1141 | scaler2 = 1 / value | |
1142 | end | |
1143 | coroutine.resume(coroutine.create(function() | |
1144 | for i = 0, 10 / bonuspeed, 0.1 do | |
1145 | swait() | |
1146 | if type == "Add" then | |
1147 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1148 | elseif type == "Divide" then | |
1149 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1150 | end | |
1151 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1152 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1153 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1154 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1155 | end | |
1156 | rng:Destroy() | |
1157 | end)) | |
1158 | end | |
1159 | ||
1160 | function SoulSteal(dude) | |
1161 | if dude.Name ~= char then | |
1162 | local bgf = IT("BodyGyro", dude.Head) | |
1163 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1164 | local val = IT("BoolValue", dude) | |
1165 | val.Name = "IsHit" | |
1166 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1167 | local soulst = coroutine.wrap(function() | |
1168 | local soul = Instance.new("Part",dude) | |
1169 | soul.Size = Vector3.new(1,1,1) | |
1170 | soul.CanCollide = false | |
1171 | soul.Anchored = false | |
1172 | soul.Position = torso.Position | |
1173 | soul.Transparency = 1 | |
1174 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1175 | PartEmmit1.LightEmission = 1 | |
1176 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1177 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1178 | PartEmmit1.Rate = 250 | |
1179 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1180 | PartEmmit1.Size = NumberSequence.new({ | |
1181 | NumberSequenceKeypoint.new(0, 1, 0), | |
1182 | NumberSequenceKeypoint.new(1, 0, 0) | |
1183 | }) | |
1184 | PartEmmit1.Transparency = NumberSequence.new({ | |
1185 | NumberSequenceKeypoint.new(0, 0, 0), | |
1186 | NumberSequenceKeypoint.new(1, 1, 0) | |
1187 | }) | |
1188 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1189 | PartEmmit1.VelocitySpread = 30000 | |
1190 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1191 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1192 | local BodPoss = IT("BodyPosition", soul) | |
1193 | BodPoss.P = 3000 | |
1194 | BodPoss.D = 1000 | |
1195 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1196 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1197 | wait(1.6) | |
1198 | soul.Touched:connect(function(hit) | |
1199 | if hit.Parent == char then | |
1200 | soul:Destroy() | |
1201 | end | |
1202 | end) | |
1203 | wait(1.2) | |
1204 | while soul do | |
1205 | swait() | |
1206 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1207 | BodPoss.Position = tors.Position | |
1208 | end | |
1209 | end) | |
1210 | soulst() | |
1211 | end | |
1212 | end | |
1213 | function FaceMouse() | |
1214 | local Cam = workspace.CurrentCamera | |
1215 | return { | |
1216 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1217 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1218 | } | |
1219 | end | |
1220 | ||
1221 | BTAUNT = Instance.new("Sound", tors) | |
1222 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1843671833" | |
1223 | BTAUNT.Volume = 10 | |
1224 | BTAUNT.Pitch = 1 | |
1225 | BTAUNT.Looped = true | |
1226 | BTAUNT.TimePosition = 0.2 | |
1227 | ||
1228 | BTAUNT1 = Instance.new("Sound", tors) | |
1229 | BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=3062285720" | |
1230 | BTAUNT1.Volume = 10 | |
1231 | BTAUNT1.Pitch = 1 | |
1232 | BTAUNT1.Looped = true | |
1233 | BTAUNT1.TimePosition = 0.2 | |
1234 | ||
1235 | BTAUNT2 = Instance.new("Sound", tors) | |
1236 | BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=3210544464" | |
1237 | BTAUNT2.Volume = 10 | |
1238 | BTAUNT2.Pitch = 1 | |
1239 | BTAUNT2.Looped = true | |
1240 | BTAUNT2.TimePosition = 0.2 | |
1241 | ||
1242 | ||
1243 | BTAUNT3 = Instance.new("Sound", tors) | |
1244 | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=2942631642" | |
1245 | BTAUNT3.Volume = 10 | |
1246 | BTAUNT3.Pitch = 1 | |
1247 | BTAUNT3.Looped = true | |
1248 | BTAUNT3.TimePosition = 0.2 | |
1249 | ||
1250 | BTAUNT4 = Instance.new("Sound", tors) | |
1251 | BTAUNT4.SoundId = "http://www.roblox.com/asset/?id=2455369690" | |
1252 | BTAUNT4.Volume = 10 | |
1253 | BTAUNT4.Pitch = 1 | |
1254 | BTAUNT4.Looped = true | |
1255 | BTAUNT4.TimePosition = 0.2 | |
1256 | ||
1257 | BTAUNT5 = Instance.new("Sound", tors) | |
1258 | BTAUNT5.SoundId = "http://www.roblox.com/asset/?id=3080683313" | |
1259 | BTAUNT5.Volume = 10 | |
1260 | BTAUNT5.Pitch = 1 | |
1261 | BTAUNT5.Looped = true | |
1262 | BTAUNT5.TimePosition = 0.2 | |
1263 | ||
1264 | BTAUNT6 = Instance.new("Sound", tors) | |
1265 | BTAUNT6.SoundId = "http://www.roblox.com/asset/?id=1839038498" | |
1266 | BTAUNT6.Volume = 10 | |
1267 | BTAUNT6.Pitch = 1 | |
1268 | BTAUNT6.Looped = true | |
1269 | BTAUNT6.TimePosition = 0.2 | |
1270 | ||
1271 | ------------------------------------------------------ | |
1272 | --End Effect Function-- | |
1273 | ------------------------------------------------------- | |
1274 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1275 | local NSound = nil | |
1276 | coroutine.resume(coroutine.create(function() | |
1277 | NSound = IT("Sound", PARENT) | |
1278 | NSound.Volume = VOLUME | |
1279 | NSound.Pitch = PITCH | |
1280 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1281 | swait() | |
1282 | NSound:play() | |
1283 | game:GetService("Debris"):AddItem(NSound, 50) | |
1284 | end)) | |
1285 | return NSound | |
1286 | end | |
1287 | function CameraEnshaking(Length, Intensity) | |
1288 | coroutine.resume(coroutine.create(function() | |
1289 | local intensity = 1 * Intensity | |
1290 | local rotM = 0.01 * Intensity | |
1291 | for i = 0, Length, 0.1 do | |
1292 | swait() | |
1293 | intensity = intensity - 0.05 * Intensity / Length | |
1294 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1295 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1296 | 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) | |
1297 | end | |
1298 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1299 | end)) | |
1300 | end | |
1301 | ------------------------------------------------------- | |
1302 | --End Important Functions-- | |
1303 | ------------------------------------------------------- | |
1304 | ||
1305 | ||
1306 | ------------------------------------------------------- | |
1307 | --Start Customization-- | |
1308 | ------------------------------------------------------- | |
1309 | local Player_Size = 1 | |
1310 | if Player_Size ~= 1 then | |
1311 | root.Size = root.Size * Player_Size | |
1312 | tors.Size = tors.Size * Player_Size | |
1313 | hed.Size = hed.Size * Player_Size | |
1314 | ra.Size = ra.Size * Player_Size | |
1315 | la.Size = la.Size * Player_Size | |
1316 | rl.Size = rl.Size * Player_Size | |
1317 | ll.Size = ll.Size * Player_Size | |
1318 | ---------------------------------------------------------------------------------- | |
1319 | rootj.Parent = root | |
1320 | neck.Parent = tors | |
1321 | RW.Parent = tors | |
1322 | LW.Parent = tors | |
1323 | RH.Parent = tors | |
1324 | LH.Parent = tors | |
1325 | ---------------------------------------------------------------------------------- | |
1326 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1327 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1328 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1329 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1330 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1331 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1332 | ---------------------------------------------------------------------------------- | |
1333 | 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)) | |
1334 | 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)) | |
1335 | 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)) | |
1336 | 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)) | |
1337 | --hat.Parent = Character | |
1338 | end | |
1339 | ---------------------------------------------------------------------------------- | |
1340 | ---------------------------------------------------------------------------------- | |
1341 | local equipped = false | |
1342 | local idle = 0 | |
1343 | local change = 1 | |
1344 | local val = 0 | |
1345 | local toim = 0 | |
1346 | local idleanim = 0.4 | |
1347 | local sine = 0 | |
1348 | local Sit = 1 | |
1349 | ---------------------------------------------------------------------------------- | |
1350 | hum.WalkSpeed = 8 | |
1351 | hum.JumpPower = 57 | |
1352 | hum.Animator.Parent = nil | |
1353 | ---------------------------------------------------------------------------------- | |
1354 | local Blob = Instance.new("Part", char) | |
1355 | Blob.Name = "Bloby" | |
1356 | Blob.CanCollide = false | |
1357 | Blob.BrickColor = BrickColor.new("Really black") | |
1358 | Blob.Transparency = 0 | |
1359 | Blob.Material = "Plastic" | |
1360 | Blob.Size = Vector3.new(1, 1, 2) | |
1361 | Blob.TopSurface = Enum.SurfaceType.Smooth | |
1362 | Blob.BottomSurface = Enum.SurfaceType.Smooth | |
1363 | ||
1364 | local Weld = Instance.new("Weld", Blob) | |
1365 | Weld.Part0 = ra | |
1366 | Weld.Part1 = Blob | |
1367 | Weld.C1 = CFrame.new(0, -2, 1.1) | |
1368 | Weld.C0 = CFrame.Angles(Rad(-86),0,0) | |
1369 | ||
1370 | local M2 = Instance.new("SpecialMesh") | |
1371 | M2.Parent = Blob | |
1372 | M2.MeshId = "http://www.roblox.com/asset/?id=432791411" | |
1373 | M2.TextureId = "http://www.roblox.com/asset/?id=160810181" | |
1374 | M2.Scale = Vector3.new(2, 2, 2) | |
1375 | ||
1376 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
1377 | naeeym2.AlwaysOnTop = true | |
1378 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1379 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1380 | naeeym2.Adornee = hed | |
1381 | naeeym2.Name = "Name" | |
1382 | --naeeym2.PlayerToHideFrom = Player | |
1383 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1384 | tecks2.BackgroundTransparency = 1 | |
1385 | tecks2.TextScaled = true | |
1386 | tecks2.BorderSizePixel = 0 | |
1387 | tecks2.Text = "Fight Me" | |
1388 | tecks2.Font = Enum.Font.Bodoni | |
1389 | tecks2.TextSize = 30 | |
1390 | tecks2.TextStrokeTransparency = 0 | |
1391 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
1392 | tecks2.TextStrokeColor3 = Color3.new(205, 84, 75) | |
1393 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1394 | tecks2.Parent = naeeym2]] | |
1395 | ------------------------------------------------------- | |
1396 | --End Customization-- | |
1397 | ------------------------------------------------------- | |
1398 | ||
1399 | ------------------------------------------------------- | |
1400 | --Start Attacks N Stuff-- | |
1401 | ------------------------------------------------------- | |
1402 | local naeeym2 = Instance.new("BillboardGui",char) | |
1403 | naeeym2.AlwaysOnTop = true | |
1404 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1405 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1406 | naeeym2.Adornee = hed | |
1407 | naeeym2.Name = "Name" | |
1408 | ||
1409 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1410 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
1411 | tecks2.BackgroundTransparency = 1 | |
1412 | tecks2.TextScaled = true | |
1413 | tecks2.BorderSizePixel = 0 | |
1414 | tecks2.Text = "" | |
1415 | tecks2.Font = "Fantasy" | |
1416 | tecks2.TextSize = 30 | |
1417 | tecks2.TextStrokeTransparency = 0 | |
1418 | tecks2.TextColor3 = BrickColor.new('Really red').Color | |
1419 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
1420 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1421 | tecks2.Parent = naeeym2 | |
1422 | textfag = tecks2 | |
1423 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
1424 | tecks2.Text = "" | |
1425 | CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1) | |
1426 | - | tecks2.Text = "script by xdielivex" |
1426 | + | tecks2.Text = "script by doryna2281337" |
1427 | wait(2) | |
1428 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
1429 | tecks2.Text = "" | |
1430 | BTAUNT:Play() | |
1431 | coroutine.resume(coroutine.create(function() | |
1432 | while textfag ~= nil do | |
1433 | swait() | |
1434 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1435 | textfag.Rotation = math.random(-3,3) | |
1436 | end | |
1437 | end)) | |
1438 | ||
1439 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
1440 | for i,v in pairs(char:children()) do | |
1441 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then | |
1442 | v:Remove() | |
1443 | end | |
1444 | end | |
1445 | shirt = Instance.new("Shirt", char) | |
1446 | shirt.Name = "Shirt" | |
1447 | pants = Instance.new("Pants", char) | |
1448 | pants.Name = "Pants" | |
1449 | char.Shirt.ShirtTemplate = "rbxassetid://2018917293" | |
1450 | char.Pants.PantsTemplate = "rbxassetid://398633812" | |
1451 | local Hair2 = Instance.new("Part", char) | |
1452 | Hair2.Name = "Hair2" | |
1453 | Hair2.CanCollide = false | |
1454 | Hair2.BrickColor = BrickColor.new("CGA brown") | |
1455 | Hair2.Transparency = 0 | |
1456 | Hair2.Material = "Plastic" | |
1457 | Hair2.Size = Vector3.new(1, 1, 2) | |
1458 | Hair2.TopSurface = Enum.SurfaceType.Smooth | |
1459 | Hair2.BottomSurface = Enum.SurfaceType.Smooth | |
1460 | ||
1461 | local Weld = Instance.new("Weld", Hair2) | |
1462 | Weld.Part0 = hed | |
1463 | Weld.Part1 = Hair2 | |
1464 | Weld.C1 = CFrame.new(0,-0.1,0.60) | |
1465 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
1466 | ||
1467 | local M2 = Instance.new("SpecialMesh") | |
1468 | M2.Parent = Hair2 | |
1469 | M2.MeshId = "http://www.roblox.com/asset/?id=1703946602" | |
1470 | M2.TextureId = "http://www.roblox.com/asset/?id=916236071" | |
1471 | M2.Scale = Vector3.new(1, 1, 1) | |
1472 | local l = game.Lighting | |
1473 | local sky = Instance.new("Sky",l) | |
1474 | l.TimeOfDay = "12:00:00" | |
1475 | l.Brightness = 1 | |
1476 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
1477 | ---------------------------------------------------------------------------------- | |
1478 | wait() | |
1479 | player = game.Players.LocalPlayer | |
1480 | torso = player.Character:WaitForChild("Torso") | |
1481 | mouse = player:GetMouse() | |
1482 | ||
1483 | mouse.KeyDown:connect(function(key) | |
1484 | if key == "t" then | |
1485 | Cso("2755928629", tors, 10, 1) | |
1486 | chatfunc("function teleport()", BrickColor.new("Really red").Color) | |
1487 | wait(1) | |
1488 | dist = (torso.Position - mouse.Hit.p).magnitude | |
1489 | if dist <= 10000 then | |
1490 | torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) | |
1491 | end | |
1492 | end | |
1493 | end) | |
1494 | ---------------------------------------------------------------------------------- | |
1495 | local AddInstance = function(Object, ...) | |
1496 | local Obj = Instance.new(Object) | |
1497 | for i,v in next,(...) do | |
1498 | Obj[i] = v | |
1499 | end | |
1500 | return Obj | |
1501 | end | |
1502 | ---------------------------------------------------- | |
1503 | local Reaper = AddInstance("Part",{ | |
1504 | Parent = hed, | |
1505 | CFrame = hed.CFrame, | |
1506 | formFactor = "Symmetric", | |
1507 | Size = Vector3.new(1, 1, 1), | |
1508 | CanCollide = false, | |
1509 | TopSurface = "Smooth", | |
1510 | BottomSurface = "Smooth", | |
1511 | Locked = true, | |
1512 | }) | |
1513 | local Weld = AddInstance("Weld",{ | |
1514 | Parent = Reaper, | |
1515 | Part0 = hed, | |
1516 | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), | |
1517 | Part1 = Reaper, | |
1518 | }) | |
1519 | local Mesh = AddInstance("SpecialMesh",{ | |
1520 | Parent = Reaper, | |
1521 | MeshId = "rbxassetid://0", | |
1522 | TextureId = "rbxassetid://0", | |
1523 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
1524 | VertexColor = Vector3.new(0.3, 0.3, 0.3), | |
1525 | }) | |
1526 | ------------------------------------------------------- | |
1527 | wait() | |
1528 | plr = game.Players.LocalPlayer | |
1529 | char = plr.Character | |
1530 | mouse = plr:GetMouse() | |
1531 | whitecolor = Color3.new(1,1,1) | |
1532 | epicmode = false | |
1533 | normal = true | |
1534 | for i,v in pairs(char:GetChildren()) do | |
1535 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1536 | v:Destroy() | |
1537 | end | |
1538 | end | |
1539 | local shirt = Instance.new("Shirt",char) | |
1540 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0" | |
1541 | local pants = Instance.new("Pants",char) | |
1542 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=0" | |
1543 | local bdycolors = char["Body Colors"] | |
1544 | bdycolors.HeadColor3 = whitecolor | |
1545 | bdycolors.LeftArmColor3 = whitecolor | |
1546 | bdycolors.LeftLegColor3 = whitecolor | |
1547 | bdycolors.RightArmColor3 = whitecolor | |
1548 | bdycolors.RightLegColor3 = whitecolor | |
1549 | bdycolors.TorsoColor3 = whitecolor | |
1550 | for i,v in pairs(char:GetChildren()) do | |
1551 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1552 | v:Destroy() | |
1553 | end | |
1554 | end | |
1555 | ---------------------------------------------------------------------- | |
1556 | Circle = nil | |
1557 | CircleParts = {} | |
1558 | Equipped = false | |
1559 | ||
1560 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1561 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1562 | end | |
1563 | Equipped = true | |
1564 | Circle = Instance.new("Model") | |
1565 | Circle.Name = "Circle" | |
1566 | Angle = 0 | |
1567 | for i = 1, 1 do | |
1568 | local CirclePart = Instance.new("Part") | |
1569 | CirclePart.Name = "CirclePart" | |
1570 | CirclePart.Transparency = 1 | |
1571 | CirclePart.BrickColor = BrickColor.new("Really black") | |
1572 | CirclePart.Material = Enum.Material.Plastic | |
1573 | CirclePart.Shape = Enum.PartType.Block | |
1574 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
1575 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
1576 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
1577 | CirclePart.Anchored = true | |
1578 | CirclePart.CanCollide = false | |
1579 | CirclePart.Locked = true | |
1580 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
1581 | local Aura = Instance.new('ParticleEmitter') | |
1582 | Aura.Name = "Aura" | |
1583 | Aura.Texture = "rbxassetid://0" | |
1584 | Aura.Parent = CirclePart | |
1585 | Aura.LightEmission = 0 | |
1586 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
1587 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) | |
1588 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
1589 | Aura.LockedToPart = false | |
1590 | Aura.Lifetime = NumberRange.new(1) | |
1591 | Aura.Rate = 50 | |
1592 | Aura.Speed = NumberRange.new(2.5) | |
1593 | Aura.SpreadAngle = Vector2.new(80,80) | |
1594 | local BlockMesh = Instance.new("BlockMesh") | |
1595 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
1596 | BlockMesh.Parent = CirclePart | |
1597 | CirclePart.Parent = Circle | |
1598 | local Star = Instance.new("Decal", CirclePart) | |
1599 | Star.Texture = "http://www.roblox.com/asset/?id=124339739" | |
1600 | Star.Face = "Top" | |
1601 | local Light = Instance.new("PointLight", CirclePart) | |
1602 | Light.Color = Color3.new(.20,0,0) | |
1603 | Light.Brightness = 100 | |
1604 | Light.Range = 15 | |
1605 | table.insert(CircleParts, CirclePart) | |
1606 | end | |
1607 | Spawn(function() | |
1608 | while Equipped and Humanoid.Parent and Torso.Parent do | |
1609 | if Angle == 360 then | |
1610 | Angle = 0 | |
1611 | end | |
1612 | Angle = Angle + 0.05 | |
1613 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
1614 | if Hit then | |
1615 | if not Circle.Parent then | |
1616 | Circle.Parent = Character | |
1617 | end | |
1618 | for i, v in pairs(CircleParts) do | |
1619 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
1620 | end | |
1621 | else | |
1622 | Circle.Parent = nil | |
1623 | end | |
1624 | wait() | |
1625 | end | |
1626 | end) | |
1627 | ||
1628 | function chatfunc(text, color) | |
1629 | local chat = coroutine.wrap(function() | |
1630 | if char:FindFirstChild("TalkingBillBoard") ~= nil then | |
1631 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
1632 | end | |
1633 | local naeeym2 = Instance.new("BillboardGui", char) | |
1634 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
1635 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
1636 | naeeym2.Adornee = hed | |
1637 | naeeym2.Name = "TalkingBillBoard" | |
1638 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
1639 | tecks2.BackgroundTransparency = 1 | |
1640 | tecks2.BorderSizePixel = 0 | |
1641 | tecks2.Text = "" | |
1642 | tecks2.Font = "Fantasy" | |
1643 | tecks2.TextSize = 30 | |
1644 | tecks2.TextStrokeTransparency = 0 | |
1645 | tecks2.TextColor3 = color | |
1646 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1647 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
1648 | local tecks3 = Instance.new("TextLabel", naeeym2) | |
1649 | tecks3.BackgroundTransparency = 1 | |
1650 | tecks3.BorderSizePixel = 0 | |
1651 | tecks3.Text = "" | |
1652 | tecks3.Font = "Fantasy" | |
1653 | tecks3.TextSize = 30 | |
1654 | tecks3.TextStrokeTransparency = 0 | |
1655 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
1656 | tecks3.TextStrokeColor3 = color | |
1657 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
1658 | coroutine.resume(coroutine.create(function() | |
1659 | while true do | |
1660 | swait(1) | |
1661 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
1662 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
1663 | tecks2.Rotation = math.random(-5, 5) | |
1664 | tecks3.Rotation = math.random(-5, 5) | |
1665 | end | |
1666 | end)) | |
1667 | for i = 1, string.len(text) do | |
1668 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
1669 | tecks2.Text = string.sub(text, 1, i) | |
1670 | tecks3.Text = string.sub(text, 1, i) | |
1671 | swait(1) | |
1672 | end | |
1673 | wait(1) | |
1674 | local randomrot = math.random(1, 2) | |
1675 | if randomrot == 1 then | |
1676 | for i = 1, 50 do | |
1677 | swait() | |
1678 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
1679 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1680 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
1681 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
1682 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1683 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
1684 | end | |
1685 | elseif randomrot == 2 then | |
1686 | for i = 1, 50 do | |
1687 | swait() | |
1688 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
1689 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1690 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
1691 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
1692 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
1693 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
1694 | end | |
1695 | end | |
1696 | naeeym2:Destroy() | |
1697 | end) | |
1698 | chat() | |
1699 | end | |
1700 | ||
1701 | function Ban() | |
1702 | attack = true | |
1703 | for i = 0, 2.6, 0.1 do | |
1704 | swait() | |
1705 | 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) | |
1706 | 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) | |
1707 | 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) | |
1708 | 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) | |
1709 | 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) | |
1710 | 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) | |
1711 | end | |
1712 | Cso("357417055", tors, 10, 1) | |
1713 | CameraEnshaking(2, 15) | |
1714 | 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) | |
1715 | 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) | |
1716 | 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) | |
1717 | for i, v in pairs(FindNearestHead(Blob.CFrame.p, 9.5)) do | |
1718 | if v:FindFirstChild("Head") then | |
1719 | Eviscerate(v) | |
1720 | end | |
1721 | end | |
1722 | for i = 0, 3, 0.1 do | |
1723 | swait() | |
1724 | 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) | |
1725 | 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) | |
1726 | 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) | |
1727 | 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) | |
1728 | 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) | |
1729 | 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) | |
1730 | end | |
1731 | attack = false | |
1732 | end | |
1733 | function fail() | |
1734 | CFuncs.Sound.Create("rbxassetid://138088905", root, 1.85, 1) | |
1735 | chatfunc("print (''such a skid'')", BrickColor.new("Really red").Color) | |
1736 | Cso("732572828", hed, 3.5, 1) | |
1737 | attack = true | |
1738 | hum.WalkSpeed = 2.01 | |
1739 | for i = 0,1.2,0.1 do | |
1740 | swait() | |
1741 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1742 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1743 | 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) | |
1744 | 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) | |
1745 | 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) | |
1746 | 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) | |
1747 | end | |
1748 | for i = 0,1.2,0.1 do | |
1749 | swait() | |
1750 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1751 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1752 | 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) | |
1753 | 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) | |
1754 | 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) | |
1755 | 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) | |
1756 | end | |
1757 | for i = 0,1.2,0.1 do | |
1758 | swait() | |
1759 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1760 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1761 | 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) | |
1762 | 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) | |
1763 | 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) | |
1764 | 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) | |
1765 | end | |
1766 | for i = 0,1.2,0.1 do | |
1767 | swait() | |
1768 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1769 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1770 | 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) | |
1771 | 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) | |
1772 | 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) | |
1773 | 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) | |
1774 | end | |
1775 | for i = 0,1.2,0.1 do | |
1776 | swait() | |
1777 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1778 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1779 | 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) | |
1780 | 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) | |
1781 | 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) | |
1782 | 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) | |
1783 | end | |
1784 | for i = 0,1.2,0.1 do | |
1785 | swait() | |
1786 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1787 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
1788 | 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) | |
1789 | 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) | |
1790 | 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) | |
1791 | 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) | |
1792 | end | |
1793 | hum.WalkSpeed = 16 | |
1794 | attack = false | |
1795 | end | |
1796 | ||
1797 | function sneakonehundred() | |
1798 | Cso("891918584", tors, 10, 1) | |
1799 | attack = true | |
1800 | hum.WalkSpeed = 0.03 | |
1801 | Character.Head.face.Texture = "rbxassetid://0" | |
1802 | for i = 0,20,0.1 do | |
1803 | swait() | |
1804 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15) | |
1805 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4) | |
1806 | 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) | |
1807 | 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) | |
1808 | 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) | |
1809 | 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) | |
1810 | end | |
1811 | wait(0.15) | |
1812 | Character.Head.face.Texture = "rbxassetid://0" | |
1813 | for i = 0,7,0.1 do | |
1814 | swait() | |
1815 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15) | |
1816 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4) | |
1817 | 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) | |
1818 | 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) | |
1819 | 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) | |
1820 | 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) | |
1821 | end | |
1822 | Character.Head.face.Texture = "rbxassetid://0" | |
1823 | attack = false | |
1824 | hum.WalkSpeed = 16 | |
1825 | end | |
1826 | ||
1827 | function DANCEFORME() | |
1828 | MERKIO = Instance.new("Sound", tors) --why | |
1829 | MERKIO.SoundId = "http://www.roblox.com/asset/?id=891918584" | |
1830 | MERKIO.Volume = 10 | |
1831 | MERKIO.Pitch = 1 | |
1832 | MERKIO.Looped = false | |
1833 | MERKIO.TimePosition = 0 | |
1834 | attack = true | |
1835 | Character.Head.face.Texture = "rbxassetid://0" | |
1836 | MERKIO:Play() | |
1837 | repeat | |
1838 | for i = 0,0.7,0.2 do | |
1839 | swait() | |
1840 | MERKIO.Parent = tors | |
1841 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8) | |
1842 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9) | |
1843 | RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8) | |
1844 | LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8) | |
1845 | RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77) | |
1846 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67) | |
1847 | end | |
1848 | for i = 0,0.7,0.2 do | |
1849 | swait() | |
1850 | MERKIO.Parent = tors | |
1851 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8) | |
1852 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9) | |
1853 | 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.8) | |
1854 | 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.8) | |
1855 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.7) | |
1856 | 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(-90)), 0.7) | |
1857 | end | |
1858 | until MERKIO.Playing == false | |
1859 | MERKIO:Stop() | |
1860 | Character.Head.face.Texture = "rbxassetid://0" | |
1861 | attack = false | |
1862 | hum.WalkSpeed = 16 | |
1863 | end | |
1864 | ||
1865 | function dejzrXD() | |
1866 | attack = true | |
1867 | hum.WalkSpeed = 20 | |
1868 | for i = 0, 1, 0.1 do | |
1869 | swait() | |
1870 | Cso("2755928629", char, 10, 1) | |
1871 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
1872 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1873 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1874 | 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1875 | 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1876 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1877 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1878 | end | |
1879 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(123, 46, 47), 1, maincolor, "Sphere") | |
1880 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(27, 42, 53), 2, maincolor, "Sphere") | |
1881 | Magic(1, "Add", mouse.Hit, Vector3.new(1000, 1000, 1000), 0.5, maincolor, "Sphere") | |
1882 | Magic(1, "Add", mouse.Hit, Vector3.new(1000, 1000, 1000), 0.75, maincolor, "Sphere") | |
1883 | CameraEnshaking(4, 5) | |
1884 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
1885 | if v:FindFirstChild("Head") then | |
1886 | Eviscerate(v) | |
1887 | end | |
1888 | end | |
1889 | for i = 0, 1, 0.1 do | |
1890 | swait() | |
1891 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
1892 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1893 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1894 | 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1895 | 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1896 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1897 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1898 | end | |
1899 | attack = false | |
1900 | Speed = 20 | |
1901 | local Mau5 = p:GetMouse() | |
1902 | end | |
1903 | function Lerp(a, b, t) | |
1904 | local qa = { | |
1905 | QuaternionFromCFrame(a) | |
1906 | } | |
1907 | local qb = { | |
1908 | QuaternionFromCFrame(b) | |
1909 | } | |
1910 | local ax, ay, az = a.x, a.y, a.z | |
1911 | local bx, by, bz = b.x, b.y, b.z | |
1912 | local _t = 1 - t | |
1913 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1914 | end | |
1915 | local Lerp = CFrame.new().lerp | |
1916 | function QuaternionFromCFrame(cf) | |
1917 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1918 | local trace = m00 + m11 + m22 | |
1919 | if trace > 0 then | |
1920 | local s = math.sqrt(1 + trace) | |
1921 | local recip = 0.5 / s | |
1922 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1923 | else | |
1924 | local i = 0 | |
1925 | if m00 < m11 then | |
1926 | i = 1 | |
1927 | end | |
1928 | if i == 0 and m00 or m11 < m22 then | |
1929 | i = 2 | |
1930 | end | |
1931 | if i == 0 then | |
1932 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1933 | local recip = 0.5 / s | |
1934 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1935 | elseif i == 1 then | |
1936 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1937 | local recip = 0.5 / s | |
1938 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1939 | elseif i == 2 then | |
1940 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1941 | local recip = 0.5 / s | |
1942 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1943 | end | |
1944 | end | |
1945 | end | |
1946 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1947 | local xs, ys, zs = x + x, y + y, z + z | |
1948 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1949 | local xx = x * xs | |
1950 | local xy = x * ys | |
1951 | local xz = x * zs | |
1952 | local yy = y * ys | |
1953 | local yz = y * zs | |
1954 | local zz = z * zs | |
1955 | 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)) | |
1956 | end | |
1957 | function QuaternionSlerp(a, b, t) | |
1958 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1959 | local startInterp, finishInterp | |
1960 | if cosTheta >= 1.0E-4 then | |
1961 | if 1 - cosTheta > 1.0E-4 then | |
1962 | local theta = math.acos(cosTheta) | |
1963 | local invSinTheta = 1 / math.sin(theta) | |
1964 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
1965 | finishInterp = math.sin(t * theta) * invSinTheta | |
1966 | else | |
1967 | startInterp = 1 - t | |
1968 | finishInterp = t | |
1969 | if 1 + cosTheta > 1.0E-4 then | |
1970 | local theta = math.acos(-cosTheta) | |
1971 | local invSinTheta = 1 / math.sin(theta) | |
1972 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
1973 | finishInterp = math.sin(t * theta) * invSinTheta | |
1974 | else | |
1975 | startInterp = t - 1 | |
1976 | finishInterp = t | |
1977 | 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 | |
1978 | end | |
1979 | end | |
1980 | end | |
1981 | end | |
1982 | ||
1983 | function TruthSeekerOrbAttack() | |
1984 | local selected = math.random(1, 8) | |
1985 | local Orb = Orbs_["Orb" .. selected] | |
1986 | local Outline = Orb.Outline | |
1987 | local nPos | |
1988 | local sound = Instance.new("Sound", hed) | |
1989 | sound.SoundId = "rbxassetid://553462044" | |
1990 | sound.Volume = 0.35 | |
1991 | sound.Pitch = 1.4 + math.random() / 5 | |
1992 | sound:play() | |
1993 | game:service("Debris"):AddItem(sound, 5) | |
1994 | if Debounces["OrbMove" .. selected] == true then | |
1995 | return | |
1996 | end | |
1997 | Debounces["OrbMove" .. selected] = true | |
1998 | for i = 1, 12 do | |
1999 | Orb.CFrame = Lerp(Outline.CFrame, Mau5.Hit, 0.3) | |
2000 | nPos = Outline.CFrame.p | |
2001 | wait() | |
2002 | end | |
2003 | Orb.Touched:connect(function(hit) | |
2004 | if hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game:service'Players'.LocalPlayer.Name and Debounces["OrbMove" .. selected] == true then | |
2005 | hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(hit.Parent:FindFirstChildOfClass'Humanoid'.MaxHealth/2/2/2/2/2) | |
2006 | end | |
2007 | end) | |
2008 | Debounces["OrbMove" .. selected] = false | |
2009 | wait(0.1) | |
2010 | end | |
2011 | ||
2012 | function dash() | |
2013 | dashing = true | |
2014 | attack = true | |
2015 | local bv = Instance.new("BodyVelocity") | |
2016 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2017 | bv.velocity = root.CFrame.lookVector*200 | |
2018 | bv.Parent = root | |
2019 | for i = 0,1,0.1 do | |
2020 | swait() | |
2021 | bv.velocity = root.CFrame.lookVector*200 | |
2022 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*CF(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5) | |
2023 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
2024 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5) | |
2025 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5) | |
2026 | RH.C0=clerp(RH.C0,CF(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2027 | LH.C0=clerp(LH.C0,CF(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2028 | end | |
2029 | bv:Destroy() | |
2030 | attack = false | |
2031 | dashing = false | |
2032 | end | |
2033 | ||
2034 | function special_hell() | |
2035 | CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1) | |
2036 | chatfunc("function speed() ", BrickColor.new("Really red").Color) | |
2037 | wait(2) | |
2038 | CHOICE = 6 | |
2039 | Cso("732572828", hed, 3.5, 1) | |
2040 | CFuncs.Sound.Create("rbxassetid://188035939", root, 1.85, 1) | |
2041 | hum.WalkSpeed = 50 | |
2042 | ||
2043 | attack = false | |
2044 | end | |
2045 | function ultra() | |
2046 | attack = true | |
2047 | hum.WalkSpeed = 0 | |
2048 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
2049 | local Fire = IT("Sound",Character.Torso) | |
2050 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
2051 | fire.Lifetime = NumberRange.new(0.5) | |
2052 | fire.Speed = NumberRange.new(1, 3) | |
2053 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
2054 | fire.Rate = 0 | |
2055 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
2056 | fire.LightEmission = 0.6 | |
2057 | fire.Texture = "http://www.roblox.com/asset/?id=0" | |
2058 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
2059 | Fire:Play() | |
2060 | fire.Enabled = true | |
2061 | fire.Rate =2000 | |
2062 | CFuncs.Sound.Create("rbxassetid://138088905", root, 1.85, 1) | |
2063 | chatfunc("print (''dude, i hate skids'')", BrickColor.new("Really red").Color) | |
2064 | wait(1) | |
2065 | for i = 0,18,0.1 do | |
2066 | swait() | |
2067 | 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) | |
2068 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
2069 | 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) | |
2070 | 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) | |
2071 | 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) | |
2072 | 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) | |
2073 | end | |
2074 | chatfunc("print(''fine, i will forgive you'')", BrickColor.new("Really red").Color) | |
2075 | wait(1) | |
2076 | for i = 0,1.2,0.1 do | |
2077 | swait() | |
2078 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2079 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
2080 | 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) | |
2081 | 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) | |
2082 | 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) | |
2083 | 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) | |
2084 | end | |
2085 | for i = 0,1.2,0.1 do | |
2086 | swait() | |
2087 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
2088 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20), Rad(0), Rad(0)), 0.3) | |
2089 | 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) | |
2090 | 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) | |
2091 | 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) | |
2092 | 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) | |
2093 | end | |
2094 | tecks2:Remove() | |
2095 | fire:Remove() | |
2096 | Fire:Stop() | |
2097 | ------------------- | |
2098 | Spawn(function() | |
2099 | while Equipped and Humanoid.Parent and Torso.Parent do | |
2100 | if Angle == 360 then | |
2101 | Angle = 0 | |
2102 | end | |
2103 | Angle = Angle + 0.05 | |
2104 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
2105 | if Hit then | |
2106 | if not Circle.Parent then | |
2107 | Circle.Parent = Character | |
2108 | end | |
2109 | for i, v in pairs(CircleParts) do | |
2110 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
2111 | - | chatfunc("function xdielivex's-Anti-Skid()", BrickColor.new("Really red").Color) |
2111 | + | |
2112 | else | |
2113 | Circle.Parent = nil | |
2114 | end | |
2115 | wait() | |
2116 | end | |
2117 | end) | |
2118 | attack = false | |
2119 | hum.WalkSpeed = 16 | |
2120 | end | |
2121 | ||
2122 | ||
2123 | ------------------------------------------------------- | |
2124 | --End Attacks N Stuff-- | |
2125 | ------------------------------------------------------- | |
2126 | mouse.KeyDown:connect(function(key) | |
2127 | if attack == false then | |
2128 | if key == "y" then | |
2129 | Cso("138088905", tors, 10, 1) | |
2130 | chatfunc("print (''your bad'')", BrickColor.new("Really red").Color) | |
2131 | wait(2) | |
2132 | elseif key == 'q' then | |
2133 | fail() | |
2134 | elseif key == 'h' then | |
2135 | special_hell() | |
2136 | elseif key == 'f' then | |
2137 | Cso("2755928629", tors, 10, 1) | |
2138 | chatfunc("function night()", BrickColor.new("Really red").Color) | |
2139 | wait(1) | |
2140 | - | tecks2.Text = "xdielivex's Anti-Skid" |
2140 | + | |
2141 | local sky = Instance.new("Sky",l) | |
2142 | l.TimeOfDay = "04:00:00" | |
2143 | l.Brightness = 1 | |
2144 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
2145 | elseif key == 'g' then | |
2146 | Cso("2755928629", tors, 10, 1) | |
2147 | chatfunc("function day()", BrickColor.new("Really red").Color) | |
2148 | wait(1) | |
2149 | local l = game.Lighting | |
2150 | local sky = Instance.new("Sky",l) | |
2151 | l.TimeOfDay = "12:00:00" | |
2152 | l.Brightness = 1 | |
2153 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
2154 | elseif key == 'x' then | |
2155 | DANCEFORME() | |
2156 | chatfunc("function you got that()", BrickColor.new("Really red").Color) | |
2157 | BTAUNT1:Remove() | |
2158 | BTAUNT:Remove() | |
2159 | BTAUNT3:Play() | |
2160 | elseif key == 'r' then | |
2161 | dash() | |
2162 | Cso("158037267", tors, 10, 1) | |
2163 | elseif key == 'u' then | |
2164 | ultra() | |
2165 | elseif key == 'z' then | |
2166 | sneakonehundred() | |
2167 | chatfunc("function walk it()", BrickColor.new("Really red").Color) | |
2168 | BTAUNT:Remove() | |
2169 | BTAUNT2:Play() | |
2170 | elseif key == 'c' then | |
2171 | hum.WalkSpeed = 16 | |
2172 | BTAUNT:Remove() | |
2173 | chatfunc("print (''Oh god'')", BrickColor.new("Really red").Color) | |
2174 | Cso("891918584", tors, 10, 1) | |
2175 | wait(5) | |
2176 | chatfunc("function oof()", BrickColor.new("Really red").Color) | |
2177 | yellowcolor = Color3.new(255, 255, 0) | |
2178 | bdycolors.HeadColor3 = yellowcolor | |
2179 | bdycolors.LeftArmColor3 = yellowcolor | |
2180 | bdycolors.LeftLegColor3 = yellowcolor | |
2181 | bdycolors.RightArmColor3 = yellowcolor | |
2182 | bdycolors.RightLegColor3 = yellowcolor | |
2183 | bdycolors.TorsoColor3 = yellowcolor | |
2184 | BTAUNT1:Play() | |
2185 | elseif key == 'v' then | |
2186 | BTAUNT:Remove() | |
2187 | MERKIO = Instance.new("Sound", tors) --why | |
2188 | MERKIO.SoundId = "http://www.roblox.com/asset/?id=891918584" | |
2189 | MERKIO.Volume = 10 | |
2190 | MERKIO.Pitch = 1 | |
2191 | MERKIO.Looped = false | |
2192 | MERKIO.TimePosition = 0 | |
2193 | chatfunc("print (''Who is the fat skid here?'')", BrickColor.new("Really red").Color) | |
2194 | Cso("891918584", tors, 10, 1) | |
2195 | Character.Head.face.Texture = "rbxassetid://0" | |
2196 | MERKIO:Play() | |
2197 | repeat | |
2198 | for i = 0,0.7,0.2 do | |
2199 | swait() | |
2200 | MERKIO.Parent = tors | |
2201 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8) | |
2202 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9) | |
2203 | 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.8) | |
2204 | 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.8) | |
2205 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.7) | |
2206 | 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(-90)), 0.7) | |
2207 | end | |
2208 | for i = 0,0.7,0.2 do | |
2209 | swait() | |
2210 | MERKIO.Parent = tors | |
2211 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15) | |
2212 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4) | |
2213 | 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) | |
2214 | 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) | |
2215 | 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) | |
2216 | 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) | |
2217 | end | |
2218 | until MERKIO.Playing == false | |
2219 | MERKIO:Stop() | |
2220 | chatfunc("function Dory's-Anti-Skid()", BrickColor.new("Really red").Color) | |
2221 | BTAUNT4:Play() | |
2222 | local BC = char["Body Colors"] | |
2223 | BC.HeadColor = BrickColor.new("Really black") | |
2224 | BC.LeftArmColor = BrickColor.new("Really black") | |
2225 | BC.LeftLegColor = BrickColor.new("Really black") | |
2226 | BC.RightArmColor = BrickColor.new("Really black") | |
2227 | BC.RightLegColor = BrickColor.new("Really black") | |
2228 | BC.TorsoColor = BrickColor.new("Really black") | |
2229 | tecks2:Remove() | |
2230 | local naeeym2 = Instance.new("BillboardGui",char) | |
2231 | naeeym2.AlwaysOnTop = true | |
2232 | naeeym2.Size = UDim2.new(5,35,2,35) | |
2233 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
2234 | naeeym2.Adornee = hed | |
2235 | naeeym2.Name = "Name" | |
2236 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2237 | tecks2.BackgroundTransparency = 1 | |
2238 | tecks2.TextScaled = true | |
2239 | tecks2.BorderSizePixel = 0 | |
2240 | tecks2.Font = "Garamond" | |
2241 | tecks2.TextSize = 30 | |
2242 | tecks2.TextStrokeTransparency = 0 | |
2243 | tecks2.TextColor3 = BrickColor.new('Really white').Color | |
2244 | tecks2.TextStrokeColor3 = BrickColor.new('Really white').Color | |
2245 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2246 | tecks2.Parent = naeeym2 | |
2247 | textfag = tecks2 | |
2248 | wait(1) | |
2249 | tecks2.Text = "Dory's Anti-Skid" | |
2250 | coroutine.resume(coroutine.create(function() | |
2251 | while textfag ~= nil do | |
2252 | swait() | |
2253 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
2254 | textfag.Rotation = math.random(-3,3) | |
2255 | end | |
2256 | end)) | |
2257 | hed.face.Texture = "http://www.roblox.com/asset/?id=0" | |
2258 | ||
2259 | elseif key == 'e' then | |
2260 | dejzrXD() | |
2261 | elseif key == 'b' then | |
2262 | BTAUNT5:Remove() | |
2263 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2264 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2265 | tecks2.BackgroundTransparency = 1 | |
2266 | tecks2.TextScaled = true | |
2267 | tecks2.BorderSizePixel = 0 | |
2268 | tecks2.Text = "" | |
2269 | tecks2.Font = "Fantasy" | |
2270 | tecks2.TextSize = 30 | |
2271 | tecks2.TextStrokeTransparency = 0 | |
2272 | tecks2.TextColor3 = BrickColor.new('Really red').Color | |
2273 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
2274 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2275 | tecks2.Parent = naeeym2 | |
2276 | textfag = tecks2 | |
2277 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2278 | tecks2.Text = "" | |
2279 | CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1) | |
2280 | tecks2.Text = "I'l show you the real peace of mind" | |
2281 | Cso("2884478027", tors, 10, 1) | |
2282 | wait(3) | |
2283 | hum.WalkSpeed = 20 | |
2284 | hum.JumpPower = 60 | |
2285 | local killsky = Instance.new('Sky', game:GetService'Lighting') | |
2286 | killsky.StarCount = 0 | |
2287 | killsky.SunAngularSize = 0 | |
2288 | killsky.MoonAngularSize = 0 | |
2289 | killsky.MoonTextureId = "" | |
2290 | killsky.CelestialBodiesShown = false | |
2291 | game.Lighting.FogColor = Color3.new(0,0,0) | |
2292 | game.Lighting.FogEnd = 100 | |
2293 | local l = game.Lighting | |
2294 | local sky = Instance.new("Sky",l) | |
2295 | l.TimeOfDay = "05:00:00" | |
2296 | l.Brightness = 1 | |
2297 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
2298 | BTAUNT6:Play() | |
2299 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2300 | tecks2.Text = "Zen" | |
2301 | local BC = char["Body Colors"] | |
2302 | BC.HeadColor = BrickColor.new("Really red") | |
2303 | BC.LeftArmColor = BrickColor.new("Really red") | |
2304 | BC.LeftLegColor = BrickColor.new("Really red") | |
2305 | BC.RightArmColor = BrickColor.new("Really red") | |
2306 | BC.RightLegColor = BrickColor.new("Really red") | |
2307 | BC.TorsoColor = BrickColor.new("Really red") | |
2308 | ||
2309 | elseif key == 'm' then | |
2310 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2311 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2312 | tecks2.BackgroundTransparency = 1 | |
2313 | tecks2.TextScaled = true | |
2314 | tecks2.BorderSizePixel = 0 | |
2315 | tecks2.Text = "" | |
2316 | tecks2.Font = "Fantasy" | |
2317 | tecks2.TextSize = 30 | |
2318 | tecks2.TextStrokeTransparency = 0 | |
2319 | tecks2.TextColor3 = BrickColor.new('Really red').Color | |
2320 | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color | |
2321 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2322 | tecks2.Parent = naeeym2 | |
2323 | textfag = tecks2 | |
2324 | CFuncs.Sound.Create("rbxassetid://2755928629", root, 1.85, 1) | |
2325 | tecks2.Text = "u have been warped to the Samurai era" | |
2326 | wait(2) | |
2327 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2328 | tecks2.Text = "The Lost Samurai" | |
2329 | BTAUNT:Remove() | |
2330 | BTAUNT5:Play() | |
2331 | wait(3) | |
2332 | hum.WalkSpeed = 40 | |
2333 | hum.JumpPower = 100 | |
2334 | local l = game.Lighting | |
2335 | local sky = Instance.new("Sky",l) | |
2336 | l.TimeOfDay = "04:00:00" | |
2337 | l.Brightness = 1 | |
2338 | l.Ambient = Color3.new(0.25, 0.5, 0.75) | |
2339 | CFuncs.Sound.Create("rbxassetid://0", root, 1.85, 1) | |
2340 | tecks2.Text = "" | |
2341 | function sandbox(var,func) | |
2342 | local env = getfenv(func) | |
2343 | local newenv = setmetatable({},{ | |
2344 | __index = function(self,k) | |
2345 | if k=="script" then | |
2346 | return var | |
2347 | else | |
2348 | return env[k] | |
2349 | end | |
2350 | end, | |
2351 | }) | |
2352 | setfenv(func,newenv) | |
2353 | return func | |
2354 | end | |
2355 | cors = {} | |
2356 | mas = Instance.new("Model",game:GetService("Lighting")) | |
2357 | Model0 = Instance.new("Model") | |
2358 | Script1 = Instance.new("Script") | |
2359 | Part2 = Instance.new("Part") | |
2360 | Weld3 = Instance.new("Weld") | |
2361 | Weld4 = Instance.new("Weld") | |
2362 | Weld5 = Instance.new("Weld") | |
2363 | Weld6 = Instance.new("Weld") | |
2364 | Weld7 = Instance.new("Weld") | |
2365 | Weld8 = Instance.new("Weld") | |
2366 | Weld9 = Instance.new("Weld") | |
2367 | Weld10 = Instance.new("Weld") | |
2368 | Weld11 = Instance.new("Weld") | |
2369 | Weld12 = Instance.new("Weld") | |
2370 | Weld13 = Instance.new("Weld") | |
2371 | Weld14 = Instance.new("Weld") | |
2372 | Weld15 = Instance.new("Weld") | |
2373 | Weld16 = Instance.new("Weld") | |
2374 | Weld17 = Instance.new("Weld") | |
2375 | Weld18 = Instance.new("Weld") | |
2376 | Part19 = Instance.new("Part") | |
2377 | Part20 = Instance.new("Part") | |
2378 | Part21 = Instance.new("Part") | |
2379 | Part22 = Instance.new("Part") | |
2380 | Part23 = Instance.new("Part") | |
2381 | Part24 = Instance.new("Part") | |
2382 | Part25 = Instance.new("Part") | |
2383 | Part26 = Instance.new("Part") | |
2384 | Part27 = Instance.new("Part") | |
2385 | Part28 = Instance.new("Part") | |
2386 | Part29 = Instance.new("Part") | |
2387 | Part30 = Instance.new("Part") | |
2388 | Part31 = Instance.new("Part") | |
2389 | Part32 = Instance.new("Part") | |
2390 | Part33 = Instance.new("Part") | |
2391 | Part34 = Instance.new("Part") | |
2392 | Model0.Name = "Katana" | |
2393 | Model0.Parent = mas | |
2394 | Script1.Name = "1" | |
2395 | Script1.Parent = Model0 | |
2396 | table.insert(cors,sandbox(Script1,function() | |
2397 | how = 1 | |
2398 | for i,v in pairs(script.Parent:GetChildren()) do | |
2399 | v.Name = how | |
2400 | how = how + 1 | |
2401 | for q,w in pairs(v:GetChildren()) do | |
2402 | w.Name = how | |
2403 | how = how + 1 | |
2404 | end | |
2405 | end | |
2406 | end)) | |
2407 | Part2.Name = "2" | |
2408 | Part2.Parent = Model0 | |
2409 | Part2.Material = Enum.Material.Metal | |
2410 | Part2.BrickColor = BrickColor.new("Rust") | |
2411 | Part2.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2412 | Part2.Size = Vector3.new(0.0500000007, 0.0700000003, 0.200000107) | |
2413 | Part2.CFrame = CFrame.new(7.61394024, 1.68914151, 28.8409805, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2414 | Part2.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2415 | Part2.Position = Vector3.new(7.61394024, 1.68914151, 28.8409805) | |
2416 | Part2.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2417 | Part2.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2418 | Weld3.Name = "3" | |
2419 | Weld3.Parent = Part2 | |
2420 | Weld3.C0 = CFrame.new(-0.624299288, -1.20320392, -0.111661673, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2421 | Weld3.Part0 = Part2 | |
2422 | Weld3.Part1 = Part25 | |
2423 | Weld4.Name = "4" | |
2424 | Weld4.Parent = Part2 | |
2425 | Weld4.C0 = CFrame.new(-0.633573651, 4.76224995, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2426 | Weld4.Part0 = Part2 | |
2427 | Weld4.Part1 = Part31 | |
2428 | Weld5.Name = "5" | |
2429 | Weld5.Parent = Part2 | |
2430 | Weld5.C0 = CFrame.new(-0.753573596, 5.00227404, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2431 | Weld5.Part0 = Part2 | |
2432 | Weld5.Part1 = Part28 | |
2433 | Weld6.Name = "6" | |
2434 | Weld6.Parent = Part2 | |
2435 | Weld6.C0 = CFrame.new(-0.668573618, 4.84224367, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2436 | Weld6.Part0 = Part2 | |
2437 | Weld6.Part1 = Part30 | |
2438 | Weld7.Name = "7" | |
2439 | Weld7.Parent = Part2 | |
2440 | Weld7.C0 = CFrame.new(-0.624299347, -0.813958466, -0.111661673, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2441 | Weld7.Part0 = Part2 | |
2442 | Weld7.Part1 = Part24 | |
2443 | Weld8.Name = "8" | |
2444 | Weld8.Parent = Part2 | |
2445 | Weld8.C0 = CFrame.new(-0.813573599, 5.08226967, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2446 | Weld8.Part0 = Part2 | |
2447 | Weld8.Part1 = Part27 | |
2448 | Weld9.Name = "9" | |
2449 | Weld9.Parent = Part2 | |
2450 | Weld9.C0 = CFrame.new(-0.624299347, -0.372724652, 0.137594938, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2451 | Weld9.Part0 = Part2 | |
2452 | Weld9.Part1 = Part22 | |
2453 | Weld10.Name = "10" | |
2454 | Weld10.Parent = Part2 | |
2455 | Weld10.C0 = CFrame.new(-0.624299347, -0.794195056, 0.137594938, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2456 | Weld10.Part0 = Part2 | |
2457 | Weld10.Part1 = Part21 | |
2458 | Weld11.Name = "11" | |
2459 | Weld11.Parent = Part2 | |
2460 | Weld11.C0 = CFrame.new(-0.624299347, -1.18344116, 0.137594938, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2461 | Weld11.Part0 = Part2 | |
2462 | Weld11.Part1 = Part20 | |
2463 | Weld12.Name = "12" | |
2464 | Weld12.Parent = Part2 | |
2465 | Weld12.C0 = CFrame.new(-0.624299347, -0.392485619, -0.111661673, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2466 | Weld12.Part0 = Part2 | |
2467 | Weld12.Part1 = Part23 | |
2468 | Weld13.Name = "13" | |
2469 | Weld13.Parent = Part2 | |
2470 | Weld13.C0 = CFrame.new(-0.633573651, 2.38222027, 0.0079665184, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2471 | Weld13.Part0 = Part2 | |
2472 | Weld13.Part1 = Part32 | |
2473 | Weld14.Name = "14" | |
2474 | Weld14.Parent = Part2 | |
2475 | Weld14.C0 = CFrame.new(-0.708573639, 4.92227697, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2476 | Weld14.Part0 = Part2 | |
2477 | Weld14.Part1 = Part29 | |
2478 | Weld15.Name = "15" | |
2479 | Weld15.Parent = Part2 | |
2480 | Weld15.C0 = CFrame.new(-0.858573616, 5.16230297, 0.00796699524, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2481 | Weld15.Part0 = Part2 | |
2482 | Weld15.Part1 = Part26 | |
2483 | Weld16.Name = "16" | |
2484 | Weld16.Parent = Part2 | |
2485 | Weld16.C0 = CFrame.new(-0.633573651, -0.777779102, 0.0105156898, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2486 | Weld16.Part0 = Part2 | |
2487 | Weld16.Part1 = Part34 | |
2488 | Weld17.Name = "17" | |
2489 | Weld17.Parent = Part2 | |
2490 | Weld17.C0 = CFrame.new(-0.728573561, 0.00222086906, 0.0184280872, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2491 | Weld17.Part0 = Part2 | |
2492 | Weld17.Part1 = Part33 | |
2493 | Weld18.Name = "18" | |
2494 | Weld18.Parent = Part2 | |
2495 | Weld18.C0 = CFrame.new(-0.0485734642, 0, 0.0199999809, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
2496 | Weld18.Part0 = Part2 | |
2497 | Weld18.Part1 = Part19 | |
2498 | Part19.Name = "19" | |
2499 | Part19.Parent = Model0 | |
2500 | Part19.Material = Enum.Material.Metal | |
2501 | Part19.BrickColor = BrickColor.new("Rust") | |
2502 | Part19.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2503 | Part19.Size = Vector3.new(0.0500000007, 0.0700000003, 0.340000063) | |
2504 | Part19.CFrame = CFrame.new(7.60914183, 1.73390079, 28.8139076, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2505 | Part19.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2506 | Part19.Position = Vector3.new(7.60914183, 1.73390079, 28.8139076) | |
2507 | Part19.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2508 | Part19.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2509 | Part20.Name = "20" | |
2510 | Part20.Parent = Model0 | |
2511 | Part20.BrickColor = BrickColor.new("Mid gray") | |
2512 | Part20.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2513 | Part20.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2514 | Part20.CFrame = CFrame.new(8.47027397, 1.90645087, 27.8267384, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2515 | Part20.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2516 | Part20.Position = Vector3.new(8.47027397, 1.90645087, 27.8267384) | |
2517 | Part20.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2518 | Part20.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2519 | Part21.Name = "21" | |
2520 | Part21.Parent = Model0 | |
2521 | Part21.BrickColor = BrickColor.new("Mid gray") | |
2522 | Part21.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2523 | Part21.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2524 | Part21.CFrame = CFrame.new(8.19518757, 2.02678919, 28.0744457, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2525 | Part21.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2526 | Part21.Position = Vector3.new(8.19518757, 2.02678919, 28.0744457) | |
2527 | Part21.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2528 | Part21.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2529 | Part22.Name = "22" | |
2530 | Part22.Parent = Model0 | |
2531 | Part22.BrickColor = BrickColor.new("Mid gray") | |
2532 | Part22.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2533 | Part22.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2534 | Part22.CFrame = CFrame.new(7.89732742, 2.15708971, 28.342659, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2535 | Part22.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2536 | Part22.Position = Vector3.new(7.89732742, 2.15708971, 28.342659) | |
2537 | Part22.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2538 | Part22.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2539 | Part23.Name = "23" | |
2540 | Part23.Parent = Model0 | |
2541 | Part23.BrickColor = BrickColor.new("Mid gray") | |
2542 | Part23.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2543 | Part23.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2544 | Part23.CFrame = CFrame.new(8.08166313, 2.16746688, 28.5112762, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2545 | Part23.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2546 | Part23.Position = Vector3.new(8.08166313, 2.16746688, 28.5112762) | |
2547 | Part23.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2548 | Part23.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2549 | Part24.Name = "24" | |
2550 | Part24.Parent = Model0 | |
2551 | Part24.BrickColor = BrickColor.new("Mid gray") | |
2552 | Part24.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2553 | Part24.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2554 | Part24.CFrame = CFrame.new(8.37952518, 2.0371654, 28.2430611, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2555 | Part24.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2556 | Part24.Position = Vector3.new(8.37952518, 2.0371654, 28.2430611) | |
2557 | Part24.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2558 | Part24.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2559 | Part25.Name = "25" | |
2560 | Part25.Parent = Model0 | |
2561 | Part25.BrickColor = BrickColor.new("Mid gray") | |
2562 | Part25.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2563 | Part25.Size = Vector3.new(0.394296169, 0.22827673, 0.0518810749) | |
2564 | Part25.CFrame = CFrame.new(8.65461159, 1.91682744, 27.9953537, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2565 | Part25.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2566 | Part25.Position = Vector3.new(8.65461159, 1.91682744, 27.9953537) | |
2567 | Part25.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2568 | Part25.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
2569 | Part26.Name = "26" | |
2570 | Part26.Parent = Model0 | |
2571 | Part26.Material = Enum.Material.SmoothPlastic | |
2572 | Part26.BrickColor = BrickColor.new("Institutional white") | |
2573 | Part26.Reflectance = 0.80000001192093 | |
2574 | Part26.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2575 | Part26.Size = Vector3.new(0.0500000007, 0.0799999982, 0.0500000007) | |
2576 | Part26.CFrame = CFrame.new(4.11702347, 4.09911585, 31.8988037, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2577 | Part26.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2578 | Part26.Position = Vector3.new(4.11702347, 4.09911585, 31.8988037) | |
2579 | Part26.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2580 | Part26.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2581 | Part27.Name = "27" | |
2582 | Part27.Parent = Model0 | |
2583 | Part27.Material = Enum.Material.SmoothPlastic | |
2584 | Part27.BrickColor = BrickColor.new("Institutional white") | |
2585 | Part27.Reflectance = 0.80000001192093 | |
2586 | Part27.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2587 | Part27.Size = Vector3.new(0.139999971, 0.0799999982, 0.0500000007) | |
2588 | Part27.CFrame = CFrame.new(4.16536522, 4.03168106, 31.8594837, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2589 | Part27.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2590 | Part27.Position = Vector3.new(4.16536522, 4.03168106, 31.8594837) | |
2591 | Part27.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2592 | Part27.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2593 | Part28.Name = "28" | |
2594 | Part28.Parent = Model0 | |
2595 | Part28.Material = Enum.Material.SmoothPlastic | |
2596 | Part28.BrickColor = BrickColor.new("Institutional white") | |
2597 | Part28.Reflectance = 0.80000001192093 | |
2598 | Part28.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2599 | Part28.Size = Vector3.new(0.25999999, 0.0799999982, 0.0500000007) | |
2600 | Part28.CFrame = CFrame.new(4.21094084, 3.95002723, 31.8240604, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2601 | Part28.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2602 | Part28.Position = Vector3.new(4.21094084, 3.95002723, 31.8240604) | |
2603 | Part28.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2604 | Part28.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2605 | Part29.Name = "29" | |
2606 | Part29.Parent = Model0 | |
2607 | Part29.Material = Enum.Material.SmoothPlastic | |
2608 | Part29.BrickColor = BrickColor.new("Institutional white") | |
2609 | Part29.Reflectance = 0.80000001192093 | |
2610 | Part29.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2611 | Part29.Size = Vector3.new(0.349999994, 0.0799999982, 0.0500000007) | |
2612 | Part29.CFrame = CFrame.new(4.25925732, 3.88260341, 31.7847652, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2613 | Part29.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2614 | Part29.Position = Vector3.new(4.25925732, 3.88260341, 31.7847652) | |
2615 | Part29.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2616 | Part29.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2617 | Part30.Name = "30" | |
2618 | Part30.Parent = Model0 | |
2619 | Part30.Material = Enum.Material.SmoothPlastic | |
2620 | Part30.BrickColor = BrickColor.new("Institutional white") | |
2621 | Part30.Reflectance = 0.80000001192093 | |
2622 | Part30.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2623 | Part30.Size = Vector3.new(0.429999977, 0.0799999982, 0.0500000007) | |
2624 | Part30.CFrame = CFrame.new(4.30851221, 3.8199122, 31.7441559, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2625 | Part30.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2626 | Part30.Position = Vector3.new(4.30851221, 3.8199122, 31.7441559) | |
2627 | Part30.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2628 | Part30.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2629 | Part31.Name = "31" | |
2630 | Part31.Parent = Model0 | |
2631 | Part31.Material = Enum.Material.SmoothPlastic | |
2632 | Part31.BrickColor = BrickColor.new("Institutional white") | |
2633 | Part31.Reflectance = 0.80000001192093 | |
2634 | Part31.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2635 | Part31.Size = Vector3.new(0.5, 0.0799999982, 0.0500000007) | |
2636 | Part31.CFrame = CFrame.new(4.35865259, 3.76197672, 31.702282, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2637 | Part31.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2638 | Part31.Position = Vector3.new(4.35865259, 3.76197672, 31.702282) | |
2639 | Part31.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2640 | Part31.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2641 | Part32.Name = "32" | |
2642 | Part32.Parent = Model0 | |
2643 | Part32.Material = Enum.Material.SmoothPlastic | |
2644 | Part32.BrickColor = BrickColor.new("Institutional white") | |
2645 | Part32.Reflectance = 0.80000001192093 | |
2646 | Part32.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2647 | Part32.Size = Vector3.new(0.5, 4.68000031, 0.0500000007) | |
2648 | Part32.CFrame = CFrame.new(6.04065943, 3.02617335, 30.1876831, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2649 | Part32.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2650 | Part32.Position = Vector3.new(6.04065943, 3.02617335, 30.1876831) | |
2651 | Part32.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2652 | Part32.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
2653 | Part33.Name = "33" | |
2654 | Part33.Parent = Model0 | |
2655 | Part33.Material = Enum.Material.Metal | |
2656 | Part33.BrickColor = BrickColor.new("Rust") | |
2657 | Part33.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2658 | Part33.Size = Vector3.new(1.31000018, 0.0700000003, 0.5) | |
2659 | Part33.CFrame = CFrame.new(7.73284435, 2.37981486, 28.6409836, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2660 | Part33.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2661 | Part33.Position = Vector3.new(7.73284435, 2.37981486, 28.6409836) | |
2662 | Part33.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2663 | Part33.Color = Color3.new(0.560784, 0.298039, 0.164706) | |
2664 | Part34.Name = "34" | |
2665 | Part34.Parent = Model0 | |
2666 | Part34.BrickColor = BrickColor.new("Black") | |
2667 | Part34.Rotation = Vector3.new(174.800003, -43.1199989, 104.489998) | |
2668 | Part34.Size = Vector3.new(0.518810749, 1.55643225, 0.238810867) | |
2669 | Part34.CFrame = CFrame.new(8.2721405, 2.04906797, 28.1748772, -0.182644248, -0.706716537, -0.683516026, -0.948710799, 0.309157223, -0.0661422908, 0.258057326, 0.636377871, -0.726932526) | |
2670 | Part34.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
2671 | Part34.Position = Vector3.new(8.2721405, 2.04906797, 28.1748772) | |
2672 | Part34.Orientation = Vector3.new(3.78999996, -136.759995, -71.9499969) | |
2673 | Part34.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
2674 | local weld = Instance.new("Weld", Part34) | |
2675 | weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
2676 | weld.Part1 = Part34 | |
2677 | weld.C0 = CFrame.new(-0.131607056, -0.861706018, -0.131599426, 0.0869438723, -0.0199763775, 0.996020675, -0.99057883, 0.104452573, 0.0885638446, -0.105806068, -0.994336903, -0.0107065737) | |
2678 | for i,v in pairs(mas:GetChildren()) do | |
2679 | v.Parent = game:GetService("Players").LocalPlayer.Character | |
2680 | pcall(function() v:MakeJoints() end) | |
2681 | end | |
2682 | mas:Destroy() | |
2683 | for i,v in pairs(cors) do | |
2684 | spawn(function() | |
2685 | pcall(v) | |
2686 | end) | |
2687 | end | |
2688 | for i,v in pairs(Model0:GetChildren()) do | |
2689 | if v.ClassName == "Part" then | |
2690 | v.CanCollide = false | |
2691 | end | |
2692 | end | |
2693 | ||
2694 | ||
2695 | end | |
2696 | end | |
2697 | end) | |
2698 | mouse.Button1Down:connect(function(key) | |
2699 | if attack == false then | |
2700 | Ban() | |
2701 | end | |
2702 | end) | |
2703 | ||
2704 | ||
2705 | ||
2706 | local eye1 = Instance.new("Part") | |
2707 | eye1.Parent = Character | |
2708 | eye1.Size = Vector3.new(0.2,0.2,0.2) | |
2709 | eye1.Archivable = true | |
2710 | eye1.Transparency = 0 | |
2711 | eye1.CanCollide = false | |
2712 | eye1.Material = "Neon" | |
2713 | eye1.Color = Color3.fromRGB(196, 40, 28) | |
2714 | local eye1mesh = Instance.new("SpecialMesh",eye1) | |
2715 | eye1mesh.MeshType = "Sphere" | |
2716 | eye1mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
2717 | ko2 = eye1mesh.Scale | |
2718 | local eye1weld = Instance.new("Weld") | |
2719 | eye1weld.Parent = eye1 | |
2720 | eye1weld.Part0 = Head | |
2721 | eye1weld.Part1 = eye1 | |
2722 | eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2723 | eye1weld.Part0 = Head | |
2724 | ||
2725 | ||
2726 | ||
2727 | ||
2728 | local eye2 = Instance.new("Part") | |
2729 | eye2.Parent = Character | |
2730 | eye2.Size = Vector3.new(0.2,0.2,0.2) | |
2731 | eye2.Archivable = true | |
2732 | eye2.Transparency = 0 | |
2733 | eye2.CanCollide = false | |
2734 | eye2.Material = "Neon" | |
2735 | eye2.Color = Color3.fromRGB(196, 40, 28) | |
2736 | local eye2mesh = Instance.new("SpecialMesh",eye2) | |
2737 | eye2mesh.MeshType = "Sphere" | |
2738 | eye2mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
2739 | local eye2weld = Instance.new("Weld") | |
2740 | eye2weld.Parent = eye2 | |
2741 | eye2weld.Part0 = Head | |
2742 | eye2weld.Part1 = eye2 | |
2743 | eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2744 | eye2weld.Part0 = Head | |
2745 | ||
2746 | ------------------------------------------------------- | |
2747 | --Start Animations-- | |
2748 | ------------------------------------------------------- | |
2749 | while true do | |
2750 | swait() | |
2751 | sine = sine + change | |
2752 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2753 | local velderp = root.Velocity.y | |
2754 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2755 | if equipped == true or equipped == false then | |
2756 | if attack == false then | |
2757 | idle = idle + 1 | |
2758 | else | |
2759 | idle = 0 | |
2760 | end | |
2761 | if 1 < root.Velocity.y and hitfloor == nil then | |
2762 | Anim = "Jump" | |
2763 | if attack == false then | |
2764 | 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) | |
2765 | 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) | |
2766 | 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) | |
2767 | 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) | |
2768 | 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) | |
2769 | 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) | |
2770 | end | |
2771 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2772 | Anim = "Fall" | |
2773 | if attack == false then | |
2774 | 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) | |
2775 | 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) | |
2776 | 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) | |
2777 | 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) | |
2778 | 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) | |
2779 | 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) | |
2780 | end | |
2781 | elseif torvel < 1 and hitfloor ~= nil then | |
2782 | Anim = "Idle" | |
2783 | change = 1 | |
2784 | if attack == false then | |
2785 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -2* Player_Size) * angles(Rad(-30), Rad(0), Rad(0)), 0.1) | |
2786 | neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(30 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1) | |
2787 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(90), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
2788 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-90), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08) | |
2789 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(0), Rad(0)), 0.1) | |
2790 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5* Player_Size, 0* Player_Size) * angles(Rad(-50), Rad(0), Rad(0)), 0.1) | |
2791 | end | |
2792 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2793 | Anim = "Walk" | |
2794 | change = 1 | |
2795 | if attack == false then | |
2796 | 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) | |
2797 | 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) | |
2798 | 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) | |
2799 | 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) | |
2800 | 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) | |
2801 | 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) | |
2802 | end | |
2803 | elseif torvel >= 25 and hitfloor ~= nil then | |
2804 | Anim = "Sprint" | |
2805 | change = 1.35 | |
2806 | if attack == false then | |
2807 | 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) | |
2808 | 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) | |
2809 | 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) | |
2810 | 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) | |
2811 | 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) | |
2812 | 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) | |
2813 | end | |
2814 | end | |
2815 | end | |
2816 | if 0 < #Effects then | |
2817 | for e = 1, #Effects do | |
2818 | if Effects[e] ~= nil then | |
2819 | local Thing = Effects[e] | |
2820 | if Thing ~= nil then | |
2821 | local Part = Thing[1] | |
2822 | local Mode = Thing[2] | |
2823 | local Delay = Thing[3] | |
2824 | local IncX = Thing[4] | |
2825 | local IncY = Thing[5] | |
2826 | local IncZ = Thing[6] | |
2827 | if 1 >= Thing[1].Transparency then | |
2828 | if Thing[2] == "Block1" then | |
2829 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2830 | local Mesh = Thing[1].Mesh | |
2831 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2832 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2833 | elseif Thing[2] == "Block2" then | |
2834 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2835 | local Mesh = Thing[7] | |
2836 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2837 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2838 | elseif Thing[2] == "Block3" then | |
2839 | 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) | |
2840 | local Mesh = Thing[7] | |
2841 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2842 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2843 | elseif Thing[2] == "Cylinder" then | |
2844 | local Mesh = Thing[1].Mesh | |
2845 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2846 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2847 | elseif Thing[2] == "Blood" then | |
2848 | local Mesh = Thing[7] | |
2849 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2850 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2851 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2852 | elseif Thing[2] == "Elec" then | |
2853 | local Mesh = Thing[1].Mesh | |
2854 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2855 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2856 | elseif Thing[2] == "Disappear" then | |
2857 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2858 | elseif Thing[2] == "Shatter" then | |
2859 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2860 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2861 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2862 | Thing[6] = Thing[6] + Thing[5] | |
2863 | end | |
2864 | else | |
2865 | Part.Parent = nil | |
2866 | table.remove(Effects, e) | |
2867 | end | |
2868 | end | |
2869 | end | |
2870 | end | |
2871 | end | |
2872 | end | |
2873 | ------------------------------------------------------- | |
2874 | --End Animations And Script-- | |
2875 | ------------------------------------------------------- |