SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
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}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | ----------------------- | |
88 | --[[ Name : Poley Boy ]]-- | |
89 | ------------------------------------------------------- | |
90 | --A script By spooderman | |
91 | ||
92 | --Discord Creterisk#2958 | |
93 | ||
94 | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION | |
95 | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT | |
96 | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT | |
97 | --YOU FUCKING SKIDS, | |
98 | --For Those who log/decompile this, If you sell or trade this, | |
99 | --and I find out who you are, i will take massive action. | |
100 | ||
101 | ------------------------------------------------------- | |
102 | ||
103 | local FavIDs = { | |
104 | 340106355, --Nefl Crystals | |
105 | 927529620, --Dimension | |
106 | 876981900, --Fantasy | |
107 | 398987889, --Ordinary Days | |
108 | 1117396305, --Oh wait, it's you. | |
109 | 885996042, --Action Winter Journey | |
110 | 919231299, --Sprawling Idiot Effigy | |
111 | 743466274, --Good Day Sunshine | |
112 | 727411183, --Knife Fight | |
113 | 1402748531, --The Earth Is Counting On You! | |
114 | 595230126, --Robot Language | |
115 | 478890315 --Death Road to Canada: Rotten Shotgun | |
116 | } | |
117 | ||
118 | ||
119 | ||
120 | ||
121 | --The reality of my life isn't real but a Universe -makhail07 | |
122 | wait(0.2) | |
123 | local plr = owner | |
124 | print('Local User is '..plr.Name) | |
125 | print('Poley Boy Loaded') | |
126 | print('Hi, P O L E') | |
127 | local char = plr.Character | |
128 | local hum = char.Humanoid | |
129 | local hed = char.Head | |
130 | local root = char.HumanoidRootPart | |
131 | local rootj = root.RootJoint | |
132 | local tors = char.Torso | |
133 | local ra = char["Right Arm"] | |
134 | local la = char["Left Arm"] | |
135 | local rl = char["Right Leg"] | |
136 | local ll = char["Left Leg"] | |
137 | local neck = tors["Neck"] | |
138 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
139 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
140 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
141 | local maincolor = BrickColor.new("Institutional white") | |
142 | ------------------------------------------------------- | |
143 | --Start Good Stuff-- | |
144 | ------------------------------------------------------- | |
145 | cam = game.Workspace.CurrentCamera | |
146 | CF = CFrame.new | |
147 | angles = CFrame.Angles | |
148 | attack = false | |
149 | Euler = CFrame.fromEulerAnglesXYZ | |
150 | Rad = math.rad | |
151 | IT = Instance.new | |
152 | BrickC = BrickColor.new | |
153 | Cos = math.cos | |
154 | Acos = math.acos | |
155 | Sin = math.sin | |
156 | Asin = math.asin | |
157 | Abs = math.abs | |
158 | Mrandom = math.random | |
159 | Floor = math.floor | |
160 | ------------------------------------------------------- | |
161 | --End Good Stuff-- | |
162 | ------------------------------------------------------- | |
163 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
164 | RSH, LSH = nil, nil | |
165 | RW = Instance.new("Weld") | |
166 | LW = Instance.new("Weld") | |
167 | RH = tors["Right Hip"] | |
168 | LH = tors["Left Hip"] | |
169 | RSH = tors["Right Shoulder"] | |
170 | LSH = tors["Left Shoulder"] | |
171 | RSH.Parent = nil | |
172 | LSH.Parent = nil | |
173 | RW.Name = "RW" | |
174 | RW.Part0 = tors | |
175 | RW.C0 = CF(1.5, 0.5, 0) | |
176 | RW.C1 = CF(0, 0.5, 0) | |
177 | RW.Part1 = ra | |
178 | RW.Parent = tors | |
179 | LW.Name = "LW" | |
180 | LW.Part0 = tors | |
181 | LW.C0 = CF(-1.5, 0.5, 0) | |
182 | LW.C1 = CF(0, 0.5, 0) | |
183 | LW.Part1 = la | |
184 | LW.Parent = tors | |
185 | Effects = {} | |
186 | ------------------------------------------------------- | |
187 | --Start HeartBeat-- | |
188 | ------------------------------------------------------- | |
189 | ArtificialHB = Instance.new("BindableEvent", script) | |
190 | ArtificialHB.Name = "Heartbeat" | |
191 | script:WaitForChild("Heartbeat") | |
192 | ||
193 | frame = 1 / 60 | |
194 | tf = 0 | |
195 | allowframeloss = false | |
196 | tossremainder = false | |
197 | ||
198 | ||
199 | lastframe = tick() | |
200 | script.Heartbeat:Fire() | |
201 | ||
202 | ||
203 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
204 | tf = tf + s | |
205 | if tf >= frame then | |
206 | if allowframeloss then | |
207 | script.Heartbeat:Fire() | |
208 | lastframe = tick() | |
209 | else | |
210 | for i = 1, math.floor(tf / frame) do | |
211 | script.Heartbeat:Fire() | |
212 | end | |
213 | lastframe = tick() | |
214 | end | |
215 | if tossremainder then | |
216 | tf = 0 | |
217 | else | |
218 | tf = tf - frame * math.floor(tf / frame) | |
219 | end | |
220 | end | |
221 | end) | |
222 | ------------------------------------------------------- | |
223 | --End HeartBeat-- | |
224 | ------------------------------------------------------- | |
225 | ||
226 | ------------------------------------------------------- | |
227 | --Start Important Functions-- | |
228 | ------------------------------------------------------- | |
229 | function swait(num) | |
230 | if num == 0 or num == nil then | |
231 | game:service("RunService").Stepped:wait(0) | |
232 | else | |
233 | for i = 0, num do | |
234 | game:service("RunService").Stepped:wait(0) | |
235 | end | |
236 | end | |
237 | end | |
238 | function thread(f) | |
239 | coroutine.resume(coroutine.create(f)) | |
240 | end | |
241 | function clerp(a, b, t) | |
242 | local qa = { | |
243 | QuaternionFromCFrame(a) | |
244 | } | |
245 | local qb = { | |
246 | QuaternionFromCFrame(b) | |
247 | } | |
248 | local ax, ay, az = a.x, a.y, a.z | |
249 | local bx, by, bz = b.x, b.y, b.z | |
250 | local _t = 1 - t | |
251 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
252 | end | |
253 | function QuaternionFromCFrame(cf) | |
254 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
255 | local trace = m00 + m11 + m22 | |
256 | if trace > 0 then | |
257 | local s = math.sqrt(1 + trace) | |
258 | local recip = 0.5 / s | |
259 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
260 | else | |
261 | local i = 0 | |
262 | if m00 < m11 then | |
263 | i = 1 | |
264 | end | |
265 | if m22 > (i == 0 and m00 or m11) then | |
266 | i = 2 | |
267 | end | |
268 | if i == 0 then | |
269 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
270 | local recip = 0.5 / s | |
271 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
272 | elseif i == 1 then | |
273 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
274 | local recip = 0.5 / s | |
275 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
276 | elseif i == 2 then | |
277 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
278 | local recip = 0.5 / s | |
279 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
280 | end | |
281 | end | |
282 | end | |
283 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
284 | local xs, ys, zs = x + x, y + y, z + z | |
285 | local wx, wy, wz = w * xs, w * ys, w * zs | |
286 | local xx = x * xs | |
287 | local xy = x * ys | |
288 | local xz = x * zs | |
289 | local yy = y * ys | |
290 | local yz = y * zs | |
291 | local zz = z * zs | |
292 | 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)) | |
293 | end | |
294 | function QuaternionSlerp(a, b, t) | |
295 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
296 | local startInterp, finishInterp | |
297 | if cosTheta >= 1.0E-4 then | |
298 | if 1 - cosTheta > 1.0E-4 then | |
299 | local theta = math.acos(cosTheta) | |
300 | local invSinTheta = 1 / Sin(theta) | |
301 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
302 | finishInterp = Sin(t * theta) * invSinTheta | |
303 | else | |
304 | startInterp = 1 - t | |
305 | finishInterp = t | |
306 | end | |
307 | elseif 1 + cosTheta > 1.0E-4 then | |
308 | local theta = math.acos(-cosTheta) | |
309 | local invSinTheta = 1 / Sin(theta) | |
310 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
311 | finishInterp = Sin(t * theta) * invSinTheta | |
312 | else | |
313 | startInterp = t - 1 | |
314 | finishInterp = t | |
315 | end | |
316 | 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 | |
317 | end | |
318 | function rayCast(Position, Direction, Range, Ignore) | |
319 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
320 | end | |
321 | local RbxUtility = LoadLibrary("RbxUtility") | |
322 | local Create = RbxUtility.Create | |
323 | ||
324 | ------------------------------------------------------- | |
325 | --Start Damage Function-- | |
326 | ------------------------------------------------------- | |
327 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
328 | if hit.Parent == nil then | |
329 | return | |
330 | end | |
331 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
332 | for _, v in pairs(hit.Parent:children()) do | |
333 | if v:IsA("Humanoid") then | |
334 | h = v | |
335 | end | |
336 | end | |
337 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
338 | ||
339 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
340 | end | |
341 | ||
342 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
343 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
344 | if hit.Parent.DebounceHit.Value == true then | |
345 | return | |
346 | end | |
347 | end | |
348 | if insta == true then | |
349 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
350 | end | |
351 | local c = Create("ObjectValue"){ | |
352 | Name = "creator", | |
353 | Value = game:service("Players").LocalPlayer, | |
354 | Parent = h, | |
355 | } | |
356 | game:GetService("Debris"):AddItem(c, .5) | |
357 | if HitSound ~= nil and HitPitch ~= nil then | |
358 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
359 | end | |
360 | local Damage = math.random(minim, maxim) | |
361 | local blocked = false | |
362 | local block = hit.Parent:findFirstChild("Block") | |
363 | if block ~= nil then | |
364 | if block.className == "IntValue" then | |
365 | if block.Value > 0 then | |
366 | blocked = true | |
367 | block.Value = block.Value - 1 | |
368 | print(block.Value) | |
369 | end | |
370 | end | |
371 | end | |
372 | if blocked == false then | |
373 | h.Health = h.Health - Damage | |
374 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
375 | else | |
376 | h.Health = h.Health - (Damage / 2) | |
377 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
378 | end | |
379 | if Type == "Knockdown" then | |
380 | local hum = hit.Parent.Humanoid | |
381 | hum.PlatformStand = true | |
382 | coroutine.resume(coroutine.create(function(HHumanoid) | |
383 | swait(1) | |
384 | HHumanoid.PlatformStand = false | |
385 | end), hum) | |
386 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
387 | local bodvol = Create("BodyVelocity"){ | |
388 | velocity = angle * knockback, | |
389 | P = 5000, | |
390 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
391 | Parent = hit, | |
392 | } | |
393 | local rl = Create("BodyAngularVelocity"){ | |
394 | P = 3000, | |
395 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
396 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
397 | Parent = hit, | |
398 | } | |
399 | game:GetService("Debris"):AddItem(bodvol, .5) | |
400 | game:GetService("Debris"):AddItem(rl, .5) | |
401 | elseif Type == "Normal" then | |
402 | local vp = Create("BodyVelocity"){ | |
403 | P = 500, | |
404 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
405 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
406 | } | |
407 | if knockback > 0 then | |
408 | vp.Parent = hit.Parent.Torso | |
409 | end | |
410 | game:GetService("Debris"):AddItem(vp, .5) | |
411 | elseif Type == "Up" then | |
412 | local bodyVelocity = Create("BodyVelocity"){ | |
413 | velocity = Vector3.new(0, 20, 0), | |
414 | P = 5000, | |
415 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
416 | Parent = hit, | |
417 | } | |
418 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
419 | elseif Type == "DarkUp" then | |
420 | coroutine.resume(coroutine.create(function() | |
421 | for i = 0, 1, 0.1 do | |
422 | swait() | |
423 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
424 | end | |
425 | end)) | |
426 | local bodyVelocity = Create("BodyVelocity"){ | |
427 | velocity = Vector3.new(0, 20, 0), | |
428 | P = 5000, | |
429 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
430 | Parent = hit, | |
431 | } | |
432 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
433 | elseif Type == "Snare" then | |
434 | local bp = Create("BodyPosition"){ | |
435 | P = 2000, | |
436 | D = 100, | |
437 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
438 | position = hit.Parent.Torso.Position, | |
439 | Parent = hit.Parent.Torso, | |
440 | } | |
441 | game:GetService("Debris"):AddItem(bp, 1) | |
442 | elseif Type == "Freeze" then | |
443 | local BodPos = Create("BodyPosition"){ | |
444 | P = 50000, | |
445 | D = 1000, | |
446 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
447 | position = hit.Parent.Torso.Position, | |
448 | Parent = hit.Parent.Torso, | |
449 | } | |
450 | local BodGy = Create("BodyGyro") { | |
451 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
452 | P = 20e+003, | |
453 | Parent = hit.Parent.Torso, | |
454 | cframe = hit.Parent.Torso.CFrame, | |
455 | } | |
456 | hit.Parent.Torso.Anchored = true | |
457 | coroutine.resume(coroutine.create(function(Part) | |
458 | swait(1.5) | |
459 | Part.Anchored = false | |
460 | end), hit.Parent.Torso) | |
461 | game:GetService("Debris"):AddItem(BodPos, 3) | |
462 | game:GetService("Debris"):AddItem(BodGy, 3) | |
463 | end | |
464 | local debounce = Create("BoolValue"){ | |
465 | Name = "DebounceHit", | |
466 | Parent = hit.Parent, | |
467 | Value = true, | |
468 | } | |
469 | game:GetService("Debris"):AddItem(debounce, Delay) | |
470 | c = Create("ObjectValue"){ | |
471 | Name = "creator", | |
472 | Value = Player, | |
473 | Parent = h, | |
474 | } | |
475 | game:GetService("Debris"):AddItem(c, .5) | |
476 | end | |
477 | end | |
478 | ------------------------------------------------------- | |
479 | --End Damage Function-- | |
480 | ------------------------------------------------------- | |
481 | ||
482 | ------------------------------------------------------- | |
483 | --Start Damage Function Customization-- | |
484 | ------------------------------------------------------- | |
485 | function ShowDamage(Pos, Text, Time, Color) | |
486 | local Rate = (1 / 30) | |
487 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
488 | local Text = (Text or "") | |
489 | local Time = (Time or 2) | |
490 | local Color = (Color or Color3.new(1, 0, 1)) | |
491 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
492 | EffectPart.Anchored = true | |
493 | local BillboardGui = Create("BillboardGui"){ | |
494 | Size = UDim2.new(3, 0, 3, 0), | |
495 | Adornee = EffectPart, | |
496 | Parent = EffectPart, | |
497 | } | |
498 | local TextLabel = Create("TextLabel"){ | |
499 | BackgroundTransparency = 1, | |
500 | Size = UDim2.new(1, 0, 1, 0), | |
501 | Text = Text, | |
502 | Font = "Bodoni", | |
503 | TextColor3 = Color, | |
504 | TextScaled = true, | |
505 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
506 | Parent = BillboardGui, | |
507 | } | |
508 | game.Debris:AddItem(EffectPart, (Time)) | |
509 | EffectPart.Parent = game:GetService("Workspace") | |
510 | delay(0, function() | |
511 | local Frames = (Time / Rate) | |
512 | for Frame = 1, Frames do | |
513 | wait(Rate) | |
514 | local Percent = (Frame / Frames) | |
515 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
516 | TextLabel.TextTransparency = Percent | |
517 | end | |
518 | if EffectPart and EffectPart.Parent then | |
519 | EffectPart:Destroy() | |
520 | end | |
521 | end) | |
522 | end | |
523 | ------------------------------------------------------- | |
524 | --End Damage Function Customization-- | |
525 | ------------------------------------------------------- | |
526 | ||
527 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
528 | for _, c in pairs(workspace:children()) do | |
529 | local hum = c:findFirstChild("Humanoid") | |
530 | if hum ~= nil then | |
531 | local head = c:findFirstChild("Head") | |
532 | if head ~= nil then | |
533 | local targ = head.Position - Part.Position | |
534 | local mag = targ.magnitude | |
535 | if magni >= mag and c.Name ~= plr.Name then | |
536 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
537 | end | |
538 | end | |
539 | end | |
540 | end | |
541 | end | |
542 | ||
543 | ||
544 | CFuncs = { | |
545 | Part = { | |
546 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
547 | local Part = Create("Part")({ | |
548 | Parent = Parent, | |
549 | Reflectance = Reflectance, | |
550 | Transparency = Transparency, | |
551 | CanCollide = false, | |
552 | Locked = true, | |
553 | BrickColor = BrickColor.new(tostring(BColor)), | |
554 | Name = Name, | |
555 | Size = Size, | |
556 | Material = Material | |
557 | }) | |
558 | RemoveOutlines(Part) | |
559 | return Part | |
560 | end | |
561 | }, | |
562 | Mesh = { | |
563 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
564 | local Msh = Create(Mesh)({ | |
565 | Parent = Part, | |
566 | Offset = OffSet, | |
567 | Scale = Scale | |
568 | }) | |
569 | if Mesh == "SpecialMesh" then | |
570 | Msh.MeshType = MeshType | |
571 | Msh.MeshId = MeshId | |
572 | end | |
573 | return Msh | |
574 | end | |
575 | }, | |
576 | Mesh = { | |
577 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
578 | local Msh = Create(Mesh)({ | |
579 | Parent = Part, | |
580 | Offset = OffSet, | |
581 | Scale = Scale | |
582 | }) | |
583 | if Mesh == "SpecialMesh" then | |
584 | Msh.MeshType = MeshType | |
585 | Msh.MeshId = MeshId | |
586 | end | |
587 | return Msh | |
588 | end | |
589 | }, | |
590 | Weld = { | |
591 | Create = function(Parent, Part0, Part1, C0, C1) | |
592 | local Weld = Create("Weld")({ | |
593 | Parent = Parent, | |
594 | Part0 = Part0, | |
595 | Part1 = Part1, | |
596 | C0 = C0, | |
597 | C1 = C1 | |
598 | }) | |
599 | return Weld | |
600 | end | |
601 | }, | |
602 | Sound = { | |
603 | Create = function(id, par, vol, pit) | |
604 | coroutine.resume(coroutine.create(function() | |
605 | local S = Create("Sound")({ | |
606 | Volume = vol, | |
607 | Pitch = pit or 1, | |
608 | SoundId = id, | |
609 | Parent = par or workspace | |
610 | }) | |
611 | wait() | |
612 | S:play() | |
613 | game:GetService("Debris"):AddItem(S, 6) | |
614 | end)) | |
615 | end | |
616 | }, | |
617 | ParticleEmitter = { | |
618 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
619 | local fp = Create("ParticleEmitter")({ | |
620 | Parent = Parent, | |
621 | Color = ColorSequence.new(Color1, Color2), | |
622 | LightEmission = LightEmission, | |
623 | Size = Size, | |
624 | Texture = Texture, | |
625 | Transparency = Transparency, | |
626 | ZOffset = ZOffset, | |
627 | Acceleration = Accel, | |
628 | Drag = Drag, | |
629 | LockedToPart = LockedToPart, | |
630 | VelocityInheritance = VelocityInheritance, | |
631 | EmissionDirection = EmissionDirection, | |
632 | Enabled = Enabled, | |
633 | Lifetime = LifeTime, | |
634 | Rate = Rate, | |
635 | Rotation = Rotation, | |
636 | RotSpeed = RotSpeed, | |
637 | Speed = Speed, | |
638 | VelocitySpread = VelocitySpread | |
639 | }) | |
640 | return fp | |
641 | end | |
642 | } | |
643 | } | |
644 | function RemoveOutlines(part) | |
645 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
646 | end | |
647 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
648 | local Part = Create("Part")({ | |
649 | formFactor = FormFactor, | |
650 | Parent = Parent, | |
651 | Reflectance = Reflectance, | |
652 | Transparency = Transparency, | |
653 | CanCollide = false, | |
654 | Locked = true, | |
655 | BrickColor = BrickColor.new(tostring(BColor)), | |
656 | Name = Name, | |
657 | Size = Size, | |
658 | Material = Material | |
659 | }) | |
660 | RemoveOutlines(Part) | |
661 | return Part | |
662 | end | |
663 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
664 | local Msh = Create(Mesh)({ | |
665 | Parent = Part, | |
666 | Offset = OffSet, | |
667 | Scale = Scale | |
668 | }) | |
669 | if Mesh == "SpecialMesh" then | |
670 | Msh.MeshType = MeshType | |
671 | Msh.MeshId = MeshId | |
672 | end | |
673 | return Msh | |
674 | end | |
675 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
676 | local Weld = Create("Weld")({ | |
677 | Parent = Parent, | |
678 | Part0 = Part0, | |
679 | Part1 = Part1, | |
680 | C0 = C0, | |
681 | C1 = C1 | |
682 | }) | |
683 | return Weld | |
684 | end | |
685 | ||
686 | ||
687 | ------------------------------------------------------- | |
688 | --Start Effect Function-- | |
689 | ------------------------------------------------------- | |
690 | EffectModel = Instance.new("Model", char) | |
691 | Effects = { | |
692 | Block = { | |
693 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
694 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
695 | prt.Anchored = true | |
696 | prt.CFrame = cframe | |
697 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
698 | game:GetService("Debris"):AddItem(prt, 10) | |
699 | if Type == 1 or Type == nil then | |
700 | table.insert(Effects, { | |
701 | prt, | |
702 | "Block1", | |
703 | delay, | |
704 | x3, | |
705 | y3, | |
706 | z3, | |
707 | msh | |
708 | }) | |
709 | elseif Type == 2 then | |
710 | table.insert(Effects, { | |
711 | prt, | |
712 | "Block2", | |
713 | delay, | |
714 | x3, | |
715 | y3, | |
716 | z3, | |
717 | msh | |
718 | }) | |
719 | else | |
720 | table.insert(Effects, { | |
721 | prt, | |
722 | "Block3", | |
723 | delay, | |
724 | x3, | |
725 | y3, | |
726 | z3, | |
727 | msh | |
728 | }) | |
729 | end | |
730 | end | |
731 | }, | |
732 | Sphere = { | |
733 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
734 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
735 | prt.Anchored = true | |
736 | prt.CFrame = cframe | |
737 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
738 | game:GetService("Debris"):AddItem(prt, 10) | |
739 | table.insert(Effects, { | |
740 | prt, | |
741 | "Cylinder", | |
742 | delay, | |
743 | x3, | |
744 | y3, | |
745 | z3, | |
746 | msh | |
747 | }) | |
748 | end | |
749 | }, | |
750 | Cylinder = { | |
751 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
752 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
753 | prt.Anchored = true | |
754 | prt.CFrame = cframe | |
755 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
756 | game:GetService("Debris"):AddItem(prt, 10) | |
757 | table.insert(Effects, { | |
758 | prt, | |
759 | "Cylinder", | |
760 | delay, | |
761 | x3, | |
762 | y3, | |
763 | z3, | |
764 | msh | |
765 | }) | |
766 | end | |
767 | }, | |
768 | Wave = { | |
769 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
770 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
771 | prt.Anchored = true | |
772 | prt.CFrame = cframe | |
773 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
774 | game:GetService("Debris"):AddItem(prt, 10) | |
775 | table.insert(Effects, { | |
776 | prt, | |
777 | "Cylinder", | |
778 | delay, | |
779 | x3 / 60, | |
780 | y3 / 60, | |
781 | z3 / 60, | |
782 | msh | |
783 | }) | |
784 | end | |
785 | }, | |
786 | Ring = { | |
787 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
788 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
789 | prt.Anchored = true | |
790 | prt.CFrame = cframe | |
791 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
792 | game:GetService("Debris"):AddItem(prt, 10) | |
793 | table.insert(Effects, { | |
794 | prt, | |
795 | "Cylinder", | |
796 | delay, | |
797 | x3, | |
798 | y3, | |
799 | z3, | |
800 | msh | |
801 | }) | |
802 | end | |
803 | }, | |
804 | Break = { | |
805 | Create = function(brickcolor, cframe, x1, y1, z1) | |
806 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
807 | prt.Anchored = true | |
808 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
809 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
810 | local num = math.random(10, 50) / 1000 | |
811 | game:GetService("Debris"):AddItem(prt, 10) | |
812 | table.insert(Effects, { | |
813 | prt, | |
814 | "Shatter", | |
815 | num, | |
816 | prt.CFrame, | |
817 | math.random() - math.random(), | |
818 | 0, | |
819 | math.random(50, 100) / 100 | |
820 | }) | |
821 | end | |
822 | }, | |
823 | Spiral = { | |
824 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
825 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
826 | prt.Anchored = true | |
827 | prt.CFrame = cframe | |
828 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
829 | game:GetService("Debris"):AddItem(prt, 10) | |
830 | table.insert(Effects, { | |
831 | prt, | |
832 | "Cylinder", | |
833 | delay, | |
834 | x3, | |
835 | y3, | |
836 | z3, | |
837 | msh | |
838 | }) | |
839 | end | |
840 | }, | |
841 | Push = { | |
842 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
843 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
844 | prt.Anchored = true | |
845 | prt.CFrame = cframe | |
846 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
847 | game:GetService("Debris"):AddItem(prt, 10) | |
848 | table.insert(Effects, { | |
849 | prt, | |
850 | "Cylinder", | |
851 | delay, | |
852 | x3, | |
853 | y3, | |
854 | z3, | |
855 | msh | |
856 | }) | |
857 | end | |
858 | } | |
859 | } | |
860 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
861 | local fp = IT("Part") | |
862 | fp.formFactor = formfactor | |
863 | fp.Parent = parent | |
864 | fp.Reflectance = reflectance | |
865 | fp.Transparency = transparency | |
866 | fp.CanCollide = false | |
867 | fp.Locked = true | |
868 | fp.BrickColor = brickcolor | |
869 | fp.Name = name | |
870 | fp.Size = size | |
871 | fp.Position = tors.Position | |
872 | RemoveOutlines(fp) | |
873 | fp.Material = "SmoothPlastic" | |
874 | fp:BreakJoints() | |
875 | return fp | |
876 | end | |
877 | ||
878 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
879 | local mesh = IT(Mesh) | |
880 | mesh.Parent = part | |
881 | if Mesh == "SpecialMesh" then | |
882 | mesh.MeshType = meshtype | |
883 | if meshid ~= "nil" then | |
884 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
885 | end | |
886 | end | |
887 | mesh.Offset = offset | |
888 | mesh.Scale = scale | |
889 | return mesh | |
890 | end | |
891 | ||
892 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
893 | local type = type | |
894 | local rng = Instance.new("Part", char) | |
895 | rng.Anchored = true | |
896 | rng.BrickColor = color | |
897 | rng.CanCollide = false | |
898 | rng.FormFactor = 3 | |
899 | rng.Name = "Ring" | |
900 | rng.Material = "Neon" | |
901 | rng.Size = Vector3.new(1, 1, 1) | |
902 | rng.Transparency = 0 | |
903 | rng.TopSurface = 0 | |
904 | rng.BottomSurface = 0 | |
905 | rng.CFrame = pos | |
906 | local rngm = Instance.new("SpecialMesh", rng) | |
907 | rngm.MeshType = MType | |
908 | rngm.Scale = scale | |
909 | local scaler2 = 1 | |
910 | if type == "Add" then | |
911 | scaler2 = 1 * value | |
912 | elseif type == "Divide" then | |
913 | scaler2 = 1 / value | |
914 | end | |
915 | coroutine.resume(coroutine.create(function() | |
916 | for i = 0, 10 / bonuspeed, 0.1 do | |
917 | swait() | |
918 | if type == "Add" then | |
919 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
920 | elseif type == "Divide" then | |
921 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
922 | end | |
923 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
924 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
925 | end | |
926 | rng:Destroy() | |
927 | end)) | |
928 | end | |
929 | ||
930 | function Eviscerate(dude) | |
931 | if dude.Name ~= char then | |
932 | local bgf = IT("BodyGyro", dude.Head) | |
933 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
934 | local val = IT("BoolValue", dude) | |
935 | val.Name = "IsHit" | |
936 | local ds = coroutine.wrap(function() | |
937 | dude:WaitForChild("Head"):BreakJoints() | |
938 | wait(0.5) | |
939 | target = nil | |
940 | coroutine.resume(coroutine.create(function() | |
941 | for i, v in pairs(dude:GetChildren()) do | |
942 | if v:IsA("Accessory") then | |
943 | v:Destroy() | |
944 | end | |
945 | if v:IsA("Humanoid") then | |
946 | v:Destroy() | |
947 | end | |
948 | if v:IsA("CharacterMesh") then | |
949 | v:Destroy() | |
950 | end | |
951 | if v:IsA("Model") then | |
952 | v:Destroy() | |
953 | end | |
954 | if v:IsA("Part") or v:IsA("MeshPart") then | |
955 | for x, o in pairs(v:GetChildren()) do | |
956 | if o:IsA("Decal") then | |
957 | o:Destroy() | |
958 | end | |
959 | end | |
960 | coroutine.resume(coroutine.create(function() | |
961 | v.Material = "Neon" | |
962 | v.CanCollide = false | |
963 | local PartEmmit1 = IT("ParticleEmitter", v) | |
964 | PartEmmit1.LightEmission = 1 | |
965 | PartEmmit1.Texture = "rbxassetid://284205403" | |
966 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
967 | PartEmmit1.Rate = 150 | |
968 | PartEmmit1.Lifetime = NumberRange.new(1) | |
969 | PartEmmit1.Size = NumberSequence.new({ | |
970 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
971 | NumberSequenceKeypoint.new(1, 0, 0) | |
972 | }) | |
973 | PartEmmit1.Transparency = NumberSequence.new({ | |
974 | NumberSequenceKeypoint.new(0, 0, 0), | |
975 | NumberSequenceKeypoint.new(1, 1, 0) | |
976 | }) | |
977 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
978 | PartEmmit1.VelocitySpread = 30000 | |
979 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
980 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
981 | local BodPoss = IT("BodyPosition", v) | |
982 | BodPoss.P = 3000 | |
983 | BodPoss.D = 1000 | |
984 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
985 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
986 | v.Color = maincolor.Color | |
987 | coroutine.resume(coroutine.create(function() | |
988 | for i = 0, 49 do | |
989 | swait(1) | |
990 | v.Transparency = v.Transparency + 0.08 | |
991 | end | |
992 | wait(0.5) | |
993 | PartEmmit1.Enabled = false | |
994 | wait(3) | |
995 | v:Destroy() | |
996 | dude:Destroy() | |
997 | end)) | |
998 | end)) | |
999 | end | |
1000 | end | |
1001 | end)) | |
1002 | end) | |
1003 | ds() | |
1004 | end | |
1005 | end | |
1006 | ||
1007 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1008 | if SinglePlayer then | |
1009 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1010 | end | |
1011 | local List = {} | |
1012 | for i, v in pairs(workspace:GetChildren()) do | |
1013 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1014 | table.insert(List, v) | |
1015 | end | |
1016 | end | |
1017 | return List | |
1018 | end | |
1019 | ||
1020 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1021 | local type = type | |
1022 | local rng = Instance.new("Part", char) | |
1023 | rng.Anchored = true | |
1024 | rng.BrickColor = color | |
1025 | rng.CanCollide = false | |
1026 | rng.FormFactor = 3 | |
1027 | rng.Name = "Ring" | |
1028 | rng.Material = "Neon" | |
1029 | rng.Size = Vector3.new(1, 1, 1) | |
1030 | rng.Transparency = 0 | |
1031 | rng.TopSurface = 0 | |
1032 | rng.BottomSurface = 0 | |
1033 | rng.CFrame = pos | |
1034 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1035 | local rngm = Instance.new("SpecialMesh", rng) | |
1036 | rngm.MeshType = MType | |
1037 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1038 | local scaler2 = 1 | |
1039 | local speeder = FastSpeed | |
1040 | if type == "Add" then | |
1041 | scaler2 = 1 * value | |
1042 | elseif type == "Divide" then | |
1043 | scaler2 = 1 / value | |
1044 | end | |
1045 | coroutine.resume(coroutine.create(function() | |
1046 | for i = 0, 10 / bonuspeed, 0.1 do | |
1047 | swait() | |
1048 | if type == "Add" then | |
1049 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1050 | elseif type == "Divide" then | |
1051 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1052 | end | |
1053 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1054 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1055 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1056 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1057 | end | |
1058 | rng:Destroy() | |
1059 | end)) | |
1060 | end | |
1061 | ||
1062 | function SoulSteal(dude) | |
1063 | if dude.Name ~= char then | |
1064 | local bgf = IT("BodyGyro", dude.Head) | |
1065 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1066 | local val = IT("BoolValue", dude) | |
1067 | val.Name = "IsHit" | |
1068 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1069 | local soulst = coroutine.wrap(function() | |
1070 | local soul = Instance.new("Part",dude) | |
1071 | soul.Size = Vector3.new(1,1,1) | |
1072 | soul.CanCollide = false | |
1073 | soul.Anchored = false | |
1074 | soul.Position = torso.Position | |
1075 | soul.Transparency = 1 | |
1076 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1077 | PartEmmit1.LightEmission = 1 | |
1078 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1079 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1080 | PartEmmit1.Rate = 250 | |
1081 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1082 | PartEmmit1.Size = NumberSequence.new({ | |
1083 | NumberSequenceKeypoint.new(0, 1, 0), | |
1084 | NumberSequenceKeypoint.new(1, 0, 0) | |
1085 | }) | |
1086 | PartEmmit1.Transparency = NumberSequence.new({ | |
1087 | NumberSequenceKeypoint.new(0, 0, 0), | |
1088 | NumberSequenceKeypoint.new(1, 1, 0) | |
1089 | }) | |
1090 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1091 | PartEmmit1.VelocitySpread = 30000 | |
1092 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1093 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1094 | local BodPoss = IT("BodyPosition", soul) | |
1095 | BodPoss.P = 3000 | |
1096 | BodPoss.D = 1000 | |
1097 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1098 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1099 | wait(1.6) | |
1100 | soul.Touched:connect(function(hit) | |
1101 | if hit.Parent == char then | |
1102 | soul:Destroy() | |
1103 | end | |
1104 | end) | |
1105 | wait(1.2) | |
1106 | while soul do | |
1107 | swait() | |
1108 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1109 | BodPoss.Position = tors.Position | |
1110 | end | |
1111 | end) | |
1112 | soulst() | |
1113 | end | |
1114 | end | |
1115 | function FaceMouse() | |
1116 | local Cam = workspace.CurrentCamera | |
1117 | return { | |
1118 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1119 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1120 | } | |
1121 | end | |
1122 | ------------------------------------------------------- | |
1123 | --End Effect Function-- | |
1124 | ------------------------------------------------------- | |
1125 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1126 | local NSound = nil | |
1127 | coroutine.resume(coroutine.create(function() | |
1128 | NSound = IT("Sound", PARENT) | |
1129 | NSound.Volume = VOLUME | |
1130 | NSound.Pitch = PITCH | |
1131 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1132 | swait() | |
1133 | NSound:play() | |
1134 | game:GetService("Debris"):AddItem(NSound, 10) | |
1135 | end)) | |
1136 | return NSound | |
1137 | end | |
1138 | function CameraEnshaking(Length, Intensity) | |
1139 | coroutine.resume(coroutine.create(function() | |
1140 | local intensity = 1 * Intensity | |
1141 | local rotM = 0.01 * Intensity | |
1142 | for i = 0, Length, 0.1 do | |
1143 | swait() | |
1144 | intensity = intensity - 0.05 * Intensity / Length | |
1145 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1146 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1147 | 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) | |
1148 | end | |
1149 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1150 | end)) | |
1151 | end | |
1152 | ||
1153 | function getRegion(point,range,ignore) | |
1154 | return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100) | |
1155 | end | |
1156 | ||
1157 | function GetTorso(chars) | |
1158 | return chars:FindFirstChild'Torso' or chars:FindFirstChild'UpperTorso' | |
1159 | end | |
1160 | ||
1161 | function ClosestHumanoid(pos,range) | |
1162 | local mag,closest = math.huge; | |
1163 | for _,v in next, getRegion(pos,range or 10,{char}) do | |
1164 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid') | |
1165 | if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then | |
1166 | mag = (v.CFrame.p-pos).magnitude | |
1167 | closest = hum | |
1168 | end | |
1169 | end | |
1170 | return closest,(closest and GetTorso(closest.Parent) or nil) | |
1171 | end | |
1172 | ||
1173 | ------------------------------------------------------- | |
1174 | --End Important Functions-- | |
1175 | ------------------------------------------------------- | |
1176 | ||
1177 | ||
1178 | --[[ | |
1179 | Thanks for using Build-To-Lua by jarredbcv. | |
1180 | ]]-- | |
1181 | ||
1182 | New = function(Object, Parent, Name, Data) | |
1183 | local Object = Instance.new(Object) | |
1184 | for Index, Value in pairs(Data or {}) do | |
1185 | Object[Index] = Value | |
1186 | end | |
1187 | Object.Parent = Parent | |
1188 | Object.Name = Name | |
1189 | return Object | |
1190 | end | |
1191 | ||
1192 | POLE = New("Model",char,"POLE",{}) | |
1193 | Handle = New("Part",POLE,"Handle",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.600000024, 25.1999989, 0.600000024),CFrame = CFrame.new(-133.429993, 15.9508238, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1194 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.400000006, 2),CFrame = CFrame.new(-133.429993, 29.3511391, -110.859985, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1195 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(4.80000305, 13.4003153, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1196 | Part = New("Part",POLE,"Part",{Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.400000036, 2),CFrame = CFrame.new(-133.429993, 29.3511372, -108.459969, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,LeftSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,}) | |
1197 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(7.20001984, 13.4003134, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1198 | LightPart = New("Part",POLE,"LightPart",{BrickColor = BrickColor.new("Pastel brown"),Material = Enum.Material.Metal,Transparency = 0.5,Transparency = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.200000003, 1.79999995),CFrame = CFrame.new(-133.429993, 29.1511116, -110.859985, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.8, 0.6),}) | |
1199 | mot = New("Motor",LightPart,"mot",{Part0 = LightPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(4.80000305, 13.2002878, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1200 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.600000024, 2),CFrame = CFrame.new(-133.429993, 29.2511311, -113.259979, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1201 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(2.40000916, 13.3003073, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1202 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2.79999995, 0.400000036, 0.400000036),CFrame = CFrame.new(-133.429993, 28.5913277, -114.422417, 1.07468857e-13, -6.67446445e-14, -1, 0.499998897, 0.866023302, 1.0658141e-14, 0.866023302, -0.499998897, -1.3500312e-13),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1203 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.07468857e-13, 0.499998897, 0.866023302, -6.67446445e-14, 0.866023302, -0.499998897, -1, 1.0658141e-14, -1.3500312e-13),C1 = CFrame.new(1.23757172, 12.6405039, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1204 | LightPart = New("Part",POLE,"LightPart",{BrickColor = BrickColor.new("Pastel brown"),Material = Enum.Material.Metal,Transparency = 0.5,Transparency = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.200000003, 1.79999995),CFrame = CFrame.new(-133.429993, 29.1511097, -120.459991, 8.74227766e-08, 0, 1, 0, 1, 0, -1, 0, 8.74227766e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.8, 0.6),}) | |
1205 | mot = New("Motor",LightPart,"mot",{Part0 = LightPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227766e-08, 0, -1, 0, 1, 0, 1, 0, 8.74227766e-08),C1 = CFrame.new(-4.80000305, 13.2002859, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1206 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.400000006, 2),CFrame = CFrame.new(-133.429993, 29.3511353, -120.459984, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1207 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-4.79999542, 13.4003115, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1208 | Part = New("Part",POLE,"Part",{Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.400000036, 2),CFrame = CFrame.new(-133.429993, 29.3511333, -122.859985, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,LeftSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,}) | |
1209 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-7.19999695, 13.4003096, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1210 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2.79999995, 0.400000036, 0.400000036),CFrame = CFrame.new(-133.429993, 28.5913258, -116.89756, 7.57102967e-08, -4.37113634e-08, 1, 0.499999404, 0.866024375, -3.55271368e-15, -0.866024375, 0.499999404, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1211 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 7.57102967e-08, 0.499999404, -0.866024375, -4.37113634e-08, 0.866024375, 0.499999404, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-1.23757172, 12.640502, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1212 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.600000024, 2),CFrame = CFrame.new(-133.429993, 29.2511272, -118.05999, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1213 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-2.40000153, 13.3003035, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1214 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(3.19999981, 0.200000003, 0.200000003),CFrame = CFrame.new(-133.429993, 27.7216053, -116.711098, 5.61942315e-08, -6.6969676e-08, 1, 0.766043305, 0.642786801, -3.55271368e-15, -0.642786801, 0.766043305, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1215 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.61942315e-08, 0.766043305, -0.642786801, -6.6969676e-08, 0.642786801, 0.766043305, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-1.05110931, 11.7707815, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1216 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(3.19999981, 0.200000003, 0.200000003),CFrame = CFrame.new(-133.429993, 27.7216072, -114.608871, 7.81597009e-14, -9.9475983e-14, -1, 0.766042829, 0.642786205, 1.0658141e-14, 0.642786205, -0.766042829, -1.3500312e-13),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1217 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 7.81597009e-14, 0.766042829, 0.642786205, -9.9475983e-14, 0.642786205, -0.766042829, -1, 1.0658141e-14, -1.3500312e-13),C1 = CFrame.new(1.05111694, 11.7707834, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1218 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Cyan"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 3, 1),CFrame = CFrame.new(-133.429993, 1.85098195, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0156863, 0.686275, 0.92549),}) | |
1219 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0, -14.0998421, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1220 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Navy blue"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1, 0.200000003, 1),CFrame = CFrame.new(-133.429993, 3.45098758, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),}) | |
1221 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0, -12.499836, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1222 | ||
1223 | ||
1224 | ||
1225 | local NewInstance = function(instance,parent,properties) | |
1226 | local inst = Instance.new(instance,parent) | |
1227 | if(properties)then | |
1228 | for i,v in next, properties do | |
1229 | pcall(function() inst[i] = v end) | |
1230 | end | |
1231 | end | |
1232 | return inst; | |
1233 | end | |
1234 | ||
1235 | for _,v in next, POLE:children() do | |
1236 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
1237 | v.CanCollide = false | |
1238 | end | |
1239 | ||
1240 | ||
1241 | local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0))}) | |
1242 | ||
1243 | ||
1244 | ||
1245 | ------------------------------------------------------- | |
1246 | --Start Customization-- | |
1247 | ------------------------------------------------------- | |
1248 | local Player_Size = 1 | |
1249 | if Player_Size ~= 1 then | |
1250 | root.Size = root.Size * Player_Size | |
1251 | tors.Size = tors.Size * Player_Size | |
1252 | hed.Size = hed.Size * Player_Size | |
1253 | ra.Size = ra.Size * Player_Size | |
1254 | la.Size = la.Size * Player_Size | |
1255 | rl.Size = rl.Size * Player_Size | |
1256 | ll.Size = ll.Size * Player_Size | |
1257 | ---------------------------------------------------------------------------------- | |
1258 | rootj.Parent = root | |
1259 | neck.Parent = tors | |
1260 | RW.Parent = tors | |
1261 | LW.Parent = tors | |
1262 | RH.Parent = tors | |
1263 | LH.Parent = tors | |
1264 | ---------------------------------------------------------------------------------- | |
1265 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1266 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1267 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1268 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1269 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1270 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1271 | ---------------------------------------------------------------------------------- | |
1272 | 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)) | |
1273 | 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)) | |
1274 | 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)) | |
1275 | 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)) | |
1276 | --hat.Parent = Character | |
1277 | end | |
1278 | ---------------------------------------------------------------------------------- | |
1279 | - | local SONG = 996342575 |
1279 | + | local SONG = 1492055934 |
1280 | local SONG2 = 0 | |
1281 | local Music = Instance.new("Sound",tors) | |
1282 | Music.Volume = 2.5 | |
1283 | Music.Looped = true | |
1284 | Music.Pitch = 1 --Pitcher | |
1285 | ---------------------------------------------------------------------------------- | |
1286 | local equipped = false | |
1287 | local idle = 0 | |
1288 | local change = 1 | |
1289 | local val = 0 | |
1290 | local toim = 0 | |
1291 | local idleanim = 0.4 | |
1292 | local sine = 0 | |
1293 | local Sit = 1 | |
1294 | local VALUE1 = false | |
1295 | local VALUE2 = false | |
1296 | ---------------------------------------------------------------------------------- | |
1297 | hum.WalkSpeed = 14 | |
1298 | hum.JumpPower = 157 | |
1299 | hum.Animator.Parent = nil | |
1300 | ------------------------------------------------------- | |
1301 | --End Customization-- | |
1302 | ------------------------------------------------------- | |
1303 | ||
1304 | ||
1305 | ------------------------------------------------------- | |
1306 | --Start Attacks N Stuff-- | |
1307 | ------------------------------------------------------- | |
1308 | function FuckingDyingInside() | |
1309 | attack = true | |
1310 | Cso("207358216", tors, 10, 1) | |
1311 | for i = 1, 100 do | |
1312 | swait() | |
1313 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1314 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1315 | 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(84), Rad(0)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1316 | 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(-84), Rad(0)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1317 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1318 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1319 | end | |
1320 | attack = false | |
1321 | end | |
1322 | function SmackaCracka() | |
1323 | attack = true | |
1324 | local THOT = Cso("1028044973", char, 10, 1) | |
1325 | for i = 0, 10, 0.1 do | |
1326 | swait() | |
1327 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 1) | |
1328 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1329 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 1) | |
1330 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 1) | |
1331 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(198), Rad(-.6), Rad(25)), 1) | |
1332 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1333 | end | |
1334 | local THOT = Cso("1041422498", char, 10, 1) | |
1335 | coroutine.resume(coroutine.create(function() | |
1336 | MagniDamage(root, 65, 65, 90, 0, "Normal") | |
1337 | Magic(1, "Add", ra.CFrame, Vector3.new(5, 5, 5), 1, BrickC("Really red"), "Sphere") | |
1338 | Magic(2, "Add", ra.CFrame, Vector3.new(5, 5, 5), 2, BrickColor.new("Br. yellowish orange"), "Sphere") | |
1339 | end)) | |
1340 | for i = 0, 8, 0.1 do | |
1341 | swait() | |
1342 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 1) | |
1343 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1344 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1345 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1346 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(34), Rad(-.6), Rad(25)), 1) | |
1347 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1348 | end | |
1349 | Cso("1093102664", tors, 10, 1) | |
1350 | for i = 0, 6, 0.1 do | |
1351 | swait() | |
1352 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 1) | |
1353 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1354 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1355 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1356 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(34), Rad(-.6), Rad(25)), 1) | |
1357 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1358 | end | |
1359 | attack = false | |
1360 | end | |
1361 | function OWOIMMASPINNING() | |
1362 | attack = true | |
1363 | local BOOST = Cso("891338458", tors, 10, 1) | |
1364 | hum.WalkSpeed = 56 | |
1365 | local NoConstant = false | |
1366 | local Hitter = Handle.Touched:connect(function(hit) | |
1367 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1368 | --if NoConstant == false then | |
1369 | --NoConstant = true | |
1370 | Damage(hit, hit, 7, 25, 0, "Normal", root, 0.1, "http://www.roblox.com/asset/?id=527749592", 1.2) | |
1371 | --end | |
1372 | end | |
1373 | end) | |
1374 | repeat | |
1375 | for i = 0, 1, 0.1 do | |
1376 | swait() | |
1377 | 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(255.45 * i)), 1) | |
1378 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1379 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1380 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1381 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1382 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-90)), 1) | |
1383 | end | |
1384 | until BOOST.Playing == false | |
1385 | attack = false | |
1386 | Hitter:Disconnect() | |
1387 | hum.WalkSpeed = 14 | |
1388 | end | |
1389 | function I_REALLY_CANT_STOP() | |
1390 | attack = true | |
1391 | hum.WalkSpeed = 0 | |
1392 | VALUE2 = true | |
1393 | SONG = 205620538 | |
1394 | root.Anchored = true | |
1395 | repeat | |
1396 | swait() | |
1397 | for i = 0, 1, 0.1 do | |
1398 | swait() | |
1399 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
1400 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
1401 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.4 + 0.05 * math.cos(sine / 28)) * angles(math.rad(90 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
1402 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(-60)), 0.15) | |
1403 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(180), math.rad(0), math.rad(32)), 0.15) | |
1404 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(180), math.rad(0), math.rad(-65)), 0.15) | |
1405 | end | |
1406 | until VALUE2 == false | |
1407 | attack = false | |
1408 | hum.WalkSpeed = 14 | |
1409 | SONG = 996342575 | |
1410 | root.Anchored = false | |
1411 | end | |
1412 | ||
1413 | function RAEP_qmq() | |
1414 | --Credit To Nebula_Zorua | |
1415 | local humanoid, torso = ClosestHumanoid(tors.CFrame.p,5) | |
1416 | ||
1417 | if(torso)then | |
1418 | attack = true | |
1419 | local Bingo = Cso("429678771", hed, 6, 1) | |
1420 | Bingo.TimePosition = 10.6 | |
1421 | local who = torso.Parent | |
1422 | hum.WalkSpeed = 0 | |
1423 | hum.JumpPower = 0 | |
1424 | humanoid.WalkSpeed = 0 | |
1425 | humanoid.JumpPower = 0 | |
1426 | who.Parent = char | |
1427 | pcall(function() who.HumanoidRootPart:destroy() end) | |
1428 | local gWeld = NewInstance("Weld",char,{Part0 = root, Part1 = torso, C0 = CF(0,0,-1.35)}) | |
1429 | for i = 0, 17, 0.1 do | |
1430 | swait() | |
1431 | 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(-35)), 1) | |
1432 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(20), Rad(35)), 1) | |
1433 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1434 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1435 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1436 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-.6), Rad(-15)), 1) | |
1437 | end | |
1438 | Bingo.Playing = false | |
1439 | Cso("144508058", tors, 10, 0.8) | |
1440 | for i = 0, 3, 0.1 do | |
1441 | swait() | |
1442 | gWeld.C0 = CF(0, 0, -5) | |
1443 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 2* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-50)), 1) | |
1444 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(50)), 1) | |
1445 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1446 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1447 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1448 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-15)), 1) | |
1449 | end | |
1450 | Cso("702631545", who.Head, 7, 1) | |
1451 | Cso("959679286", who.Head, 7, 1) | |
1452 | for i = 0, 8, 0.1 do | |
1453 | swait() | |
1454 | gWeld.C0 = CF(0, 4, -5) | |
1455 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(0), Rad(0), Rad(40)), 1) | |
1456 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 2* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 1) | |
1457 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(10), Rad(-90)), 1) | |
1458 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1459 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1460 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1461 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-15)), 1) | |
1462 | end | |
1463 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1464 | torso:BreakJoints() | |
1465 | attack = false | |
1466 | hum.WalkSpeed = 14 | |
1467 | hum.JumpPower = 157 | |
1468 | end | |
1469 | end | |
1470 | ||
1471 | function My_Favorite_Show_As_A_Kid() | |
1472 | attack = true | |
1473 | hum.WalkSpeed = 0 | |
1474 | Cso("1093102664", hed, 10, 1) | |
1475 | for i = 0, 6, 0.1 do | |
1476 | swait() | |
1477 | 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(0)), 1) | |
1478 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 1) | |
1479 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1480 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1481 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1) | |
1482 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1483 | end | |
1484 | Cso("1542642349", hed, 10, 1) | |
1485 | for i = 0, 6, 0.1 do | |
1486 | swait() | |
1487 | 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(0)), 1) | |
1488 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, -5, 0 + ((-1 * Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(180)), 1) | |
1489 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1490 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1491 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1) | |
1492 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1493 | end | |
1494 | Cso("144508058", hed, 10, 0.8) | |
1495 | for i = 0, 6, 0.1 do | |
1496 | swait() | |
1497 | 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(0)), 1) | |
1498 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1499 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1500 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1501 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-90), Rad(-.6), Rad(15)), 1) | |
1502 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1503 | end | |
1504 | Cso("144508058", hed, 10, 0.8) | |
1505 | Cso("702631545", tors, 7, 1) | |
1506 | HW.Part0 = tors | |
1507 | HW.C0 = clerp(HW.C0, CF(0, -.4, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1508 | for i = 0, 6, 0.1 do | |
1509 | swait() | |
1510 | 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(0)), 1) | |
1511 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1512 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1513 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1514 | 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(-.6), Rad(-15)), 1) | |
1515 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1516 | end | |
1517 | Cso("1093102664", hed, 10, 1) | |
1518 | for i = 0, 6, 0.1 do | |
1519 | swait() | |
1520 | 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(0)), 1) | |
1521 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1522 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1523 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1524 | 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(-.6), Rad(-15)), 1) | |
1525 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1526 | end | |
1527 | Cso("1025464252", hed, 10, 1) | |
1528 | for i = 0, 16, 0.1 do | |
1529 | swait() | |
1530 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 1) | |
1531 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1532 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 1) | |
1533 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 1) | |
1534 | 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(-.6), Rad(15)), 1) | |
1535 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(-13)), 1) | |
1536 | end | |
1537 | attack = false | |
1538 | HW.Part0 = ra | |
1539 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1540 | hum.WalkSpeed = 14 | |
1541 | end | |
1542 | ------------------------------------------------------- | |
1543 | --End Attacks N Stuff-- | |
1544 | ------------------------------------------------------- | |
1545 | mouse.KeyDown:connect(function(key) | |
1546 | if (VALUE1 == false and attack == false) or VALUE2 == true then | |
1547 | if key == "q" then | |
1548 | if VALUE2 == false then | |
1549 | I_REALLY_CANT_STOP() | |
1550 | elseif VALUE2 == true then | |
1551 | VALUE2 = false | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | if attack == false then | |
1556 | if key == 't' then | |
1557 | FuckingDyingInside() | |
1558 | elseif key == 'z' then | |
1559 | SmackaCracka() | |
1560 | elseif key == 'x' then | |
1561 | OWOIMMASPINNING() | |
1562 | elseif key == 'c' then | |
1563 | RAEP_qmq() | |
1564 | elseif key == 'v' then | |
1565 | local B = Cso("847665457", hed, 7, 1) | |
1566 | B.TimePosition = 13.2 | |
1567 | CameraEnshaking(5, 5) | |
1568 | local ORIGINPOS = root.Position | |
1569 | root.CFrame = CFrame.new(Vector3.new(mouse.Hit.p.X, root.Position.Y, mouse.Hit.p.Z), ORIGINPOS) | |
1570 | wait(1.3) | |
1571 | B.Playing = false | |
1572 | elseif key == 'b' then | |
1573 | My_Favorite_Show_As_A_Kid() | |
1574 | end | |
1575 | end | |
1576 | end) | |
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ------------------------------------------------------- | |
1585 | --Start Animations-- | |
1586 | ------------------------------------------------------- | |
1587 | print("By Makhail07") | |
1588 | while true do | |
1589 | swait() | |
1590 | sine = sine + change | |
1591 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1592 | local velderp = root.Velocity.y | |
1593 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1594 | if equipped == true or equipped == false then | |
1595 | if attack == false then | |
1596 | idle = idle + 1 | |
1597 | else | |
1598 | idle = 0 | |
1599 | end | |
1600 | if 1 < root.Velocity.y and hitfloor == nil then | |
1601 | Anim = "Jump" | |
1602 | if attack == false then | |
1603 | 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.1) | |
1604 | 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) | |
1605 | 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.1) | |
1606 | 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.1) | |
1607 | 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) | |
1608 | 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) | |
1609 | end | |
1610 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1611 | Anim = "Fall" | |
1612 | if attack == false then | |
1613 | 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.1) | |
1614 | 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) | |
1615 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1) | |
1616 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.1) | |
1617 | 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) | |
1618 | 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) | |
1619 | end | |
1620 | elseif torvel < 1 and hitfloor ~= nil then | |
1621 | Anim = "Idle" | |
1622 | change = 1 | |
1623 | if attack == false then | |
1624 | 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(0)), 0.1) | |
1625 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1626 | 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(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1) | |
1627 | 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(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1) | |
1628 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1) | |
1629 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
1630 | end | |
1631 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
1632 | Anim = "Walk" | |
1633 | change = 1 | |
1634 | if attack == false then | |
1635 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.25 + 0.3 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(-10 - 3 * Cos(sine / 7))), 0.1) | |
1636 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(10 - 2 * Cos(sine / 7)) - hed.RotVelocity.Y / 15), 0.3) | |
1637 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1638 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1639 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(186), Rad(-.6), Rad(15)), 0.1) | |
1640 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
1641 | end | |
1642 | end | |
1643 | end | |
1644 | Music.SoundId = "rbxassetid://"..SONG | |
1645 | Music.Looped = true | |
1646 | Music.Pitch = 1 | |
1647 | Music.Volume = 5 | |
1648 | Music.Parent = tors | |
1649 | Music:Resume() | |
1650 | if 0 < #Effects then | |
1651 | for e = 1, #Effects do | |
1652 | if Effects[e] ~= nil then | |
1653 | local Thing = Effects[e] | |
1654 | if Thing ~= nil then | |
1655 | local Part = Thing[1] | |
1656 | local Mode = Thing[2] | |
1657 | local Delay = Thing[3] | |
1658 | local IncX = Thing[4] | |
1659 | local IncY = Thing[5] | |
1660 | local IncZ = Thing[6] | |
1661 | if 1 >= Thing[1].Transparency then | |
1662 | if Thing[2] == "Block1" then | |
1663 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1664 | local Mesh = Thing[1].Mesh | |
1665 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1666 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1667 | elseif Thing[2] == "Block2" then | |
1668 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1669 | local Mesh = Thing[7] | |
1670 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1671 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1672 | elseif Thing[2] == "Block3" then | |
1673 | 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) | |
1674 | local Mesh = Thing[7] | |
1675 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1676 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1677 | elseif Thing[2] == "Cylinder" then | |
1678 | local Mesh = Thing[1].Mesh | |
1679 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1680 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1681 | elseif Thing[2] == "Blood" then | |
1682 | local Mesh = Thing[7] | |
1683 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1684 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1685 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1686 | elseif Thing[2] == "Elec" then | |
1687 | local Mesh = Thing[1].Mesh | |
1688 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1689 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1690 | elseif Thing[2] == "Disappear" then | |
1691 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1692 | elseif Thing[2] == "Shatter" then | |
1693 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1694 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1695 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1696 | Thing[6] = Thing[6] + Thing[5] | |
1697 | end | |
1698 | else | |
1699 | Part.Parent = nil | |
1700 | table.remove(Effects, e) | |
1701 | end | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | end | |
1706 | end | |
1707 | ------------------------------------------------------- | |
1708 | --End Animations And Script-- | |
1709 | ------------------------------------------------------- |