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