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