Advertisement
Im_Meme

Heartbeat V2

Aug 11th, 2018
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.20 KB | None | 0 0
  1. -- Created by Nebula_Zorua --
  2. -- Heartbeat --
  3. -- This is technically a remake of my old one lol --
  4. -- Discord: Nebula the Zorua#6969
  5. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  6.  
  7.  
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,game,owner = owner,game
  10. local RealPlayer = Player
  11. do
  12. print("FE Compatibility code by Mokiros")
  13. local rp = RealPlayer
  14. script.Parent = rp.Character
  15.  
  16. --RemoteEvent for communicating
  17. local Event = Instance.new("RemoteEvent")
  18. Event.Name = "UserInput_Event"
  19.  
  20. --Fake event to make stuff like Mouse.KeyDown work
  21. local function fakeEvent()
  22. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  23. t.connect = t.Connect
  24. return t
  25. end
  26.  
  27. --Creating fake input objects with fake variables
  28. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  29. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  30. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  31. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  32. end}
  33. --Merged 2 functions into one by checking amount of arguments
  34. CAS.UnbindAction = CAS.BindAction
  35.  
  36. --This function will trigger the events that have been :Connect()'ed
  37. local function te(self,ev,...)
  38. local t = m[ev]
  39. if t and t._fakeEvent then
  40. for _,f in pairs(t.Functions) do
  41. f(...)
  42. end
  43. end
  44. end
  45. m.TrigEvent = te
  46. UIS.TrigEvent = te
  47.  
  48. Event.OnServerEvent:Connect(function(plr,io)
  49. if plr~=rp then return end
  50. m.Target = io.Target
  51. m.Hit = io.Hit
  52. if not io.isMouse then
  53. local b = io.UserInputState == Enum.UserInputState.Begin
  54. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  55. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  56. end
  57. for _,t in pairs(CAS.Actions) do
  58. for _,k in pairs(t.Keys) do
  59. if k==io.KeyCode then
  60. t.Function(t.Name,io.UserInputState,io)
  61. end
  62. end
  63. end
  64. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  65. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  66. end
  67. end)
  68. Event.Parent = NLS([==[
  69. local Player = game:GetService("Players").LocalPlayer
  70. local Event = script:WaitForChild("UserInput_Event")
  71.  
  72. local Mouse = Player:GetMouse()
  73. local UIS = game:GetService("UserInputService")
  74. local input = function(io,a)
  75. if a then return end
  76. --Since InputObject is a client-side instance, we create and pass table instead
  77. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  78. end
  79. UIS.InputBegan:Connect(input)
  80. UIS.InputEnded:Connect(input)
  81.  
  82. local h,t
  83. --Give the server mouse data 30 times every second, but only if the values changed
  84. --If player is not moving their mouse, client won't fire events
  85. while wait(1/30) do
  86. if h~=Mouse.Hit or t~=Mouse.Target then
  87. h,t=Mouse.Hit,Mouse.Target
  88. Event:FireServer({isMouse=true,Target=t,Hit=h})
  89. end
  90. end]==],Player.Character)
  91.  
  92. ----Sandboxed game object that allows the usage of client-side methods and services
  93. --Real game object
  94. local _rg = game
  95.  
  96. --Metatable for fake service
  97. local fsmt = {
  98. __index = function(self,k)
  99. local s = rawget(self,"_RealService")
  100. if s then return s[k] end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end,
  106. __call = function(self,...)
  107. local s = rawget(self,"_RealService")
  108. if s then return s(...) end
  109. end
  110. }
  111. local function FakeService(t,RealService)
  112. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  113. return setmetatable(t,fsmt)
  114. end
  115.  
  116. --Fake game object
  117. local g = {
  118. GetService = function(self,s)
  119. return self[s]
  120. end,
  121. Players = FakeService({
  122. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  123. },"Players"),
  124. UserInputService = FakeService(UIS,"UserInputService"),
  125. ContextActionService = FakeService(CAS,"ContextActionService"),
  126. }
  127. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  128. g.service = g.GetService
  129.  
  130. g.RunService = FakeService({
  131. RenderStepped = _rg:GetService("RunService").Heartbeat,
  132. BindToRenderStep = function(self,name,_,fun)
  133. self._btrs[name] = self.Heartbeat:Connect(fun)
  134. end,
  135. UnbindFromRenderStep = function(self,name)
  136. self._btrs[name]:Disconnect()
  137. end,
  138. },"RunService")
  139.  
  140. setmetatable(g,{
  141. __index=function(self,s)
  142. return _rg:GetService(s) or typeof(_rg[s])=="function"
  143. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  144. end,
  145. __newindex = fsmt.__newindex,
  146. __call = fsmt.__call
  147. })
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = g,g.Players.LocalPlayer
  150. end
  151.  
  152. wait(1/60)
  153.  
  154. --// Shortcut Variables \\--
  155. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  156. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  157. local C3 = {tRGB= function(c3) return c3.r*255,c3.g*255,c3.b*255 end,N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  158. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  159. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  160. local R3 = {N=Region3.new}
  161. local De = S.Debris
  162. local WS = workspace
  163. local Lght = S.Lighting
  164. local RepS = S.ReplicatedStorage
  165. local IN = Instance.new
  166. local Plrs = S.Players
  167.  
  168. --// Initializing \\--
  169. local Plr = Plrs.LocalPlayer
  170. local Char = Plr.Character
  171. local Hum = Char:FindFirstChildOfClass'Humanoid'
  172. local RArm = Char["Right Arm"]
  173. local LArm = Char["Left Arm"]
  174. local RLeg = Char["Right Leg"]
  175. local LLeg = Char["Left Leg"]
  176. local Root = Char:FindFirstChild'HumanoidRootPart'
  177. local Torso = Char.Torso
  178. local Head = Char.Head
  179. local NeutralAnims = true
  180. local Attack = false
  181. local Debounces = {Debounces={}}
  182. local Mouse = Plr:GetMouse()
  183. local Hit = {}
  184. local Sine = 0
  185. local Change = 1
  186. local BloodPuddles = {}
  187.  
  188. local Effects = IN("Folder",Char)
  189. Effects.Name = "Effects"
  190.  
  191.  
  192. --// Debounce System \\--
  193.  
  194.  
  195. function Debounces:New(name,cooldown)
  196. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  197. setmetatable(aaaaa,{__index = Debounces})
  198. Debounces.Debounces[name] = aaaaa
  199. return aaaaa
  200. end
  201.  
  202. function Debounces:Use(overrideUsable)
  203. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  204. if(self.Usable or overrideUsable)then
  205. self.Usable = false
  206. self.CoolingDown = true
  207. local LastUse = time()
  208. self.LastUse = LastUse
  209. delay(self.Cooldown or 2,function()
  210. if(self.LastUse == LastUse)then
  211. self.CoolingDown = false
  212. self.Usable = true
  213. end
  214. end)
  215. end
  216. end
  217.  
  218. function Debounces:Get(name)
  219. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  220. for i,v in next, Debounces.Debounces do
  221. if(i == name)then
  222. return v;
  223. end
  224. end
  225. end
  226.  
  227. function Debounces:GetProgressPercentage()
  228. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  229. if(self.CoolingDown and not self.Usable)then
  230. return math.max(
  231. math.floor(
  232. (
  233. (time()-self.LastUse)/self.Cooldown or 2
  234. )*100
  235. )
  236. )
  237. else
  238. return 100
  239. end
  240. end
  241.  
  242. --// Instance Creation Functions \\--
  243. local baseSound = IN("Sound")
  244. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  245. local Sound = baseSound:Clone()
  246. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  247. Sound.Pitch = pitch or 1
  248. Sound.Volume = volume or 1
  249. Sound.Looped = looped or false
  250. if(autoPlay)then
  251. coroutine.wrap(function()
  252. repeat wait() until Sound.IsLoaded
  253. Sound.Playing = autoPlay or false
  254. end)()
  255. end
  256. if(not looped and effect)then
  257. Sound.Stopped:connect(function()
  258. Sound.Volume = 0
  259. Sound:destroy()
  260. end)
  261. elseif(effect)then
  262. warn("Sound can't be looped and a sound effect!")
  263. end
  264. Sound.Parent =parent or Torso
  265. return Sound
  266. end
  267. function Part(parent,color,material,size,cframe,anchored,cancollide)
  268. local part = IN("Part")
  269. part.Parent = parent or Char
  270. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  271. part.Material = material or Enum.Material.SmoothPlastic
  272. part.TopSurface,part.BottomSurface=10,10
  273. part.Size = size or V3.N(1,1,1)
  274. part.CFrame = cframe or CF.N(0,0,0)
  275. part.CanCollide = cancollide or false
  276. part.Anchored = anchored or false
  277. return part
  278. end
  279.  
  280. function Weld(part0,part1,c0,c1)
  281. local weld = IN("Weld")
  282. weld.Parent = part0
  283. weld.Part0 = part0
  284. weld.Part1 = part1
  285. weld.C0 = c0 or CF.N()
  286. weld.C1 = c1 or CF.N()
  287. return weld
  288. end
  289.  
  290. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  291. local part = IN("SpecialMesh")
  292. part.MeshId = meshid or ""
  293. part.TextureId = textid or ""
  294. part.Scale = scale or V3.N(1,1,1)
  295. part.Offset = offset or V3.N(0,0,0)
  296. part.MeshType = meshtype or Enum.MeshType.Sphere
  297. part.Parent = parent
  298. return part
  299. end
  300.  
  301. NewInstance = function(instance,parent,properties)
  302. local inst = Instance.new(instance)
  303. inst.Parent = parent
  304. if(properties)then
  305. for i,v in next, properties do
  306. pcall(function() inst[i] = v end)
  307. end
  308. end
  309. return inst;
  310. end
  311.  
  312. function Clone(instance,parent,properties)
  313. local inst = instance:Clone()
  314. inst.Parent = parent
  315. if(properties)then
  316. for i,v in next, properties do
  317. pcall(function() inst[i] = v end)
  318. end
  319. end
  320. return inst;
  321. end
  322.  
  323. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  324. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  325. local Sound = IN("Sound")
  326. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  327. Sound.Pitch = pitch or 1
  328. Sound.Volume = volume or 1
  329. Sound.Looped = looped or false
  330. if(autoPlay)then
  331. coroutine.wrap(function()
  332. repeat wait() until Sound.IsLoaded
  333. Sound.Playing = autoPlay or false
  334. end)()
  335. end
  336. if(not looped and effect)then
  337. Sound.Stopped:connect(function()
  338. Sound.Volume = 0
  339. soundPart:destroy()
  340. end)
  341. elseif(effect)then
  342. warn("Sound can't be looped and a sound effect!")
  343. end
  344. Sound.Parent = soundPart
  345. return Sound
  346. end
  347.  
  348.  
  349. --// Extended ROBLOX tables \\--
  350. local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
  351. --// Require stuff \\--
  352. function CamShake(who,times,intense,origin)
  353. coroutine.wrap(function()
  354. if(script:FindFirstChild'CamShake')then
  355. local cam = script.CamShake:Clone()
  356. cam:WaitForChild'intensity'.Value = intense
  357. cam:WaitForChild'times'.Value = times
  358.  
  359. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  360. cam.Parent = who
  361. wait()
  362. cam.Disabled = false
  363. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  364. local intensity = intense
  365. if(Hum and not Hum:FindFirstChild'CamShaking')then
  366. local cam = workspace.CurrentCamera
  367. local oCO = Hum.CameraOffset
  368. local cs = Instance.new("BoolValue",Hum)
  369. cs.Name = "CamShaking"
  370. for i = 1, times do
  371. local camDistFromOrigin
  372. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  373. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/25
  374. elseif(typeof(origin) == 'Vector3')then
  375. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/25
  376. end
  377. if(camDistFromOrigin)then
  378. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  379. end
  380. --cam.CoordinateFrame = cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  381. if(Hum)then
  382. Hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  383. end
  384. swait()
  385. end
  386. if(Hum)then
  387. Hum.CameraOffset = oCO
  388. end
  389. cs:destroy()
  390. end
  391. end
  392. end)()
  393. end
  394.  
  395.  
  396. function CamShakeAll(times,intense,origin)
  397. for _,v in next, Plrs:players() do
  398. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  399. end
  400. end
  401.  
  402. function ServerScript(code)
  403. if(script:FindFirstChild'Loadstring')then
  404. local load = script.Loadstring:Clone()
  405. load:WaitForChild'Sauce'.Value = code
  406. load.Disabled = false
  407. load.Parent = workspace
  408. elseif(NS and typeof(NS) == 'function')then
  409. NS(code,workspace)
  410. else
  411. warn("no serverscripts lol")
  412. end
  413. end
  414.  
  415. function LocalOnPlayer(who,code)
  416. ServerScript([[
  417. wait()
  418. script.Parent=nil
  419. if(not _G.Http)then _G.Http = game:service'HttpService' end
  420.  
  421. local Http = _G.Http or game:service'HttpService'
  422.  
  423. local source = ]].."[["..code.."]]"..[[
  424. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  425. local asd = Http:PostAsync(link,source)
  426. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  427. local ID = Http:JSONDecode(asd).Result.Require_ID
  428. local vs = require(ID).VORTH_SCRIPT
  429. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  430. ]])
  431. end
  432.  
  433. function Nametag(color,tag)
  434. local r,g,b = C3.tRGB(color)
  435. local c3 = C3.RGB(r/2,g/2,b/2)
  436. local name = script:FindFirstChild'Nametag' and script.Nametag:Clone();
  437. if(not name)then
  438. name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
  439. NewInstance("TextLabel",name,{Name='PlayerName',BackgroundTransparency=1,Size=UDim2.new(1,0,1,0),Text=Plr.Name,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextSize=14,TextScaled=true,TextWrapped=true,})
  440. NewInstance("TextLabel",name,{Name='Title',BackgroundTransparency=1,Size=UDim2.new(2.5,0,1.5,0),Position=UDim2.new(-.75,0,.9,0),Text=tag,Font=Enum.Font.Fantasy,TextColor3 = color,TextStrokeColor3 = c3,TextStrokeTransparency=0,TextSize=14,TextScaled=true,TextWrapped=true,})
  441. end
  442. name.Title.Text = tag
  443. name.Title.TextColor3 = color
  444. name.Title.TextStrokeColor3 = c3
  445.  
  446. name.PlayerName.Text = Plr.Name
  447. name.PlayerName.TextColor3 = color
  448. name.PlayerName.TextStrokeColor3 = c3
  449.  
  450. name.Parent = Char
  451. name.Adornee = Head
  452. name.PlayerToHideFrom = Plr
  453.  
  454. return name
  455. end
  456.  
  457. --// Customization \\--
  458.  
  459. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  460. local Remove_Hats = false
  461. local Remove_Clothing = true
  462. local PlayerSize = 1
  463. local DamageColor = BrickColor.new'Maroon'
  464. local MusicID = 488536254
  465. local God = true
  466. local Muted = false
  467.  
  468. local WalkSpeed = 8
  469.  
  470. --// Weapon and GUI creation, and Character Customization \\--
  471.  
  472. local Hearts = {}
  473. local BloodRainPart = NewInstance("Part",Char,{Transparency=1,Anchored=true,CanCollide=false,CFrame=CF.N(0,240,0),Size=V3.N(750,.05,750)})
  474. local Particles = NewInstance("ParticleEmitter",BloodRainPart,{
  475. Color=ColorSequence.new(C3.RGB(161,0,0)),
  476. LightEmission=0,
  477. LightInfluence=0,
  478. Size=NumberSequence.new(2),
  479. Texture="rbxassetid://419625073",
  480. Transparency=NumberSequence.new(0),
  481. Acceleration=V3.N(0,-workspace.Gravity,0),
  482. LockedToPart=true,
  483. Lifetime=NumberRange.new(10,15),
  484. Rate=math.huge,
  485. SpreadAngle=Vector2.new(1,1)
  486. })
  487.  
  488. local Particles2 = Particles:Clone()
  489. Particles2.Parent= BloodRainPart
  490.  
  491.  
  492. local Skybox = NewInstance("Part",Char,{Anchored=true,CanCollide=false,Size=V3.N(.05,.05,.05)})
  493. local SkyMesh = NewInstance("SpecialMesh",Skybox,{
  494. Scale=V3.N(-3000,-1000,-3000),
  495. VertexColor=V3.N(1,0,0),
  496. MeshId="http://www.roblox.com/asset/?id=1527559",
  497. TextureId="http://www.roblox.com/asset/?id=1529460"
  498. })
  499. --[[for i = 1, 360,30 do
  500. --local hrt = h:Clone(); hrt.Parent = vis; hrt.CFrame =
  501. local hrt = NewInstance("Part",Effects,{Name='Heart',Anchored=true,CanCollide=false,Color=C3.N(1,0,0),Size=V3.N(345,307,16),Locked=true,Archivable=false,CFrame=CF.A(0,M.R(i),M.R(180))*CF.N(0,0,-923)})
  502. local hrtMesh = NewInstance("SpecialMesh",hrt,{MeshId="rbxassetid://105992239",Offset=V3.N(0,0,-10),Scale=V3.N(-750,-750,-100)})
  503. table.insert(Hearts,{hrt,hrtMesh,i})
  504. end]]
  505.  
  506. local hrt = NewInstance("Part",Effects,{Name='Heart',Anchored=false,CanCollide=false,Color=C3.N(1,0,0),Size=V3.N(.05,.05,.05),Locked=true,Archivable=false})
  507. local hrtMesh = NewInstance("SpecialMesh",hrt,{MeshId="rbxassetid://105992239",Offset=V3.N(0,0,0),Scale=V3.N(-750,-750,-100)})
  508. local weld = Weld(Torso,hrt,CF.N(.5,.25,-.65))
  509. table.insert(Hearts,{hrt,hrtMesh})
  510.  
  511.  
  512. --local h = workspace.Heart:Clone() local vis = Instance.new("Model",workspace) vis.Name = 'hearts' local countX = 0; for i = 1, 360,30 do local hrt = h:Clone(); hrt.Parent = vis; hrt.CFrame = CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-853) end
  513.  
  514. for _, c in next, Char:GetDescendants() do
  515. if c and c.Parent then
  516. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  517. local ACCESSORY = c.Parent
  518. c.Parent = Char
  519. if c then
  520. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  521. local weldd = IN("Weld")
  522. weldd.Part0 = Head
  523. weldd.Part1 = c
  524. weldd.C0 = CF.N()
  525. weldd.C1 = c.CFrame:inverse() * Head.CFrame
  526. weldd.Parent = Head
  527. else
  528. local weldd = IN("Weld")
  529. weldd.Part0 = Torso
  530. weldd.Part1 = c
  531. weldd.C0 = CF.N()
  532. weldd.C1 = c.CFrame:inverse() * Torso.CFrame
  533. weldd.Parent = Torso
  534. end
  535. end
  536. ACCESSORY:remove()
  537. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  538. c.Material = "Glass"
  539. c.Color = C3.N(.2,0,0)
  540. if c:FindFirstChildOfClass("SpecialMesh") and c ~= Skybox then
  541. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  542. end
  543. if c == Head then
  544. if c:FindFirstChild("face") and Plr.Name ~= 'CKbackup' then
  545. c.face:remove()
  546. end
  547. end
  548. elseif c.ClassName == "Part" and c.Name == "Eye" then
  549. c.Color = C3.N(1,0,0)
  550. c.Material = "Glass"
  551. elseif c.Name == "Body Colors" then
  552. c:remove()
  553. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") then
  554. c:remove()
  555. end
  556. end
  557. end
  558.  
  559. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  560. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  561.  
  562. if(PlayerSize ~= 1)then
  563. for _,v in next, Char:GetDescendants() do
  564. if(v:IsA'BasePart')then
  565. v.Size = v.Size * PlayerSize
  566. end
  567. end
  568. end
  569.  
  570.  
  571. local Music = Sound(Char,MusicID,1,3,true,false,true)
  572. Music.Name = 'Music'
  573.  
  574. --// Stop animations \\--
  575. for _,v in next, Hum:GetPlayingAnimationTracks() do
  576. v:Stop();
  577. end
  578.  
  579. pcall(game.Destroy,Char:FindFirstChild'Animate')
  580. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  581.  
  582. --// Joints \\--
  583.  
  584. local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  585. local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
  586. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  587. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  588. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  589. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  590.  
  591. local LSC0 = LS.C0
  592. local RSC0 = RS.C0
  593. local NKC0 = NK.C0
  594. local LHC0 = LH.C0
  595. local RHC0 = RH.C0
  596. local RJC0 = RJ.C0
  597.  
  598. --// Artificial HB \\--
  599.  
  600. local ArtificialHB = IN("BindableEvent", script)
  601. ArtificialHB.Name = "Heartbeat"
  602.  
  603. script:WaitForChild("Heartbeat")
  604.  
  605. local tf = 0
  606. local allowframeloss = false
  607. local tossremainder = false
  608. local lastframe = tick()
  609. local frame = 1/Frame_Speed
  610. ArtificialHB:Fire()
  611.  
  612. game:GetService("RunService").Heartbeat:connect(function(s, p)
  613. tf = tf + s
  614. if tf >= frame then
  615. if allowframeloss then
  616. script.Heartbeat:Fire()
  617. lastframe = tick()
  618. else
  619. for i = 1, math.floor(tf / frame) do
  620. ArtificialHB:Fire()
  621. end
  622. lastframe = tick()
  623. end
  624. if tossremainder then
  625. tf = 0
  626. else
  627. tf = tf - frame * math.floor(tf / frame)
  628. end
  629. end
  630. end)
  631.  
  632. function swait(num)
  633. if num == 0 or num == nil then
  634. ArtificialHB.Event:wait()
  635. else
  636. for i = 0, num do
  637. ArtificialHB.Event:wait()
  638. end
  639. end
  640. end
  641.  
  642.  
  643. --// Effect Function(s) \\--
  644.  
  645. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  646. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  647. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  648. local Scale = 1
  649. local speeder = Speed
  650. if(Type == "Multiply")then
  651. Scale = 1*Inc
  652. elseif(Type == "Divide")then
  653. Scale = 1/Inc
  654. end
  655. coroutine.wrap(function()
  656. for i = 0,10/Lifetime,.1 do
  657.  
  658. if(Type == "Multiply")then
  659. Scale = Scale - 0.01*Inc/Lifetime
  660. elseif(Type == "Divide")then
  661. Scale = Scale - 0.01/Inc*Lifetime
  662. end
  663. speeder = speeder - 0.01*Speed*Lifetime
  664. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  665. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  666. if(Axis == 'x')then
  667. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  668. elseif(Axis == 'y')then
  669. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  670. elseif(Axis == 'z')then
  671. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  672. elseif(Axis == 'xyz')then
  673. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  674. elseif(Axis == 'yz')then
  675. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  676. elseif(Axis == 'xz')then
  677. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  678. else
  679. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  680. end
  681. if(fxP.Transparency >= 1)then break end
  682. swait()
  683. end
  684. fxP:destroy()
  685. end)()
  686. return fxP
  687. end
  688.  
  689. function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId)
  690. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false)
  691. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  692.  
  693. local Scale = 1
  694. if(Type == "Multiply")then
  695. Scale = 1*Inc
  696. elseif(Type == "Divide")then
  697. Scale = 1/Inc
  698. end
  699. coroutine.wrap(function()
  700. for i = 0,10/Lifetime,.1 do
  701.  
  702. if(Type == "Multiply")then
  703. Scale = Scale - 0.01*Inc/Lifetime
  704. elseif(Type == "Divide")then
  705. Scale = Scale - 0.01/Inc*Lifetime
  706. end
  707. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  708. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  709. swait()
  710. end
  711. fxP:destroy()
  712. end)()
  713. end
  714.  
  715. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  716. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  717. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  718. local Scale = 1
  719. local speeder = Speed
  720. if(Type == "Multiply")then
  721. Scale = 1*Inc
  722. elseif(Type == "Divide")then
  723. Scale = 1/Inc
  724. end
  725. coroutine.wrap(function()
  726. for i = 0,10/Lifetime,.1 do
  727. if(Type == "Multiply")then
  728. Scale = Scale - 0.01*Inc/Lifetime
  729. elseif(Type == "Divide")then
  730. Scale = Scale - 0.01/Inc*Lifetime
  731. end
  732. if(Fade)then
  733. fxP.Transparency = i/(10/Lifetime)
  734. end
  735. speeder = speeder - 0.01*Speed*Lifetime/10
  736. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  737. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  738. swait()
  739. end
  740. fxP:destroy()
  741. end)()
  742. end
  743.  
  744. function Bezier(startpos, pos2, pos3, endpos, t)
  745. local A = startpos:lerp(pos2, t)
  746. local B = pos2:lerp(pos3, t)
  747. local C = pos3:lerp(endpos, t)
  748. local lerp1 = A:lerp(B, t)
  749. local lerp2 = B:lerp(C, t)
  750. local cubic = lerp1:lerp(lerp2, t)
  751. return cubic
  752. end
  753. function Puddle(hit,pos,norm,data)
  754. local material = data.Material or Enum.Material.SmoothPlastic
  755. local color = data.Color or BrickColor.new'Crimson'
  756. local size = data.Size or 1
  757.  
  758. if(hit.Name ~= 'BloodPuddle')then
  759. local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'})
  760. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  761. BloodPuddles[Puddle] = 0
  762. else
  763. local cyl = hit:FindFirstChild'CylinderMesh'
  764. if(cyl)then
  765. BloodPuddles[hit] = 0
  766. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  767. hit.Transparency = 0
  768. end
  769. end
  770. end
  771.  
  772. function Droplet(data)
  773. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  774. local Size = data.Size or 1
  775. local Color = data.Color or BrickColor.new'Crimson'
  776. local StudsPerFrame = data.Speed or 1
  777. local Shape = data.Shape or 'Ball'
  778. local Frames = (data.Frames or 160)+1
  779. local Pos = data.Origin or Root.CFrame
  780. local Direction = data.Direction or Root.CFrame.lookVector*100000
  781. local Material = data.Material or Enum.Material.SmoothPlastic
  782. local Drop = data.Drop or .05
  783. local Ignorelist = data.Ignorelist or nil
  784.  
  785. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  786. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  787. if(Shape == 'Ball')then
  788. BMesh.MeshType = Enum.MeshType.Sphere
  789. elseif(Shape == 'Head')then
  790. BMesh.MeshType = Enum.MeshType.Head
  791. elseif(Shape == 'Cylinder')then
  792. BMesh.MeshType = Enum.MeshType.Cylinder
  793. end
  794.  
  795. coroutine.wrap(function()
  796. for i = 1, Frames do
  797. Pos = Pos * CF.N(0,-(Drop*i),0)
  798. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  799. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  800. Puddle(hit,pos,norm,data)
  801. break;
  802. else
  803. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  804. end
  805. swait()
  806. end
  807. Bullet:destroy()
  808. end)()
  809. end
  810.  
  811. function SphereFX(duration,color,scale,pos,endScale,increment)
  812. return Effect{
  813. Effect='ResizeAndFade',
  814. Color=color,
  815. Size=scale,
  816. Mesh={MeshType=Enum.MeshType.Sphere},
  817. CFrame=pos,
  818. FXSettings={
  819. EndSize=endScale,
  820. EndIsIncrement=increment
  821. }
  822. }
  823. end
  824.  
  825. function BlastFX(duration,color,scale,pos,endScale,increment)
  826. return Effect{
  827. Effect='ResizeAndFade',
  828. Color=color,
  829. Size=scale,
  830. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  831. CFrame=pos,
  832. FXSettings={
  833. EndSize=endScale,
  834. EndIsIncrement=increment
  835. }
  836. }
  837. end
  838.  
  839. function BlockFX(duration,color,scale,pos,endScale,increment)
  840. return Effect{
  841. Effect='ResizeAndFade',
  842. Color=color,
  843. Size=scale,
  844. CFrame=pos,
  845. FXSettings={
  846. EndSize=endScale,
  847. EndIsIncrement=increment
  848. }
  849. }
  850. end
  851.  
  852. function ShootBullet(data)
  853. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  854. local Size = data.Size or V3.N(2,2,2)
  855. local Color = data.Color or BrickColor.new'Crimson'
  856. local StudsPerFrame = data.Speed or 10
  857. local Shape = data.Shape or 'Ball'
  858. local Frames = data.Frames or 160
  859. local Pos = data.Origin or Torso.CFrame
  860. local Direction = data.Direction or Mouse.Hit
  861. local Material = data.Material or Enum.Material.Neon
  862. local OnHit = data.HitFunction or function(hit,pos)
  863. Effect{
  864. Effect='ResizeAndFade',
  865. Color=Color,
  866. Size=V3.N(10,10,10),
  867. Mesh={MeshType=Enum.MeshType.Sphere},
  868. CFrame=CF.N(pos),
  869. FXSettings={
  870. EndSize=V3.N(.05,.05,.05),
  871. EndIsIncrement=true
  872. }
  873. }
  874. for i = 1, 5 do
  875. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  876. Effect{
  877. Effect='Fade',
  878. Frames=65,
  879. Size=V3.N(5,5,10),
  880. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  881. Mesh = {MeshType=Enum.MeshType.Sphere},
  882. Material=Enum.Material.Neon,
  883. Color=Color,
  884. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  885. }
  886. end
  887. end
  888.  
  889. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  890. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  891. if(Shape == 'Ball')then
  892. BMesh.MeshType = Enum.MeshType.Sphere
  893. elseif(Shape == 'Head')then
  894. BMesh.MeshType = Enum.MeshType.Head
  895. elseif(Shape == 'Cylinder')then
  896. BMesh.MeshType = Enum.MeshType.Cylinder
  897. end
  898.  
  899. coroutine.wrap(function()
  900. for i = 1, Frames+1 do
  901. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  902. if(hit)then
  903. OnHit(hit,pos,norm,dist)
  904. break;
  905. else
  906. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  907. end
  908. swait()
  909. end
  910. Bullet:destroy()
  911. end)()
  912.  
  913. end
  914.  
  915.  
  916. function Zap(data)
  917. local sCF,eCF = data.StartCFrame,data.EndCFrame
  918. assert(sCF,"You need a start CFrame!")
  919. assert(eCF,"You need an end CFrame!")
  920. local parts = data.PartCount or 15
  921. local zapRot = data.ZapRotation or {-5,5}
  922. local startThick = data.StartSize or 3;
  923. local endThick = data.EndSize or startThick/2;
  924. local color = data.Color or BrickColor.new'Electric blue'
  925. local delay = data.Delay or 35
  926. local delayInc = data.DelayInc or 0
  927. local lastLightning;
  928. local MagZ = (sCF.p - eCF.p).magnitude
  929. local thick = startThick
  930. local inc = (startThick/parts)-(endThick/parts)
  931.  
  932. for i = 1, parts do
  933. local pos = sCF.p
  934. if(lastLightning)then
  935. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  936. end
  937. delay = delay + delayInc
  938. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  939. local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)))
  940. if(parts == i)then
  941. local MagZ = (pos-eCF.p).magnitude
  942. zapPart.Size = V3.N(endThick,endThick,MagZ)
  943. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  944. Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}}
  945. else
  946. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  947. end
  948.  
  949. lastLightning = zapPart
  950. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  951.  
  952. thick=thick-inc
  953.  
  954. end
  955. end
  956.  
  957. function Zap2(data)
  958. local Color = data.Color or BrickColor.new'Electric blue'
  959. local StartPos = data.Start or Torso.Position
  960. local EndPos = data.End or Mouse.Hit.p
  961. local SegLength = data.SegL or 2
  962. local Thicc = data.Thickness or 0.5
  963. local Fades = data.Fade or 45
  964. local Parent = data.Parent or Effects
  965. local MaxD = data.MaxDist or 200
  966. local Branch = data.Branches or false
  967. local Material = data.Material or Enum.Material.Neon
  968. local Raycasts = data.Raycasts or false
  969. local Offset = data.Offset or {0,360}
  970. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  971. if((StartPos-EndPos).magnitude > MaxD)then
  972. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  973. end
  974. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  975. if(Raycasts)then
  976. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  977. end
  978. local segments = dist/SegLength
  979. local model = IN("Model",Parent)
  980. model.Name = 'Lightning'
  981. local Last;
  982. for i = 1, segments do
  983. local size = (segments-i)/25
  984. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  985. if(AddMesh)then IN("CylinderMesh",prt) end
  986. if(Last and math.floor(segments) == i)then
  987. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  988. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  989. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0)
  990. elseif(not Last)then
  991. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  992. else
  993. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  994. end
  995. Last = prt
  996. if(Branch)then
  997. local choice = M.RNG(1,7+((segments-i)*2))
  998. if(choice == 1)then
  999. local LastB;
  1000. for i2 = 1,M.RNG(2,5) do
  1001. local size2 = ((segments-i)/35)/i2
  1002. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  1003. if(AddMesh)then IN("CylinderMesh",prt) end
  1004. if(not LastB)then
  1005. prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1006. else
  1007. prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  1008. end
  1009. LastB = prt
  1010. end
  1011. end
  1012. end
  1013. end
  1014. if(Fades > 0)then
  1015. coroutine.wrap(function()
  1016. for i = 1, Fades do
  1017. for _,v in next, model:children() do
  1018. if(v:IsA'BasePart')then
  1019. v.Transparency = (i/Fades)
  1020. end
  1021. end
  1022. swait()
  1023. end
  1024. model:destroy()
  1025. end)()
  1026. else
  1027. S.Debris:AddItem(model,.01)
  1028. end
  1029. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  1030. end
  1031.  
  1032. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1033. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1034. local tween = S.TweenService:Create(obj, info, props)
  1035.  
  1036. tween:Play()
  1037. end
  1038.  
  1039. function Effect(data)
  1040. local Color = data.Color or C3.N(0,0,0)
  1041. local Material = data.Material or Enum.Material.Neon;
  1042. local MeshD = data.Mesh or {};
  1043. local SoundD = data.Sound or nil;
  1044. local Shape = data.Shape or Enum.PartType.Block;
  1045. local Size = data.StartSize or V3.N(.1,.1,.1);
  1046. local ESize = data.EndSize or V3.N(6,6,6);
  1047. local Direction = data.Direction or nil;
  1048. local Speed = data.Speed or .1; -- studs per second
  1049. local Boomerang = data.Boomerang or {Enabled=false,SizeBoomerang=0,MoveBoomerang=0};
  1050. local Pos = data.CFrame or Torso.CFrame;
  1051. local Frames = data.Frames or 60;
  1052. local RotInc = data.RotInc or {0,0,0}
  1053. local StartTrans = data.TransStart or 0;
  1054. local EndTrans = data.TransEnd or 1;
  1055.  
  1056. if(typeof(RotInc) == 'number')then RotInc = {RotInc,RotInc,RotInc}; end
  1057. local S,PM,P;
  1058.  
  1059. coroutine.wrap(function()
  1060. P = Part(Effects,Color,Material,V3.N(1,1,1),Pos,true,false)
  1061.  
  1062. if(MeshD == "Blast")then
  1063. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',Size,V3.N(0,0,-Size.X/8))
  1064. elseif(MeshD == 'Ring')then
  1065. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',Size,V3.N(0,0,0))
  1066. elseif(MeshD == 'Slash1')then
  1067. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',V3.N(Size.X/10,.001,Size.Z/10),V3.N(0,0,0))
  1068. elseif(MeshD == 'Slash2')then
  1069. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',V3.N(Size.X/1000,Size.Y/100,Size.Z/100),V3.N(0,0,0))
  1070. elseif(MeshD == 'Slash3')then
  1071. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size,V3.N(0,0,0))
  1072. elseif(MeshD == 'Tornado1')then
  1073. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',Size/10,V3.N(0,0,0))
  1074. elseif(MeshD == 'Tornado2')then
  1075. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',Size/4,V3.N(0,0,0))
  1076. elseif(MeshD == 'Skull')then
  1077. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size*2,V3.N(0,0,0))
  1078. elseif(MeshD == 'Crystal')then
  1079. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',Size,V3.N(0,0,0))
  1080. elseif(MeshD == 'Cloud')then
  1081. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',Size,V3.N(0,0,0))
  1082. elseif(typeof(MeshD) == 'table')then
  1083. local Type = MeshD.Type or Enum.MeshType.Brick
  1084. local ID = MeshD.ID or '';
  1085. local Tex = MeshD.Texture or '';
  1086. local Offset = MeshD.Offset or V3.N(0,0,0)
  1087. PM = Mesh(P,Type,ID,Tex,Size,Offset)
  1088. else
  1089. PM = Mesh(P,Enum.MeshType.Brick,'','',Size)
  1090. end
  1091.  
  1092. if(typeof(SoundD) == 'table')then
  1093. local ID = SoundD.ID or '';
  1094. local Pitch = SoundD.Pitch or 1;
  1095. local Volume = SoundD.Volume or 1;
  1096. S = Sound(P,ID,Pitch,Volume,false,true,true)
  1097. elseif(typeof(SoundD) == 'string' or typeof(SoundD) == 'number')then
  1098. S = Sound(P,SoundD,1,1,false,true,true)
  1099. end
  1100. local grow = (Size - ESize)
  1101. local SizeBoomer = 1+Boomerang.SizeBoomerang/50
  1102. local MoveBoomer = 1+Boomerang.MoveBoomerang/50
  1103. if(Boomerang and Boomerang.Enabled)then
  1104. grow = (Size - ESize)*(SizeBoomer+1)
  1105. end
  1106. local TransChange = StartTrans - EndTrans
  1107. for i = 0, Frames do
  1108. local MoveSpeed = -Speed
  1109. local scaleGay = grow/Frames
  1110. if(Boomerang and Boomerang.Enabled)then -- thanks shack
  1111. MoveSpeed = -(Speed)*((1-(i/Frames)*MoveBoomer))
  1112. scaleGay = (V3.N((grow.X)*((1 - (i/Frames)*SizeBoomer)),(grow.Y)*((1 - (i/Frames)*SizeBoomer)),(grow.Z)*((1 - (i/Frames)*SizeBoomer)))*SizeBoomer)/Frames
  1113. end
  1114. if(PM.MeshId == 'rbxassetid://20329976')then
  1115. PM.Offset = V3.N(0,0,-PM.Scale.Z/8)
  1116. elseif(PM.MeshId == 'rbxassetid://4770583')then
  1117. scaleGay = scaleGay*2
  1118. elseif(PM.MeshId == 'rbxassetid://168892432')then
  1119. scaleGay = scaleGay/4
  1120. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1121. scaleGay = scaleGay/10
  1122. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1123. scaleGay = scaleGay/10
  1124. end
  1125. PM.Scale = PM.Scale - scaleGay
  1126. P.Transparency = P.Transparency - TransChange/Frames
  1127. if(RotInc == 'random')then
  1128. P.CFrame=P.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1129. elseif(typeof(RotInc) == 'table')then
  1130. P.CFrame=P.CFrame*CF.A(unpack(RotInc))
  1131. end
  1132.  
  1133.  
  1134. if(Direction and Speed)then
  1135. local Orientation = P.Orientation
  1136. P.CFrame = CF.N(P.Position,P.Position+Direction)*CF.N(0,0,MoveSpeed)
  1137. P.Orientation = Orientation
  1138. end
  1139. swait()
  1140. end
  1141.  
  1142. P.Transparency = 1
  1143. if(S and S.Playing)then
  1144. repeat swait() until not S.Parent or not S.Playing
  1145. end
  1146. if(S and S.Parent)then
  1147. S:destroy()
  1148. end
  1149. end)()
  1150.  
  1151.  
  1152. end
  1153.  
  1154. function SoulSteal(whom)
  1155. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1156. print(torso)
  1157. if(torso and torso:IsA'BasePart')then
  1158. local Model = Instance.new("Model",Effects)
  1159. Model.Name = whom.Name.."'s Soul"
  1160. whom:BreakJoints()
  1161. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1162. Soul.Name = 'Head'
  1163. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1164. Effect{
  1165. Effect="Arc",
  1166. Manual = Soul,
  1167. FXSettings={
  1168. Start=torso.CFrame,
  1169. Home = Torso,
  1170. RemoveOnGoal = true,
  1171. }
  1172. }
  1173. local lastPoint = Soul.CFrame.p
  1174.  
  1175. for i = 0, 1, 0.01 do
  1176. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1177. local mag = (lastPoint - Soul.Position).magnitude
  1178. Effect{
  1179. Effect = "Fade",
  1180. CFrame = point * CF.N(0, mag/2, 0),
  1181. Size = V3.N(.5,mag+.5,.5),
  1182. Color = Soul.BrickColor
  1183. }
  1184. lastPoint = Soul.CFrame.p
  1185. swait()
  1186. end
  1187. for i = 1, 5 do
  1188. Effect{
  1189. Effect="Fade",
  1190. Color = BrickColor.new'Really red',
  1191. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1192. }
  1193. end
  1194. end
  1195. end
  1196.  
  1197. --// Other Functions \\ --
  1198.  
  1199. function CastRay(startPos,endPos,range,ignoreList)
  1200. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1201. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1202. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1203. end
  1204.  
  1205. function getRegion(point,range,ignore)
  1206. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1207. end
  1208.  
  1209. function clerp(startCF,endCF,alpha)
  1210. return startCF:lerp(endCF, alpha)
  1211. end
  1212.  
  1213. function GetTorso(char)
  1214. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1215. end
  1216.  
  1217.  
  1218. function ShowDamage(Pos, Text, Time, Color)
  1219. coroutine.wrap(function()
  1220. local Rate = (1 / Frame_Speed)
  1221. local Pos = (Pos or Vector3.new(0, 0, 0))
  1222. local Text = (Text or "")
  1223. local Time = (Time or 2)
  1224. local Color = (Color or Color3.new(1, 0, 1))
  1225. local EffectPart = NewInstance("Part",Effects,{
  1226. Material=Enum.Material.SmoothPlastic,
  1227. Reflectance = 0,
  1228. Transparency = 1,
  1229. BrickColor = BrickColor.new(Color),
  1230. Name = "Effect",
  1231. Size = Vector3.new(0,0,0),
  1232. Anchored = true,
  1233. CFrame = CF.N(Pos)
  1234. })
  1235. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1236. Size = UDim2.new(1.25, 0, 1.25, 0),
  1237. Adornee = EffectPart,
  1238. })
  1239. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1240. BackgroundTransparency = 1,
  1241. Size = UDim2.new(1, 0, 1, 0),
  1242. Text = Text,
  1243. Font = "Bodoni",
  1244. TextColor3 = Color,
  1245. TextStrokeColor3 = Color3.new(0,0,0),
  1246. TextStrokeTransparency=0,
  1247. TextScaled = true,
  1248. })
  1249. S.Debris:AddItem(EffectPart, (Time))
  1250. EffectPart.Parent = workspace
  1251. delay(0, function()
  1252. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1253. local Frames = (Time / Rate)
  1254. for Frame = 1, Frames do
  1255. swait()
  1256. local Percent = (Frame / Frames)
  1257. TextLabel.TextTransparency = Percent
  1258. TextLabel.TextStrokeTransparency = Percent
  1259. end
  1260. if EffectPart and EffectPart.Parent then
  1261. EffectPart:Destroy()
  1262. end
  1263. end) end)()
  1264. end
  1265.  
  1266. function DealDamage(data)
  1267. local Who = data.Who;
  1268. local MinDam = data.MinimumDamage or 15;
  1269. local MaxDam = data.MaximumDamage or 30;
  1270. local MaxHP = data.MaxHP or 1e5;
  1271.  
  1272. local DB = data.Debounce or .2;
  1273.  
  1274. local CritData = data.Crit or {}
  1275. local CritChance = CritData.Chance or 0;
  1276. local CritMultiplier = CritData.Multiplier or 1;
  1277.  
  1278. local DamageEffects = data.DamageFX or {}
  1279. local DamageType = DamageEffects.Type or "Normal"
  1280. local DeathFunction = DamageEffects.DeathFunction
  1281.  
  1282. assert(Who,"Specify someone to damage!")
  1283.  
  1284. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1285. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1286.  
  1287. local canHit = true
  1288. if(Humanoid)then
  1289. for _, p in pairs(Hit) do
  1290. if p[1] == Humanoid then
  1291. if(time() - p[2] <= DB) then
  1292. canHit = false
  1293. else
  1294. Hit[_] = nil
  1295. end
  1296. end
  1297. end
  1298. if(canHit)then
  1299. table.insert(Hit,{Humanoid,time()})
  1300. local HitTorso = GetTorso(Who)
  1301. local player = S.Players:GetPlayerFromCharacter(Who)
  1302. if(not player or player.UserId ~= 5719877 and player.UserId ~= 19081129)then
  1303. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1304. print'Got kill'
  1305. Humanoid.Health = 0;
  1306. Who:BreakJoints();
  1307. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1308. else
  1309. local c = Instance.new("ObjectValue",Hum)
  1310. c.Name = "creator"
  1311. c.Value = Plr
  1312. S.Debris:AddItem(c,0.35)
  1313. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1314. ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), DoneDamage, 1.5, DamageColor.Color)
  1315. end
  1316. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1317. Humanoid.Health = Humanoid.Health - DoneDamage
  1318.  
  1319. if(DamageType == 'Knockback' and HitTorso)then
  1320. local up = DamageEffects.KnockUp or 25
  1321. local back = DamageEffects.KnockBack or 25
  1322. local origin = DamageEffects.Origin or Root
  1323. local decay = DamageEffects.Decay or .5;
  1324.  
  1325. local bfos = Instance.new("BodyVelocity",HitTorso)
  1326. bfos.P = 20000
  1327. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1328. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1329. S.Debris:AddItem(bfos,decay)
  1330. end
  1331. end
  1332. end
  1333. end
  1334. end
  1335. end
  1336.  
  1337. function AOEDamage(where,range,options)
  1338. local hit = {}
  1339. for _,v in next, getRegion(where,range,{Char}) do
  1340. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1341. local callTable = {Who=v.Parent}
  1342. hit[v.Parent] = true
  1343. for _,v in next, options do callTable[_] = v end
  1344. DealDamage(callTable)
  1345. end
  1346. end
  1347. return hit
  1348. end
  1349.  
  1350. function AOEHeal(where,range,amount)
  1351. local healed = {}
  1352. for _,v in next, getRegion(where,range,{Char}) do
  1353. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1354. if(hum and not healed[hum])then
  1355. hum.Health = hum.Health + amount
  1356. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1357. ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color)
  1358. end
  1359. end
  1360. end
  1361. end
  1362.  
  1363.  
  1364. --// Wrap it all up \\--
  1365.  
  1366. local Beating = false
  1367. local LastTimeDadBeatMe = 0
  1368. local BeforeBeatenToDeathByDaddy = WalkSpeed
  1369.  
  1370. while true do
  1371. swait()
  1372. for _,v in next, Hearts do
  1373. local part,mesh,count = v[1],v[2],v[3]
  1374. --v[3] = v[3] + .25
  1375. --part.CFrame = CF.A(0,M.R(count),M.R(180))*CF.N(0,0,-853)
  1376. mesh.Scale = V3.N(Music.PlaybackLoudness/125,Music.PlaybackLoudness/125,1)
  1377. end
  1378.  
  1379. if(M.RNG(1,150) == 1 and not Attack and not Beating and time()-LastTimeDadBeatMe > M.RNG(50,300)/100)then
  1380. Beating = true
  1381. BeforeBeatenToDeathByDaddy = WalkSpeed
  1382. LastTimeDadBeatMe = time()
  1383. end
  1384.  
  1385. if(Beating and not Attack)then
  1386. NeutralAnims = false
  1387. WalkSpeed = 0
  1388. local Alpha = .4
  1389. local gay = Music.PlaybackLoudness/1150
  1390. local gay2 = Music.PlaybackLoudness/100
  1391. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+gay,0),Alpha)
  1392. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-5*M.S(Sine/8)),0,M.R(10)),Alpha)
  1393. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/8),0)*CF.A(0,0,M.R(-25+gay2)),Alpha)
  1394. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/8),0)*CF.A(0,0,M.R(25+gay2)),Alpha)
  1395. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,-gay,0)*CF.A(0,0,M.R(-10)),Alpha)
  1396. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,-gay,-.2),Alpha)
  1397. if(time()-LastTimeDadBeatMe >= M.RNG(50,100)/100)then
  1398. Beating = false
  1399. end
  1400. elseif(not Attack)then
  1401. NeutralAnims = true
  1402. WalkSpeed = BeforeBeatenToDeathByDaddy
  1403. end
  1404.  
  1405. Skybox.CFrame = Skybox.CFrame*CF.A(0,M.R(-.25),0)
  1406. Particles.Acceleration = V3.N(0,-workspace.Gravity,0)
  1407. Particles2.Acceleration = V3.N(0,-workspace.Gravity,0)
  1408. Sine = Sine + Change
  1409. if(not Music or not Music.Parent)then
  1410. local tp = (Music and Music.TimePosition)
  1411. Music = Sound(Char,MusicID,1,10,true,false,true)
  1412. Music.Name = 'Music'
  1413. Music.TimePosition = tp
  1414. end
  1415. Music.SoundId = "rbxassetid://"..MusicID
  1416. Music.Parent = Torso
  1417. Music.Pitch = 1
  1418. Music.Volume = 3
  1419. if(not Muted)then
  1420. Music:Resume()
  1421. else
  1422. Music:Pause()
  1423. end
  1424.  
  1425. for _, c in next, Char:GetDescendants() do
  1426. if c and c.Parent then
  1427. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  1428. local ACCESSORY = c.Parent
  1429. c.Parent = Char
  1430. if c then
  1431. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  1432. local weldd = IN("Weld")
  1433. weldd.Part0 = Head
  1434. weldd.Part1 = c
  1435. weldd.C0 = CF.N()
  1436. weldd.C1 = c.CFrame:inverse() * Head.CFrame
  1437. weldd.Parent = Head
  1438. else
  1439. local weldd = IN("Weld")
  1440. weldd.Part0 = Torso
  1441. weldd.Part1 = c
  1442. weldd.C0 = CF.N()
  1443. weldd.C1 = c.CFrame:inverse() * Torso.CFrame
  1444. weldd.Parent = Torso
  1445. end
  1446. end
  1447. ACCESSORY:remove()
  1448. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1449. c.Material = "Glass"
  1450. c.Color = C3.N(.2,0,0)
  1451. if c:FindFirstChildOfClass("SpecialMesh") and c ~= Skybox then
  1452. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1453. end
  1454. if c == Head then
  1455. if c:FindFirstChild("face") and Plr.Name ~= 'CKbackup' then
  1456. c.face:remove()
  1457. end
  1458. end
  1459. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1460. c.Color = C3.N(1,0,0)
  1461. c.Material = "Glass"
  1462. elseif c.Name == "Body Colors" then
  1463. c:remove()
  1464. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") then
  1465. c:remove()
  1466. end
  1467. end
  1468. end
  1469.  
  1470. if(God)then
  1471. Hum.MaxHealth = 1e100
  1472. Hum.Health = 1e100
  1473. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1474. Hum.Name = M.RNG()*100
  1475. end
  1476.  
  1477. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char)
  1478.  
  1479. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1480. local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' 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 (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle")
  1481. if(not Effects or not Effects.Parent)then
  1482. Effects = IN("Model",Char)
  1483. Effects.Name = "Effects"
  1484. end
  1485. if(State == 'Run')then
  1486. local wsVal = 7 / (Hum.WalkSpeed/16)
  1487. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1488. Change = 1
  1489. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.5,0,0),.2)
  1490. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.5,0,0),.2)
  1491. elseif(State == 'Walk')then
  1492. local wsVal = 7 / (Hum.WalkSpeed/10)
  1493. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1494. Change = 1
  1495. LH.C1 = LH.C1:lerp(CF.N(0,1+.3*M.C(Sine/wsVal),-.3*M.C(Sine/wsVal))*CF.A(M.R(10-0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1496. RH.C1 = RH.C1:lerp(CF.N(0,1-.3*M.C(Sine/wsVal),.3*M.C(Sine/wsVal))*CF.A(M.R(10+0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1497. else
  1498. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1499. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1500. end
  1501. Hum.WalkSpeed = WalkSpeed
  1502. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1503. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1504.  
  1505. if(NeutralAnims)then
  1506. if(State == 'Idle')then
  1507. local Alpha = .1
  1508. Change = 1
  1509. RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-.1+.1*M.C(Sine/8),0)*CF.A(M.R(0+5*M.C(Sine/8)),M.R(0-5*M.S(Sine/8)),0),Alpha)
  1510. NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-10-5*M.S(Sine/8)),0,M.R(10)),Alpha)
  1511. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.1*M.S(Sine/8),0)*CF.A(0,0,M.R(-10-15*M.C(Sine/8))),Alpha)
  1512. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.1*M.S(Sine/8),0)*CF.A(0,0,M.R(10+15*M.C(Sine/8))),Alpha)
  1513. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/8),0)*CF.A(0,0,M.R(-10))*CF.A(M.R(0-5*M.C(Sine/8)),M.R(0+5*M.S(Sine/8)),0),Alpha)
  1514. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/8),-.2)*CF.A(M.R(0-5*M.C(Sine/8)),M.R(0+5*M.S(Sine/8)),0),Alpha)
  1515. -- idle
  1516. elseif(State == 'Run')then
  1517. local wsVal = 7 / (Hum.WalkSpeed/16)
  1518. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1519. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1520. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1521. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1522. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1523. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1524. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1525. elseif(State == 'Walk')then
  1526. local wsVal = 7 / (Hum.WalkSpeed/10)
  1527. local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1)
  1528. RJ.C0 = RJ.C0:lerp(CF.N(0,-.075+.1*M.C(Sine/(wsVal/2)+-M.S(Sine/(wsVal/2))/7),0)*CF.A(M.R(-9-2.5*M.C(Sine/(wsVal/2))),M.R(10*M.C(Sine/wsVal)),Root.RotVelocity.y/75),Alpha)
  1529. NK.C0 = NK.C0:lerp(NKC0*CF.A(0,-Head.RotVelocity.y/75,0),Alpha)
  1530. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.14*M.C(Sine/wsVal))*CF.A(M.R(45*M.C(Sine/wsVal)),0,M.R(-5)+LArm.RotVelocity.y/75),Alpha)
  1531. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.14*M.C(Sine/wsVal))*CF.A(M.R(-45*M.C(Sine/wsVal)),0,M.R(5)-RArm.RotVelocity.y/75),Alpha)
  1532. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1533. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,0,0),Alpha)
  1534. elseif(State == 'Jump')then
  1535. local Alpha = .1
  1536. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1537. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1538. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1539. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1540. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1541. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1542. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1543. elseif(State == 'Fall')then
  1544. local Alpha = .1
  1545. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1546. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1547. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1548. RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1549. NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha)
  1550. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1551. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1552. elseif(State == 'Paralyzed')then
  1553. -- paralyzed
  1554. elseif(State == 'Sit')then
  1555. -- sit
  1556. end
  1557. end
  1558.  
  1559. for i,v in next, BloodPuddles do
  1560. local mesh = i:FindFirstChild'CylinderMesh'
  1561. BloodPuddles[i] = v + 1
  1562. if(not mesh or i.Transparency >= 1)then
  1563. i:destroy()
  1564. BloodPuddles[i] = nil
  1565. elseif(v >= Frame_Speed*4)then
  1566. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1567. i.Transparency = trans
  1568. if(mesh.Scale.Z > 0)then
  1569. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1570. end
  1571. else
  1572. i.Transparency = 0
  1573. end
  1574. end
  1575. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement