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