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