Advertisement
Gotmilk0086

Mario and luigi script

Sep 7th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.30 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. ---------------------------------
  145. Player_Size = 1 --Size of the player.
  146. --hi fat
  147. --why did i make this? because I'm BORED.
  148. --also i took the base for this script from memeusv2 so if it's simular you know why
  149. wait()
  150. local Player = owner
  151. local Character = Player.Character
  152. local plr = owner
  153. local Humanoid = Character.Humanoid
  154. local char = plr.Character
  155. local hum = char.Humanoid
  156. local ra = char["Right Arm"]
  157. local la= char["Left Arm"]
  158. local rl= char["Right Leg"]
  159. local ll = char["Left Leg"]
  160. local hed = char.Head
  161. local root = char.HumanoidRootPart
  162. local rootj = root.RootJoint
  163. local tors = char.Torso
  164. local mouse = plr:GetMouse()
  165. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  166. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  167. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  168. local cam = game.Workspace.CurrentCamera
  169. trazx = Instance.new("ParticleEmitter")
  170. c = game.Players.LocalPlayer.Character
  171. local sine=0
  172. Character.Head.face.Texture = "rbxassetid://1667792"
  173. -----------------------------------------------------------
  174. for i,v in pairs(char:children()) do
  175. if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
  176. v:Remove()
  177. end
  178. end
  179. shirt = Instance.new("Shirt", char)
  180. shirt.Name = "Shirt"
  181. pants = Instance.new("Pants", char)
  182. pants.Name = "Pants"
  183. char.Shirt.ShirtTemplate = "rbxassetid://34634660"
  184. char.Pants.PantsTemplate = "rbxassetid://34634739"
  185. -------------------------------------------------------
  186. --Start Good Stuff--
  187. -------------------------------------------------------
  188. CF = CFrame.new
  189. angles = CFrame.Angles
  190. attack = false
  191. timetofly = true
  192. Euler = CFrame.fromEulerAnglesXYZ
  193. Rad = math.rad
  194. IT = Instance.new
  195. BrickC = BrickColor.new
  196. Cos = math.cos
  197. Acos = math.acos
  198. Sin = math.sin
  199. Asin = math.asin
  200. Abs = math.abs
  201. Mrandom = math.random
  202. Floor = math.floor
  203. random = math.random
  204. radian = math.rad
  205. Vec3 = Vector3.new
  206. cFrame = CFrame.new
  207. Euler = CFrame.fromEulerAnglesXYZ
  208. -------------------------------------------------------
  209. --End Good Stuff--
  210. -------------------------------------------------------
  211. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  212. RSH, LSH = nil, nil
  213. RW = Instance.new("Weld")
  214. LW = Instance.new("Weld")
  215. RH = tors["Right Hip"]
  216. LH = tors["Left Hip"]
  217. RSH = tors["Right Shoulder"]
  218. LSH = tors["Left Shoulder"]
  219. RSH.Parent = nil
  220. LSH.Parent = nil
  221. RW.Name = "RW"
  222. RW.Part0 = tors
  223. RW.C0 = CF(1.5, 0.5, 0)
  224. RW.C1 = CF(0, 0.5, 0)
  225. RW.Part1 = ra
  226. RW.Parent = tors
  227. LW.Name = "LW"
  228. LW.Part0 = tors
  229. LW.C0 = CF(-1.5, 0.5, 0)
  230. LW.C1 = CF(0, 0.5, 0)
  231. LW.Part1 = la
  232. LW.Parent = tors
  233. Effects = {}
  234.  
  235. BTAUNT = Instance.new("Sound", tors)
  236. BTAUNT.SoundId = "http://www.roblox.com/asset/?id=1535995263"
  237. BTAUNT.Volume = 10
  238. BTAUNT.Pitch = 1
  239. BTAUNT.Looped = false
  240. BTAUNT.TimePosition = 0.2
  241.  
  242. -------------------------------------------------------
  243. --Start HeartBeat--
  244. -------------------------------------------------------
  245. ArtificialHB = Instance.new("BindableEvent", script)
  246. ArtificialHB.Name = "Heartbeat"
  247. script:WaitForChild("Heartbeat")
  248.  
  249. frame = 1 / 60
  250. tf = 0
  251. allowframeloss = false
  252. tossremainder = false
  253.  
  254.  
  255. lastframe = tick()
  256. script.Heartbeat:Fire()
  257.  
  258.  
  259. game:GetService("RunService").Heartbeat:connect(function(s, p)
  260. tf = tf + s
  261. if tf >= frame then
  262. if allowframeloss then
  263. script.Heartbeat:Fire()
  264. lastframe = tick()
  265. else
  266. for i = 1, math.floor(tf / frame) do
  267. script.Heartbeat:Fire()
  268. end
  269. lastframe = tick()
  270. end
  271. if tossremainder then
  272. tf = 0
  273. else
  274. tf = tf - frame * math.floor(tf / frame)
  275. end
  276. end
  277. end)
  278. -------------------------------------------------------
  279. --End HeartBeat--
  280. -------------------------------------------------------
  281.  
  282.  
  283. function CameraEnshaking(Length, Intensity) --Took Straight from StarGlitcher!
  284. coroutine.resume(coroutine.create(function()
  285. local intensity = 1 * Intensity
  286. local rotM = 0.01 * Intensity
  287. for i = 0, Length, 0.1 do
  288. swait()
  289. intensity = intensity - 0.05 * Intensity / Length
  290. rotM = rotM - 5.0E-4 * Intensity / Length
  291. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  292. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  293. end
  294. Humanoid.CameraOffset = Vec3(0, 0, 0)
  295. end))
  296. end
  297.  
  298. local joyemoji = Instance.new('ParticleEmitter', tors)
  299. joyemoji.VelocitySpread = 2000
  300. joyemoji.Lifetime = NumberRange.new(1)
  301. joyemoji.Speed = NumberRange.new(40)
  302. joy= {}
  303. for i=0, 19 do
  304. joy[#joy+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  305. end
  306. joyemoji.Size = NumberSequence.new(joy)
  307. joyemoji.Rate = 0
  308. joyemoji.LockedToPart = false
  309. joyemoji.LightEmission = 0
  310. joyemoji.Texture = "rbxassetid://1176402123"
  311. joyemoji.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  312.  
  313.  
  314. local LIT = Instance.new('ParticleEmitter', tors)
  315. LIT.VelocitySpread = 2000
  316. LIT.Lifetime = NumberRange.new(1)
  317. LIT.Speed = NumberRange.new(45)
  318. nani= {}
  319. for i=0, 19 do
  320. nani[#nani+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  321. end
  322. LIT.Size = NumberSequence.new(nani)
  323. LIT.Rate = 0
  324. LIT.LockedToPart = false
  325. LIT.LightEmission = 0
  326. LIT.Texture = "rbxassetid://1492670151"
  327. LIT.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  328.  
  329. local toast = Instance.new('ParticleEmitter', tors)
  330. toast.VelocitySpread = 2000
  331. toast.Lifetime = NumberRange.new(1)
  332. toast.Speed = NumberRange.new(60)
  333. toasterstoasttoast= {}
  334. for i=0, 19 do
  335. toasterstoasttoast[#toasterstoasttoast+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  336. end
  337. toast.Size = NumberSequence.new(toasterstoasttoast)
  338. toast.Rate = 0
  339. toast.LockedToPart = false
  340. toast.LightEmission = 0
  341. toast.Texture = "rbxassetid://436096230"
  342. toast.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  343.  
  344. local ok = Instance.new('ParticleEmitter', tors)
  345. ok.VelocitySpread = 2000
  346. ok.Lifetime = NumberRange.new(1)
  347. ok.Speed = NumberRange.new(50)
  348. cool= {}
  349. for i=0, 19 do
  350. cool[#cool+ 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1))
  351. end
  352. ok.Size = NumberSequence.new(cool)
  353. ok.Rate = 0
  354. ok.LockedToPart = false
  355. ok.LightEmission = 0
  356. ok.Texture = "rbxassetid://636768448"
  357. ok.Color = ColorSequence.new(BrickColor.new("Institutional white").Color)
  358.  
  359. maincolor = BrickC("Really red")
  360. -------------------------------------------------------
  361. --Start Kyu's shitty stuff--
  362. -------------------------------------------------------
  363. function un_fun()
  364. attack = true
  365. hum.WalkSpeed = 0
  366. BTAUNT:Play()
  367. repeat
  368. swait()
  369. BTAUNT.Parent = tors
  370. 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)), 0.08)
  371. 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(-2.5 * Cos(sine / 1.5))), 0.08)
  372. 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(80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(10)), 0.08)
  373. 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(-80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(-10)), 0.08)
  374. 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(210)), 0.08)
  375. LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
  376. until BTAUNT.Playing == false
  377. attack = false
  378. hum.WalkSpeed = 16
  379. end
  380.  
  381. function Tauntmelon()
  382. attack = true
  383. hum.WalkSpeed = 0
  384. CreateSound("1486343908", tors, 10, 1)
  385. for i = 0, 9, 0.1 do
  386. swait()
  387. 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)
  388. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  389. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  390. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  391. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  392. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  393. end
  394. attack = false
  395. hum.WalkSpeed = 16
  396. end
  397.  
  398. function lol()
  399. attack = true
  400. hum.WalkSpeed = 0
  401. CreateSound("1486343908", tors, 10, 1)
  402. for i = 0, 9, 0.1 do
  403. swait()
  404. 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)
  405. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  406. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  407. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  408. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-9), Rad(0), Rad(155 + 25 * Sin(sine / 2.5))), 0.12)
  409. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  410. end
  411. attack = false
  412. hum.WalkSpeed = 16
  413. end
  414.  
  415. function FindNearestHead(Position, Distance, SinglePlayer)
  416. if SinglePlayer then
  417. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  418. end
  419. local List = {}
  420. for i, v in pairs(workspace:GetChildren()) do
  421. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  422. table.insert(List, v)
  423. end
  424. end
  425. return List
  426. end
  427.  
  428. function SoulSteal(dude)
  429. if dude.Name ~= char then
  430. local bgf = IT("BodyGyro", dude.Head)
  431. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  432. local val = IT("BoolValue", dude)
  433. val.Name = "IsHit"
  434. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  435. local soulst = coroutine.wrap(function()
  436. local soul = Instance.new("Part",dude)
  437. soul.Size = Vector3.new(1,1,1)
  438. soul.CanCollide = false
  439. soul.Anchored = false
  440. soul.Position = torso.Position
  441. soul.Transparency = 1
  442. local PartEmmit1 = IT("ParticleEmitter", soul)
  443. PartEmmit1.LightEmission = 1
  444. PartEmmit1.Texture = "rbxassetid://569507414"
  445. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  446. PartEmmit1.Rate = 250
  447. PartEmmit1.Lifetime = NumberRange.new(1.6)
  448. PartEmmit1.Size = NumberSequence.new({
  449. NumberSequenceKeypoint.new(0, 1, 0),
  450. NumberSequenceKeypoint.new(1, 0, 0)
  451. })
  452. PartEmmit1.Transparency = NumberSequence.new({
  453. NumberSequenceKeypoint.new(0, 0, 0),
  454. NumberSequenceKeypoint.new(1, 1, 0)
  455. })
  456. PartEmmit1.Speed = NumberRange.new(0, 0)
  457. PartEmmit1.VelocitySpread = 30000
  458. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  459. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  460. local BodPoss = IT("BodyPosition", soul)
  461. BodPoss.P = 3000
  462. BodPoss.D = 1000
  463. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  464. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  465. wait(1.6)
  466. soul.Touched:connect(function(hit)
  467. if hit.Parent == char then
  468. soul:Destroy()
  469. end
  470. end)
  471. wait(1.2)
  472. while soul do
  473. swait()
  474. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  475. BodPoss.Position = tors.Position
  476. end
  477. end)
  478. soulst()
  479. end
  480. end
  481. function FaceMouse()
  482. local Cam = workspace.CurrentCamera
  483. return {
  484. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  485. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  486. }
  487. end
  488.  
  489. function Eviscerate(dude)
  490. if dude.Name ~= char then
  491. local bgf = IT("BodyGyro", dude.Head)
  492. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  493. local val = IT("BoolValue", dude)
  494. val.Name = "IsHit"
  495. local ds = coroutine.wrap(function()
  496. dude:WaitForChild("Head"):BreakJoints()
  497. wait(0.5)
  498. target = nil
  499. coroutine.resume(coroutine.create(function()
  500. for i, v in pairs(dude:GetChildren()) do
  501. if v:IsA("Accessory") then
  502. v:Destroy()
  503. end
  504. if v:IsA("Humanoid") then
  505. v:Destroy()
  506. end
  507. if v:IsA("CharacterMesh") then
  508. v:Destroy()
  509. end
  510. if v:IsA("Model") then
  511. v:Destroy()
  512. end
  513. if v:IsA("Part") or v:IsA("MeshPart") then
  514. for x, o in pairs(v:GetChildren()) do
  515. if o:IsA("Decal") then
  516. o:Destroy()
  517. end
  518. end
  519. coroutine.resume(coroutine.create(function()
  520. v.Material = "Neon"
  521. v.CanCollide = false
  522. local PartEmmit1 = IT("ParticleEmitter", v)
  523. PartEmmit1.LightEmission = 1
  524. PartEmmit1.Texture = "rbxassetid://284205403"
  525. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  526. PartEmmit1.Rate = 150
  527. PartEmmit1.Lifetime = NumberRange.new(1)
  528. PartEmmit1.Size = NumberSequence.new({
  529. NumberSequenceKeypoint.new(0, 0.75, 0),
  530. NumberSequenceKeypoint.new(1, 0, 0)
  531. })
  532. PartEmmit1.Transparency = NumberSequence.new({
  533. NumberSequenceKeypoint.new(0, 0, 0),
  534. NumberSequenceKeypoint.new(1, 1, 0)
  535. })
  536. PartEmmit1.Speed = NumberRange.new(0, 0)
  537. PartEmmit1.VelocitySpread = 30000
  538. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  539. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  540. local BodPoss = IT("BodyPosition", v)
  541. BodPoss.P = 3000
  542. BodPoss.D = 1000
  543. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  544. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  545. v.Color = maincolor.Color
  546. coroutine.resume(coroutine.create(function()
  547. for i = 0, 49 do
  548. swait(1)
  549. v.Transparency = v.Transparency + 0.08
  550. end
  551. wait(0.5)
  552. PartEmmit1.Enabled = false
  553. wait(3)
  554. v:Destroy()
  555. dude:Destroy()
  556. end))
  557. end))
  558. end
  559. end
  560. end))
  561. end)
  562. ds()
  563. end
  564. end
  565.  
  566. function ragdoll(model)
  567. local char = model
  568. torso = char.HumanoidRootPart
  569. torso2 = char.Torso
  570. LW.Parent = nil
  571. RW.Parent = nil
  572. LH.Parent = nil
  573. RH.Parent = nil
  574. if hum ~= nil then
  575. hum.PlatformStand = true
  576. end
  577.  
  578. local Head = char:FindFirstChild("Head")
  579. if Head then
  580. local Neck = Instance.new("Weld")
  581. Neck.Name = "Neck"
  582. Neck.Part0 = torso
  583. Neck.Part1 = Head
  584. Neck.C0 = CFrame.new(0, 1.5, 0)
  585. Neck.C1 = CFrame.new()
  586. Neck.Parent = torso
  587. end
  588. local Limb = char:FindFirstChild("Right Arm")
  589. if Limb then
  590.  
  591. Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  592. local Joint = Instance.new("Glue")
  593. Joint.Name = "RightShoulder"
  594. Joint.Part0 = torso
  595. Joint.Part1 = Limb
  596. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  597. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  598. Joint.Parent = torso
  599.  
  600. local B = Instance.new("Part")
  601. B.TopSurface = 0
  602. B.BottomSurface = 0
  603. B.formFactor = "Symmetric"
  604. B.Size = Vector3.new(1, 1, 1)
  605. B.Transparency = 1
  606. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  607. B.Parent = char
  608. local W = Instance.new("Weld")
  609. W.Part0 = Limb
  610. W.Part1 = B
  611. W.C0 = CFrame.new(0, -0.5, 0)
  612. W.Parent = Limb
  613.  
  614. end
  615. local Limb = char:FindFirstChild("Left Arm")
  616. if Limb then
  617.  
  618. Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  619. local Joint = Instance.new("Glue")
  620. Joint.Name = "LeftShoulder"
  621. Joint.Part0 = torso
  622. Joint.Part1 = Limb
  623. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  624. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  625. Joint.Parent = torso
  626.  
  627. local B = Instance.new("Part")
  628. B.TopSurface = 0
  629. B.BottomSurface = 0
  630. B.formFactor = "Symmetric"
  631. B.Size = Vector3.new(1, 1, 1)
  632. B.Transparency = 1
  633. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  634. B.Parent = char
  635. local W = Instance.new("Weld")
  636. W.Part0 = Limb
  637. W.Part1 = B
  638. W.C0 = CFrame.new(0, -0.5, 0)
  639. W.Parent = Limb
  640.  
  641. end
  642. local Limb = char:FindFirstChild("Right Leg")
  643. if Limb then
  644.  
  645. Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  646. local Joint = Instance.new("Glue")
  647. Joint.Name = "RightHip"
  648. Joint.Part0 = torso
  649. Joint.Part1 = Limb
  650. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  651. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  652. Joint.Parent = torso
  653.  
  654. local B = Instance.new("Part")
  655. B.TopSurface = 0
  656. B.BottomSurface = 0
  657. B.formFactor = "Symmetric"
  658. B.Size = Vector3.new(1, 1, 1)
  659. B.Transparency = 1
  660. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  661. B.Parent = char
  662. local W = Instance.new("Weld")
  663. W.Part0 = Limb
  664. W.Part1 = B
  665. W.C0 = CFrame.new(0, -0.5, 0)
  666. W.Parent = Limb
  667.  
  668. end
  669. local Limb = char:FindFirstChild("Left Leg")
  670. if Limb then
  671.  
  672. Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  673. local Joint = Instance.new("Glue")
  674. Joint.Name = "LeftHip"
  675. Joint.Part0 = torso
  676. Joint.Part1 = Limb
  677. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  678. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  679. Joint.Parent = torso
  680.  
  681. local B = Instance.new("Part")
  682. B.TopSurface = 0
  683. B.BottomSurface = 0
  684. B.formFactor = "Symmetric"
  685. B.Size = Vector3.new(1, 1, 1)
  686. B.Transparency = 1
  687. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  688. B.Parent = char
  689. local W = Instance.new("Weld")
  690. W.Part0 = Limb
  691. W.Part1 = B
  692. W.C0 = CFrame.new(0, -0.5, 0)
  693. W.Parent = Limb
  694.  
  695. end
  696. --[
  697. local Bar = Instance.new("Part")
  698. Bar.TopSurface = 0
  699. Bar.BottomSurface = 0
  700. Bar.formFactor = "Symmetric"
  701. Bar.Size = Vector3.new(1, 1, 1)
  702. Bar.Transparency = 1
  703. Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  704. Bar.Parent = char
  705. local Weld = Instance.new("Weld")
  706. Weld.Part0 = torso
  707. Weld.Part1 = Bar
  708. Weld.C0 = CFrame.new(0, 0.5, 0)
  709. Weld.Parent = torso
  710. --]]
  711.  
  712. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  713.  
  714. end
  715.  
  716. -------------------------------------------------------
  717. --End Kyu's shitty stuff--
  718. -------------------------------------------------------
  719.  
  720. -------------------------------------------------------
  721. --Start Important Functions--
  722. -------------------------------------------------------
  723. function swait(num)
  724. if num == 0 or num == nil then
  725. game:service("RunService").Stepped:wait(0)
  726. else
  727. for i = 0, num do
  728. game:service("RunService").Stepped:wait(0)
  729. end
  730. end
  731. end
  732. function thread(f)
  733. coroutine.resume(coroutine.create(f))
  734. end
  735. function clerp(a, b, t)
  736. local qa = {
  737. QuaternionFromCFrame(a)
  738. }
  739. local qb = {
  740. QuaternionFromCFrame(b)
  741. }
  742. local ax, ay, az = a.x, a.y, a.z
  743. local bx, by, bz = b.x, b.y, b.z
  744. local _t = 1 - t
  745. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  746. end
  747. function QuaternionFromCFrame(cf)
  748. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  749. local trace = m00 + m11 + m22
  750. if trace > 0 then
  751. local s = math.sqrt(1 + trace)
  752. local recip = 0.5 / s
  753. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  754. else
  755. local i = 0
  756. if m00 < m11 then
  757. i = 1
  758. end
  759. if m22 > (i == 0 and m00 or m11) then
  760. i = 2
  761. end
  762. if i == 0 then
  763. local s = math.sqrt(m00 - m11 - m22 + 1)
  764. local recip = 0.5 / s
  765. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  766. elseif i == 1 then
  767. local s = math.sqrt(m11 - m22 - m00 + 1)
  768. local recip = 0.5 / s
  769. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  770. elseif i == 2 then
  771. local s = math.sqrt(m22 - m00 - m11 + 1)
  772. local recip = 0.5 / s
  773. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  774. end
  775. end
  776. end
  777. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  778. local xs, ys, zs = x + x, y + y, z + z
  779. local wx, wy, wz = w * xs, w * ys, w * zs
  780. local xx = x * xs
  781. local xy = x * ys
  782. local xz = x * zs
  783. local yy = y * ys
  784. local yz = y * zs
  785. local zz = z * zs
  786. 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))
  787. end
  788. function QuaternionSlerp(a, b, t)
  789. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  790. local startInterp, finishInterp
  791. if cosTheta >= 1.0E-4 then
  792. if 1 - cosTheta > 1.0E-4 then
  793. local theta = math.acos(cosTheta)
  794. local invSinTheta = 1 / Sin(theta)
  795. startInterp = Sin((1 - t) * theta) * invSinTheta
  796. finishInterp = Sin(t * theta) * invSinTheta
  797. else
  798. startInterp = 1 - t
  799. finishInterp = t
  800. end
  801. elseif 1 + cosTheta > 1.0E-4 then
  802. local theta = math.acos(-cosTheta)
  803. local invSinTheta = 1 / Sin(theta)
  804. startInterp = Sin((t - 1) * theta) * invSinTheta
  805. finishInterp = Sin(t * theta) * invSinTheta
  806. else
  807. startInterp = t - 1
  808. finishInterp = t
  809. end
  810. 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
  811. end
  812. function rayCast(Position, Direction, Range, Ignore)
  813. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  814. end
  815. local RbxUtility = LoadLibrary("RbxUtility")
  816. local Create = RbxUtility.Create
  817.  
  818. -------------------------------------------------------
  819. --Start Damage Function--
  820. -------------------------------------------------------
  821. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  822. if hit.Parent == nil then
  823. return
  824. end
  825. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  826. for _, v in pairs(hit.Parent:children()) do
  827. if v:IsA("Humanoid") then
  828. h = v
  829. end
  830. end
  831. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  832. warn'No R15 allowed'
  833. hit.Parent:FindFirstChild("Head"):BreakJoints()
  834. end
  835.  
  836. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  837. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  838. if hit.Parent.DebounceHit.Value == true then
  839. return
  840. end
  841. end
  842. if insta == true then
  843. hit.Parent:FindFirstChild("Head"):BreakJoints()
  844. end
  845. local c = Create("ObjectValue"){
  846. Name = "creator",
  847. Value = game:service("Players").LocalPlayer,
  848. Parent = h,
  849. }
  850. game:GetService("Debris"):AddItem(c, .5)
  851. if HitSound ~= nil and HitPitch ~= nil then
  852. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  853. end
  854. local Damage = math.random(minim, maxim)
  855. local blocked = false
  856. local block = hit.Parent:findFirstChild("Block")
  857. if block ~= nil then
  858. if block.className == "IntValue" then
  859. if block.Value > 0 then
  860. blocked = true
  861. block.Value = block.Value - 1
  862. print(block.Value)
  863. end
  864. end
  865. end
  866. if blocked == false then
  867. h.Health = h.Health - Damage
  868. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  869. else
  870. h.Health = h.Health - (Damage / 2)
  871. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  872. end
  873. if Type == "Knockdown" then
  874. local hum = hit.Parent.Humanoid
  875. hum.PlatformStand = true
  876. coroutine.resume(coroutine.create(function(HHumanoid)
  877. swait(1)
  878. HHumanoid.PlatformStand = false
  879. end), hum)
  880. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  881. local bodvol = Create("BodyVelocity"){
  882. velocity = angle * knockback,
  883. P = 5000,
  884. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  885. Parent = hit,
  886. }
  887. local rl = Create("BodyAngularVelocity"){
  888. P = 3000,
  889. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  890. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  891. Parent = hit,
  892. }
  893. game:GetService("Debris"):AddItem(bodvol, .5)
  894. game:GetService("Debris"):AddItem(rl, .5)
  895. elseif Type == "Normal" then
  896. local vp = Create("BodyVelocity"){
  897. P = 500,
  898. maxForce = Vector3.new(math.huge, 0, math.huge),
  899. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  900. }
  901. if knockback > 0 then
  902. vp.Parent = hit.Parent.Torso
  903. end
  904. game:GetService("Debris"):AddItem(vp, .5)
  905. elseif Type == "Up" then
  906. local bodyVelocity = Create("BodyVelocity"){
  907. velocity = Vector3.new(0, 20, 0),
  908. P = 5000,
  909. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  910. Parent = hit,
  911. }
  912. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  913. elseif Type == "DarkUp" then
  914. coroutine.resume(coroutine.create(function()
  915. for i = 0, 1, 0.1 do
  916. swait()
  917. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  918. end
  919. end))
  920. local bodyVelocity = Create("BodyVelocity"){
  921. velocity = Vector3.new(0, 20, 0),
  922. P = 5000,
  923. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  924. Parent = hit,
  925. }
  926. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  927. elseif Type == "Snare" then
  928. local bp = Create("BodyPosition"){
  929. P = 2000,
  930. D = 100,
  931. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  932. position = hit.Parent.Torso.Position,
  933. Parent = hit.Parent.Torso,
  934. }
  935. game:GetService("Debris"):AddItem(bp, 1)
  936. elseif Type == "Freeze" then
  937. local BodPos = Create("BodyPosition"){
  938. P = 50000,
  939. D = 1000,
  940. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  941. position = hit.Parent.Torso.Position,
  942. Parent = hit.Parent.Torso,
  943. }
  944. local BodGy = Create("BodyGyro") {
  945. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  946. P = 20e+003,
  947. Parent = hit.Parent.Torso,
  948. cframe = hit.Parent.Torso.CFrame,
  949. }
  950. hit.Parent.Torso.Anchored = true
  951. coroutine.resume(coroutine.create(function(Part)
  952. swait(1.5)
  953. Part.Anchored = false
  954. end), hit.Parent.Torso)
  955. game:GetService("Debris"):AddItem(BodPos, 3)
  956. game:GetService("Debris"):AddItem(BodGy, 3)
  957. end
  958. local debounce = Create("BoolValue"){
  959. Name = "DebounceHit",
  960. Parent = hit.Parent,
  961. Value = true,
  962. }
  963. game:GetService("Debris"):AddItem(debounce, Delay)
  964. c = Create("ObjectValue"){
  965. Name = "creator",
  966. Value = Player,
  967. Parent = h,
  968. }
  969. game:GetService("Debris"):AddItem(c, .5)
  970. end
  971. end
  972. -------------------------------------------------------
  973. --End Damage Function--
  974. -------------------------------------------------------
  975.  
  976. -------------------------------------------------------
  977. --Start Damage Function Customization--
  978. -------------------------------------------------------
  979. function ShowDamage(Pos, Text, Time, Color)
  980. local Rate = (1 / 30)
  981. local Pos = (Pos or Vector3.new(0, 0, 0))
  982. local Text = (Text or "")
  983. local Time = (Time or 2)
  984. local Color = (Color or Color3.new(1, 0, 1))
  985. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  986. EffectPart.Anchored = true
  987. local BillboardGui = Create("BillboardGui"){
  988. Size = UDim2.new(3, 0, 3, 0),
  989. Adornee = EffectPart,
  990. Parent = EffectPart,
  991. }
  992. local TextLabel = Create("TextLabel"){
  993. BackgroundTransparency = 1,
  994. Size = UDim2.new(1, 0, 1, 0),
  995. Text = Text,
  996. Font = "Bodoni",
  997. TextColor3 = Color,
  998. TextScaled = true,
  999. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  1000. Parent = BillboardGui,
  1001. }
  1002. game.Debris:AddItem(EffectPart, (Time))
  1003. EffectPart.Parent = game:GetService("Workspace")
  1004. delay(0, function()
  1005. local Frames = (Time / Rate)
  1006. for Frame = 1, Frames do
  1007. wait(Rate)
  1008. local Percent = (Frame / Frames)
  1009. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1010. TextLabel.TextTransparency = Percent
  1011. end
  1012. if EffectPart and EffectPart.Parent then
  1013. EffectPart:Destroy()
  1014. end
  1015. end)
  1016. end
  1017. -------------------------------------------------------
  1018. --End Damage Function Customization--
  1019. -------------------------------------------------------
  1020.  
  1021. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1022. for _, c in pairs(workspace:children()) do
  1023. local hum = c:findFirstChild("Humanoid")
  1024. if hum ~= nil then
  1025. local head = c:findFirstChild("Head")
  1026. if head ~= nil then
  1027. local targ = head.Position - Part.Position
  1028. local mag = targ.magnitude
  1029. if magni >= mag and c.Name ~= plr.Name then
  1030.  
  1031. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1032. end
  1033. end
  1034. end
  1035. end
  1036. end
  1037.  
  1038.  
  1039. CFuncs = {
  1040. Part = {
  1041. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1042. local Part = Create("Part")({
  1043. Parent = Parent,
  1044. Reflectance = Reflectance,
  1045. Transparency = Transparency,
  1046. CanCollide = false,
  1047. Locked = true,
  1048. BrickColor = BrickColor.new(tostring(BColor)),
  1049. Name = Name,
  1050. Size = Size,
  1051. Material = Material
  1052. })
  1053. RemoveOutlines(Part)
  1054. return Part
  1055. end
  1056. },
  1057. Mesh = {
  1058. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1059. local Msh = Create(Mesh)({
  1060. Parent = Part,
  1061. Offset = OffSet,
  1062. Scale = Scale
  1063. })
  1064. if Mesh == "SpecialMesh" then
  1065. Msh.MeshType = MeshType
  1066. Msh.MeshId = MeshId
  1067. end
  1068. return Msh
  1069. end
  1070. },
  1071. Mesh = {
  1072. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1073. local Msh = Create(Mesh)({
  1074. Parent = Part,
  1075. Offset = OffSet,
  1076. Scale = Scale
  1077. })
  1078. if Mesh == "SpecialMesh" then
  1079. Msh.MeshType = MeshType
  1080. Msh.MeshId = MeshId
  1081. end
  1082. return Msh
  1083. end
  1084. },
  1085. Weld = {
  1086. Create = function(Parent, Part0, Part1, C0, C1)
  1087. local Weld = Create("Weld")({
  1088. Parent = Parent,
  1089. Part0 = Part0,
  1090. Part1 = Part1,
  1091. C0 = C0,
  1092. C1 = C1
  1093. })
  1094. return Weld
  1095. end
  1096. },
  1097. Sound = {
  1098. Create = function(id, par, vol, pit)
  1099. coroutine.resume(coroutine.create(function()
  1100. local S = Create("Sound")({
  1101. Volume = vol,
  1102. Pitch = pit or 1,
  1103. SoundId = id,
  1104. Parent = par or workspace
  1105. })
  1106. wait()
  1107. S:play()
  1108. game:GetService("Debris"):AddItem(S, 6)
  1109. end))
  1110. end
  1111. },
  1112. ParticleEmitter = {
  1113. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1114. local fp = Create("ParticleEmitter")({
  1115. Parent = Parent,
  1116. Color = ColorSequence.new(Color1, Color2),
  1117. LightEmission = LightEmission,
  1118. Size = Size,
  1119. Texture = Texture,
  1120. Transparency = Transparency,
  1121. ZOffset = ZOffset,
  1122. Acceleration = Accel,
  1123. Drag = Drag,
  1124. LockedToPart = LockedToPart,
  1125. VelocityInheritance = VelocityInheritance,
  1126. EmissionDirection = EmissionDirection,
  1127. Enabled = Enabled,
  1128. Lifetime = LifeTime,
  1129. Rate = Rate,
  1130. Rotation = Rotation,
  1131. RotSpeed = RotSpeed,
  1132. Speed = Speed,
  1133. VelocitySpread = VelocitySpread
  1134. })
  1135. return fp
  1136. end
  1137. }
  1138. }
  1139. function RemoveOutlines(part)
  1140. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1141. end
  1142. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1143. local Part = Create("Part")({
  1144. formFactor = FormFactor,
  1145. Parent = Parent,
  1146. Reflectance = Reflectance,
  1147. Transparency = Transparency,
  1148. CanCollide = false,
  1149. Locked = true,
  1150. BrickColor = BrickColor.new(tostring(BColor)),
  1151. Name = Name,
  1152. Size = Size,
  1153. Material = Material
  1154. })
  1155. RemoveOutlines(Part)
  1156. return Part
  1157. end
  1158. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1159. local Msh = Create(Mesh)({
  1160. Parent = Part,
  1161. Offset = OffSet,
  1162. Scale = Scale
  1163. })
  1164. if Mesh == "SpecialMesh" then
  1165. Msh.MeshType = MeshType
  1166. Msh.MeshId = MeshId
  1167. end
  1168. return Msh
  1169. end
  1170. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1171. local Weld = Create("Weld")({
  1172. Parent = Parent,
  1173. Part0 = Part0,
  1174. Part1 = Part1,
  1175. C0 = C0,
  1176. C1 = C1
  1177. })
  1178. return Weld
  1179. end
  1180.  
  1181. -------------------------------------------------------
  1182. --Start Effect Function--
  1183. -------------------------------------------------------
  1184. EffectModel = Instance.new("Model", char)
  1185. Effects = {
  1186. Block = {
  1187. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1188. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1189. prt.Anchored = true
  1190. prt.CFrame = cframe
  1191. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1192. game:GetService("Debris"):AddItem(prt, 10)
  1193. if Type == 1 or Type == nil then
  1194. table.insert(Effects, {
  1195. prt,
  1196. "Block1",
  1197. delay,
  1198. x3,
  1199. y3,
  1200. z3,
  1201. msh
  1202. })
  1203. elseif Type == 2 then
  1204. table.insert(Effects, {
  1205. prt,
  1206. "Block2",
  1207. delay,
  1208. x3,
  1209. y3,
  1210. z3,
  1211. msh
  1212. })
  1213. else
  1214. table.insert(Effects, {
  1215. prt,
  1216. "Block3",
  1217. delay,
  1218. x3,
  1219. y3,
  1220. z3,
  1221. msh
  1222. })
  1223. end
  1224. end
  1225. },
  1226. Sphere = {
  1227. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1228. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1229. prt.Anchored = true
  1230. prt.CFrame = cframe
  1231. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0,0,0), Vector3.new(x1, y1, z1))
  1232. game:GetService("Debris"):AddItem(prt, 10)
  1233. table.insert(Effects, {
  1234. prt,
  1235. "Cylinder",
  1236. delay,
  1237. x3,
  1238. y3,
  1239. z3,
  1240. msh
  1241. })
  1242. end
  1243. },
  1244. Cylinder = {
  1245. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1246. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1247. prt.Anchored = true
  1248. prt.CFrame = cframe
  1249. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1250. game:GetService("Debris"):AddItem(prt, 10)
  1251. table.insert(Effects, {
  1252. prt,
  1253. "Cylinder",
  1254. delay,
  1255. x3,
  1256. y3,
  1257. z3,
  1258. msh
  1259. })
  1260. end
  1261. },
  1262. Wave = {
  1263. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1264. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1265. prt.Anchored = true
  1266. prt.CFrame = cframe
  1267. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1268. game:GetService("Debris"):AddItem(prt, 10)
  1269. table.insert(Effects, {
  1270. prt,
  1271. "Cylinder",
  1272. delay,
  1273. x3 / 60,
  1274. y3 / 60,
  1275. z3 / 60,
  1276. msh
  1277. })
  1278. end
  1279. },
  1280. Ring = {
  1281. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1282. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1283. prt.Anchored = true
  1284. prt.CFrame = cframe
  1285. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1286. game:GetService("Debris"):AddItem(prt, 10)
  1287. table.insert(Effects, {
  1288. prt,
  1289. "Cylinder",
  1290. delay,
  1291. x3,
  1292. y3,
  1293. z3,
  1294. msh
  1295. })
  1296. end
  1297. },
  1298. Break = {
  1299. Create = function(brickcolor, cframe, x1, y1, z1)
  1300. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1301. prt.Anchored = true
  1302. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1303. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1304. local num = math.random(10, 50) / 1000
  1305. game:GetService("Debris"):AddItem(prt, 10)
  1306. table.insert(Effects, {
  1307. prt,
  1308. "Shatter",
  1309. num,
  1310. prt.CFrame,
  1311. math.random() - math.random(),
  1312. 0,
  1313. math.random(50, 100) / 100
  1314. })
  1315. end
  1316. },
  1317. Spiral = {
  1318. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1319. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1320. prt.Anchored = true
  1321. prt.CFrame = cframe
  1322. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1323. game:GetService("Debris"):AddItem(prt, 10)
  1324. table.insert(Effects, {
  1325. prt,
  1326. "Cylinder",
  1327. delay,
  1328. x3,
  1329. y3,
  1330. z3,
  1331. msh
  1332. })
  1333. end
  1334. },
  1335. Push = {
  1336. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1337. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1338. prt.Anchored = true
  1339. prt.CFrame = cframe
  1340. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1341. game:GetService("Debris"):AddItem(prt, 10)
  1342. table.insert(Effects, {
  1343. prt,
  1344. "Cylinder",
  1345. delay,
  1346. x3,
  1347. y3,
  1348. z3,
  1349. msh
  1350. })
  1351. end
  1352. }
  1353. }
  1354. -------------------------------------------------------
  1355. --End Effect Function--
  1356. -------------------------------------------------------
  1357.  
  1358. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  1359. local NSound = nil
  1360. coroutine.resume(coroutine.create(function()
  1361. NSound = Instance.new("Sound", PARENT)
  1362. NSound.Volume = VOLUME
  1363. NSound.Pitch = PITCH
  1364. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1365. swait()
  1366. NSound:play()
  1367. game:GetService("Debris"):AddItem(NSound, 10)
  1368. end))
  1369. return NSound
  1370. end
  1371.  
  1372.  
  1373. angery = false
  1374. function ohshitimangry()
  1375. attack = true
  1376. angery = true
  1377. local BodyColors = char:FindFirstChildOfClass"BodyColors"
  1378. if BodyColors then
  1379. BodyColors.TorsoColor = BrickColor.new"Really black"
  1380. BodyColors.LeftArmColor = BrickColor.new"Really black"
  1381. BodyColors.RightArmColor = BrickColor.new"Really black"
  1382. BodyColors.LeftLegColor = BrickColor.new"Really black"
  1383. BodyColors.RightLegColor = BrickColor.new"Really black"
  1384. for i,v in pairs(char:children()) do
  1385. if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
  1386. v:Remove()
  1387. end
  1388. end
  1389. shirt = Instance.new("Shirt", char)
  1390. shirt.Name = "Shirt"
  1391. pants = Instance.new("Pants", char)
  1392. pants.Name = "Pants"
  1393. char.Shirt.ShirtTemplate = "rbxassetid://1091821325"
  1394. char.Pants.PantsTemplate = "rbxassetid://1091821538"
  1395. end
  1396. attack = false
  1397. end
  1398.  
  1399.  
  1400. -------------------------------------------------------
  1401. --End Important Functions--
  1402. -------------------------------------------------------
  1403.  
  1404. NEWS = Instance.new("Sound", tors) --O NO
  1405. NEWS.SoundId = "http://www.roblox.com/asset/?id=1864852634"
  1406. NEWS.Volume = 100
  1407. NEWS.Pitch = 1
  1408. NEWS.Looped = false
  1409. NEWS.TimePosition = 1
  1410.  
  1411. AAAAA = Instance.new("Sound", tors) --aaa
  1412. AAAAA.SoundId = "http://www.roblox.com/asset/?id=0"
  1413. AAAAA.Volume = 10
  1414. AAAAA.Pitch = 1
  1415. AAAAA.Looped = false
  1416. AAAAA.TimePosition = 1
  1417.  
  1418. MERKIO = Instance.new("Sound", tors) --why
  1419. MERKIO.SoundId = "http://www.roblox.com/asset/?id=660489409"
  1420. MERKIO.Volume = 10
  1421. MERKIO.Pitch = 1
  1422. MERKIO.Looped = false
  1423. MERKIO.TimePosition = 0
  1424.  
  1425. MERKIO2 = Instance.new("Sound", tors) --why
  1426. MERKIO2.SoundId = "http://www.roblox.com/asset/?id=258246285"
  1427. MERKIO2.Volume = 10
  1428. MERKIO2.Pitch = 1
  1429. MERKIO2.Looped = false
  1430. MERKIO2.TimePosition = 0
  1431.  
  1432. -------------------------------------------------------
  1433. --Start Music Option--
  1434. -------------------------------------------------------
  1435. ;
  1436. -------------------------------------------------------
  1437. --End Music Option--
  1438. -------------------------------------------------------
  1439. --hi fat >:)
  1440. -------------------------------------------------------
  1441. --Start Attacks N Stuff--
  1442. -------------------------------------------------------
  1443.  
  1444. function THEBESTOVERUSEDJOKEEVER() --oh god why did i make this a thing jeezus help me pls
  1445. attack = true
  1446.  
  1447. hum.WalkSpeed = 16
  1448. Character.Head.face.Texture = "rbxassetid://1667792"
  1449. NEWS:Play()
  1450. repeat
  1451. NEWS.Parent = tors
  1452. swait()
  1453. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1454. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.3)
  1455. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * RHCF * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1456. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 , 0.001 * Cos(sine / 20)) * LHCF * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.15)
  1457. RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles (math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1458. LW.C0 = clerp(LW.C0, CF(-1.2, 0.5 + 0.05 * Sin(sine / 30), 0.001 * Cos(sine / 20)) * angles(math.random(-25,25),math.random(-25,25),math.random(-25,25)), 0.1)
  1459. until NEWS.Playing == false
  1460. game.Players.LocalPlayer.Character:BreakJoints()
  1461. local S = Instance.new("Explosion",workspace)
  1462. S.Position = tors.Position
  1463. S.BlastPressure = 9
  1464. S.BlastRadius = 30
  1465. S.ExplosionType = 0
  1466. attack = false
  1467. hum.WalkSpeed = 16
  1468. Character.Head.face.Texture = "rbxassetid://295197013"
  1469. attack = false
  1470. hum.WalkSpeed = 16
  1471. end
  1472.  
  1473. function sneakonehundred()
  1474. attack = true
  1475. hum.WalkSpeed = 0.03
  1476. Character.Head.face.Texture = "rbxassetid://1667792"
  1477. CreateSound("1542642349", tors, 10, 1.05)
  1478. for i = 0,20,0.1 do
  1479. swait()
  1480. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  1481. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  1482. 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)
  1483. 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)
  1484. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(-180)), 0.4)
  1485. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(1), Rad(0), Rad(180)), 0.4)
  1486. end
  1487. CreateSound("753450324", tors, 10, 1.05)
  1488. wait(0.25)
  1489. Character.Head.face.Texture = "rbxassetid://1223903433"
  1490. for i = 0,7,0.1 do
  1491. swait()
  1492. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.64 + 0.1) * angles(Rad(90), Rad(0), Rad(0)), 0.15)
  1493. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-110), Rad(0), Rad(0)), 0.4)
  1494. 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)
  1495. 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)
  1496. RW.C0 = clerp(RW.C0, CF(1.3, 0.9 + 0.05 * Sin(sine / 30), 0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(-180)), 0.4)
  1497. LW.C0 = clerp(LW.C0, CF(-1.3, 0.8 + 0.05 * Sin(sine / 30), -0.0001 * Cos(sine / 20)) * angles(Rad(40), Rad(0), Rad(180)), 0.4)
  1498. end
  1499. Character.Head.face.Texture = "rbxassetid://1667792"
  1500. attack = false
  1501. hum.WalkSpeed = 16
  1502. end
  1503.  
  1504. function DANCEFORME2()
  1505. attack = true
  1506. Character.Head.face.Texture = "rbxassetid://1667792"
  1507. MERKIO2:Play()
  1508. repeat
  1509. for i = 0,0.7,0.2 do
  1510. swait()
  1511. MERKIO2.Parent = tors
  1512. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1513. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1514. RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1515. LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1516. RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77)
  1517. LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67)
  1518. end
  1519. for i = 0,0.7,0.2 do
  1520. swait()
  1521. MERKIO2.Parent = tors
  1522. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1523. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1524. 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.8)
  1525. 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.8)
  1526. 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.7)
  1527. 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.7)
  1528. end
  1529. until MERKIO2.Playing == false
  1530. MERKIO2:Stop()
  1531. Character.Head.face.Texture = "rbxassetid://1667792"
  1532. attack = false
  1533. hum.WalkSpeed = 16
  1534. end
  1535.  
  1536.  
  1537. function DANCEFORME()
  1538. attack = true
  1539. Character.Head.face.Texture = "rbxassetid://1667792"
  1540. MERKIO:Play()
  1541. repeat
  1542. for i = 0,0.7,0.2 do
  1543. swait()
  1544. MERKIO.Parent = tors
  1545. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1546. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1547. RH.C0 = clerp(RH.C0, CF(1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1548. LH.C0 = clerp(LH.C0, CF(-1.8, -0.1 - 0.1 , 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.8)
  1549. RW.C0 = clerp(RW.C0, CF(1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(115)), 0.77)
  1550. LW.C0 = clerp(LW.C0, CF(-1.5, 0.7 + 0.1 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-115)), 0.67)
  1551. end
  1552. for i = 0,0.7,0.2 do
  1553. swait()
  1554. MERKIO.Parent = tors
  1555. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.8)
  1556. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-0), Rad(0), Rad(0)), 0.9)
  1557. 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.8)
  1558. 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.8)
  1559. 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.7)
  1560. 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.7)
  1561. end
  1562. until MERKIO.Playing == false
  1563. MERKIO:Stop()
  1564. Character.Head.face.Texture = "rbxassetid://1667792"
  1565. attack = false
  1566. hum.WalkSpeed = 16
  1567. end
  1568.  
  1569. function takethat()
  1570. attack = true
  1571. hum.WalkSpeed = 0
  1572. CreateSound("1238240145", tors, 10, 1.05)
  1573. for i = 0,8.3,0.1 do
  1574. swait()
  1575. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(90)), 0.7)
  1576. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.7)
  1577. 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.7)
  1578. 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.7)
  1579. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-.6), Rad(0)), 0.7)
  1580. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.7)
  1581. end
  1582. CreateSound("135165859", tors, 10, 1.05)
  1583. for i = 0,6,0.1 do
  1584. swait()
  1585. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1586. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.85)
  1587. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.7)
  1588. 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.7)
  1589. 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.7)
  1590. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(-.6), Rad(0)), 0.7)
  1591. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(-.6), Rad(0 - 4.5 * Sin(sine / 20))), 0.7)
  1592. end
  1593. attack = false
  1594. hum.WalkSpeed = 16
  1595. end
  1596. function SCREAM()
  1597. attack = true
  1598. hum.WalkSpeed = 16
  1599. Character.Head.face.Texture = "rbxassetid://1667792"
  1600. local A = math.random(1,3)
  1601. if A == 1 then
  1602. AAAAA.SoundId = "rbxassetid://580806904"
  1603. AAAAA.TimePosition = 0
  1604. end
  1605. if A == 2 then
  1606. AAAAA.SoundId = "rbxassetid://569124237"
  1607. AAAAA.TimePosition = 0
  1608. end
  1609. if A == 3 then
  1610. AAAAA.SoundId = "rbxassetid://824995694"
  1611. AAAAA.TimePosition = 0
  1612. end
  1613. AAAAA:Play()
  1614. repeat
  1615. swait()
  1616. AAAAA.Parent = tors
  1617. rootj.C0 = char.Torso.Neck.C0 * CFrame.Angles(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1618. until AAAAA.Playing == false
  1619. hum.WalkSpeed = 16
  1620. attack = false
  1621. hum.WalkSpeed = 16
  1622. end
  1623.  
  1624. MoreTaunts = false
  1625. mouse.KeyDown:connect(function(key)
  1626. if attack == false then
  1627. if MoreTaunts == false then
  1628. if key == 'q' then
  1629. THEBESTOVERUSEDJOKEEVER()
  1630. elseif key == 'e' then
  1631. SCREAM()
  1632. elseif key == 'b' and angery == false then
  1633. ohshitimangry()
  1634. elseif key == 'h' then
  1635. lol()
  1636. elseif key == 'p' then
  1637. DANCEFORME2()
  1638. elseif key == 'r' then
  1639. sneakonehundred()
  1640. elseif key == 't' then
  1641. DANCEFORME()
  1642. elseif key == 'y' then
  1643. takethat()
  1644. elseif key == 'f' then
  1645. Tauntmelon()
  1646. elseif key == 'u' then
  1647. un_fun()
  1648. end
  1649. end
  1650. end
  1651. end)
  1652.  
  1653. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1654. local Hitboxpart = Instance.new("Part", EffectModel)
  1655. RemoveOutlines(Hitboxpart)
  1656. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1657. Hitboxpart.CanCollide = false
  1658. Hitboxpart.Transparency = 1
  1659. Hitboxpart.Anchored = true
  1660. Hitboxpart.CFrame = Pose
  1661. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1662. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1663. end
  1664. wait2 = false
  1665. combo = 1
  1666. mouse.Button1Down:connect(function(key)
  1667. if attack == false then
  1668. attack = true
  1669. hum.WalkSpeed = 3.01
  1670. if combo == 1 and wait2 == false then
  1671. wait2 = true
  1672. for i = 0, 1.2, 0.1 do
  1673. swait()
  1674. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-65)), 0.3)
  1675. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(-65)), 0.1)
  1676. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1677. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(40)), 0.3)
  1678. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1679. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1680. end
  1681. CreateSound("608537390", ra, 3, .8)
  1682. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  1683. for i = 0, 1.2, 0.1 do
  1684. swait()
  1685. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(55)), 0.3)
  1686. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1687. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(40)), 0.1)
  1688. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1689. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3)
  1690. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1691. end
  1692. combo = 2
  1693. end
  1694. if combo == 2 and wait2 == false then
  1695. wait2 = true
  1696. for i = 0, 1.2, 0.1 do
  1697. swait()
  1698. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(65)), 0.3)
  1699. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(65)), 0.1)
  1700. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(-25), math.rad(0), math.rad(40)), 0.1)
  1701. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
  1702. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1703. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1704. end
  1705. CreateSound("608537390", ra, 3, .8)
  1706. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal")
  1707. for i = 0, 1.2, 0.1 do
  1708. swait()
  1709. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-55)), 0.3)
  1710. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1711. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(10)), 0.1)
  1712. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.8) * angles(math.rad(95), math.rad(0), math.rad(-40)), 0.3)
  1713. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-17)), 0.3)
  1714. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1715. end
  1716. combo = 3
  1717. end
  1718. if combo == 3 and wait2 == false then
  1719. wait2 = true
  1720. for i = 0, 1.2, 0.1 do
  1721. swait()
  1722. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-35)), 0.3)
  1723. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1724. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
  1725. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1726. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(-2.5), math.rad(0), math.rad(-0)), 0.3)
  1727. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(15), math.rad(-20)), 0.3)
  1728. end
  1729. CreateSound("608537390", ra, 3, .8)
  1730. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1731. for i = 0, 1.2, 0.1 do
  1732. swait()
  1733. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(35)), 0.3)
  1734. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1735. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(96), math.rad(0), math.rad(10)), 0.1)
  1736. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1737. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1738. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1739. end
  1740. coroutine.resume(coroutine.create(function()
  1741. for i = 0,1.8,0.1 do
  1742. swait()
  1743. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1744. end
  1745. for i = 0,1.8,0.1 do
  1746. swait()
  1747. hum.CameraOffset = Vector3.new(0,0,0)
  1748. end
  1749. end))
  1750. HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
  1751. for i = 0, 1.2, 0.1 do
  1752. swait()
  1753. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-35)), 0.3)
  1754. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1755. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(25), math.rad(0), math.rad(10)), 0.1)
  1756. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
  1757. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(-2.5), math.rad(-25), math.rad(-0)), 0.3)
  1758. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(-2.5), math.rad(-0), math.rad(0)), 0.3)
  1759. end
  1760. combo = 4
  1761. end
  1762. if combo == 4 and wait2 == false then
  1763. for i = 0,1.2,0.1 do
  1764. swait()
  1765. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1766. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1767. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15)
  1768. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15)
  1769. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
  1770. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1)
  1771. end
  1772. Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01)
  1773. CreateSound("331666100", char, 10, 1)
  1774. for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do
  1775. if v:FindFirstChild("Head") then
  1776. SoulSteal(v)
  1777. Eviscerate(v)
  1778. end
  1779. end
  1780. coroutine.resume(coroutine.create(function()
  1781. for i = 0,1.8,0.1 do
  1782. swait()
  1783. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1784. end
  1785. for i = 0,1.8,0.1 do
  1786. swait()
  1787. hum.CameraOffset = Vector3.new(0,0,0)
  1788. end
  1789. end))
  1790. for i = 1,4.7,0.1 do
  1791. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
  1792. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
  1793. RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
  1794. LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1795. RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1)
  1796. LW.C0 = clerp(LW.C0, CF(-1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1)
  1797. end
  1798. wait(.6)
  1799. combo = 1
  1800. end
  1801. hum.WalkSpeed = 16
  1802. wait2 = false
  1803. attack = false
  1804. end
  1805. end)
  1806.  
  1807. -------------------------------------------------------
  1808. --End Attacks N Stuff--
  1809. -------------------------------------------------------
  1810.  
  1811.  
  1812.  
  1813.  
  1814. while jumping do
  1815. Humanoid.Jump = true
  1816. wait(0.9)
  1817. end
  1818.  
  1819.  
  1820.  
  1821.  
  1822. -------------------------------------------------------
  1823. --Start Animations--
  1824. -------------------------------------------------------
  1825. local PlayerSize = 1
  1826. local FT,RA,LA,RL,LL = Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh"),Instance.new("SpecialMesh")
  1827. FT.MeshId,FT.Scale = "rbxasset://fonts/torso.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1828. RA.MeshId,RA.Scale = "rbxasset://fonts/rightarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1829. LA.MeshId,LA.Scale = "rbxasset://fonts/leftarm.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1830. RL.MeshId,RL.Scale = "rbxasset://fonts/rightleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1831. LL.MeshId,LL.Scale = "rbxasset://fonts/leftleg.mesh",Vector3.new(PlayerSize,PlayerSize,PlayerSize)
  1832.  
  1833.  
  1834. local equipped = false
  1835. local idle = 0
  1836. local change = 1
  1837. local val = 0
  1838. local toim = 0
  1839. local idleanim = 0.4
  1840. hum.Animator.Parent = nil
  1841. while true do
  1842. swait()
  1843. sine = sine + change
  1844. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1845. local velderp = root.Velocity.y
  1846. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1847. if equipped == true or equipped == false then
  1848. if attack == false then
  1849. idle = idle + 1
  1850. else
  1851. idle = 0
  1852. end
  1853. if 1 < root.Velocity.y and hitfloor == nil then
  1854. Anim = "Jump"
  1855. if attack == false then
  1856. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1857. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1858. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
  1859. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
  1860. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1861. RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1862. end
  1863. elseif -1 > root.Velocity.y and hitfloor == nil then
  1864. Anim = "Fall"
  1865. if attack == false then
  1866. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1867. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1868. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
  1869. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
  1870. LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1871. RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1872. end
  1873. elseif torvel < 1 and hitfloor ~= nil then
  1874. Anim = "Idle"
  1875. change = .5
  1876. if attack == false then
  1877. if angery == false then
  1878. VALUE1 = false
  1879. 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)
  1880. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1881. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  1882. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1883. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1)
  1884. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-5 + 2.5 * Sin(sine / 20))), 0.1)
  1885. if VALUE1 == false and math.random(1,200) == 1 then
  1886. coroutine.resume(coroutine.create(function()
  1887. VALUE1 = true
  1888. for i = 1, 25 do
  1889. swait()
  1890. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(30)),.3)
  1891. end
  1892. VALUE1 = false
  1893.  
  1894. end))
  1895. end
  1896. elseif angery == true then
  1897. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  1898. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1899. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1900. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1901. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12)
  1902. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1903. if VALUE1 == false and math.random(1,200) == 1 then
  1904. coroutine.resume(coroutine.create(function()
  1905. VALUE1 = true
  1906. for i = 1, 25 do
  1907. swait()
  1908. FT.Parent = tors
  1909. RA.Parent = ra
  1910. LA.Parent = la
  1911. RL.Parent = rl
  1912. LL.Parent = ll
  1913. for _,v in next, char:GetDescendants() do
  1914. if(v:IsA'DataModelMesh')then
  1915. v.Offset = Vector3.new(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  1916. end
  1917. end
  1918. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-25),math.rad((15+math.random(-15,15)/15)),math.rad(0)),.3)
  1919. end
  1920. VALUE1 = false
  1921. FT.Parent = nil
  1922. RA.Parent = nil
  1923. LA.Parent = nil
  1924. RL.Parent = nil
  1925. LL.Parent = nil
  1926. for _,v in next, char:GetDescendants() do
  1927. if(v:IsA'DataModelMesh')then
  1928. v.Offset = Vector3.new(0,0,0)
  1929. end
  1930. end
  1931.  
  1932. end))
  1933. end
  1934. end
  1935. end
  1936. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1937. Anim = "Walk"
  1938. change = .9
  1939. if attack == false then
  1940. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15)
  1941. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1942. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1943. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1944. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1)
  1945. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.1)
  1946. end
  1947. end
  1948. end
  1949. if 0 < #Effects then
  1950. for e = 1, #Effects do
  1951. if Effects[e] ~= nil then
  1952. local Thing = Effects[e]
  1953. if Thing ~= nil then
  1954. local Part = Thing[1]
  1955. local Mode = Thing[2]
  1956. local Delay = Thing[3]
  1957. local IncX = Thing[4]
  1958. local IncY = Thing[5]
  1959. local IncZ = Thing[6]
  1960. if 1 >= Thing[1].Transparency then
  1961. if Thing[2] == "Block1" then
  1962. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1963. local Mesh = Thing[1].Mesh
  1964. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1965. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1966. elseif Thing[2] == "Block2" then
  1967. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1968. local Mesh = Thing[7]
  1969. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1970. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1971. elseif Thing[2] == "Block3" then
  1972. 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)
  1973. local Mesh = Thing[7]
  1974. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1975. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1976. elseif Thing[2] == "Cylinder" then
  1977. local Mesh = Thing[1].Mesh
  1978. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1979. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1980. elseif Thing[2] == "Blood" then
  1981. local Mesh = Thing[7]
  1982. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1983. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1984. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1985. elseif Thing[2] == "Elec" then
  1986. local Mesh = Thing[1].Mesh
  1987. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1988. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1989. elseif Thing[2] == "Disappear" then
  1990. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1991. elseif Thing[2] == "Shatter" then
  1992. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1993. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1994. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1995. Thing[6] = Thing[6] + Thing[5]
  1996. end
  1997. else
  1998. Part.Parent = nil
  1999. table.remove(Effects, e)
  2000. end
  2001. end
  2002. end
  2003. end
  2004. end
  2005. end
  2006. -------------------------------------------------------
  2007. --End Animations And Script--
  2008. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement