SHOW:
|
|
- or go back to the newest paste.
1 | - | ----------------------- |
1 | + | -- This script has been converted to FE by iPxter |
2 | - | --[[ Name : Ņ̢̨͢͟ó͢ ̧͢ơ̶̶̶̢n͜͏ę̶̡͠'͏́́͞҉ş̨͏ ͜a͝҉r̵̷̛̛͟o̶̡͟͝ų̶̸̵͝ń͡͡͏̷d̀͜͟ ̵̡́́͜t̡̀͘o͏̀̕͡ ͢h͠͏e̵͢͜ļ̡͢͡ṕ̛͏.̷̧̨ ]]-- |
2 | + | |
3 | ||
4 | - | --A script By makhail07 |
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 | - | --Discord Creterisk#2958 |
6 | + | do |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | - | --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION |
8 | + | script.Parent = Player.Character |
9 | - | --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT |
9 | + | |
10 | - | --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT |
10 | + | --RemoteEvent for communicating |
11 | - | --YOU FUCKING SKIDS, |
11 | + | local Event = Instance.new("RemoteEvent") |
12 | - | --For Those who log/decompile this, If you sell or trade this, |
12 | + | Event.Name = "UserInput_Event" |
13 | - | --and I find out who you are, i will take massive action. |
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 | - | local plr = game:service'Players'.LocalPlayer |
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 | - | local mouse = plr:GetMouse() |
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 | local FavIDs = { | |
88 | 340106355, --Nefl Crystals | |
89 | 927529620, --Dimension | |
90 | 876981900, --Fantasy | |
91 | 398987889, --Ordinary Days | |
92 | 1117396305, --Oh wait, it's you. | |
93 | 885996042, --Action Winter Journey | |
94 | 919231299, --Sprawling Idiot Effigy | |
95 | 743466274, --Good Day Sunshine | |
96 | 727411183, --Knife Fight | |
97 | 1402748531, --The Earth Is Counting On You! | |
98 | 595230126 --Robot Language | |
99 | } | |
100 | ||
101 | ||
102 | ||
103 | --The reality of my life isn't real but a Universe -makhail07 | |
104 | wait() | |
105 | local plr = owner | |
106 | print('Local User is '..plr.Name) | |
107 | local char = plr.Character | |
108 | local hum = char.Humanoid | |
109 | local hed = char.Head | |
110 | local root = char.HumanoidRootPart | |
111 | local rootj = root.RootJoint | |
112 | local tors = char.Torso | |
113 | local ra = char["Right Arm"] | |
114 | local la = char["Left Arm"] | |
115 | local rl = char["Right Leg"] | |
116 | local ll = char["Left Leg"] | |
117 | local neck = tors["Neck"] | |
118 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
119 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
120 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
121 | local maincolor = BrickColor.new("Institutional white") | |
122 | ||
123 | ------------------------------------------------------- | |
124 | --Start Good Stuff-- | |
125 | ------------------------------------------------------- | |
126 | cam = game.Workspace.CurrentCamera | |
127 | CF = CFrame.new | |
128 | angles = CFrame.Angles | |
129 | attack = false | |
130 | Euler = CFrame.fromEulerAnglesXYZ | |
131 | Rad = math.rad | |
132 | IT = Instance.new | |
133 | BrickC = BrickColor.new | |
134 | Cos = math.cos | |
135 | Acos = math.acos | |
136 | Sin = math.sin | |
137 | Asin = math.asin | |
138 | Abs = math.abs | |
139 | Mrandom = math.random | |
140 | Floor = math.floor | |
141 | ------------------------------------------------------- | |
142 | --End Good Stuff-- | |
143 | ------------------------------------------------------- | |
144 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
145 | RSH, LSH = nil, nil | |
146 | RW = Instance.new("Weld") | |
147 | LW = Instance.new("Weld") | |
148 | RH = tors["Right Hip"] | |
149 | LH = tors["Left Hip"] | |
150 | RSH = tors["Right Shoulder"] | |
151 | LSH = tors["Left Shoulder"] | |
152 | RSH.Parent = nil | |
153 | LSH.Parent = nil | |
154 | RW.Name = "RW" | |
155 | RW.Part0 = tors | |
156 | RW.C0 = CF(1.5, 0.5, 0) | |
157 | RW.C1 = CF(0, 0.5, 0) | |
158 | RW.Part1 = ra | |
159 | RW.Parent = tors | |
160 | LW.Name = "LW" | |
161 | LW.Part0 = tors | |
162 | LW.C0 = CF(-1.5, 0.5, 0) | |
163 | LW.C1 = CF(0, 0.5, 0) | |
164 | LW.Part1 = la | |
165 | LW.Parent = tors | |
166 | Effects = {} | |
167 | ------------------------------------------------------- | |
168 | --Start HeartBeat-- | |
169 | ------------------------------------------------------- | |
170 | ArtificialHB = Instance.new("BindableEvent", script) | |
171 | ArtificialHB.Name = "Heartbeat" | |
172 | script:WaitForChild("Heartbeat") | |
173 | ||
174 | frame = 1 / 60 | |
175 | tf = 0 | |
176 | allowframeloss = false | |
177 | tossremainder = false | |
178 | ||
179 | ||
180 | lastframe = tick() | |
181 | script.Heartbeat:Fire() | |
182 | ||
183 | ||
184 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
185 | tf = tf + s | |
186 | if tf >= frame then | |
187 | if allowframeloss then | |
188 | script.Heartbeat:Fire() | |
189 | lastframe = tick() | |
190 | else | |
191 | for i = 1, math.floor(tf / frame) do | |
192 | script.Heartbeat:Fire() | |
193 | end | |
194 | lastframe = tick() | |
195 | end | |
196 | if tossremainder then | |
197 | tf = 0 | |
198 | else | |
199 | tf = tf - frame * math.floor(tf / frame) | |
200 | end | |
201 | end | |
202 | end) | |
203 | ------------------------------------------------------- | |
204 | --End HeartBeat-- | |
205 | ------------------------------------------------------- | |
206 | ||
207 | ------------------------------------------------------- | |
208 | --Start Important Functions-- | |
209 | ------------------------------------------------------- | |
210 | function swait(num) | |
211 | if num == 0 or num == nil then | |
212 | game:service("RunService").Stepped:wait(0) | |
213 | else | |
214 | for i = 0, num do | |
215 | game:service("RunService").Stepped:wait(0) | |
216 | end | |
217 | end | |
218 | end | |
219 | function thread(f) | |
220 | coroutine.resume(coroutine.create(f)) | |
221 | end | |
222 | function clerp(a, b, t) | |
223 | local qa = { | |
224 | QuaternionFromCFrame(a) | |
225 | } | |
226 | local qb = { | |
227 | QuaternionFromCFrame(b) | |
228 | } | |
229 | local ax, ay, az = a.x, a.y, a.z | |
230 | local bx, by, bz = b.x, b.y, b.z | |
231 | local _t = 1 - t | |
232 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
233 | end | |
234 | function QuaternionFromCFrame(cf) | |
235 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
236 | local trace = m00 + m11 + m22 | |
237 | if trace > 0 then | |
238 | local s = math.sqrt(1 + trace) | |
239 | local recip = 0.5 / s | |
240 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
241 | else | |
242 | local i = 0 | |
243 | if m00 < m11 then | |
244 | i = 1 | |
245 | end | |
246 | if m22 > (i == 0 and m00 or m11) then | |
247 | i = 2 | |
248 | end | |
249 | if i == 0 then | |
250 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
251 | local recip = 0.5 / s | |
252 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
253 | elseif i == 1 then | |
254 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
255 | local recip = 0.5 / s | |
256 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
257 | elseif i == 2 then | |
258 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
259 | local recip = 0.5 / s | |
260 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
261 | end | |
262 | end | |
263 | end | |
264 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
265 | local xs, ys, zs = x + x, y + y, z + z | |
266 | local wx, wy, wz = w * xs, w * ys, w * zs | |
267 | local xx = x * xs | |
268 | local xy = x * ys | |
269 | local xz = x * zs | |
270 | local yy = y * ys | |
271 | local yz = y * zs | |
272 | local zz = z * zs | |
273 | 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)) | |
274 | end | |
275 | function QuaternionSlerp(a, b, t) | |
276 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
277 | local startInterp, finishInterp | |
278 | if cosTheta >= 1.0E-4 then | |
279 | if 1 - cosTheta > 1.0E-4 then | |
280 | local theta = math.acos(cosTheta) | |
281 | local invSinTheta = 1 / Sin(theta) | |
282 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
283 | finishInterp = Sin(t * theta) * invSinTheta | |
284 | else | |
285 | startInterp = 1 - t | |
286 | finishInterp = t | |
287 | end | |
288 | elseif 1 + cosTheta > 1.0E-4 then | |
289 | local theta = math.acos(-cosTheta) | |
290 | local invSinTheta = 1 / Sin(theta) | |
291 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
292 | finishInterp = Sin(t * theta) * invSinTheta | |
293 | else | |
294 | startInterp = t - 1 | |
295 | finishInterp = t | |
296 | end | |
297 | 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 | |
298 | end | |
299 | function rayCast(Position, Direction, Range, Ignore) | |
300 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
301 | end | |
302 | local RbxUtility = LoadLibrary("RbxUtility") | |
303 | local Create = RbxUtility.Create | |
304 | ||
305 | ------------------------------------------------------- | |
306 | --Start Damage Function-- | |
307 | ------------------------------------------------------- | |
308 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
309 | if hit.Parent == nil then | |
310 | return | |
311 | end | |
312 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
313 | for _, v in pairs(hit.Parent:children()) do | |
314 | if v:IsA("Humanoid") then | |
315 | h = v | |
316 | end | |
317 | end | |
318 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
319 | ||
320 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
321 | end | |
322 | ||
323 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
324 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
325 | if hit.Parent.DebounceHit.Value == true then | |
326 | return | |
327 | end | |
328 | end | |
329 | if insta == true then | |
330 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
331 | end | |
332 | local c = Create("ObjectValue"){ | |
333 | Name = "creator", | |
334 | Value = game:service("Players").LocalPlayer, | |
335 | Parent = h, | |
336 | } | |
337 | game:GetService("Debris"):AddItem(c, .5) | |
338 | if HitSound ~= nil and HitPitch ~= nil then | |
339 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
340 | end | |
341 | local Damage = math.random(minim, maxim) | |
342 | local blocked = false | |
343 | local block = hit.Parent:findFirstChild("Block") | |
344 | if block ~= nil then | |
345 | if block.className == "IntValue" then | |
346 | if block.Value > 0 then | |
347 | blocked = true | |
348 | block.Value = block.Value - 1 | |
349 | print(block.Value) | |
350 | end | |
351 | end | |
352 | end | |
353 | if blocked == false then | |
354 | h.Health = h.Health - Damage | |
355 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
356 | else | |
357 | h.Health = h.Health - (Damage / 2) | |
358 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
359 | end | |
360 | if Type == "Knockdown" then | |
361 | local hum = hit.Parent.Humanoid | |
362 | hum.PlatformStand = true | |
363 | coroutine.resume(coroutine.create(function(HHumanoid) | |
364 | swait(1) | |
365 | HHumanoid.PlatformStand = false | |
366 | end), hum) | |
367 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
368 | local bodvol = Create("BodyVelocity"){ | |
369 | velocity = angle * knockback, | |
370 | P = 5000, | |
371 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
372 | Parent = hit, | |
373 | } | |
374 | local rl = Create("BodyAngularVelocity"){ | |
375 | P = 3000, | |
376 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
377 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
378 | Parent = hit, | |
379 | } | |
380 | game:GetService("Debris"):AddItem(bodvol, .5) | |
381 | game:GetService("Debris"):AddItem(rl, .5) | |
382 | elseif Type == "Normal" then | |
383 | local vp = Create("BodyVelocity"){ | |
384 | P = 500, | |
385 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
386 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
387 | } | |
388 | if knockback > 0 then | |
389 | vp.Parent = hit.Parent.Torso | |
390 | end | |
391 | game:GetService("Debris"):AddItem(vp, .5) | |
392 | elseif Type == "Up" then | |
393 | local bodyVelocity = Create("BodyVelocity"){ | |
394 | velocity = Vector3.new(0, 20, 0), | |
395 | P = 5000, | |
396 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
397 | Parent = hit, | |
398 | } | |
399 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
400 | elseif Type == "DarkUp" then | |
401 | coroutine.resume(coroutine.create(function() | |
402 | for i = 0, 1, 0.1 do | |
403 | swait() | |
404 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
405 | end | |
406 | end)) | |
407 | local bodyVelocity = Create("BodyVelocity"){ | |
408 | velocity = Vector3.new(0, 20, 0), | |
409 | P = 5000, | |
410 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
411 | Parent = hit, | |
412 | } | |
413 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
414 | elseif Type == "Snare" then | |
415 | local bp = Create("BodyPosition"){ | |
416 | P = 2000, | |
417 | D = 100, | |
418 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
419 | position = hit.Parent.Torso.Position, | |
420 | Parent = hit.Parent.Torso, | |
421 | } | |
422 | game:GetService("Debris"):AddItem(bp, 1) | |
423 | elseif Type == "Freeze" then | |
424 | local BodPos = Create("BodyPosition"){ | |
425 | P = 50000, | |
426 | D = 1000, | |
427 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
428 | position = hit.Parent.Torso.Position, | |
429 | Parent = hit.Parent.Torso, | |
430 | } | |
431 | local BodGy = Create("BodyGyro") { | |
432 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
433 | P = 20e+003, | |
434 | Parent = hit.Parent.Torso, | |
435 | cframe = hit.Parent.Torso.CFrame, | |
436 | } | |
437 | hit.Parent.Torso.Anchored = true | |
438 | coroutine.resume(coroutine.create(function(Part) | |
439 | swait(1.5) | |
440 | Part.Anchored = false | |
441 | end), hit.Parent.Torso) | |
442 | game:GetService("Debris"):AddItem(BodPos, 3) | |
443 | game:GetService("Debris"):AddItem(BodGy, 3) | |
444 | end | |
445 | local debounce = Create("BoolValue"){ | |
446 | Name = "DebounceHit", | |
447 | Parent = hit.Parent, | |
448 | Value = true, | |
449 | } | |
450 | game:GetService("Debris"):AddItem(debounce, Delay) | |
451 | c = Create("ObjectValue"){ | |
452 | Name = "creator", | |
453 | Value = Player, | |
454 | Parent = h, | |
455 | } | |
456 | game:GetService("Debris"):AddItem(c, .5) | |
457 | end | |
458 | end | |
459 | ------------------------------------------------------- | |
460 | --End Damage Function-- | |
461 | ------------------------------------------------------- | |
462 | ||
463 | ------------------------------------------------------- | |
464 | --Start Damage Function Customization-- | |
465 | ------------------------------------------------------- | |
466 | function ShowDamage(Pos, Text, Time, Color) | |
467 | local Rate = (1 / 30) | |
468 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
469 | local Text = (Text or "") | |
470 | local Time = (Time or 2) | |
471 | local Color = (Color or Color3.new(1, 0, 1)) | |
472 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
473 | EffectPart.Anchored = true | |
474 | local BillboardGui = Create("BillboardGui"){ | |
475 | Size = UDim2.new(3, 0, 3, 0), | |
476 | Adornee = EffectPart, | |
477 | Parent = EffectPart, | |
478 | } | |
479 | local TextLabel = Create("TextLabel"){ | |
480 | BackgroundTransparency = 1, | |
481 | Size = UDim2.new(1, 0, 1, 0), | |
482 | Text = Text, | |
483 | Font = "Bodoni", | |
484 | TextColor3 = Color, | |
485 | TextScaled = true, | |
486 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
487 | Parent = BillboardGui, | |
488 | } | |
489 | game.Debris:AddItem(EffectPart, (Time)) | |
490 | EffectPart.Parent = game:GetService("Workspace") | |
491 | delay(0, function() | |
492 | local Frames = (Time / Rate) | |
493 | for Frame = 1, Frames do | |
494 | wait(Rate) | |
495 | local Percent = (Frame / Frames) | |
496 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
497 | TextLabel.TextTransparency = Percent | |
498 | end | |
499 | if EffectPart and EffectPart.Parent then | |
500 | EffectPart:Destroy() | |
501 | end | |
502 | end) | |
503 | end | |
504 | ------------------------------------------------------- | |
505 | --End Damage Function Customization-- | |
506 | ------------------------------------------------------- | |
507 | ||
508 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
509 | for _, c in pairs(workspace:children()) do | |
510 | local hum = c:findFirstChild("Humanoid") | |
511 | if hum ~= nil then | |
512 | local head = c:findFirstChild("Head") | |
513 | if head ~= nil then | |
514 | local targ = head.Position - Part.Position | |
515 | local mag = targ.magnitude | |
516 | if magni >= mag and c.Name ~= plr.Name then | |
517 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
518 | end | |
519 | end | |
520 | end | |
521 | end | |
522 | end | |
523 | ||
524 | ||
525 | CFuncs = { | |
526 | Part = { | |
527 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
528 | local Part = Create("Part")({ | |
529 | Parent = Parent, | |
530 | Reflectance = Reflectance, | |
531 | Transparency = Transparency, | |
532 | CanCollide = false, | |
533 | Locked = true, | |
534 | BrickColor = BrickColor.new(tostring(BColor)), | |
535 | Name = Name, | |
536 | Size = Size, | |
537 | Material = Material | |
538 | }) | |
539 | RemoveOutlines(Part) | |
540 | return Part | |
541 | end | |
542 | }, | |
543 | Mesh = { | |
544 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
545 | local Msh = Create(Mesh)({ | |
546 | Parent = Part, | |
547 | Offset = OffSet, | |
548 | Scale = Scale | |
549 | }) | |
550 | if Mesh == "SpecialMesh" then | |
551 | Msh.MeshType = MeshType | |
552 | Msh.MeshId = MeshId | |
553 | end | |
554 | return Msh | |
555 | end | |
556 | }, | |
557 | Mesh = { | |
558 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
559 | local Msh = Create(Mesh)({ | |
560 | Parent = Part, | |
561 | Offset = OffSet, | |
562 | Scale = Scale | |
563 | }) | |
564 | if Mesh == "SpecialMesh" then | |
565 | Msh.MeshType = MeshType | |
566 | Msh.MeshId = MeshId | |
567 | end | |
568 | return Msh | |
569 | end | |
570 | }, | |
571 | Weld = { | |
572 | Create = function(Parent, Part0, Part1, C0, C1) | |
573 | local Weld = Create("Weld")({ | |
574 | Parent = Parent, | |
575 | Part0 = Part0, | |
576 | Part1 = Part1, | |
577 | C0 = C0, | |
578 | C1 = C1 | |
579 | }) | |
580 | return Weld | |
581 | end | |
582 | }, | |
583 | Sound = { | |
584 | Create = function(id, par, vol, pit) | |
585 | coroutine.resume(coroutine.create(function() | |
586 | local S = Create("Sound")({ | |
587 | Volume = vol, | |
588 | Pitch = pit or 1, | |
589 | SoundId = id, | |
590 | Parent = par or workspace | |
591 | }) | |
592 | wait() | |
593 | S:play() | |
594 | game:GetService("Debris"):AddItem(S, 6) | |
595 | end)) | |
596 | end | |
597 | }, | |
598 | ParticleEmitter = { | |
599 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
600 | local fp = Create("ParticleEmitter")({ | |
601 | Parent = Parent, | |
602 | Color = ColorSequence.new(Color1, Color2), | |
603 | LightEmission = LightEmission, | |
604 | Size = Size, | |
605 | Texture = Texture, | |
606 | Transparency = Transparency, | |
607 | ZOffset = ZOffset, | |
608 | Acceleration = Accel, | |
609 | Drag = Drag, | |
610 | LockedToPart = LockedToPart, | |
611 | VelocityInheritance = VelocityInheritance, | |
612 | EmissionDirection = EmissionDirection, | |
613 | Enabled = Enabled, | |
614 | Lifetime = LifeTime, | |
615 | Rate = Rate, | |
616 | Rotation = Rotation, | |
617 | RotSpeed = RotSpeed, | |
618 | Speed = Speed, | |
619 | VelocitySpread = VelocitySpread | |
620 | }) | |
621 | return fp | |
622 | end | |
623 | } | |
624 | } | |
625 | function RemoveOutlines(part) | |
626 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
627 | end | |
628 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
629 | local Part = Create("Part")({ | |
630 | formFactor = FormFactor, | |
631 | Parent = Parent, | |
632 | Reflectance = Reflectance, | |
633 | Transparency = Transparency, | |
634 | CanCollide = false, | |
635 | Locked = true, | |
636 | BrickColor = BrickColor.new(tostring(BColor)), | |
637 | Name = Name, | |
638 | Size = Size, | |
639 | Material = Material | |
640 | }) | |
641 | RemoveOutlines(Part) | |
642 | return Part | |
643 | end | |
644 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
645 | local Msh = Create(Mesh)({ | |
646 | Parent = Part, | |
647 | Offset = OffSet, | |
648 | Scale = Scale | |
649 | }) | |
650 | if Mesh == "SpecialMesh" then | |
651 | Msh.MeshType = MeshType | |
652 | Msh.MeshId = MeshId | |
653 | end | |
654 | return Msh | |
655 | end | |
656 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
657 | local Weld = Create("Weld")({ | |
658 | Parent = Parent, | |
659 | Part0 = Part0, | |
660 | Part1 = Part1, | |
661 | C0 = C0, | |
662 | C1 = C1 | |
663 | }) | |
664 | return Weld | |
665 | end | |
666 | ||
667 | ||
668 | ------------------------------------------------------- | |
669 | --Start Effect Function-- | |
670 | ------------------------------------------------------- | |
671 | EffectModel = Instance.new("Model", char) | |
672 | Effects = { | |
673 | Block = { | |
674 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
675 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
676 | prt.Anchored = true | |
677 | prt.CFrame = cframe | |
678 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
679 | game:GetService("Debris"):AddItem(prt, 10) | |
680 | if Type == 1 or Type == nil then | |
681 | table.insert(Effects, { | |
682 | prt, | |
683 | "Block1", | |
684 | delay, | |
685 | x3, | |
686 | y3, | |
687 | z3, | |
688 | msh | |
689 | }) | |
690 | elseif Type == 2 then | |
691 | table.insert(Effects, { | |
692 | prt, | |
693 | "Block2", | |
694 | delay, | |
695 | x3, | |
696 | y3, | |
697 | z3, | |
698 | msh | |
699 | }) | |
700 | else | |
701 | table.insert(Effects, { | |
702 | prt, | |
703 | "Block3", | |
704 | delay, | |
705 | x3, | |
706 | y3, | |
707 | z3, | |
708 | msh | |
709 | }) | |
710 | end | |
711 | end | |
712 | }, | |
713 | Sphere = { | |
714 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
715 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
716 | prt.Anchored = true | |
717 | prt.CFrame = cframe | |
718 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
719 | game:GetService("Debris"):AddItem(prt, 10) | |
720 | table.insert(Effects, { | |
721 | prt, | |
722 | "Cylinder", | |
723 | delay, | |
724 | x3, | |
725 | y3, | |
726 | z3, | |
727 | msh | |
728 | }) | |
729 | end | |
730 | }, | |
731 | Cylinder = { | |
732 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
733 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
734 | prt.Anchored = true | |
735 | prt.CFrame = cframe | |
736 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
737 | game:GetService("Debris"):AddItem(prt, 10) | |
738 | table.insert(Effects, { | |
739 | prt, | |
740 | "Cylinder", | |
741 | delay, | |
742 | x3, | |
743 | y3, | |
744 | z3, | |
745 | msh | |
746 | }) | |
747 | end | |
748 | }, | |
749 | Wave = { | |
750 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
751 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
752 | prt.Anchored = true | |
753 | prt.CFrame = cframe | |
754 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
755 | game:GetService("Debris"):AddItem(prt, 10) | |
756 | table.insert(Effects, { | |
757 | prt, | |
758 | "Cylinder", | |
759 | delay, | |
760 | x3 / 60, | |
761 | y3 / 60, | |
762 | z3 / 60, | |
763 | msh | |
764 | }) | |
765 | end | |
766 | }, | |
767 | Ring = { | |
768 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
769 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
770 | prt.Anchored = true | |
771 | prt.CFrame = cframe | |
772 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
773 | game:GetService("Debris"):AddItem(prt, 10) | |
774 | table.insert(Effects, { | |
775 | prt, | |
776 | "Cylinder", | |
777 | delay, | |
778 | x3, | |
779 | y3, | |
780 | z3, | |
781 | msh | |
782 | }) | |
783 | end | |
784 | }, | |
785 | Break = { | |
786 | Create = function(brickcolor, cframe, x1, y1, z1) | |
787 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
788 | prt.Anchored = true | |
789 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
790 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
791 | local num = math.random(10, 50) / 1000 | |
792 | game:GetService("Debris"):AddItem(prt, 10) | |
793 | table.insert(Effects, { | |
794 | prt, | |
795 | "Shatter", | |
796 | num, | |
797 | prt.CFrame, | |
798 | math.random() - math.random(), | |
799 | 0, | |
800 | math.random(50, 100) / 100 | |
801 | }) | |
802 | end | |
803 | }, | |
804 | Spiral = { | |
805 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
806 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
807 | prt.Anchored = true | |
808 | prt.CFrame = cframe | |
809 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
810 | game:GetService("Debris"):AddItem(prt, 10) | |
811 | table.insert(Effects, { | |
812 | prt, | |
813 | "Cylinder", | |
814 | delay, | |
815 | x3, | |
816 | y3, | |
817 | z3, | |
818 | msh | |
819 | }) | |
820 | end | |
821 | }, | |
822 | Push = { | |
823 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
824 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
825 | prt.Anchored = true | |
826 | prt.CFrame = cframe | |
827 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
828 | game:GetService("Debris"):AddItem(prt, 10) | |
829 | table.insert(Effects, { | |
830 | prt, | |
831 | "Cylinder", | |
832 | delay, | |
833 | x3, | |
834 | y3, | |
835 | z3, | |
836 | msh | |
837 | }) | |
838 | end | |
839 | } | |
840 | } | |
841 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
842 | local fp = IT("Part") | |
843 | fp.formFactor = formfactor | |
844 | fp.Parent = parent | |
845 | fp.Reflectance = reflectance | |
846 | fp.Transparency = transparency | |
847 | fp.CanCollide = false | |
848 | fp.Locked = true | |
849 | fp.BrickColor = brickcolor | |
850 | fp.Name = name | |
851 | fp.Size = size | |
852 | fp.Position = tors.Position | |
853 | RemoveOutlines(fp) | |
854 | fp.Material = "SmoothPlastic" | |
855 | fp:BreakJoints() | |
856 | return fp | |
857 | end | |
858 | ||
859 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
860 | local mesh = IT(Mesh) | |
861 | mesh.Parent = part | |
862 | if Mesh == "SpecialMesh" then | |
863 | mesh.MeshType = meshtype | |
864 | if meshid ~= "nil" then | |
865 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
866 | end | |
867 | end | |
868 | mesh.Offset = offset | |
869 | mesh.Scale = scale | |
870 | return mesh | |
871 | end | |
872 | ||
873 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
874 | local type = type | |
875 | local rng = Instance.new("Part", char) | |
876 | rng.Anchored = true | |
877 | rng.BrickColor = color | |
878 | rng.CanCollide = false | |
879 | rng.FormFactor = 3 | |
880 | rng.Name = "Ring" | |
881 | rng.Material = "Neon" | |
882 | rng.Size = Vector3.new(1, 1, 1) | |
883 | rng.Transparency = 0 | |
884 | rng.TopSurface = 0 | |
885 | rng.BottomSurface = 0 | |
886 | rng.CFrame = pos | |
887 | local rngm = Instance.new("SpecialMesh", rng) | |
888 | rngm.MeshType = MType | |
889 | rngm.Scale = scale | |
890 | local scaler2 = 1 | |
891 | if type == "Add" then | |
892 | scaler2 = 1 * value | |
893 | elseif type == "Divide" then | |
894 | scaler2 = 1 / value | |
895 | end | |
896 | coroutine.resume(coroutine.create(function() | |
897 | for i = 0, 10 / bonuspeed, 0.1 do | |
898 | swait() | |
899 | if type == "Add" then | |
900 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
901 | elseif type == "Divide" then | |
902 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
903 | end | |
904 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
905 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
906 | end | |
907 | rng:Destroy() | |
908 | end)) | |
909 | end | |
910 | ||
911 | function Eviscerate(dude) | |
912 | if dude.Name ~= char then | |
913 | local bgf = IT("BodyGyro", dude.Head) | |
914 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
915 | local val = IT("BoolValue", dude) | |
916 | val.Name = "IsHit" | |
917 | local ds = coroutine.wrap(function() | |
918 | dude:WaitForChild("Head"):BreakJoints() | |
919 | wait(0.5) | |
920 | target = nil | |
921 | coroutine.resume(coroutine.create(function() | |
922 | for i, v in pairs(dude:GetChildren()) do | |
923 | if v:IsA("Accessory") then | |
924 | v:Destroy() | |
925 | end | |
926 | if v:IsA("Humanoid") then | |
927 | v:Destroy() | |
928 | end | |
929 | if v:IsA("CharacterMesh") then | |
930 | v:Destroy() | |
931 | end | |
932 | if v:IsA("Model") then | |
933 | v:Destroy() | |
934 | end | |
935 | if v:IsA("Part") or v:IsA("MeshPart") then | |
936 | for x, o in pairs(v:GetChildren()) do | |
937 | if o:IsA("Decal") then | |
938 | o:Destroy() | |
939 | end | |
940 | end | |
941 | coroutine.resume(coroutine.create(function() | |
942 | v.Material = "Neon" | |
943 | v.CanCollide = false | |
944 | local PartEmmit1 = IT("ParticleEmitter", v) | |
945 | PartEmmit1.LightEmission = 1 | |
946 | PartEmmit1.Texture = "rbxassetid://284205403" | |
947 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
948 | PartEmmit1.Rate = 150 | |
949 | PartEmmit1.Lifetime = NumberRange.new(1) | |
950 | PartEmmit1.Size = NumberSequence.new({ | |
951 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
952 | NumberSequenceKeypoint.new(1, 0, 0) | |
953 | }) | |
954 | PartEmmit1.Transparency = NumberSequence.new({ | |
955 | NumberSequenceKeypoint.new(0, 0, 0), | |
956 | NumberSequenceKeypoint.new(1, 1, 0) | |
957 | }) | |
958 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
959 | PartEmmit1.VelocitySpread = 30000 | |
960 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
961 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
962 | local BodPoss = IT("BodyPosition", v) | |
963 | BodPoss.P = 3000 | |
964 | BodPoss.D = 1000 | |
965 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
966 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
967 | v.Color = maincolor.Color | |
968 | coroutine.resume(coroutine.create(function() | |
969 | for i = 0, 49 do | |
970 | swait(1) | |
971 | v.Transparency = v.Transparency + 0.08 | |
972 | end | |
973 | wait(0.5) | |
974 | PartEmmit1.Enabled = false | |
975 | wait(3) | |
976 | v:Destroy() | |
977 | dude:Destroy() | |
978 | end)) | |
979 | end)) | |
980 | end | |
981 | end | |
982 | end)) | |
983 | end) | |
984 | ds() | |
985 | end | |
986 | end | |
987 | ||
988 | function FindNearestHead(Position, Distance, SinglePlayer) | |
989 | if SinglePlayer then | |
990 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
991 | end | |
992 | local List = {} | |
993 | for i, v in pairs(workspace:GetChildren()) do | |
994 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
995 | table.insert(List, v) | |
996 | end | |
997 | end | |
998 | return List | |
999 | end | |
1000 | ||
1001 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1002 | local type = type | |
1003 | local rng = Instance.new("Part", char) | |
1004 | rng.Anchored = true | |
1005 | rng.BrickColor = color | |
1006 | rng.CanCollide = false | |
1007 | rng.FormFactor = 3 | |
1008 | rng.Name = "Ring" | |
1009 | rng.Material = "Neon" | |
1010 | rng.Size = Vector3.new(1, 1, 1) | |
1011 | rng.Transparency = 0 | |
1012 | rng.TopSurface = 0 | |
1013 | rng.BottomSurface = 0 | |
1014 | rng.CFrame = pos | |
1015 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1016 | local rngm = Instance.new("SpecialMesh", rng) | |
1017 | rngm.MeshType = MType | |
1018 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1019 | local scaler2 = 1 | |
1020 | local speeder = FastSpeed | |
1021 | if type == "Add" then | |
1022 | scaler2 = 1 * value | |
1023 | elseif type == "Divide" then | |
1024 | scaler2 = 1 / value | |
1025 | end | |
1026 | coroutine.resume(coroutine.create(function() | |
1027 | for i = 0, 10 / bonuspeed, 0.1 do | |
1028 | swait() | |
1029 | if type == "Add" then | |
1030 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1031 | elseif type == "Divide" then | |
1032 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1033 | end | |
1034 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1035 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1036 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1037 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1038 | end | |
1039 | rng:Destroy() | |
1040 | end)) | |
1041 | end | |
1042 | ||
1043 | function SoulSteal(dude) | |
1044 | if dude.Name ~= char then | |
1045 | local bgf = IT("BodyGyro", dude.Head) | |
1046 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1047 | local val = IT("BoolValue", dude) | |
1048 | val.Name = "IsHit" | |
1049 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1050 | local soulst = coroutine.wrap(function() | |
1051 | local soul = Instance.new("Part",dude) | |
1052 | soul.Size = Vector3.new(1,1,1) | |
1053 | soul.CanCollide = false | |
1054 | soul.Anchored = false | |
1055 | soul.Position = torso.Position | |
1056 | soul.Transparency = 1 | |
1057 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1058 | PartEmmit1.LightEmission = 1 | |
1059 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1060 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1061 | PartEmmit1.Rate = 250 | |
1062 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1063 | PartEmmit1.Size = NumberSequence.new({ | |
1064 | NumberSequenceKeypoint.new(0, 1, 0), | |
1065 | NumberSequenceKeypoint.new(1, 0, 0) | |
1066 | }) | |
1067 | PartEmmit1.Transparency = NumberSequence.new({ | |
1068 | NumberSequenceKeypoint.new(0, 0, 0), | |
1069 | NumberSequenceKeypoint.new(1, 1, 0) | |
1070 | }) | |
1071 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1072 | PartEmmit1.VelocitySpread = 30000 | |
1073 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1074 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1075 | local BodPoss = IT("BodyPosition", soul) | |
1076 | BodPoss.P = 3000 | |
1077 | BodPoss.D = 1000 | |
1078 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1079 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1080 | wait(1.6) | |
1081 | soul.Touched:connect(function(hit) | |
1082 | if hit.Parent == char then | |
1083 | soul:Destroy() | |
1084 | end | |
1085 | end) | |
1086 | wait(1.2) | |
1087 | while soul do | |
1088 | swait() | |
1089 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1090 | BodPoss.Position = tors.Position | |
1091 | end | |
1092 | end) | |
1093 | soulst() | |
1094 | end | |
1095 | end | |
1096 | function FaceMouse() | |
1097 | local Cam = workspace.CurrentCamera | |
1098 | return { | |
1099 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1100 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1101 | } | |
1102 | end | |
1103 | ------------------------------------------------------- | |
1104 | --End Effect Function-- | |
1105 | ------------------------------------------------------- | |
1106 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1107 | local NSound = nil | |
1108 | coroutine.resume(coroutine.create(function() | |
1109 | NSound = IT("Sound", PARENT) | |
1110 | NSound.Volume = VOLUME | |
1111 | NSound.Pitch = PITCH | |
1112 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1113 | swait() | |
1114 | NSound:play() | |
1115 | game:GetService("Debris"):AddItem(NSound, 10) | |
1116 | end)) | |
1117 | return NSound | |
1118 | end | |
1119 | function CameraEnshaking(Length, Intensity) | |
1120 | coroutine.resume(coroutine.create(function() | |
1121 | local intensity = 1 * Intensity | |
1122 | local rotM = 0.01 * Intensity | |
1123 | for i = 0, Length, 0.1 do | |
1124 | swait() | |
1125 | intensity = intensity - 0.05 * Intensity / Length | |
1126 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1127 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1128 | 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) | |
1129 | end | |
1130 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1131 | end)) | |
1132 | end | |
1133 | ------------------------------------------------------- | |
1134 | --End Important Functions-- | |
1135 | ------------------------------------------------------- | |
1136 | ||
1137 | ||
1138 | ------------------------------------------------------- | |
1139 | --Start Customization-- | |
1140 | ------------------------------------------------------- | |
1141 | local Player_Size = 1 | |
1142 | if Player_Size ~= 1 then | |
1143 | root.Size = root.Size * Player_Size | |
1144 | tors.Size = tors.Size * Player_Size | |
1145 | hed.Size = hed.Size * Player_Size | |
1146 | ra.Size = ra.Size * Player_Size | |
1147 | la.Size = la.Size * Player_Size | |
1148 | rl.Size = rl.Size * Player_Size | |
1149 | ll.Size = ll.Size * Player_Size | |
1150 | ---------------------------------------------------------------------------------- | |
1151 | rootj.Parent = root | |
1152 | neck.Parent = tors | |
1153 | RW.Parent = tors | |
1154 | LW.Parent = tors | |
1155 | RH.Parent = tors | |
1156 | LH.Parent = tors | |
1157 | ---------------------------------------------------------------------------------- | |
1158 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1159 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1160 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1161 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1162 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1163 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1164 | ---------------------------------------------------------------------------------- | |
1165 | 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)) | |
1166 | 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)) | |
1167 | 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)) | |
1168 | 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)) | |
1169 | --hat.Parent = Character | |
1170 | end | |
1171 | ---------------------------------------------------------------------------------- | |
1172 | local SONG = 1280408510 | |
1173 | local SONG2 = 0 | |
1174 | local Music = Instance.new("Sound",tors) | |
1175 | Music.Volume = 2.5 | |
1176 | Music.Looped = true | |
1177 | Music.Pitch = 1 --Pitcher | |
1178 | ---------------------------------------------------------------------------------- | |
1179 | local equipped = false | |
1180 | local idle = 0 | |
1181 | local change = 1 | |
1182 | local val = 0 | |
1183 | local toim = 0 | |
1184 | local idleanim = 0.4 | |
1185 | local sine = 0 | |
1186 | local Sit = 1 | |
1187 | ---------------------------------------------------------------------------------- | |
1188 | hum.WalkSpeed = 8 | |
1189 | hum.JumpPower = 57 | |
1190 | hum.Animator.Parent = nil | |
1191 | ---------------------------------------------------------------------------------- | |
1192 | local r = 255 | |
1193 | local g = 0 | |
1194 | local b = 0 | |
1195 | coroutine.resume(coroutine.create(function() | |
1196 | while wait() do | |
1197 | for i = 0, 50.8 do | |
1198 | swait() | |
1199 | g = g + 5 | |
1200 | end | |
1201 | for i = 0, 50.8 do | |
1202 | swait() | |
1203 | r = r - 5 | |
1204 | end | |
1205 | for i = 0, 50.8 do | |
1206 | swait() | |
1207 | b = b + 5 | |
1208 | end | |
1209 | for i = 0, 50.8 do | |
1210 | swait() | |
1211 | g = g - 5 | |
1212 | end | |
1213 | for i = 0, 50.8 do | |
1214 | swait() | |
1215 | r = r + 5 | |
1216 | end | |
1217 | for i = 0, 50.8 do | |
1218 | swait() | |
1219 | b = b - 5 | |
1220 | end | |
1221 | end | |
1222 | end)) | |
1223 | ---------------------------------------------------------------------------------- | |
1224 | local naeeym2 = IT("BillboardGui",char) | |
1225 | naeeym2.AlwaysOnTop = true | |
1226 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1227 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1228 | naeeym2.MaxDistance = 75 | |
1229 | naeeym2.Adornee = hed | |
1230 | naeeym2.Name = "Name" | |
1231 | local tecks2 = IT("TextLabel",naeeym2) | |
1232 | tecks2.BackgroundTransparency = 1 | |
1233 | tecks2.TextScaled = true | |
1234 | tecks2.BorderSizePixel = 0 | |
1235 | tecks2.Text = "No one's around to help." | |
1236 | --tecks2.Font = "Fantasy" | |
1237 | tecks2.TextSize = 30 | |
1238 | tecks2.TextStrokeTransparency = 0 | |
1239 | tecks2.TextColor3 = Color3.new(1,1,1) | |
1240 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
1241 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1242 | tecks2.Parent = naeeym2 | |
1243 | hed.face.Texture = "rbxassetid://33752579" | |
1244 | ---------------------------------------------------------------------------------- | |
1245 | Reaper = IT("Model") | |
1246 | Reaper.Parent = char | |
1247 | Reaper.Name = "Reaper" | |
1248 | RHe = IT("Part") | |
1249 | RHe.Parent = Reaper | |
1250 | RHe.BrickColor = BrickC("Really black") | |
1251 | RHe.Locked = true | |
1252 | RHe.CanCollide = false | |
1253 | RHe.Transparency = 0 | |
1254 | PMesh = IT("SpecialMesh") | |
1255 | RHe.formFactor = "Symmetric" | |
1256 | PMesh.MeshType = "FileMesh" | |
1257 | PMesh.MeshId = "rbxassetid://1374148" | |
1258 | PMesh.TextureId = "rbxassetid://185703978" | |
1259 | PMesh.Scale = Vector3.new(1, 1, 1) | |
1260 | PMesh.Parent = RHe | |
1261 | local RWeld = IT("Weld") | |
1262 | RWeld.Parent = RHe | |
1263 | RWeld.Part0 = RHe | |
1264 | RWeld.Part1 = hed | |
1265 | RWeld.C0 = CF(0, -.7, 0) * angles(0, 0, 0) | |
1266 | ------------------------------------------------------- | |
1267 | --End Customization-- | |
1268 | ------------------------------------------------------- | |
1269 | ||
1270 | ||
1271 | ------------------------------------------------------- | |
1272 | --Start Attacks N Stuff-- | |
1273 | ------------------------------------------------------- | |
1274 | ||
1275 | ------------------------------------------------------- | |
1276 | --End Attacks N Stuff-- | |
1277 | ------------------------------------------------------- | |
1278 | mouse.KeyDown:connect(function(key) | |
1279 | if string.byte(key) == 48 then | |
1280 | Swing = 2 | |
1281 | hum.WalkSpeed = 38.82 | |
1282 | end | |
1283 | end) | |
1284 | mouse.KeyUp:connect(function(key) | |
1285 | if string.byte(key) == 48 then | |
1286 | Swing = 1 | |
1287 | hum.WalkSpeed = 8 | |
1288 | end | |
1289 | end) | |
1290 | ||
1291 | ||
1292 | ||
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | ||
1298 | ------------------------------------------------------- | |
1299 | --Start Animations-- | |
1300 | ------------------------------------------------------- | |
1301 | while true do | |
1302 | swait() | |
1303 | sine = sine + change | |
1304 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1305 | local velderp = root.Velocity.y | |
1306 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1307 | if equipped == true or equipped == false then | |
1308 | if attack == false then | |
1309 | idle = idle + 1 | |
1310 | else | |
1311 | idle = 0 | |
1312 | end | |
1313 | tecks2.TextStrokeColor3 = Color3.new(r / 255, g / 255, b / 255) | |
1314 | if 1 < root.Velocity.y and hitfloor == nil then | |
1315 | Anim = "Jump" | |
1316 | if attack == false then | |
1317 | 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.15) | |
1318 | 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) | |
1319 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1320 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1321 | 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) | |
1322 | 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) | |
1323 | end | |
1324 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1325 | Anim = "Fall" | |
1326 | if attack == false then | |
1327 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
1328 | 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) | |
1329 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1330 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
1331 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
1332 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
1333 | end | |
1334 | elseif torvel < 1 and hitfloor ~= nil then | |
1335 | Anim = "Idle" | |
1336 | change = .5 | |
1337 | if attack == false then | |
1338 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1339 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-4.5 * Sin(sine / 3)), Rad(-4.5 * Sin(sine / 3)), Rad(0)), 0.3) | |
1340 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 + 0.1 * Cos(sine / 3)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-5)), 0.15) | |
1341 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.05 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-87), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
1342 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.05 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1343 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 20* Player_Size), 0* Player_Size) * angles(Rad(-30 * Sin(sine / 10)), Rad(0), Rad(-5 - 4.5 * Sin(sine / 20))), 0.1) | |
1344 | end | |
1345 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
1346 | Anim = "Walk" | |
1347 | change = .9 | |
1348 | if attack == false then | |
1349 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15) | |
1350 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1351 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1352 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1353 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1) | |
1354 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1) | |
1355 | end | |
1356 | elseif torvel >= 25 and hitfloor ~= nil then | |
1357 | Anim = "Sprint" | |
1358 | change = 1.35 | |
1359 | if attack == false then | |
1360 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
1361 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
1362 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1363 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1364 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
1365 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
1366 | end | |
1367 | end | |
1368 | end | |
1369 | Music.SoundId = "rbxassetid://"..SONG | |
1370 | Music.Looped = true | |
1371 | Music.Pitch = 1 | |
1372 | Music.Volume = 5 | |
1373 | Music.Parent = tors | |
1374 | Music:Resume() | |
1375 | if 0 < #Effects then | |
1376 | for e = 1, #Effects do | |
1377 | if Effects[e] ~= nil then | |
1378 | local Thing = Effects[e] | |
1379 | if Thing ~= nil then | |
1380 | local Part = Thing[1] | |
1381 | local Mode = Thing[2] | |
1382 | local Delay = Thing[3] | |
1383 | local IncX = Thing[4] | |
1384 | local IncY = Thing[5] | |
1385 | local IncZ = Thing[6] | |
1386 | if 1 >= Thing[1].Transparency then | |
1387 | if Thing[2] == "Block1" then | |
1388 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1389 | local Mesh = Thing[1].Mesh | |
1390 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1391 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1392 | elseif Thing[2] == "Block2" then | |
1393 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1394 | local Mesh = Thing[7] | |
1395 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1396 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1397 | elseif Thing[2] == "Block3" then | |
1398 | 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) | |
1399 | local Mesh = Thing[7] | |
1400 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1401 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1402 | elseif Thing[2] == "Cylinder" then | |
1403 | local Mesh = Thing[1].Mesh | |
1404 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1405 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1406 | elseif Thing[2] == "Blood" then | |
1407 | local Mesh = Thing[7] | |
1408 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1409 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1410 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1411 | elseif Thing[2] == "Elec" then | |
1412 | local Mesh = Thing[1].Mesh | |
1413 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1414 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1415 | elseif Thing[2] == "Disappear" then | |
1416 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1417 | elseif Thing[2] == "Shatter" then | |
1418 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1419 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1420 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1421 | Thing[6] = Thing[6] + Thing[5] | |
1422 | end | |
1423 | else | |
1424 | Part.Parent = nil | |
1425 | table.remove(Effects, e) | |
1426 | end | |
1427 | end | |
1428 | end | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | ------------------------------------------------------- | |
1433 | --End Animations And Script-- | |
1434 | ------------------------------------------------------- |