Advertisement
LanderDusty

Coffee FE

Aug 2nd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.71 KB | None | 0 0
  1. -----------------------
  2. --[[ Name : CoffeeCopter ]]--
  3. --[[ Description : Based off an old name. ]]--
  4. --[[ \ None / ]]--
  5. -------------------------------------------------------
  6. --A script By Creterisk/makhail07
  7. --Discord Creterisk#2958
  8. --Edited By flowerybooga
  9. -------------------------------------------------------
  10.  
  11. --Everything is Meaningless.....
  12.  
  13. wait(1 / 60)
  14.  
  15. local plr = owner
  16. print('Local User is '..plr.Name)
  17. print('CoffeeCopter Loaded')
  18. print([[
  19. I honestly, don't know why I made this,
  20. but it's a simple script, so I don't really care much about it.
  21.  
  22. Controls : Due to converting into FE, no controls work - Sorry :l
  23.  
  24. ]])
  25. script:ClearAllChildren()
  26. wait(0.2)
  27.  
  28. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  29. local Player,game,owner = owner,game
  30. local RealPlayer = Player
  31. do
  32. print("FE Compatibility code by Mokiros")
  33. local rp = RealPlayer
  34. script.Parent = rp.Character
  35.  
  36. --RemoteEvent for communicating
  37. local Event = Instance.new("RemoteEvent")
  38. Event.Name = "UserInput_Event"
  39.  
  40. --Fake event to make stuff like Mouse.KeyDown work
  41. local function fakeEvent()
  42. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  43. t.connect = t.Connect
  44. return t
  45. end
  46.  
  47. --Creating fake input objects with fake variables
  48. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  49. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  50. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  51. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  52. end}
  53. --Merged 2 functions into one by checking amount of arguments
  54. CAS.UnbindAction = CAS.BindAction
  55.  
  56. --This function will trigger the events that have been :Connect()'ed
  57. local function te(self,ev,...)
  58. local t = m[ev]
  59. if t and t._fakeEvent then
  60. for _,f in pairs(t.Functions) do
  61. f(...)
  62. end
  63. end
  64. end
  65. m.TrigEvent = te
  66. UIS.TrigEvent = te
  67.  
  68. Event.OnServerEvent:Connect(function(plr,io)
  69. if plr~=rp then return end
  70. m.Target = io.Target
  71. m.Hit = io.Hit
  72. if not io.isMouse then
  73. local b = io.UserInputState == Enum.UserInputState.Begin
  74. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  75. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  76. end
  77. for _,t in pairs(CAS.Actions) do
  78. for _,k in pairs(t.Keys) do
  79. if k==io.KeyCode then
  80. t.Function(t.Name,io.UserInputState,io)
  81. end
  82. end
  83. end
  84. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  85. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  86. end
  87. end)
  88. Event.Parent = NLS([==[
  89. local Player = game:GetService("Players").LocalPlayer
  90. local Event = script:WaitForChild("UserInput_Event")
  91.  
  92. local Mouse = Player:GetMouse()
  93. local UIS = game:GetService("UserInputService")
  94. local input = function(io,a)
  95. if a then return end
  96. --Since InputObject is a client-side instance, we create and pass table instead
  97. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  98. end
  99. UIS.InputBegan:Connect(input)
  100. UIS.InputEnded:Connect(input)
  101.  
  102. local h,t
  103. --Give the server mouse data 30 times every second, but only if the values changed
  104. --If player is not moving their mouse, client won't fire events
  105. while wait(1/30) do
  106. if h~=Mouse.Hit or t~=Mouse.Target then
  107. h,t=Mouse.Hit,Mouse.Target
  108. Event:FireServer({isMouse=true,Target=t,Hit=h})
  109. end
  110. end]==],Player.Character)
  111.  
  112. ----Sandboxed game object that allows the usage of client-side methods and services
  113. --Real game object
  114. local _rg = game
  115.  
  116. --Metatable for fake service
  117. local fsmt = {
  118. __index = function(self,k)
  119. local s = rawget(self,"_RealService")
  120. if s then return s[k] end
  121. end,
  122. __newindex = function(self,k,v)
  123. local s = rawget(self,"_RealService")
  124. if s then s[k]=v end
  125. end,
  126. __call = function(self,...)
  127. local s = rawget(self,"_RealService")
  128. if s then return s(...) end
  129. end
  130. }
  131. local function FakeService(t,RealService)
  132. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  133. return setmetatable(t,fsmt)
  134. end
  135.  
  136. --Fake game object
  137. local g = {
  138. GetService = function(self,s)
  139. return self[s]
  140. end,
  141. Players = FakeService({
  142. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  143. },"Players"),
  144. UserInputService = FakeService(UIS,"UserInputService"),
  145. ContextActionService = FakeService(CAS,"ContextActionService"),
  146. }
  147. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  148. g.service = g.GetService
  149.  
  150. g.RunService = FakeService({
  151. RenderStepped = _rg:GetService("RunService").Heartbeat,
  152. BindToRenderStep = function(self,name,_,fun)
  153. self._btrs[name] = self.Heartbeat:Connect(fun)
  154. end,
  155. UnbindFromRenderStep = function(self,name)
  156. self._btrs[name]:Disconnect()
  157. end,
  158. },"RunService")
  159.  
  160. setmetatable(g,{
  161. __index=function(self,s)
  162. return _rg:GetService(s) or typeof(_rg[s])=="function"
  163. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  164. end,
  165. __newindex = fsmt.__newindex,
  166. __call = fsmt.__call
  167. })
  168. --Changing owner to fake player object to support owner:GetMouse()
  169. game,owner = g,g.Players.LocalPlayer
  170. end
  171.  
  172. Player = owner
  173. PlayerGui = Player.PlayerGui
  174. Cam = workspace.CurrentCamera
  175. Backpack = Player.Backpack
  176. Character = Player.Character
  177. Humanoid = Character.Humanoid
  178. RootPart = Character["HumanoidRootPart"]
  179. Torso = Character["Torso"]
  180. Head = Character["Head"]
  181. RightArm = Character["Right Arm"]
  182. LeftArm = Character["Left Arm"]
  183. RightLeg = Character["Right Leg"]
  184. LeftLeg = Character["Left Leg"]
  185. RootJoint = RootPart["RootJoint"]
  186. Neck = Torso["Neck"]
  187. RightShoulder = Torso["Right Shoulder"]
  188. LeftShoulder = Torso["Left Shoulder"]
  189. RightHip = Torso["Right Hip"]
  190. LeftHip = Torso["Left Hip"]
  191. local TIME = 0
  192. local sick = Instance.new("Sound",Torso)
  193.  
  194. IT = Instance.new
  195. CF = CFrame.new
  196. VT = Vector3.new
  197. RAD = math.rad
  198. C3 = Color3.new
  199. UD2 = UDim2.new
  200. BRICKC = BrickColor.new
  201. ANGLES = CFrame.Angles
  202. EULER = CFrame.fromEulerAnglesXYZ
  203. COS = math.cos
  204. ACOS = math.acos
  205. SIN = math.sin
  206. ASIN = math.asin
  207. ABS = math.abs
  208. MRANDOM = math.random
  209. FLOOR = math.floor
  210. local RWINGS = {}
  211. local LWINGS = {}
  212. local GunPoint
  213. Player_Size = 1
  214.  
  215.  
  216. local char = plr.Character
  217. local hum = char:FindFirstChildOfClass'Humanoid'
  218. local hed = char.Head
  219. local root = char:FindFirstChild'HumanoidRootPart'
  220. local rootj = root.RootJoint
  221. local tors = char.Torso
  222. local ra = char["Right Arm"]
  223. local la = char["Left Arm"]
  224. local rl = char["Right Leg"]
  225. local ll = char["Left Leg"]
  226. local neck = tors["Neck"]
  227. local mouse = plr:GetMouse()
  228. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  229. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  230. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  231. local maincolor = BrickColor.new("Institutional white")
  232. -------------------------------------------------------
  233. --Start Good Stuff--
  234. -------------------------------------------------------
  235. cam = game.Workspace.CurrentCamera
  236. CF = CFrame.new
  237. angles = CFrame.Angles
  238. attack = false
  239. Euler = CFrame.fromEulerAnglesXYZ
  240. Rad = math.rad
  241. IT = Instance.new
  242. BrickC = BrickColor.new
  243. Cos = math.cos
  244. Acos = math.acos
  245. Sin = math.sin
  246. Asin = math.asin
  247. Abs = math.abs
  248. Mrandom = math.random
  249. Floor = math.floor
  250. -------------------------------------------------------
  251. --End Good Stuff--
  252. -------------------------------------------------------
  253. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  254. RSH, LSH = nil, nil
  255. RW = Instance.new("Weld")
  256. LW = Instance.new("Weld")
  257. RH = tors["Right Hip"]
  258. LH = tors["Left Hip"]
  259. RSH = tors["Right Shoulder"]
  260. LSH = tors["Left Shoulder"]
  261. RSH.Parent = nil
  262. LSH.Parent = nil
  263. RW.Name = "RW"
  264. RW.Part0 = tors
  265. RW.C0 = CF(1.5, 0.5, 0)
  266. RW.C1 = CF(0, 0.5, 0)
  267. RW.Part1 = ra
  268. RW.Parent = tors
  269. LW.Name = "LW"
  270. LW.Part0 = tors
  271. LW.C0 = CF(-1.5, 0.5, 0)
  272. LW.C1 = CF(0, 0.5, 0)
  273. LW.Part1 = la
  274. LW.Parent = tors
  275. Effects = {}
  276. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  277. local wld = Instance.new("Weld", wp1)
  278. wld.Part0 = wp0
  279. wld.Part1 = wp1
  280. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  281. end
  282. newWeld(tors, ll, -0.5, -1, 0)
  283. ll.Weld.C1 = CFrame.new(0, 1, 0)
  284. newWeld(tors, rl, 0.5, -1, 0)
  285. rl.Weld.C1 = CFrame.new(0, 1, 0)
  286. -------------------------------------------------------
  287. --Start HeartBeat--
  288. -------------------------------------------------------
  289. ArtificialHB = Instance.new("BindableEvent", script)
  290. ArtificialHB.Name = "Heartbeat"
  291. script:WaitForChild("Heartbeat")
  292.  
  293. frame = 1 / 60
  294. tf = 0
  295. allowframeloss = false
  296. tossremainder = false
  297.  
  298.  
  299. lastframe = tick()
  300. script.Heartbeat:Fire()
  301.  
  302.  
  303. game:GetService("RunService").Heartbeat:connect(function(s, p)
  304. tf = tf + s
  305. if tf >= frame then
  306. if allowframeloss then
  307. script.Heartbeat:Fire()
  308. lastframe = tick()
  309. else
  310. for i = 1, math.floor(tf / frame) do
  311. script.Heartbeat:Fire()
  312. end
  313. lastframe = tick()
  314. end
  315. if tossremainder then
  316. tf = 0
  317. else
  318. tf = tf - frame * math.floor(tf / frame)
  319. end
  320. end
  321. end)
  322. -------------------------------------------------------
  323. --End HeartBeat--
  324. -------------------------------------------------------
  325. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  326. local NEWPART = IT("Part")
  327. NEWPART.formFactor = FORMFACTOR
  328. NEWPART.Reflectance = REFLECTANCE
  329. NEWPART.Transparency = TRANSPARENCY
  330. NEWPART.CanCollide = false
  331. NEWPART.Locked = true
  332. NEWPART.Anchored = true
  333. if ANCHOR == false then
  334. NEWPART.Anchored = false
  335. end
  336. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  337. NEWPART.Name = NAME
  338. NEWPART.Size = SIZE
  339. NEWPART.Position = Torso.Position
  340. NEWPART.Material = MATERIAL
  341. NEWPART:BreakJoints()
  342. NEWPART.Parent = PARENT
  343. return NEWPART
  344. end
  345.  
  346. local function weldBetween(a, b)
  347. local weldd = Instance.new("ManualWeld")
  348. weldd.Part0 = a
  349. weldd.Part1 = b
  350. weldd.C0 = CFrame.new()
  351. weldd.C1 = b.CFrame:inverse() * a.CFrame
  352. weldd.Parent = a
  353. return weldd
  354. end
  355.  
  356.  
  357. function QuaternionFromCFrame(cf)
  358. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  359. local trace = m00 + m11 + m22
  360. if trace > 0 then
  361. local s = math.sqrt(1 + trace)
  362. local recip = 0.5 / s
  363. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  364. else
  365. local i = 0
  366. if m11 > m00 then
  367. i = 1
  368. end
  369. if m22 > (i == 0 and m00 or m11) then
  370. i = 2
  371. end
  372. if i == 0 then
  373. local s = math.sqrt(m00 - m11 - m22 + 1)
  374. local recip = 0.5 / s
  375. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  376. elseif i == 1 then
  377. local s = math.sqrt(m11 - m22 - m00 + 1)
  378. local recip = 0.5 / s
  379. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  380. elseif i == 2 then
  381. local s = math.sqrt(m22 - m00 - m11 + 1)
  382. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  383. end
  384. end
  385. end
  386.  
  387. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  388. local xs, ys, zs = x + x, y + y, z + z
  389. local wx, wy, wz = w * xs, w * ys, w * zs
  390. local xx = x * xs
  391. local xy = x * ys
  392. local xz = x * zs
  393. local yy = y * ys
  394. local yz = y * zs
  395. local zz = z * zs
  396. 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))
  397. end
  398.  
  399. function QuaternionSlerp(a, b, t)
  400. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  401. local startInterp, finishInterp;
  402. if cosTheta >= 0.0001 then
  403. if (1 - cosTheta) > 0.0001 then
  404. local theta = ACOS(cosTheta)
  405. local invSinTheta = 1 / SIN(theta)
  406. startInterp = SIN((1 - t) * theta) * invSinTheta
  407. finishInterp = SIN(t * theta) * invSinTheta
  408. else
  409. startInterp = 1 - t
  410. finishInterp = t
  411. end
  412. else
  413. if (1 + cosTheta) > 0.0001 then
  414. local theta = ACOS(-cosTheta)
  415. local invSinTheta = 1 / SIN(theta)
  416. startInterp = SIN((t - 1) * theta) * invSinTheta
  417. finishInterp = SIN(t * theta) * invSinTheta
  418. else
  419. startInterp = t - 1
  420. finishInterp = t
  421. end
  422. end
  423. 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
  424. end
  425.  
  426. function Clerp(a, b, t)
  427. local qa = {QuaternionFromCFrame(a)}
  428. local qb = {QuaternionFromCFrame(b)}
  429. local ax, ay, az = a.x, a.y, a.z
  430. local bx, by, bz = b.x, b.y, b.z
  431. local _t = 1 - t
  432. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  433. end
  434.  
  435. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  436. local frame = IT("Frame")
  437. frame.BackgroundTransparency = TRANSPARENCY
  438. frame.BorderSizePixel = BORDERSIZEPIXEL
  439. frame.Position = POSITION
  440. frame.Size = SIZE
  441. frame.BackgroundColor3 = COLOR
  442. frame.BorderColor3 = BORDERCOLOR
  443. frame.Name = NAME
  444. frame.Parent = PARENT
  445. return frame
  446. end
  447.  
  448. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  449. local label = IT("TextLabel")
  450. label.BackgroundTransparency = 1
  451. label.Size = UD2(1, 0, 1, 0)
  452. label.Position = UD2(0, 0, 0, 0)
  453. label.TextColor3 = TEXTCOLOR
  454. label.TextStrokeTransparency = STROKETRANSPARENCY
  455. label.TextTransparency = TRANSPARENCY
  456. label.FontSize = TEXTFONTSIZE
  457. label.Font = TEXTFONT
  458. label.BorderSizePixel = BORDERSIZEPIXEL
  459. label.TextScaled = false
  460. label.Text = TEXT
  461. label.Name = NAME
  462. label.Parent = PARENT
  463. return label
  464. end
  465.  
  466. function NoOutlines(PART)
  467. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  468. end
  469.  
  470. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  471. local NEWWELD = IT(TYPE)
  472. NEWWELD.Part0 = PART0
  473. NEWWELD.Part1 = PART1
  474. NEWWELD.C0 = C0
  475. NEWWELD.C1 = C1
  476. NEWWELD.Parent = PARENT
  477. return NEWWELD
  478. end
  479.  
  480. local S = IT("Sound")
  481. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  482. local NEWSOUND = nil
  483. coroutine.resume(coroutine.create(function()
  484. NEWSOUND = S:Clone()
  485. NEWSOUND.Parent = PARENT
  486. NEWSOUND.Volume = VOLUME
  487. NEWSOUND.Pitch = PITCH
  488. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  489. NEWSOUND:play()
  490. if DOESLOOP == true then
  491. NEWSOUND.Looped = true
  492. else
  493. repeat wait(1) until NEWSOUND.Playing == false
  494. NEWSOUND:remove()
  495. end
  496. end))
  497. return NEWSOUND
  498. end
  499.  
  500. local EyeSizes={
  501. NumberSequenceKeypoint.new(0,2,0),
  502. NumberSequenceKeypoint.new(1,0,0)
  503. }
  504. local EyeTrans={
  505. NumberSequenceKeypoint.new(0,0.5,0),
  506. NumberSequenceKeypoint.new(1,1,0)
  507. }
  508. local PE=Instance.new("ParticleEmitter",nil)
  509. PE.LightEmission=.8
  510. PE.Color = ColorSequence.new(BRICKC("Crimson").Color,BRICKC("Neon").Color)
  511. PE.Size=NumberSequence.new(EyeSizes)
  512. PE.Transparency=NumberSequence.new(EyeTrans)
  513. PE.Lifetime=NumberRange.new(0.35,1)
  514. PE.Rotation=NumberRange.new(0,360)
  515. PE.Rate=100
  516. PE.VelocitySpread = 10000
  517. PE.Acceleration = Vector3.new(0,85,0)
  518. PE.Drag = 5
  519. PE.Speed = NumberRange.new(0.1,5)
  520. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  521. PE.ZOffset = 0.5
  522. PE.Name = "PE"
  523. PE.Enabled = false
  524.  
  525. function Fire(art)
  526. local PARTICLES = PE:Clone()
  527. PARTICLES.Parent = art
  528. PARTICLES.Enabled = true
  529. return PARTICLES
  530. end
  531.  
  532. function CFrameFromTopBack(at, top, back)
  533. local right = top:Cross(back)
  534. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  535. end
  536.  
  537. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  538. function WACKYEFFECT(Table)
  539. local TYPE = (Table.EffectType or "Sphere")
  540. local SIZE = (Table.Size or VT(1,1,1))
  541. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  542. local TRANSPARENCY = (Table.Transparency or 0)
  543. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  544. local CFRAME = (Table.CFrame or Torso.CFrame)
  545. local MOVEDIRECTION = (Table.MoveToPos or nil)
  546. local ROTATION1 = (Table.RotationX or 0)
  547. local ROTATION2 = (Table.RotationY or 0)
  548. local ROTATION3 = (Table.RotationZ or 0)
  549. local MATERIAL = (Table.Material or "Neon")
  550. local COLOR = (Table.Color or C3(1,1,1))
  551. local TIME = (Table.Time or 45)
  552. local SOUNDID = (Table.SoundID or nil)
  553. local SOUNDPITCH = (Table.SoundPitch or nil)
  554. local SOUNDVOLUME = (Table.SoundVolume or nil)
  555. coroutine.resume(coroutine.create(function()
  556. local PLAYSSOUND = false
  557. local SOUND = nil
  558. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Crimson"), "Effect", VT(1,1,1), true)
  559. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  560. PLAYSSOUND = true
  561. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  562. end
  563. EFFECT.Color = COLOR
  564. local MSH = nil
  565. if TYPE == "Sphere" then
  566. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  567. elseif TYPE == "Block" or TYPE == "Box" then
  568. MSH = IT("BlockMesh",EFFECT)
  569. MSH.Scale = SIZE
  570. elseif TYPE == "Wave" then
  571. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  572. elseif TYPE == "Ring" then
  573. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  574. elseif TYPE == "Slash" then
  575. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  576. elseif TYPE == "Round Slash" then
  577. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  578. elseif TYPE == "Swirl" then
  579. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  580. elseif TYPE == "Skull" then
  581. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  582. elseif TYPE == "Crystal" then
  583. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  584. end
  585. if MSH ~= nil then
  586. local MOVESPEED = nil
  587. if MOVEDIRECTION ~= nil then
  588. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  589. end
  590. local GROWTH = SIZE - ENDSIZE
  591. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  592. if TYPE == "Block" then
  593. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  594. else
  595. EFFECT.CFrame = CFRAME
  596. end
  597. for LOOP = 1, TIME+1 do
  598. Swait()
  599. MSH.Scale = MSH.Scale - GROWTH/TIME
  600. if TYPE == "Wave" then
  601. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  602. end
  603. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  604. if TYPE == "Block" then
  605. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  606. else
  607. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  608. end
  609. if MOVEDIRECTION ~= nil then
  610. local ORI = EFFECT.Orientation
  611. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  612. EFFECT.Orientation = ORI
  613. end
  614. end
  615. if PLAYSSOUND == false then
  616. EFFECT:remove()
  617. else
  618. repeat wait(1) until SOUND.Playing == false
  619. EFFECT:remove()
  620. end
  621. else
  622. if PLAYSSOUND == false then
  623. EFFECT:remove()
  624. else
  625. repeat Swait() until SOUND.Playing == false
  626. EFFECT:remove()
  627. end
  628. end
  629. end))
  630. end
  631.  
  632. function MakeForm(PART,TYPE)
  633. if TYPE == "Cyl" then
  634. local MSH = IT("CylinderMesh",PART)
  635. elseif TYPE == "Ball" then
  636. local MSH = IT("SpecialMesh",PART)
  637. MSH.MeshType = "Sphere"
  638. elseif TYPE == "Wedge" then
  639. local MSH = IT("SpecialMesh",PART)
  640. MSH.MeshType = "Wedge"
  641. end
  642. end
  643.  
  644. Debris = game:GetService("Debris")
  645.  
  646. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  647. local DIRECTION = CF(StartPos,EndPos).lookVector
  648. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  649. end
  650.  
  651. local HATWELD = nil
  652. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  653. PLAYMAINANIM = false
  654. if WhichPose == "Cast1" then
  655. for i=0, Time, 0.1 / Animation_Speed do
  656. Swait()
  657. if Magic == true then
  658. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  659. end
  660. if Gyro ~= nil and Gyro ~= false then
  661. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  662. end
  663. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  664. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  665. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  666. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  667. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  668. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  669. end
  670. elseif WhichPose == "Cast2" then
  671. for i=0, Time, 0.1 / Animation_Speed do
  672. Swait()
  673. if Magic == true then
  674. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  675. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  676. end
  677. if Gyro ~= nil and Gyro ~= false then
  678. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  679. end
  680. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  681. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  682. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  683. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  684. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  685. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  686. end
  687. elseif WhichPose == "RightArmUp" then
  688. for i=0, Time, 0.1 / Animation_Speed do
  689. Swait()
  690. if Magic == true then
  691. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  692. end
  693. if Gyro ~= nil and Gyro ~= false then
  694. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  695. end
  696. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  697. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  698. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  699. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  700. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  701. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  702. end
  703. elseif WhichPose == "Taunt" then
  704. for i=0, Time, 0.1 / Animation_Speed do
  705. Swait()
  706. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  707. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  708. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  709. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  710. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  711. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  712. end
  713. HATWELD.Part0 = RightArm
  714. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  715. CreateSound(221057812,Torso,10,1,false)
  716. for i=0, Time*2, 0.1 / Animation_Speed do
  717. Swait()
  718. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  719. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  720. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  721. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  722. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  723. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  724. end
  725. for i=0, Time, 0.1 / Animation_Speed do
  726. Swait()
  727. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  728. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  729. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  730. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  731. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  732. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  733. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  734. end
  735. HATWELD.Part0 = Head
  736. HATWELD.C0 = CF(0,0.35,0)
  737. elseif WhichPose == "Prepare key" then
  738. for i=0, Time, 0.1 / Animation_Speed do
  739. Swait()
  740. if Gyro ~= nil and Gyro ~= false then
  741. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  742. end
  743. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  744. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  745. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  746. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  747. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  748. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  749. end
  750. elseif WhichPose == "Turn key" then
  751. for i=0, Time, 0.1 / Animation_Speed do
  752. Swait()
  753. if Gyro ~= nil and Gyro ~= false then
  754. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  755. end
  756. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  757. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  758. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  759. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  760. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  761. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  762. end
  763. end
  764. PLAYMAINANIM = true
  765. end
  766.  
  767. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  768. function Lightning(Table)
  769. local Color = Table.Color or C3(1,1,1)
  770. local StartPos = Table.Start or Torso.Position
  771. local EndPos = Table.End or Mouse.Hit.p
  772. local SegmentLength = Table.SegmentL or 2
  773. local Thickness = Table.Thickness or 0.1
  774. local Dissapear = Table.DoesFade or false
  775. local Parent = Table.Ignore or Character
  776. local MaxDist = Table.MaxDist or 400
  777. local Branches = Table.Branches or false
  778. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  779. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  780. local LIGHTNINGMODEL = IT("Model",Effects)
  781. LIGHTNINGMODEL.Name = "Lightning"
  782. local LastBolt = nil
  783. for E = 1, DISTANCE do
  784. local ExtraSize = (DISTANCE-E)/15
  785. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  786. PART.Color = Color
  787. MakeForm(PART,"Cyl")
  788. if LastBolt == nil then
  789. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  790. else
  791. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  792. end
  793. LastBolt = PART
  794. if Branches == true then
  795. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  796. if CHOICE == 1 then
  797. local LASTBRANCH = nil
  798. for i = 1, MRANDOM(2,5) do
  799. local ExtraSize2 = ((DISTANCE-E)/25)/i
  800. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Crimson"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  801. PART.Color = Color
  802. MakeForm(PART,"Cyl")
  803. if LASTBRANCH == nil then
  804. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  805. else
  806. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  807. end
  808. LASTBRANCH = PART
  809. end
  810. end
  811. end
  812. end
  813. if Dissapear == true then
  814. coroutine.resume(coroutine.create(function()
  815. for i = 1, 10 do
  816. Swait()
  817. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  818. if c.ClassName == "Part" then
  819. c.Transparency = i/10
  820. end
  821. end
  822. end
  823. LIGHTNINGMODEL:remove()
  824. end))
  825. elseif Dissapear == false then
  826. Debris:AddItem(LIGHTNINGMODEL,0.1)
  827. end
  828. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  829. end
  830.  
  831. --//=================================\\
  832. --|| WEAPON CREATION
  833. --\\=================================//
  834.  
  835. for i = 1, 15 do
  836. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  837. FACE.Color = C3(0,0,0)
  838. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  839. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  840. end
  841. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  842. MakeForm(HAT1,"Cyl")
  843. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  844. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  845. BELT.Color = C3(15/255,15/255,15/255)
  846. MakeForm(BELT,"Cyl")
  847. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  848. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  849. MakeForm(HAT2,"Cyl")
  850. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  851. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  852. BELT.Color = C3(15/255,15/255,15/255)
  853. MakeForm(BELT,"Cyl")
  854. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  855. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  856. MakeForm(GEM,"Ball")
  857. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  858. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  859. MakeForm(GEM,"Ball")
  860. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  861. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  862. MakeForm(GEM,"Ball")
  863. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  864. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  865. MakeForm(GEM,"Ball")
  866. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  867. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  868. BELT.Color = C3(15/255,15/255,15/255)
  869. MakeForm(BELT,"Cyl")
  870. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  871. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  872. BELT.Color = C3(15/255,15/255,15/255)
  873. MakeForm(BELT,"Cyl")
  874. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  875. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  876. BELT.Color = C3(15/255,15/255,15/255)
  877. MakeForm(BELT,"Cyl")
  878. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  879. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  880. BELT.Color = C3(15/255,15/255,15/255)
  881. MakeForm(BELT,"Cyl")
  882. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  883. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  884. MakeForm(BELT,"Ball")
  885. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  886. Humanoid.DisplayDistanceType = "None"
  887. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  888. MakeForm(EYE,"Ball")
  889. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  890. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.6,0.1,1)/2,false)
  891. MakeForm(EYE,"Ball")
  892. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  893. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  894. MakeForm(EYE,"Ball")
  895. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  896. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "FaceGradient", VT(0.1,1,1)/2,false)
  897. MakeForm(EYE,"Ball")
  898. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  899.  
  900. local top = Instance.new("Shirt")
  901. top.ShirtTemplate = "rbxassetid://676428254"
  902. top.Parent = Character
  903. top.Name = "Cloth"
  904. local bottom = Instance.new("Pants")
  905. bottom.PantsTemplate = "rbxassetid://676428351"
  906. bottom.Parent = Character
  907. bottom.Name = "Cloth"
  908. for _, c in pairs(Character:GetChildren()) do
  909. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  910. c.Material = "Neon"
  911. if c:FindFirstChildOfClass("ParticleEmitter") then
  912. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  913. end
  914. c.Color = C3(1,1,1)
  915. if c == Head then
  916. if c:FindFirstChild("face") then
  917. c.face:remove()
  918. end
  919. end
  920. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  921. c:remove()
  922. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  923. c:remove()
  924. end
  925. end
  926. local BODY = {}
  927. for _, c in pairs(Character:GetDescendants()) do
  928. if c:IsA("BasePart") and c.Name ~= "Handle" then
  929. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  930. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  931. end
  932. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  933. elseif c:IsA("JointInstance") then
  934. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  935. end
  936. end
  937. for e = 1, #BODY do
  938. if BODY[e] ~= nil then
  939. local STUFF = BODY[e]
  940. local PART = STUFF[1]
  941. local PARENT = STUFF[2]
  942. local MATERIAL = STUFF[3]
  943. local COLOR = STUFF[4]
  944. local TRANSPARENCY = STUFF[5]
  945. if PART.ClassName == "Part" and PART ~= RootPart then
  946. PART.Material = MATERIAL
  947. PART.Color = COLOR
  948. PART.Transparency = TRANSPARENCY
  949. end
  950. PART.AncestryChanged:Connect(function()
  951. PART.Parent = PARENT
  952. end)
  953. end
  954. end
  955. function refit()
  956. Character.Parent = workspace
  957. for e = 1, #BODY do
  958. if BODY[e] ~= nil then
  959. local STUFF = BODY[e]
  960. local PART = STUFF[1]
  961. local PARENT = STUFF[2]
  962. local MATERIAL = STUFF[3]
  963. local COLOR = STUFF[4]
  964. local TRANSPARENCY = STUFF[5]
  965. if PART.ClassName == "Part" and PART ~= RootPart then
  966. PART.Material = MATERIAL
  967. PART.Color = COLOR
  968. PART.Transparency = TRANSPARENCY
  969. end
  970. if PART.Parent ~= PARENT then
  971. Humanoid:remove()
  972. PART.Parent = PARENT
  973. Humanoid = IT("Humanoid",Character)
  974. end
  975. end
  976. end
  977. end
  978. local SKILLTEXTCOLOR = BRICKC"Really red".Color
  979. local SKILLFONT = "Bodoni"
  980. local SKILLTEXTSIZE = 7
  981.  
  982. Humanoid.Died:connect(function()
  983. refit()
  984. end)
  985. -------------------------------------------------------
  986. --Start Important Functions--
  987. -------------------------------------------------------
  988. function swait(num)
  989. if num == 0 or num == nil then
  990. game:service("RunService").Stepped:wait(0)
  991. else
  992. for i = 0, num do
  993. game:service("RunService").Stepped:wait(0)
  994. end
  995. end
  996. end
  997. function thread(f)
  998. coroutine.resume(coroutine.create(f))
  999. end
  1000. function clerp(a, b, t)
  1001. local qa = {
  1002. QuaternionFromCFrame(a)
  1003. }
  1004. local qb = {
  1005. QuaternionFromCFrame(b)
  1006. }
  1007. local ax, ay, az = a.x, a.y, a.z
  1008. local bx, by, bz = b.x, b.y, b.z
  1009. local _t = 1 - t
  1010. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1011. end
  1012. function QuaternionFromCFrame(cf)
  1013. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1014. local trace = m00 + m11 + m22
  1015. if trace > 0 then
  1016. local s = math.sqrt(1 + trace)
  1017. local recip = 0.5 / s
  1018. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1019. else
  1020. local i = 0
  1021. if m00 < m11 then
  1022. i = 1
  1023. end
  1024. if m22 > (i == 0 and m00 or m11) then
  1025. i = 2
  1026. end
  1027. if i == 0 then
  1028. local s = math.sqrt(m00 - m11 - m22 + 1)
  1029. local recip = 0.5 / s
  1030. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1031. elseif i == 1 then
  1032. local s = math.sqrt(m11 - m22 - m00 + 1)
  1033. local recip = 0.5 / s
  1034. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1035. elseif i == 2 then
  1036. local s = math.sqrt(m22 - m00 - m11 + 1)
  1037. local recip = 0.5 / s
  1038. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1039. end
  1040. end
  1041. end
  1042. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1043. local xs, ys, zs = x + x, y + y, z + z
  1044. local wx, wy, wz = w * xs, w * ys, w * zs
  1045. local xx = x * xs
  1046. local xy = x * ys
  1047. local xz = x * zs
  1048. local yy = y * ys
  1049. local yz = y * zs
  1050. local zz = z * zs
  1051. 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))
  1052. end
  1053. function QuaternionSlerp(a, b, t)
  1054. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1055. local startInterp, finishInterp
  1056. if cosTheta >= 1.0E-4 then
  1057. if 1 - cosTheta > 1.0E-4 then
  1058. local theta = math.acos(cosTheta)
  1059. local invSinTheta = 1 / Sin(theta)
  1060. startInterp = Sin((1 - t) * theta) * invSinTheta
  1061. finishInterp = Sin(t * theta) * invSinTheta
  1062. else
  1063. startInterp = 1 - t
  1064. finishInterp = t
  1065. end
  1066. elseif 1 + cosTheta > 1.0E-4 then
  1067. local theta = math.acos(-cosTheta)
  1068. local invSinTheta = 1 / Sin(theta)
  1069. startInterp = Sin((t - 1) * theta) * invSinTheta
  1070. finishInterp = Sin(t * theta) * invSinTheta
  1071. else
  1072. startInterp = t - 1
  1073. finishInterp = t
  1074. end
  1075. 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
  1076. end
  1077. function rayCast(Position, Direction, Range, Ignore)
  1078. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1079. end
  1080. local RbxUtility = LoadLibrary("RbxUtility")
  1081. local Create = RbxUtility.Create
  1082.  
  1083. -------------------------------------------------------
  1084. --Start Damage Function--
  1085. -------------------------------------------------------
  1086. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1087. if hit.Parent == nil then
  1088. return
  1089. end
  1090. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1091. for _, v in pairs(hit.Parent:children()) do
  1092. if v:IsA("Humanoid") then
  1093. h = v
  1094. end
  1095. end
  1096. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1097.  
  1098. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1099. end
  1100.  
  1101. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1102. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1103. if hit.Parent.DebounceHit.Value == true then
  1104. return
  1105. end
  1106. end
  1107. if insta == true then
  1108. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1109. end
  1110. local c = Create("ObjectValue"){
  1111. Name = "creator",
  1112. Value = game:service("Players").LocalPlayer,
  1113. Parent = h,
  1114. }
  1115. game:GetService("Debris"):AddItem(c, .5)
  1116. if HitSound ~= nil and HitPitch ~= nil then
  1117. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1118. end
  1119. local Damage = math.random(minim, maxim)
  1120. local blocked = false
  1121. local block = hit.Parent:findFirstChild("Block")
  1122. if block ~= nil then
  1123. if block.className == "IntValue" then
  1124. if block.Value > 0 then
  1125. blocked = true
  1126. block.Value = block.Value - 1
  1127. print(block.Value)
  1128. end
  1129. end
  1130. end
  1131. if blocked == false then
  1132. h.Health = h.Health - Damage
  1133. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1134. else
  1135. h.Health = h.Health - (Damage / 2)
  1136. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1137. end
  1138. if Type == "Knockdown" then
  1139. local hum = hit.Parent.Humanoid
  1140. hum.PlatformStand = true
  1141. coroutine.resume(coroutine.create(function(HHumanoid)
  1142. swait(1)
  1143. HHumanoid.PlatformStand = false
  1144. end), hum)
  1145. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1146. local bodvol = Create("BodyVelocity"){
  1147. velocity = angle * knockback,
  1148. P = 5000,
  1149. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1150. Parent = hit,
  1151. }
  1152. local rl = Create("BodyAngularVelocity"){
  1153. P = 3000,
  1154. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1155. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1156. Parent = hit,
  1157. }
  1158. game:GetService("Debris"):AddItem(bodvol, .5)
  1159. game:GetService("Debris"):AddItem(rl, .5)
  1160. elseif Type == "Normal" then
  1161. local vp = Create("BodyVelocity"){
  1162. P = 500,
  1163. maxForce = Vector3.new(math.huge, 0, math.huge),
  1164. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1165. }
  1166. if knockback > 0 then
  1167. vp.Parent = hit.Parent.Torso
  1168. end
  1169. game:GetService("Debris"):AddItem(vp, .5)
  1170. elseif Type == "Up" then
  1171. local bodyVelocity = Create("BodyVelocity"){
  1172. velocity = Vector3.new(0, 20, 0),
  1173. P = 5000,
  1174. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1175. Parent = hit,
  1176. }
  1177. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1178. elseif Type == "DarkUp" then
  1179. coroutine.resume(coroutine.create(function()
  1180. for i = 0, 1, 0.1 do
  1181. swait()
  1182. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1183. end
  1184. end))
  1185. local bodyVelocity = Create("BodyVelocity"){
  1186. velocity = Vector3.new(0, 20, 0),
  1187. P = 5000,
  1188. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1189. Parent = hit,
  1190. }
  1191. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1192. elseif Type == "Snare" then
  1193. local bp = Create("BodyPosition"){
  1194. P = 2000,
  1195. D = 100,
  1196. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1197. position = hit.Parent.Torso.Position,
  1198. Parent = hit.Parent.Torso,
  1199. }
  1200. game:GetService("Debris"):AddItem(bp, 1)
  1201. elseif Type == "Freeze" then
  1202. local BodPos = Create("BodyPosition"){
  1203. P = 50000,
  1204. D = 1000,
  1205. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1206. position = hit.Parent.Torso.Position,
  1207. Parent = hit.Parent.Torso,
  1208. }
  1209. local BodGy = Create("BodyGyro") {
  1210. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1211. P = 20e+003,
  1212. Parent = hit.Parent.Torso,
  1213. cframe = hit.Parent.Torso.CFrame,
  1214. }
  1215. hit.Parent.Torso.Anchored = true
  1216. coroutine.resume(coroutine.create(function(Part)
  1217. swait(1.5)
  1218. Part.Anchored = false
  1219. end), hit.Parent.Torso)
  1220. game:GetService("Debris"):AddItem(BodPos, 3)
  1221. game:GetService("Debris"):AddItem(BodGy, 3)
  1222. end
  1223. local debounce = Create("BoolValue"){
  1224. Name = "DebounceHit",
  1225. Parent = hit.Parent,
  1226. Value = true,
  1227. }
  1228. game:GetService("Debris"):AddItem(debounce, Delay)
  1229. c = Create("ObjectValue"){
  1230. Name = "creator",
  1231. Value = Player,
  1232. Parent = h,
  1233. }
  1234. game:GetService("Debris"):AddItem(c, .5)
  1235. end
  1236. end
  1237. -------------------------------------------------------
  1238. --End Damage Function--
  1239. -------------------------------------------------------
  1240.  
  1241. -------------------------------------------------------
  1242. --Start Damage Function Customization--
  1243. -------------------------------------------------------
  1244. function ShowDamage(Pos, Text, Time, Color)
  1245. local Rate = (1 / 30)
  1246. local Pos = (Pos or Vector3.new(0, 0, 0))
  1247. local Text = (Text or "")
  1248. local Time = (Time or 2)
  1249. local Color = (Color or Color3.new(1, 0, 1))
  1250. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1251. EffectPart.Anchored = true
  1252. local BillboardGui = Create("BillboardGui"){
  1253. Size = UDim2.new(3, 0, 3, 0),
  1254. Adornee = EffectPart,
  1255. Parent = EffectPart,
  1256. }
  1257. local TextLabel = Create("TextLabel"){
  1258. BackgroundTransparency = 1,
  1259. Size = UDim2.new(1, 0, 1, 0),
  1260. Text = Text,
  1261. Font = "Bodoni",
  1262. TextColor3 = Color,
  1263. TextScaled = true,
  1264. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  1265. Parent = BillboardGui,
  1266. }
  1267. game.Debris:AddItem(EffectPart, (Time))
  1268. EffectPart.Parent = game:GetService("Workspace")
  1269. delay(0, function()
  1270. local Frames = (Time / Rate)
  1271. for Frame = 1, Frames do
  1272. wait(Rate)
  1273. local Percent = (Frame / Frames)
  1274. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1275. TextLabel.TextTransparency = Percent
  1276. end
  1277. if EffectPart and EffectPart.Parent then
  1278. EffectPart:Destroy()
  1279. end
  1280. end)
  1281. end
  1282. -------------------------------------------------------
  1283. --End Damage Function Customization--
  1284. -------------------------------------------------------
  1285.  
  1286. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1287. for _, c in pairs(workspace:children()) do
  1288. local hum = c:findFirstChild("Humanoid")
  1289. if hum ~= nil then
  1290. local head = c:findFirstChild("Head")
  1291. if head ~= nil then
  1292. local targ = head.Position - Part.Position
  1293. local mag = targ.magnitude
  1294. if magni >= mag and c.Name ~= plr.Name then
  1295. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end
  1301.  
  1302.  
  1303. CFuncs = {
  1304. Part = {
  1305. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1306. local Part = Create("Part")({
  1307. Parent = Parent,
  1308. Reflectance = Reflectance,
  1309. Transparency = Transparency,
  1310. CanCollide = false,
  1311. Locked = true,
  1312. BrickColor = BrickColor.new(tostring(BColor)),
  1313. Name = Name,
  1314. Size = Size,
  1315. Material = Material
  1316. })
  1317. RemoveOutlines(Part)
  1318. return Part
  1319. end
  1320. },
  1321. Mesh = {
  1322. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1323. local Msh = Create(Mesh)({
  1324. Parent = Part,
  1325. Offset = OffSet,
  1326. Scale = Scale
  1327. })
  1328. if Mesh == "SpecialMesh" then
  1329. Msh.MeshType = MeshType
  1330. Msh.MeshId = MeshId
  1331. end
  1332. return Msh
  1333. end
  1334. },
  1335. Mesh = {
  1336. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1337. local Msh = Create(Mesh)({
  1338. Parent = Part,
  1339. Offset = OffSet,
  1340. Scale = Scale
  1341. })
  1342. if Mesh == "SpecialMesh" then
  1343. Msh.MeshType = MeshType
  1344. Msh.MeshId = MeshId
  1345. end
  1346. return Msh
  1347. end
  1348. },
  1349. Weld = {
  1350. Create = function(Parent, Part0, Part1, C0, C1)
  1351. local Weld = Create("Weld")({
  1352. Parent = Parent,
  1353. Part0 = Part0,
  1354. Part1 = Part1,
  1355. C0 = C0,
  1356. C1 = C1
  1357. })
  1358. return Weld
  1359. end
  1360. },
  1361. Sound = {
  1362. Create = function(id, par, vol, pit)
  1363. coroutine.resume(coroutine.create(function()
  1364. local S = Create("Sound")({
  1365. Volume = vol,
  1366. Pitch = pit or 1,
  1367. SoundId = id,
  1368. Parent = par or workspace
  1369. })
  1370. wait()
  1371. S:play()
  1372. game:GetService("Debris"):AddItem(S, 6)
  1373. end))
  1374. end
  1375. },
  1376. ParticleEmitter = {
  1377. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1378. local fp = Create("ParticleEmitter")({
  1379. Parent = Parent,
  1380. Color = ColorSequence.new(Color1, Color2),
  1381. LightEmission = LightEmission,
  1382. Size = Size,
  1383. Texture = Texture,
  1384. Transparency = Transparency,
  1385. ZOffset = ZOffset,
  1386. Acceleration = Accel,
  1387. Drag = Drag,
  1388. LockedToPart = LockedToPart,
  1389. VelocityInheritance = VelocityInheritance,
  1390. EmissionDirection = EmissionDirection,
  1391. Enabled = Enabled,
  1392. Lifetime = LifeTime,
  1393. Rate = Rate,
  1394. Rotation = Rotation,
  1395. RotSpeed = RotSpeed,
  1396. Speed = Speed,
  1397. VelocitySpread = VelocitySpread
  1398. })
  1399. return fp
  1400. end
  1401. }
  1402. }
  1403. function RemoveOutlines(part)
  1404. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1405. end
  1406. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1407. local Part = Create("Part")({
  1408. formFactor = FormFactor,
  1409. Parent = Parent,
  1410. Reflectance = Reflectance,
  1411. Transparency = Transparency,
  1412. CanCollide = false,
  1413. Locked = true,
  1414. BrickColor = BrickColor.new(tostring(BColor)),
  1415. Name = Name,
  1416. Size = Size,
  1417. Material = Material
  1418. })
  1419. RemoveOutlines(Part)
  1420. return Part
  1421. end
  1422. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1423. local Msh = Create(Mesh)({
  1424. Parent = Part,
  1425. Offset = OffSet,
  1426. Scale = Scale
  1427. })
  1428. if Mesh == "SpecialMesh" then
  1429. Msh.MeshType = MeshType
  1430. Msh.MeshId = MeshId
  1431. end
  1432. return Msh
  1433. end
  1434. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1435. local Weld = Create("Weld")({
  1436. Parent = Parent,
  1437. Part0 = Part0,
  1438. Part1 = Part1,
  1439. C0 = C0,
  1440. C1 = C1
  1441. })
  1442. return Weld
  1443. end
  1444.  
  1445.  
  1446. -------------------------------------------------------
  1447. --Start Effect Function--
  1448. -------------------------------------------------------
  1449. EffectModel = Instance.new("Model", char)
  1450. Effects = {
  1451. Block = {
  1452. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1453. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1454. prt.Anchored = true
  1455. prt.CFrame = cframe
  1456. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1457. game:GetService("Debris"):AddItem(prt, 10)
  1458. if Type == 1 or Type == nil then
  1459. table.insert(Effects, {
  1460. prt,
  1461. "Block1",
  1462. delay,
  1463. x3,
  1464. y3,
  1465. z3,
  1466. msh
  1467. })
  1468. elseif Type == 2 then
  1469. table.insert(Effects, {
  1470. prt,
  1471. "Block2",
  1472. delay,
  1473. x3,
  1474. y3,
  1475. z3,
  1476. msh
  1477. })
  1478. else
  1479. table.insert(Effects, {
  1480. prt,
  1481. "Block3",
  1482. delay,
  1483. x3,
  1484. y3,
  1485. z3,
  1486. msh
  1487. })
  1488. end
  1489. end
  1490. },
  1491. Sphere = {
  1492. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1493. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1494. prt.Anchored = true
  1495. prt.CFrame = cframe
  1496. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1497. game:GetService("Debris"):AddItem(prt, 10)
  1498. table.insert(Effects, {
  1499. prt,
  1500. "Cylinder",
  1501. delay,
  1502. x3,
  1503. y3,
  1504. z3,
  1505. msh
  1506. })
  1507. end
  1508. },
  1509. Cylinder = {
  1510. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1511. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1512. prt.Anchored = true
  1513. prt.CFrame = cframe
  1514. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1515. game:GetService("Debris"):AddItem(prt, 10)
  1516. table.insert(Effects, {
  1517. prt,
  1518. "Cylinder",
  1519. delay,
  1520. x3,
  1521. y3,
  1522. z3,
  1523. msh
  1524. })
  1525. end
  1526. },
  1527. Wave = {
  1528. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1529. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1530. prt.Anchored = true
  1531. prt.CFrame = cframe
  1532. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1533. game:GetService("Debris"):AddItem(prt, 10)
  1534. table.insert(Effects, {
  1535. prt,
  1536. "Cylinder",
  1537. delay,
  1538. x3 / 60,
  1539. y3 / 60,
  1540. z3 / 60,
  1541. msh
  1542. })
  1543. end
  1544. },
  1545. Ring = {
  1546. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1547. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1548. prt.Anchored = true
  1549. prt.CFrame = cframe
  1550. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1551. game:GetService("Debris"):AddItem(prt, 10)
  1552. table.insert(Effects, {
  1553. prt,
  1554. "Cylinder",
  1555. delay,
  1556. x3,
  1557. y3,
  1558. z3,
  1559. msh
  1560. })
  1561. end
  1562. },
  1563. Break = {
  1564. Create = function(brickcolor, cframe, x1, y1, z1)
  1565. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1566. prt.Anchored = true
  1567. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1568. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1569. local num = math.random(10, 50) / 1000
  1570. game:GetService("Debris"):AddItem(prt, 10)
  1571. table.insert(Effects, {
  1572. prt,
  1573. "Shatter",
  1574. num,
  1575. prt.CFrame,
  1576. math.random() - math.random(),
  1577. 0,
  1578. math.random(50, 100) / 100
  1579. })
  1580. end
  1581. },
  1582. Spiral = {
  1583. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1584. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1585. prt.Anchored = true
  1586. prt.CFrame = cframe
  1587. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1588. game:GetService("Debris"):AddItem(prt, 10)
  1589. table.insert(Effects, {
  1590. prt,
  1591. "Cylinder",
  1592. delay,
  1593. x3,
  1594. y3,
  1595. z3,
  1596. msh
  1597. })
  1598. end
  1599. },
  1600. Push = {
  1601. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1602. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1603. prt.Anchored = true
  1604. prt.CFrame = cframe
  1605. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1606. game:GetService("Debris"):AddItem(prt, 10)
  1607. table.insert(Effects, {
  1608. prt,
  1609. "Cylinder",
  1610. delay,
  1611. x3,
  1612. y3,
  1613. z3,
  1614. msh
  1615. })
  1616. end
  1617. }
  1618. }
  1619. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1620. local fp = IT("Part")
  1621. fp.formFactor = formfactor
  1622. fp.Parent = parent
  1623. fp.Reflectance = reflectance
  1624. fp.Transparency = transparency
  1625. fp.CanCollide = false
  1626. fp.Locked = true
  1627. fp.BrickColor = brickcolor
  1628. fp.Name = name
  1629. fp.Size = size
  1630. fp.Position = tors.Position
  1631. RemoveOutlines(fp)
  1632. fp.Material = "SmoothPlastic"
  1633. fp:BreakJoints()
  1634. return fp
  1635. end
  1636.  
  1637. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1638. local mesh = IT(Mesh)
  1639. mesh.Parent = part
  1640. if Mesh == "SpecialMesh" then
  1641. mesh.MeshType = meshtype
  1642. if meshid ~= "nil" then
  1643. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1644. end
  1645. end
  1646. mesh.Offset = offset
  1647. mesh.Scale = scale
  1648. return mesh
  1649. end
  1650.  
  1651. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1652. local type = type
  1653. local rng = Instance.new("Part", char)
  1654. rng.Anchored = true
  1655. rng.BrickColor = color
  1656. rng.CanCollide = false
  1657. rng.FormFactor = 3
  1658. rng.Name = "Ring"
  1659. rng.Material = "Neon"
  1660. rng.Size = Vector3.new(1, 1, 1)
  1661. rng.Transparency = 0
  1662. rng.TopSurface = 0
  1663. rng.BottomSurface = 0
  1664. rng.CFrame = pos
  1665. local rngm = Instance.new("SpecialMesh", rng)
  1666. rngm.MeshType = MType
  1667. rngm.Scale = scale
  1668. local scaler2 = 1
  1669. if type == "Add" then
  1670. scaler2 = 1 * value
  1671. elseif type == "Divide" then
  1672. scaler2 = 1 / value
  1673. end
  1674. coroutine.resume(coroutine.create(function()
  1675. for i = 0, 10 / bonuspeed, 0.1 do
  1676. swait()
  1677. if type == "Add" then
  1678. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1679. elseif type == "Divide" then
  1680. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1681. end
  1682. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1683. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1684. end
  1685. rng:Destroy()
  1686. end))
  1687. end
  1688.  
  1689. function Eviscerate(dude)
  1690. if dude.Name ~= char then
  1691. local bgf = IT("BodyGyro", dude.Head)
  1692. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1693. local val = IT("BoolValue", dude)
  1694. val.Name = "IsHit"
  1695. local ds = coroutine.wrap(function()
  1696. dude:WaitForChild("Head"):BreakJoints()
  1697. wait(0.5)
  1698. target = nil
  1699. coroutine.resume(coroutine.create(function()
  1700. for i, v in pairs(dude:GetChildren()) do
  1701. if v:IsA("Accessory") then
  1702. v:Destroy()
  1703. end
  1704. if v:IsA("Humanoid") then
  1705. v:Destroy()
  1706. end
  1707. if v:IsA("CharacterMesh") then
  1708. v:Destroy()
  1709. end
  1710. if v:IsA("Model") then
  1711. v:Destroy()
  1712. end
  1713. if v:IsA("Part") or v:IsA("MeshPart") then
  1714. for x, o in pairs(v:GetChildren()) do
  1715. if o:IsA("Decal") then
  1716. o:Destroy()
  1717. end
  1718. end
  1719. coroutine.resume(coroutine.create(function()
  1720. v.Material = "Neon"
  1721. v.CanCollide = false
  1722. local PartEmmit1 = IT("ParticleEmitter", v)
  1723. PartEmmit1.LightEmission = 1
  1724. PartEmmit1.Texture = "rbxassetid://284205403"
  1725. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1726. PartEmmit1.Rate = 150
  1727. PartEmmit1.Lifetime = NumberRange.new(1)
  1728. PartEmmit1.Size = NumberSequence.new({
  1729. NumberSequenceKeypoint.new(0, 0.75, 0),
  1730. NumberSequenceKeypoint.new(1, 0, 0)
  1731. })
  1732. PartEmmit1.Transparency = NumberSequence.new({
  1733. NumberSequenceKeypoint.new(0, 0, 0),
  1734. NumberSequenceKeypoint.new(1, 1, 0)
  1735. })
  1736. PartEmmit1.Speed = NumberRange.new(0, 0)
  1737. PartEmmit1.VelocitySpread = 30000
  1738. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1739. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1740. local BodPoss = IT("BodyPosition", v)
  1741. BodPoss.P = 3000
  1742. BodPoss.D = 1000
  1743. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1744. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1745. v.Color = maincolor.Color
  1746. coroutine.resume(coroutine.create(function()
  1747. for i = 0, 49 do
  1748. swait(1)
  1749. v.Transparency = v.Transparency + 0.08
  1750. end
  1751. wait(0.5)
  1752. PartEmmit1.Enabled = false
  1753. wait(3)
  1754. v:Destroy()
  1755. dude:Destroy()
  1756. end))
  1757. end))
  1758. end
  1759. end
  1760. end))
  1761. end)
  1762. ds()
  1763. end
  1764. end
  1765.  
  1766. function FindNearestHead(Position, Distance, SinglePlayer)
  1767. if SinglePlayer then
  1768. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1769. end
  1770. local List = {}
  1771. for i, v in pairs(workspace:GetChildren()) do
  1772. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1773. table.insert(List, v)
  1774. end
  1775. end
  1776. return List
  1777. end
  1778.  
  1779. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1780. local type = type
  1781. local rng = Instance.new("Part", char)
  1782. rng.Anchored = true
  1783. rng.BrickColor = color
  1784. rng.CanCollide = false
  1785. rng.FormFactor = 3
  1786. rng.Name = "Ring"
  1787. rng.Material = "Neon"
  1788. rng.Size = Vector3.new(1, 1, 1)
  1789. rng.Transparency = 0
  1790. rng.TopSurface = 0
  1791. rng.BottomSurface = 0
  1792. rng.CFrame = pos
  1793. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1794. local rngm = Instance.new("SpecialMesh", rng)
  1795. rngm.MeshType = MType
  1796. rngm.Scale = Vector3.new(x1, y1, z1)
  1797. local scaler2 = 1
  1798. local speeder = FastSpeed
  1799. if type == "Add" then
  1800. scaler2 = 1 * value
  1801. elseif type == "Divide" then
  1802. scaler2 = 1 / value
  1803. end
  1804. coroutine.resume(coroutine.create(function()
  1805. for i = 0, 10 / bonuspeed, 0.1 do
  1806. swait()
  1807. if type == "Add" then
  1808. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1809. elseif type == "Divide" then
  1810. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1811. end
  1812. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1813. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1814. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1815. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1816. end
  1817. rng:Destroy()
  1818. end))
  1819. end
  1820.  
  1821. function SoulSteal(dude)
  1822. if dude.Name ~= char then
  1823. local bgf = IT("BodyGyro", dude.Head)
  1824. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1825. local val = IT("BoolValue", dude)
  1826. val.Name = "IsHit"
  1827. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1828. local soulst = coroutine.wrap(function()
  1829. local soul = Instance.new("Part",dude)
  1830. soul.Size = Vector3.new(1,1,1)
  1831. soul.CanCollide = false
  1832. soul.Anchored = false
  1833. soul.Position = torso.Position
  1834. soul.Transparency = 1
  1835. local PartEmmit1 = IT("ParticleEmitter", soul)
  1836. PartEmmit1.LightEmission = 1
  1837. PartEmmit1.Texture = "rbxassetid://569507414"
  1838. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1839. PartEmmit1.Rate = 250
  1840. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1841. PartEmmit1.Size = NumberSequence.new({
  1842. NumberSequenceKeypoint.new(0, 1, 0),
  1843. NumberSequenceKeypoint.new(1, 0, 0)
  1844. })
  1845. PartEmmit1.Transparency = NumberSequence.new({
  1846. NumberSequenceKeypoint.new(0, 0, 0),
  1847. NumberSequenceKeypoint.new(1, 1, 0)
  1848. })
  1849. PartEmmit1.Speed = NumberRange.new(0, 0)
  1850. PartEmmit1.VelocitySpread = 30000
  1851. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1852. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1853. local BodPoss = IT("BodyPosition", soul)
  1854. BodPoss.P = 3000
  1855. BodPoss.D = 1000
  1856. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1857. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1858. wait(1.6)
  1859. soul.Touched:connect(function(hit)
  1860. if hit.Parent == char then
  1861. soul:Destroy()
  1862. end
  1863. end)
  1864. wait(1.2)
  1865. while soul do
  1866. swait()
  1867. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1868. BodPoss.Position = tors.Position
  1869. end
  1870. end)
  1871. soulst()
  1872. end
  1873. end
  1874. function FaceMouse()
  1875. local Cam = workspace.CurrentCamera
  1876. return {
  1877. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1878. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1879. }
  1880. end
  1881. Effects = {
  1882. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  1883. local p = Instance.new("Part",EffectModel)
  1884. p.BrickColor = BrickColor.new(colour)
  1885. p.Size = partsize
  1886. p.Anchored = true
  1887. p.CanCollide = false
  1888. p.Material = matr
  1889. p.CFrame = cf
  1890. if inverse == true then
  1891. p.Transparency = 1
  1892. else
  1893. p.Transparency = 0
  1894. end
  1895. local m = Instance.new("BlockMesh",p)
  1896. m.Scale = meshstart
  1897. coroutine.wrap(function()
  1898. for i = 0, 1, factor do
  1899. swait()
  1900. if inverse == true then
  1901. p.Transparency = 1-i
  1902. else
  1903. p.Transparency = i
  1904. end
  1905. m.Scale = m.Scale + meshadd
  1906. if spin == true then
  1907. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1908. end
  1909. end
  1910. p:Destroy()
  1911. end)()
  1912. return p
  1913. end,
  1914. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1915. local p = Instance.new("Part",EffectModel)
  1916. p.BrickColor = BrickColor.new(colour)
  1917. p.Size = partsize
  1918. p.Anchored = true
  1919. p.CanCollide = false
  1920. p.Material = matr
  1921. p.CFrame = cf
  1922. if inverse == true then
  1923. p.Transparency = 1
  1924. else
  1925. p.Transparency = 0
  1926. end
  1927. local m = Instance.new("SpecialMesh",p)
  1928. m.MeshType = "Sphere"
  1929. m.Scale = meshstart
  1930. coroutine.wrap(function()
  1931. for i=0,1,factor do
  1932. swait()
  1933. if inverse == true then
  1934. p.Transparency = 1-i
  1935. else
  1936. p.Transparency = i
  1937. end
  1938. m.Scale = m.Scale + meshadd
  1939. end
  1940. p:Destroy()
  1941. end)()
  1942. return p
  1943. end,
  1944.  
  1945. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  1946. local p = Instance.new("Part",EffectModel)
  1947. p.BrickColor = BrickColor.new(colour)
  1948. p.Size = partsize
  1949. p.Anchored = true
  1950. p.CanCollide = false
  1951. p.Material = matr
  1952. p.CFrame = cf
  1953. if inverse == true then
  1954. p.Transparency = 1
  1955. else
  1956. p.Transparency = 0
  1957. end
  1958. local m = Instance.new("CylinderMesh",p)
  1959. m.Scale = meshstart
  1960. coroutine.wrap(function()
  1961. for i=0,1,factor do
  1962. swait()
  1963. if inverse == true then
  1964. p.Transparency = 1-i
  1965. else
  1966. p.Transparency = i
  1967. end
  1968. m.Scale = m.Scale + meshadd
  1969. end
  1970. p:Destroy()
  1971. end)()
  1972. return p
  1973. end,
  1974.  
  1975. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  1976. local p = Instance.new("Part",EffectModel)
  1977. p.BrickColor = BrickColor.new(colour)
  1978. p.Size = Vector3.new()
  1979. p.Anchored = true
  1980. p.CanCollide = false
  1981. p.CFrame = cf
  1982. if inverse == true then
  1983. p.Transparency = 1
  1984. else
  1985. p.Transparency = 0
  1986. end
  1987. local m = Instance.new("SpecialMesh",p)
  1988. m.MeshId = "rbxassetid://20329976"
  1989. m.Scale = meshstart
  1990. coroutine.wrap(function()
  1991. for i=0,1,factor do
  1992. swait()
  1993. if inverse == true then
  1994. p.Transparency = 1-i
  1995. else
  1996. p.Transparency = i
  1997. end
  1998. m.Scale = m.Scale + meshadd
  1999. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  2000. end
  2001. p:Destroy()
  2002. end)()
  2003. return p
  2004. end,
  2005.  
  2006. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  2007. local p = Instance.new("Part",EffectModel)
  2008. p.BrickColor = BrickColor.new(colour)
  2009. p.Size = Vector3.new()
  2010. p.Anchored = true
  2011. p.CanCollide = false
  2012. p.CFrame = cf
  2013. if inverse == true then
  2014. p.Transparency = 1
  2015. else
  2016. p.Transparency = 0
  2017. end
  2018. local m = Instance.new("SpecialMesh",p)
  2019. m.MeshId = "rbxassetid://3270017"
  2020. m.Scale = meshstart
  2021. coroutine.wrap(function()
  2022. for i=0,1,factor do
  2023. swait()
  2024. if inverse == true then
  2025. p.Transparency = 1-i
  2026. else
  2027. p.Transparency = i
  2028. end
  2029. m.Scale = m.Scale + meshadd
  2030. end
  2031. p:Destroy()
  2032. end)()
  2033. return p
  2034. end,
  2035.  
  2036. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  2037. local p = Instance.new("Part",EffectModel)
  2038. p.BrickColor = BrickColor.new(colour)
  2039. p.Size = Vector3.new()
  2040. p.Anchored = true
  2041. p.CanCollide = false
  2042. p.CFrame = cf
  2043. if inverse == true then
  2044. p.Transparency = 1
  2045. else
  2046. p.Transparency = 0
  2047. end
  2048. local m = Instance.new("SpecialMesh",p)
  2049. m.MeshId = meshid
  2050. m.TextureId = textid
  2051. m.Scale = meshstart
  2052. coroutine.wrap(function()
  2053. for i=0,1,factor do
  2054. swait()
  2055. if inverse == true then
  2056. p.Transparency = 1-i
  2057. else
  2058. p.Transparency = i
  2059. end
  2060. m.Scale = m.Scale + meshadd
  2061. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  2062. end
  2063. p:Destroy()
  2064. end)()
  2065. return p
  2066. end,
  2067.  
  2068. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  2069. local p = Instance.new("Part",EffectModel)
  2070. p.BrickColor = BrickColor.new(colour)
  2071. p.Size = partsize
  2072. p.Anchored = true
  2073. p.CanCollide = false
  2074. p.Material = matr
  2075. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2076. if inverse == true then
  2077. p.Transparency = 1
  2078. else
  2079. p.Transparency = 0
  2080. end
  2081. local m = Instance.new("SpecialMesh",p)
  2082. m.MeshType = "Sphere"
  2083. m.Scale = meshstart
  2084. coroutine.wrap(function()
  2085. for i=0,1,factor do
  2086. swait()
  2087. if inverse == true then
  2088. p.Transparency = 1-i
  2089. else
  2090. p.Transparency = i
  2091. end
  2092. m.Scale = m.Scale + meshadd
  2093. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  2094. end
  2095. p:Destroy()
  2096. end)()
  2097. return p
  2098. end,
  2099.  
  2100. }
  2101. -------------------------------------------------------
  2102. --End Effect Function--
  2103. -------------------------------------------------------
  2104. function Cso(ID, PARENT, VOLUME, PITCH)
  2105. local NSound = nil
  2106. coroutine.resume(coroutine.create(function()
  2107. NSound = IT("Sound", PARENT)
  2108. NSound.Volume = VOLUME
  2109. NSound.Pitch = PITCH
  2110. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2111. swait()
  2112. NSound:play()
  2113. game:GetService("Debris"):AddItem(NSound, 10)
  2114. end))
  2115. return NSound
  2116. end
  2117. function CamShake(Length, Intensity)
  2118. coroutine.resume(coroutine.create(function()
  2119. local intensity = 1 * Intensity
  2120. local rotM = 0.01 * Intensity
  2121. for i = 0, Length, 0.1 do
  2122. swait()
  2123. intensity = intensity - 0.05 * Intensity / Length
  2124. rotM = rotM - 5.0E-4 * Intensity / Length
  2125. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  2126. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  2127. end
  2128. hum.CameraOffset = Vector3.new(0, 0, 0)
  2129. end))
  2130. end
  2131. NewInstance = function(instance,parent,properties)
  2132. local inst = Instance.new(instance)
  2133. inst.Parent = parent
  2134. if(properties)then
  2135. for i,v in next, properties do
  2136. pcall(function() inst[i] = v end)
  2137. end
  2138. end
  2139. return inst;
  2140. end
  2141. hum.MaxHealth = 1.0E298
  2142. hum.Health = 1.0E298
  2143. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  2144. hum.MaxHealth = 1.0E298
  2145. hum.Health = 1.0E298
  2146. end
  2147. function chatfunc(text, color)
  2148. local chat = coroutine.wrap(function()
  2149. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  2150. char:FindFirstChild("TalkingBillBoard"):destroy()
  2151. end
  2152. local naeeym2 = Instance.new("BillboardGui", char)
  2153. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  2154. naeeym2.StudsOffset = Vector3.new(0, 1.5, 0)
  2155. naeeym2.Adornee = hed
  2156. naeeym2.Name = "TalkingBillBoard"
  2157. local tecks2 = Instance.new("TextLabel", naeeym2)
  2158. tecks2.BackgroundTransparency = 1
  2159. tecks2.BorderSizePixel = 0
  2160. tecks2.Text = ""
  2161. tecks2.Font = "Fantasy"
  2162. tecks2.TextSize = 30
  2163. tecks2.TextStrokeTransparency = 0
  2164. tecks2.TextColor3 = color
  2165. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  2166. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  2167. for i = 1, string.len(text) do
  2168. CFuncs.Sound.Create("rbxassetid://418252437", hed, 1, Mrandom(8,12)/15)
  2169. tecks2.Text = string.sub(text, 1, i)
  2170. swait(1)
  2171. end
  2172. wait(1)
  2173. naeeym2:Destroy()
  2174. end)
  2175. chat()
  2176. end
  2177. New = function(Object, Parent, Name, Data)
  2178. local Object = Instance.new(Object)
  2179. for Index, Value in pairs(Data or {}) do
  2180. Object[Index] = Value
  2181. end
  2182. Object.Parent = Parent
  2183. Object.Name = Name
  2184. return Object
  2185. end
  2186.  
  2187. Cupo = New("Model",char,"Cupo",{})
  2188. Handle = New("Part",Cupo,"Handle",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.232986, 1.05098712, -175.132965, -2.66358597e-06, 0.50003612, -0.866004288, 0.999999762, 3.72325388e-08, -3.4009206e-06, -2.13981866e-06, -0.866004527, -0.500036418),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2189. Mesh = New("SpecialMesh",Handle,"Mesh",{Scale = Vector3.new(0.600000024, 0.600000024, 1),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  2190. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-132.482986, 1.05098701, -174.699982, 0.866004169, -0.500036061, 4.80877497e-06, 3.40900579e-06, -4.61425361e-06, -0.999999642, 0.500036597, 0.866004586, -1.59157071e-06),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2191. Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 6),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
  2192. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.866004348, 3.3928352e-06, 0.500036359, -0.500036299, -4.34130516e-06, 0.866004407, 4.95926542e-06, -0.999999881, -1.81985979e-06),C1 = CFrame.new(-1.1920929e-07, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  2193. Part = New("Part",Cupo,"Part",{BrickColor = BrickColor.new("Institutional white"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 0.75998807, -174.699982, 0.500036061, -4.80877497e-06, 0.866004169, 4.61425361e-06, 0.999999642, 3.40900579e-06, -0.866004586, 1.59157071e-06, 0.500036597),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  2194. Mesh = New("CylinderMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.200000003, 0),Scale = Vector3.new(1, 0.100000001, 1),})
  2195. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(-0.290999115, -0.499977112, 0, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  2196. Coffee = New("Part",Cupo,"Coffee",{BrickColor = BrickColor.new("Reddish brown"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.400000006, 1),CFrame = CFrame.new(-132.482986, 1.15998101, -174.699982, 0.500036299, -4.95926542e-06, 0.866004348, 4.34130516e-06, 0.999999881, 3.3928352e-06, -0.866004407, 1.81985979e-06, 0.500036359),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.411765, 0.25098, 0.156863),})
  2197. Mesh = New("CylinderMesh",Coffee,"Mesh",{Scale = Vector3.new(1, 1.20000005, 1),})
  2198. mot = New("Motor",Coffee,"mot",{Part0 = Coffee,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.500036299, 4.34130516e-06, -0.866004407, -4.95926542e-06, 0.999999881, 1.81985979e-06, 0.866004348, 3.3928352e-06, 0.500036359),C1 = CFrame.new(0.108993888, -0.499977112, -1.52587891e-05, -2.81334178e-06, 1, -1.89662967e-06, 0.50003624, -2.4825286e-07, -0.866004586, -0.866004467, -3.39283588e-06, -0.500036418),})
  2199.  
  2200. local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CFrame.new(0, -1.1, -0.1) * CFrame.Angles(Rad(0), Rad(90), Rad(0))})
  2201.  
  2202. -------------------------------------------------------
  2203. --End Important Functions--
  2204. -------------------------------------------------------
  2205.  
  2206.  
  2207. -------------------------------------------------------
  2208. --Start Customization--
  2209. -------------------------------------------------------
  2210. local Player_Size = 1
  2211. if Player_Size ~= 1 then
  2212. root.Size = root.Size * Player_Size
  2213. tors.Size = tors.Size * Player_Size
  2214. hed.Size = hed.Size * Player_Size
  2215. ra.Size = ra.Size * Player_Size
  2216. la.Size = la.Size * Player_Size
  2217. rl.Size = rl.Size * Player_Size
  2218. ll.Size = ll.Size * Player_Size
  2219. ----------------------------------------------------------------------------------
  2220. rootj.Parent = root
  2221. neck.Parent = tors
  2222. RW.Parent = tors
  2223. LW.Parent = tors
  2224. RH.Parent = tors
  2225. LH.Parent = tors
  2226. ----------------------------------------------------------------------------------
  2227. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2228. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2229. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  2230. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  2231. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  2232. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  2233. ----------------------------------------------------------------------------------
  2234. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  2235. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  2236. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  2237. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  2238. --hat.Parent = Character
  2239. end
  2240. ----------------------------------------------------------------------------------
  2241. local SONG = 1128536404
  2242. local SONG2 = 0
  2243. local Music = Instance.new("Sound",tors)
  2244. Music.Volume = .6
  2245. Music.Looped = true
  2246. Music.Pitch = 1 --Pitcher
  2247. ----------------------------------------------------------------------------------
  2248. local equipped = false
  2249. local idle = 0
  2250. local change = 1
  2251. local val = 0
  2252. local toim = 0
  2253. local idleanim = 0.4
  2254. local sine = 0
  2255. local Sit = 1
  2256. local WasAir = false
  2257. local InAir = false
  2258. local LandTick = 0
  2259. local movelegs = false
  2260. local FF = Instance.new("ForceField",char)
  2261. FF.Visible = false
  2262. local Speed = 16
  2263. local Sitt = false
  2264. local VALUE1 = false
  2265. ----------------------------------------------------------------------------------
  2266. hum.JumpPower = 55
  2267. hum.Animator.Parent = nil
  2268. -------------------------------------------------------
  2269. --End Customization--
  2270. -------------------------------------------------------
  2271.  
  2272.  
  2273. -------------------------------------------------------
  2274. --Start Attacks N Stuff--
  2275. -------------------------------------------------------
  2276. function AttackTemplate()
  2277. attack = true
  2278. for i = 0, 2, 0.1 do
  2279. swait()
  2280. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2281. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  2282. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  2283. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  2284. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 + 5 * Sin(sine / 20)), Rad(10 + 5 * Sin(sine / 20))), 0.1)
  2285. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  2286. end
  2287. attack = false
  2288. end
  2289. function Taunt()
  2290. attack = true
  2291. movelegs = true
  2292. Speed = 12
  2293. local Chatty = Mrandom(1,5)
  2294. if Chatty == 1 then
  2295. chatfunc(" ", maincolor.Color)
  2296. elseif Chatty == 2 then
  2297. chatfunc(" ", maincolor.Color)
  2298. elseif Chatty == 3 then
  2299. chatfunc(" ", maincolor.Color)
  2300. elseif Chatty == 4 then
  2301. chatfunc(" ", maincolor.Color)
  2302. elseif Chatty == 5 then
  2303. chatfunc("*Sigh*", maincolor.Color)
  2304. end
  2305. if Chatty ~= 5 then
  2306. for i = 0, 9, 0.1 do
  2307. swait()
  2308. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1)
  2309. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(10 - 5 * Cos(sine / 3))), 0.1)
  2310. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  2311. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  2312. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  2313. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  2314. end
  2315. else
  2316. for i = 0, 9, 0.1 do
  2317. swait()
  2318. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0 - 4 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(-10)), 0.1)
  2319. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 2 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  2320. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) - Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 24)), Rad(0), Rad(5)), 0.1)
  2321. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) + Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(-0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 24)), Rad(0), Rad(-5)), 0.1)
  2322. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  2323. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.1)
  2324. end
  2325. end
  2326. movelegs = false
  2327. attack = false
  2328. Speed = 16
  2329. end
  2330. function Sippy()
  2331. attack = true
  2332. Speed = 0
  2333. local Sip = Cso("1420260652", hed, 1.2, 1)
  2334. swait()
  2335. repeat
  2336. swait()
  2337. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-10)), 0.1)
  2338. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-10 - 5 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  2339. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(5)), 0.1)
  2340. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0), Rad(0)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  2341. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.4 + 0.05 * Sin(sine / 20)* Player_Size, 0.1* Player_Size) * angles(Rad(125), Rad(0), Rad(-45)), 0.1)
  2342. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(10 - 5 * Sin(sine / 20))), 0.1)
  2343. until Sip.Playing == false
  2344. Speed = 16
  2345. attack = false
  2346. end
  2347. function SittyBoi()
  2348. attack = true
  2349. Sitt = true
  2350. Speed = 0
  2351. repeat
  2352. swait()
  2353. for i = 0, 1, 0.1 do
  2354. swait()
  2355. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -1.6 + 0.1 * Player_Size * Cos(sine / 20)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  2356. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.1)
  2357. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(75), Rad(0), Rad(5)), 0.1)
  2358. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(75), Rad(0), Rad(-5)), 0.1)
  2359. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  2360. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-15), Rad(20), Rad(-15)), 0.1)
  2361. end
  2362. until Sitt == false
  2363. attack = false
  2364. Speed = 16
  2365. end
  2366. -------------------------------------------------------
  2367. --End Attacks N Stuff--
  2368. -------------------------------------------------------
  2369. if (VALUE1 == false and attack == false) or Sitt == true then
  2370. if key == "q" then
  2371. if Sitt == false then
  2372. SittyBoi()
  2373. elseif Sitt == true then
  2374. Sitt = false
  2375. end
  2376. end
  2377. end
  2378. if attack == false then
  2379. if key == "asdf" then
  2380. Taunt()
  2381. end
  2382. end
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391. -------------------------------------------------------
  2392. --Start Animations--
  2393. -------------------------------------------------------
  2394. print("By Makhail07")
  2395. print("Edited By flowerybooga")
  2396. warn("T̶h̴e̵r̴e̶ ̸i̶s̸ ̸s̶o̸m̵e̵t̴h̵i̴n̸g̶ ̶o̷f̷f̶.̶.̴.̷ ")
  2397. while true do
  2398. swait()
  2399. sine = sine + change
  2400. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2401. local velderp = root.Velocity.y
  2402. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  2403. if equipped == true or equipped == false then
  2404. if attack == false then
  2405. idle = idle + 1
  2406. else
  2407. idle = 0
  2408. end
  2409. local Landed = false
  2410. if(hitfloor)then
  2411. WasAir = false
  2412. else
  2413. WasAir = true
  2414. end
  2415. if(WasAir == false)then
  2416. if(InAir == true)then
  2417. LandTick = time()
  2418. Landed = true
  2419. end
  2420. end
  2421. if(time()-LandTick < .3)then
  2422. Landed = true
  2423. end
  2424. if(hitfloor)then
  2425. InAir = false
  2426. else
  2427. InAir = true
  2428. end
  2429. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  2430. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or Landed and 'Land' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  2431. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  2432. if(State == 'Jump')then
  2433. hum.JumpPower = 55
  2434. if attack == false then
  2435. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.1)
  2436. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2437. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -.2 - 0.1 * Cos(sine / 20), -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  2438. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(0)), 0.1)
  2439. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  2440. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  2441. end
  2442. elseif(State == 'Fall')then
  2443. if attack == false then
  2444. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  2445. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2446. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  2447. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  2448. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(165), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  2449. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(165), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  2450. end
  2451. elseif(State == 'Land')then
  2452. hum.JumpPower = 0
  2453. if attack == false then
  2454. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  2455. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  2456. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, 0.1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(-10), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(5)), 0.15)
  2457. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, 0.1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(-5)), 0.15)
  2458. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(0), Rad(25 + 4.5 * Sin(sine / 20))), 0.1)
  2459. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(0), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  2460. end
  2461. elseif(State == 'Idle')then
  2462. change = 0.90
  2463. if attack == false then
  2464. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 24) * Player_Size) * angles(Rad(0 - 4 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(-10)), 0.1)
  2465. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(7 - 2 * Sin(sine / 20)), Rad(0), Rad(10)), 0.1)
  2466. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) - Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 24)), Rad(0), Rad(5)), 0.1)
  2467. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 * Player_Size - 0.1 * Cos(sine / 24) + Rad(0 + 1 * Cos(sine / 24)) * Player_Size, 0* Player_Size) * angles(Rad(0 - 6 * Sin(sine / 24)), Rad(-0 + 1 * Cos(sine / 24)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 24)), Rad(0), Rad(-5)), 0.1)
  2468. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / 20)), Rad(-30 + 5 * Sin(sine / 20))), 0.1)
  2469. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(0 - 5 * Sin(sine / 20)), Rad(10 - 5 * Sin(sine / 20))), 0.1)
  2470. end
  2471. elseif(State == 'Walk')then
  2472. change = 0.76
  2473. hum.JumpPower = 55
  2474. if attack == false then
  2475. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.3 - 0.15 * Cos(sine / (WALKSPEEDVALUE / 2))) * angles(Rad(10), Rad(0), Rad(0 - 0.75 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75), 0.1)
  2476. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 + 5 * Sin(sine / (WALKSPEEDVALUE / 2))), Rad(0), Rad(0 - 0.75 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 13), 0.1)
  2477. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.8 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, 0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 - 25 * Sin(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  2478. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.8 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, -0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 + 25 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  2479. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / WALKSPEEDVALUE)* Player_Size, 0* Player_Size) * angles(Rad(70), Rad(0 + 5 * Sin(sine / WALKSPEEDVALUE)), Rad(-30 + 5 * Sin(sine / WALKSPEEDVALUE))), 0.1)
  2480. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE)* Player_Size, 0 + 0.5 * Sin(sine / WALKSPEEDVALUE)* Player_Size) * angles(Rad(-45 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(-10) + root.RotVelocity.Y / -75), 0.1)
  2481. elseif attack == true and movelegs == true then
  2482. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.8 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, 0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 - 25 * Sin(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  2483. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.8 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size, -0.6 * Cos(sine / WALKSPEEDVALUE) / 2* Player_Size) * angles(Rad(-10 + 25 * Sin(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5, Rad(0 - 10 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0)), 0.3)
  2484. end
  2485. end
  2486. end
  2487. hum.Name = "HUM"
  2488. hum.WalkSpeed = Speed
  2489. Music.SoundId = "rbxassetid://"..SONG
  2490. Music.Looped = true
  2491. Music.Pitch = 1
  2492. Music.Volume = .2
  2493. Music.Parent = tors
  2494. Music.Playing = true
  2495. if 0 < #Effects then
  2496. for e = 1, #Effects do
  2497. if Effects[e] ~= nil then
  2498. local Thing = Effects[e]
  2499. if Thing ~= nil then
  2500. local Part = Thing[1]
  2501. local Mode = Thing[2]
  2502. local Delay = Thing[3]
  2503. local IncX = Thing[4]
  2504. local IncY = Thing[5]
  2505. local IncZ = Thing[6]
  2506. if 1 >= Thing[1].Transparency then
  2507. if Thing[2] == "Block1" then
  2508. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2509. local Mesh = Thing[1].Mesh
  2510. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2511. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2512. elseif Thing[2] == "Block2" then
  2513. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  2514. local Mesh = Thing[7]
  2515. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2516. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2517. elseif Thing[2] == "Block3" then
  2518. 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)
  2519. local Mesh = Thing[7]
  2520. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2521. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2522. elseif Thing[2] == "Cylinder" then
  2523. local Mesh = Thing[1].Mesh
  2524. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2525. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2526. elseif Thing[2] == "Blood" then
  2527. local Mesh = Thing[7]
  2528. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  2529. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2531. elseif Thing[2] == "Elec" then
  2532. local Mesh = Thing[1].Mesh
  2533. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2534. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2535. elseif Thing[2] == "Disappear" then
  2536. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2537. elseif Thing[2] == "Shatter" then
  2538. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2539. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2540. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2541. Thing[6] = Thing[6] + Thing[5]
  2542. end
  2543. else
  2544. Part.Parent = nil
  2545. table.remove(Effects, e)
  2546. end
  2547. end
  2548. end
  2549. end
  2550. end
  2551. end
  2552. -------------------------------------------------------
  2553. --End Animations And Script--
  2554. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement