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