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