Advertisement
DerpzDeNugget

Derpzmations

Jul 16th, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.47 KB | None | 0 0
  1. -- Created by DerpzDeNugget_YT --
  2. -- First script I've ever made. Credit to Nebula_Zorua for the template! --
  3. -- Derpz...? --
  4. -- Derpz.. But I don't think he's that okay. --
  5. -- Sequel to the "Derpz, You okay?" Edit I made. --
  6.  
  7. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  8. print("FE Compatibility: by WaverlyCole & Mokiros")
  9. InternalData = {}
  10. do
  11. script.Parent = owner.Character
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput"
  14. local function NewFakeEvent()
  15. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  16. return Fake
  17. end
  18. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  19. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  20. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  21. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  22. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  23. local function TriggerEvent(self,Event,...)
  24. local Trigger = Mouse[Event]
  25. if Trigger and Trigger.fakeEvent and Trigger.Function then
  26. Trigger.Function(...)
  27. end
  28. end
  29. Mouse.TrigEvent = TriggerEvent
  30. UserInputService.TrigEvent = TriggerEvent
  31. Event.OnServerEvent:Connect(function(FiredBy,Input)
  32. if FiredBy.Name ~= owner.Name then end
  33. if Input.MouseEvent then
  34. Mouse.Target = Input.Target
  35. Mouse.Hit = Input.Hit
  36. else
  37. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  38. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  39. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  40. end
  41. for _,Action in pairs(ContextActionService.Actions) do
  42. for _,Key in pairs(Action.Keys) do
  43. if Key==Input.KeyCode then
  44. Action.Function(Action.Name,Input.UserInputState,Input)
  45. end
  46. end
  47. end
  48. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50. end
  51. end)
  52. InternalData["Mouse"] = Mouse
  53. InternalData["ContextActionService"] = ContextActionService
  54. InternalData["UserInputService"] = UserInputService
  55. Event.Parent = NLS([[
  56. local Player = owner
  57. local Event = script:WaitForChild("UserInput")
  58. local UserInputService = game:GetService("UserInputService")
  59. local Mouse = Player:GetMouse()
  60. local Input = function(Input,gameProcessedEvent)
  61. if gameProcessedEvent then return end
  62. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  63. end
  64. UserInputService.InputBegan:Connect(Input)
  65. UserInputService.InputEnded:Connect(Input)
  66. local Hit,Target
  67. while wait(1/30) do
  68. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  69. Hit,Target = Mouse.Hit,Mouse.Target
  70. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  71. end
  72. end
  73. ]],owner.Character)
  74. end
  75. RealGame = game;game = setmetatable({},{
  76. __index = function (self,Index)
  77. local Sandbox = function (Thing)
  78. if Thing:IsA("Player") then
  79. local RealPlayer = Thing
  80. return setmetatable({},{
  81. __index = function (self,Index)
  82. local Type = type(RealPlayer[Index])
  83. if Type == "function" then
  84. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  85. return function (self)
  86. return InternalData["Mouse"]
  87. end
  88. end
  89. return function (self,...)
  90. return RealPlayer[Index](RealPlayer,...)
  91. end
  92. else
  93. if Index == "PlrObj" then
  94. return RealPlayer
  95. end
  96. return RealPlayer[Index]
  97. end
  98. end;
  99. __tostring = function(self)
  100. return RealPlayer.Name
  101. end
  102. })
  103. end
  104. end
  105. if RealGame[Index] then
  106. local Type = type(RealGame[Index])
  107. if Type == "function" then
  108. if Index:lower() == "getservice" or Index:lower() == "service" then
  109. return function (self,Service)
  110. if Service:lower() == "players" then
  111. return setmetatable({},{
  112. __index = function (self2,Index2)
  113. local RealService = RealGame:GetService(Service)
  114. local Type2 = type(Index2)
  115. if Type2 == "function" then
  116. return function (self,...)
  117. return RealService[Index2](RealService,...)
  118. end
  119. else
  120. if Index2:lower() == "localplayer" then
  121. return Sandbox(owner)
  122. end
  123. return RealService[Index2]
  124. end
  125. end;
  126. __tostring = function(self)
  127. return RealGame:GetService(Service).Name
  128. end
  129. })
  130. elseif Service:lower() == "contextactionservice" then
  131. return InternalData["ContextActionService"]
  132. elseif Service:lower() == "contextactionservice" then
  133. return InternalData["UserInputService"]
  134. elseif Service:lower() == "runservice" then
  135. return setmetatable({},{
  136. __index = function(self2,Index2)
  137. local RealService = RealGame:GetService(Service)
  138. local Type2 = type(Index2)
  139. if Type2 == "function" then
  140. return function (self,...)
  141. return RealService[Index2](RealService,...)
  142. end
  143. else
  144. if Index2:lower() == "bindtorenderstep" then
  145. return function (self,Name,Priority,Function)
  146. return RealGame:GetService("RunService").Stepped:Connect(Function)
  147. end
  148. end
  149. if Index2:lower() == "renderstepped" then
  150. return RealService["Stepped"]
  151. end
  152. return RealService[Index2]
  153. end
  154. end
  155. })
  156. else
  157. return RealGame:GetService(Service)
  158. end
  159. end
  160. end
  161. return function (self,...)
  162. return RealGame[Index](RealGame,...)
  163. end
  164. else
  165. if game:GetService(Index) then
  166. return game:GetService(Index)
  167. end
  168. return RealGame[Index]
  169. end
  170. else
  171. return nil
  172. end
  173. end
  174. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  175. print("Complete! Running...")
  176.  
  177.  
  178. --//Paste script below this line.
  179.  
  180. wait(1/60)
  181. warn("Derpzmations by DerpzDeNugget_YT.")
  182. --// Shortcut Variables \\--
  183. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  184. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  185. 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}
  186. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  187. 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}
  188. local R3 = {N=Region3.new}
  189. local De = S.Debris
  190. local WS = workspace
  191. local Lght = S.Lighting
  192. local RepS = S.ReplicatedStorage
  193. local IN = Instance.new
  194. local Plrs = S.Players
  195.  
  196. --// Initializing \\--
  197. local Plr = Plrs.LocalPlayer
  198. local Char = Plr.Character
  199. local Hum = Char:FindFirstChildOfClass'Humanoid'
  200. local RArm = Char["Right Arm"]
  201. local LArm = Char["Left Arm"]
  202. local RLeg = Char["Right Leg"]
  203. local LLeg = Char["Left Leg"]
  204. local Root = Char:FindFirstChild'HumanoidRootPart'
  205. local Torso = Char.Torso
  206. local Head = Char.Head
  207. local NeutralAnims = true
  208. local Attack = false
  209. local Debounces = {Debounces={}}
  210. local Mouse = Plr:GetMouse()
  211. local Hit = {}
  212. local Sine = 0
  213. local Change = 1
  214. local BloodPuddles = {}
  215.  
  216. local Effects = IN("Folder",Char)
  217. Effects.Name = "Effects"
  218.  
  219.  
  220. --// Debounce System \\--
  221.  
  222.  
  223. function Debounces:New(name,cooldown)
  224. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  225. setmetatable(aaaaa,{__index = Debounces})
  226. Debounces.Debounces[name] = aaaaa
  227. return aaaaa
  228. end
  229.  
  230. function Debounces:Use(overrideUsable)
  231. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  232. if(self.Usable or overrideUsable)then
  233. self.Usable = false
  234. self.CoolingDown = true
  235. local LastUse = time()
  236. self.LastUse = LastUse
  237. delay(self.Cooldown or 2,function()
  238. if(self.LastUse == LastUse)then
  239. self.CoolingDown = false
  240. self.Usable = true
  241. end
  242. end)
  243. end
  244. end
  245.  
  246. function Debounces:Get(name)
  247. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  248. for i,v in next, Debounces.Debounces do
  249. if(i == name)then
  250. return v;
  251. end
  252. end
  253. end
  254.  
  255. function Debounces:GetProgressPercentage()
  256. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  257. if(self.CoolingDown and not self.Usable)then
  258. return math.max(
  259. math.floor(
  260. (
  261. (time()-self.LastUse)/self.Cooldown or 2
  262. )*100
  263. )
  264. )
  265. else
  266. return 100
  267. end
  268. end
  269.  
  270. --// Instance Creation Functions \\--
  271. local baseSound = IN("Sound")
  272. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  273. local Sound = baseSound:Clone()
  274. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  275. Sound.Pitch = pitch or 1
  276. Sound.Volume = volume or 1
  277. Sound.Looped = looped or false
  278. if(autoPlay)then
  279. coroutine.wrap(function()
  280. repeat wait() until Sound.IsLoaded
  281. Sound.Playing = autoPlay or false
  282. end)()
  283. end
  284. if(not looped and effect)then
  285. Sound.Stopped:connect(function()
  286. Sound.Volume = 0
  287. Sound:destroy()
  288. end)
  289. elseif(effect)then
  290. warn("Sound can't be looped and a sound effect!")
  291. end
  292. Sound.Parent =parent or Torso
  293. return Sound
  294. end
  295. function Part(parent,color,material,size,cframe,anchored,cancollide)
  296. local part = IN("Part")
  297. part.Parent = parent or Char
  298. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  299. part.Material = material or Enum.Material.SmoothPlastic
  300. part.TopSurface,part.BottomSurface=10,10
  301. part.Size = size or V3.N(1,1,1)
  302. part.CFrame = cframe or CF.N(0,0,0)
  303. part.CanCollide = cancollide or false
  304. part.Anchored = anchored or false
  305. return part
  306. end
  307.  
  308. function Weld(part0,part1,c0,c1)
  309. local weld = IN("Weld")
  310. weld.Parent = part0
  311. weld.Part0 = part0
  312. weld.Part1 = part1
  313. weld.C0 = c0 or CF.N()
  314. weld.C1 = c1 or CF.N()
  315. return weld
  316. end
  317.  
  318. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  319. local part = IN("SpecialMesh")
  320. part.MeshId = meshid or ""
  321. part.TextureId = textid or ""
  322. part.Scale = scale or V3.N(1,1,1)
  323. part.Offset = offset or V3.N(0,0,0)
  324. part.MeshType = meshtype or Enum.MeshType.Sphere
  325. part.Parent = parent
  326. return part
  327. end
  328.  
  329. NewInstance = function(instance,parent,properties)
  330. local inst = Instance.new(instance)
  331. inst.Parent = parent
  332. if(properties)then
  333. for i,v in next, properties do
  334. pcall(function() inst[i] = v end)
  335. end
  336. end
  337. return inst;
  338. end
  339.  
  340. function Clone(instance,parent,properties)
  341. local inst = instance:Clone()
  342. inst.Parent = parent
  343. if(properties)then
  344. for i,v in next, properties do
  345. pcall(function() inst[i] = v end)
  346. end
  347. end
  348. return inst;
  349. end
  350.  
  351. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  352. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  353. local Sound = IN("Sound")
  354. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  355. Sound.Pitch = pitch or 1
  356. Sound.Volume = volume or 1
  357. Sound.Looped = looped or false
  358. if(autoPlay)then
  359. coroutine.wrap(function()
  360. repeat wait() until Sound.IsLoaded
  361. Sound.Playing = autoPlay or false
  362. end)()
  363. end
  364. if(not looped and effect)then
  365. Sound.Stopped:connect(function()
  366. Sound.Volume = 0
  367. soundPart:destroy()
  368. end)
  369. elseif(effect)then
  370. warn("Sound can't be looped and a sound effect!")
  371. end
  372. Sound.Parent = soundPart
  373. return Sound
  374. end
  375.  
  376.  
  377. --// Extended ROBLOX tables \\--
  378. 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})
  379. --// Require stuff \\--
  380. function CamShake(who,times,intense,origin)
  381. coroutine.wrap(function()
  382. if(script:FindFirstChild'CamShake')then
  383. local cam = script.CamShake:Clone()
  384. cam:WaitForChild'intensity'.Value = intense
  385. cam:WaitForChild'times'.Value = times
  386.  
  387. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  388. cam.Parent = who
  389. wait()
  390. cam.Disabled = false
  391. elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then
  392. local intensity = intense
  393. if(Hum and not Hum:FindFirstChild'CamShaking')then
  394. local cam = workspace.CurrentCamera
  395. local oCO = Hum.CameraOffset
  396. local cs = Instance.new("BoolValue",Hum)
  397. cs.Name = "CamShaking"
  398. for i = 1, times do
  399. local camDistFromOrigin
  400. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  401. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin.Position).magnitude )/25
  402. elseif(typeof(origin) == 'Vector3')then
  403. camDistFromOrigin = math.floor( (cam.CoordinateFrame.p-origin).magnitude )/25
  404. end
  405. if(camDistFromOrigin)then
  406. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  407. end
  408. --cam.CoordinateFrame = cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  409. if(Hum)then
  410. Hum.CameraOffset = Vector3.new(math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200,math.random(-intensity,intensity)/200)
  411. end
  412. swait()
  413. end
  414. if(Hum)then
  415. Hum.CameraOffset = oCO
  416. end
  417. cs:destroy()
  418. end
  419. end
  420. end)()
  421. end
  422.  
  423.  
  424. function CamShakeAll(times,intense,origin)
  425. for _,v in next, Plrs:players() do
  426. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  427. end
  428. end
  429.  
  430. function ServerScript(code)
  431. if(script:FindFirstChild'Loadstring')then
  432. local load = script.Loadstring:Clone()
  433. load:WaitForChild'Sauce'.Value = code
  434. load.Disabled = false
  435. load.Parent = workspace
  436. elseif(NS and typeof(NS) == 'function')then
  437. NS(code,workspace)
  438. else
  439. warn("no serverscripts lol")
  440. end
  441. end
  442.  
  443. function LocalOnPlayer(who,code)
  444. ServerScript([[
  445. wait()
  446. script.Parent=nil
  447. if(not _G.Http)then _G.Http = game:service'HttpService' end
  448.  
  449. local Http = _G.Http or game:service'HttpService'
  450.  
  451. local source = ]].."[["..code.."]]"..[[
  452. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  453. local asd = Http:PostAsync(link,source)
  454. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  455. local ID = Http:JSONDecode(asd).Result.Require_ID
  456. local vs = require(ID).VORTH_SCRIPT
  457. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  458. ]])
  459. end
  460.  
  461.  
  462. function Nametag(color,tag)
  463. local r,g,b = C3.tRGB(color)
  464. local c3 = C3.RGB(r/2,g/2,b/2)
  465. local name = script:FindFirstChild'Nametag' and script.Nametag:Clone();
  466. if(not name)then
  467. name = NewInstance("BillboardGui",nil,{MaxDistance=150,AlwaysOnTop=true,Active=false,Size=UDim2.new(5,0,1,0),SizeOffset=Vector2.new(0,6)})
  468. 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,})
  469. 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,})
  470. end
  471. name.Title.Text = tag
  472. name.Title.TextColor3 = color
  473. name.Title.TextStrokeColor3 = c3
  474.  
  475. name.PlayerName.Text = Plr.Name
  476. name.PlayerName.TextColor3 = color
  477. name.PlayerName.TextStrokeColor3 = c3
  478.  
  479. name.Parent = Char
  480. name.Adornee = Head
  481.  
  482. return name
  483. end
  484.  
  485. --// Customization \\--
  486.  
  487. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  488. local Remove_Hats = false
  489. local Remove_Clothing = false
  490. local PlayerSize = 1
  491. local DamageColor = BrickColor.new'Navy blue'
  492. local MusicID = 1564523997
  493. local God = true
  494. local Muted = false
  495.  
  496. local WalkSpeed = 20
  497.  
  498. --// Weapon and GUI creation, and Character Customization \\--
  499.  
  500. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  501. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  502.  
  503. if(PlayerSize ~= 1)then
  504. for _,v in next, Char:GetDescendants() do
  505. if(v:IsA'BasePart')then
  506. v.Size = v.Size * PlayerSize
  507. end
  508. end
  509. end
  510.  
  511.  
  512. local Music = Sound(Char,MusicID,1,3,true,false,true)
  513. Music.Name = 'Music'
  514.  
  515. --// Stop animations \\--
  516. for _,v in next, Hum:GetPlayingAnimationTracks() do
  517. v:Stop();
  518. end
  519.  
  520. pcall(game.Destroy,Char:FindFirstChild'Animate')
  521. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  522.  
  523. --// Joints \\--
  524.  
  525. 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)})
  526. 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)})
  527. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  528. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  529. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  530. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  531.  
  532. local LSC0 = LS.C0
  533. local RSC0 = RS.C0
  534. local NKC0 = NK.C0
  535. local LHC0 = LH.C0
  536. local RHC0 = RH.C0
  537. local RJC0 = RJ.C0
  538.  
  539. --// Artificial HB \\--
  540.  
  541. local ArtificialHB = IN("BindableEvent", script)
  542. ArtificialHB.Name = "Heartbeat"
  543.  
  544. script:WaitForChild("Heartbeat")
  545.  
  546. local tf = 0
  547. local allowframeloss = false
  548. local tossremainder = false
  549. local lastframe = tick()
  550. local frame = 1/Frame_Speed
  551. ArtificialHB:Fire()
  552.  
  553. game:GetService("RunService").Heartbeat:connect(function(s, p)
  554. tf = tf + s
  555. if tf >= frame then
  556. if allowframeloss then
  557. script.Heartbeat:Fire()
  558. lastframe = tick()
  559. else
  560. for i = 1, math.floor(tf / frame) do
  561. ArtificialHB:Fire()
  562. end
  563. lastframe = tick()
  564. end
  565. if tossremainder then
  566. tf = 0
  567. else
  568. tf = tf - frame * math.floor(tf / frame)
  569. end
  570. end
  571. end)
  572.  
  573. function swait(num)
  574. if num == 0 or num == nil then
  575. ArtificialHB.Event:wait()
  576. else
  577. for i = 0, num do
  578. ArtificialHB.Event:wait()
  579. end
  580. end
  581. end
  582.  
  583.  
  584. --// Effect Function(s) \\--
  585.  
  586. function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId,Axis)
  587. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  588. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  589. local Scale = 1
  590. local speeder = Speed
  591. if(Type == "Multiply")then
  592. Scale = 1*Inc
  593. elseif(Type == "Divide")then
  594. Scale = 1/Inc
  595. end
  596. coroutine.wrap(function()
  597. for i = 0,10/Lifetime,.1 do
  598.  
  599. if(Type == "Multiply")then
  600. Scale = Scale - 0.01*Inc/Lifetime
  601. elseif(Type == "Divide")then
  602. Scale = Scale - 0.01/Inc*Lifetime
  603. end
  604. speeder = speeder - 0.01*Speed*Lifetime
  605. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  606. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  607. if(Axis == 'x')then
  608. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, 0, 0)
  609. elseif(Axis == 'y')then
  610. fxM.Scale = fxM.Scale + Vector3.new(0, Scale*Lifetime, 0)
  611. elseif(Axis == 'z')then
  612. fxM.Scale = fxM.Scale + Vector3.new(0, 0, Scale*Lifetime)
  613. elseif(Axis == 'xyz')then
  614. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,Scale*Lifetime,Scale*Lifetime)
  615. elseif(Axis == 'yz')then
  616. fxM.Scale = fxM.Scale + Vector3.new(0,Scale*Lifetime,Scale*Lifetime)
  617. elseif(Axis == 'xz')then
  618. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime,0,Scale*Lifetime)
  619. else
  620. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0)
  621. end
  622. if(fxP.Transparency >= 1)then break end
  623. swait()
  624. end
  625. fxP:destroy()
  626. end)()
  627. return fxP
  628. end
  629.  
  630. function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId)
  631. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false)
  632. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  633.  
  634. local Scale = 1
  635. if(Type == "Multiply")then
  636. Scale = 1*Inc
  637. elseif(Type == "Divide")then
  638. Scale = 1/Inc
  639. end
  640. coroutine.wrap(function()
  641. for i = 0,10/Lifetime,.1 do
  642.  
  643. if(Type == "Multiply")then
  644. Scale = Scale - 0.01*Inc/Lifetime
  645. elseif(Type == "Divide")then
  646. Scale = Scale - 0.01/Inc*Lifetime
  647. end
  648. fxP.Transparency = fxP.Transparency + 0.01*Lifetime
  649. fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  650. swait()
  651. end
  652. fxP:destroy()
  653. end)()
  654. end
  655.  
  656. function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId)
  657. local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false)
  658. local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N())
  659. local Scale = 1
  660. local speeder = Speed
  661. if(Type == "Multiply")then
  662. Scale = 1*Inc
  663. elseif(Type == "Divide")then
  664. Scale = 1/Inc
  665. end
  666. coroutine.wrap(function()
  667. for i = 0,10/Lifetime,.1 do
  668. if(Type == "Multiply")then
  669. Scale = Scale - 0.01*Inc/Lifetime
  670. elseif(Type == "Divide")then
  671. Scale = Scale - 0.01/Inc*Lifetime
  672. end
  673. if(Fade)then
  674. fxP.Transparency = i/(10/Lifetime)
  675. end
  676. speeder = speeder - 0.01*Speed*Lifetime/10
  677. fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime
  678. fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime)
  679. swait()
  680. end
  681. fxP:destroy()
  682. end)()
  683. end
  684.  
  685. function Bezier(startpos, pos2, pos3, endpos, t)
  686. local A = startpos:lerp(pos2, t)
  687. local B = pos2:lerp(pos3, t)
  688. local C = pos3:lerp(endpos, t)
  689. local lerp1 = A:lerp(B, t)
  690. local lerp2 = B:lerp(C, t)
  691. local cubic = lerp1:lerp(lerp2, t)
  692. return cubic
  693. end
  694. function Puddle(hit,pos,norm,data)
  695. local material = data.Material or Enum.Material.SmoothPlastic
  696. local color = data.Color or BrickColor.new'Crimson'
  697. local size = data.Size or 1
  698.  
  699. if(hit.Name ~= 'BloodPuddle')then
  700. 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'})
  701. local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'})
  702. BloodPuddles[Puddle] = 0
  703. else
  704. local cyl = hit:FindFirstChild'CylinderMesh'
  705. if(cyl)then
  706. BloodPuddles[hit] = 0
  707. cyl.Scale = cyl.Scale + V3.N(size,0,size)
  708. hit.Transparency = 0
  709. end
  710. end
  711. end
  712.  
  713. function Droplet(data)
  714. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  715. local Size = data.Size or 1
  716. local Color = data.Color or BrickColor.new'Crimson'
  717. local StudsPerFrame = data.Speed or 1
  718. local Shape = data.Shape or 'Ball'
  719. local Frames = (data.Frames or 160)+1
  720. local Pos = data.Origin or Root.CFrame
  721. local Direction = data.Direction or Root.CFrame.lookVector*100000
  722. local Material = data.Material or Enum.Material.SmoothPlastic
  723. local Drop = data.Drop or .05
  724. local Ignorelist = data.Ignorelist or nil
  725.  
  726. local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false)
  727. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  728. if(Shape == 'Ball')then
  729. BMesh.MeshType = Enum.MeshType.Sphere
  730. elseif(Shape == 'Head')then
  731. BMesh.MeshType = Enum.MeshType.Head
  732. elseif(Shape == 'Cylinder')then
  733. BMesh.MeshType = Enum.MeshType.Cylinder
  734. end
  735.  
  736. coroutine.wrap(function()
  737. for i = 1, Frames do
  738. Pos = Pos * CF.N(0,-(Drop*i),0)
  739. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame)
  740. if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then
  741. Puddle(hit,pos,norm,data)
  742. break;
  743. else
  744. Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i))
  745. end
  746. swait()
  747. end
  748. Bullet:destroy()
  749. end)()
  750. end
  751.  
  752. function SphereFX(duration,color,scale,pos,endScale,increment)
  753. return Effect{
  754. Effect='ResizeAndFade',
  755. Color=color,
  756. Size=scale,
  757. Mesh={MeshType=Enum.MeshType.Sphere},
  758. CFrame=pos,
  759. FXSettings={
  760. EndSize=endScale,
  761. EndIsIncrement=increment
  762. }
  763. }
  764. end
  765.  
  766. function BlastFX(duration,color,scale,pos,endScale,increment)
  767. return Effect{
  768. Effect='ResizeAndFade',
  769. Color=color,
  770. Size=scale,
  771. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  772. CFrame=pos,
  773. FXSettings={
  774. EndSize=endScale,
  775. EndIsIncrement=increment
  776. }
  777. }
  778. end
  779.  
  780. function BlockFX(duration,color,scale,pos,endScale,increment)
  781. return Effect{
  782. Effect='ResizeAndFade',
  783. Color=color,
  784. Size=scale,
  785. CFrame=pos,
  786. FXSettings={
  787. EndSize=endScale,
  788. EndIsIncrement=increment
  789. }
  790. }
  791. end
  792.  
  793. function ShootBullet(data)
  794. --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10}
  795. local Size = data.Size or V3.N(2,2,2)
  796. local Color = data.Color or BrickColor.new'Crimson'
  797. local StudsPerFrame = data.Speed or 10
  798. local Shape = data.Shape or 'Ball'
  799. local Frames = data.Frames or 160
  800. local Pos = data.Origin or Torso.CFrame
  801. local Direction = data.Direction or Mouse.Hit
  802. local Material = data.Material or Enum.Material.Neon
  803. local OnHit = data.HitFunction or function(hit,pos)
  804. Effect{
  805. Effect='ResizeAndFade',
  806. Color=Color,
  807. Size=V3.N(10,10,10),
  808. Mesh={MeshType=Enum.MeshType.Sphere},
  809. CFrame=CF.N(pos),
  810. FXSettings={
  811. EndSize=V3.N(.05,.05,.05),
  812. EndIsIncrement=true
  813. }
  814. }
  815. for i = 1, 5 do
  816. local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  817. Effect{
  818. Effect='Fade',
  819. Frames=65,
  820. Size=V3.N(5,5,10),
  821. CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos),
  822. Mesh = {MeshType=Enum.MeshType.Sphere},
  823. Material=Enum.Material.Neon,
  824. Color=Color,
  825. MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p,
  826. }
  827. end
  828. end
  829.  
  830. local Bullet = Part(Effects,Color,Material,Size,Pos,true,false)
  831. local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N())
  832. if(Shape == 'Ball')then
  833. BMesh.MeshType = Enum.MeshType.Sphere
  834. elseif(Shape == 'Head')then
  835. BMesh.MeshType = Enum.MeshType.Head
  836. elseif(Shape == 'Cylinder')then
  837. BMesh.MeshType = Enum.MeshType.Cylinder
  838. end
  839.  
  840. coroutine.wrap(function()
  841. for i = 1, Frames+1 do
  842. local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame)
  843. if(hit)then
  844. OnHit(hit,pos,norm,dist)
  845. break;
  846. else
  847. Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame)
  848. end
  849. swait()
  850. end
  851. Bullet:destroy()
  852. end)()
  853.  
  854. end
  855.  
  856.  
  857. function Zap(data)
  858. local sCF,eCF = data.StartCFrame,data.EndCFrame
  859. assert(sCF,"You need a start CFrame!")
  860. assert(eCF,"You need an end CFrame!")
  861. local parts = data.PartCount or 15
  862. local zapRot = data.ZapRotation or {-5,5}
  863. local startThick = data.StartSize or 3;
  864. local endThick = data.EndSize or startThick/2;
  865. local color = data.Color or BrickColor.new'Electric blue'
  866. local delay = data.Delay or 35
  867. local delayInc = data.DelayInc or 0
  868. local lastLightning;
  869. local MagZ = (sCF.p - eCF.p).magnitude
  870. local thick = startThick
  871. local inc = (startThick/parts)-(endThick/parts)
  872.  
  873. for i = 1, parts do
  874. local pos = sCF.p
  875. if(lastLightning)then
  876. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  877. end
  878. delay = delay + delayInc
  879. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  880. 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)))
  881. if(parts == i)then
  882. local MagZ = (pos-eCF.p).magnitude
  883. zapPart.Size = V3.N(endThick,endThick,MagZ)
  884. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  885. 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)}}
  886. else
  887. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  888. end
  889.  
  890. lastLightning = zapPart
  891. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  892.  
  893. thick=thick-inc
  894.  
  895. end
  896. end
  897.  
  898. function Zap2(data)
  899. local Color = data.Color or BrickColor.new'Electric blue'
  900. local StartPos = data.Start or Torso.Position
  901. local EndPos = data.End or Mouse.Hit.p
  902. local SegLength = data.SegL or 2
  903. local Thicc = data.Thickness or 0.5
  904. local Fades = data.Fade or 45
  905. local Parent = data.Parent or Effects
  906. local MaxD = data.MaxDist or 200
  907. local Branch = data.Branches or false
  908. local Material = data.Material or Enum.Material.Neon
  909. local Raycasts = data.Raycasts or false
  910. local Offset = data.Offset or {0,360}
  911. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  912. if((StartPos-EndPos).magnitude > MaxD)then
  913. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  914. end
  915. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  916. if(Raycasts)then
  917. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  918. end
  919. local segments = dist/SegLength
  920. local model = IN("Model",Parent)
  921. model.Name = 'Lightning'
  922. local Last;
  923. for i = 1, segments do
  924. local size = (segments-i)/25
  925. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  926. if(AddMesh)then IN("CylinderMesh",prt) end
  927. if(Last and math.floor(segments) == i)then
  928. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  929. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  930. 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)
  931. elseif(not Last)then
  932. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  933. else
  934. 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)
  935. end
  936. Last = prt
  937. if(Branch)then
  938. local choice = M.RNG(1,7+((segments-i)*2))
  939. if(choice == 1)then
  940. local LastB;
  941. for i2 = 1,M.RNG(2,5) do
  942. local size2 = ((segments-i)/35)/i2
  943. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  944. if(AddMesh)then IN("CylinderMesh",prt) end
  945. if(not LastB)then
  946. 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)
  947. else
  948. 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)
  949. end
  950. LastB = prt
  951. end
  952. end
  953. end
  954. end
  955. if(Fades > 0)then
  956. coroutine.wrap(function()
  957. for i = 1, Fades do
  958. for _,v in next, model:children() do
  959. if(v:IsA'BasePart')then
  960. v.Transparency = (i/Fades)
  961. end
  962. end
  963. swait()
  964. end
  965. model:destroy()
  966. end)()
  967. else
  968. S.Debris:AddItem(model,.01)
  969. end
  970. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  971. end
  972.  
  973. function Tween(obj,props,time,easing,direction,repeats,backwards)
  974. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  975. local tween = S.TweenService:Create(obj, info, props)
  976.  
  977. tween:Play()
  978. end
  979.  
  980. function Effect(data)
  981. local Color = data.Color or C3.N(0,0,0)
  982. local Material = data.Material or Enum.Material.Neon;
  983. local MeshD = data.Mesh or {};
  984. local SoundD = data.Sound or nil;
  985. local Shape = data.Shape or Enum.PartType.Block;
  986. local Size = data.StartSize or V3.N(.1,.1,.1);
  987. local ESize = data.EndSize or V3.N(6,6,6);
  988. local Direction = data.Direction or nil;
  989. local Speed = data.Speed or .1; -- studs per second
  990. local Boomerang = data.Boomerang or {Enabled=false,SizeBoomerang=0,MoveBoomerang=0};
  991. local Pos = data.CFrame or Torso.CFrame;
  992. local Frames = data.Frames or 60;
  993. local RotInc = data.RotInc or {0,0,0}
  994. local StartTrans = data.TransStart or 0;
  995. local EndTrans = data.TransEnd or 1;
  996. local KeepOrientation = data.KeepOrien or false;
  997.  
  998. if(typeof(RotInc) == 'number')then RotInc = {RotInc,RotInc,RotInc}; end
  999. local S,PM,P;
  1000.  
  1001. coroutine.wrap(function()
  1002. P = Part(Effects,Color,Material,V3.N(1,1,1),Pos,true,false)
  1003.  
  1004. if(MeshD == "Blast")then
  1005. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://20329976','',Size,V3.N(0,0,-Size.X/8))
  1006. elseif(MeshD == 'Ring')then
  1007. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://559831844','',Size,V3.N(0,0,0))
  1008. elseif(MeshD == 'Slash1')then
  1009. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://662586858','',V3.N(Size.X/10,.001,Size.Z/10),V3.N(0,0,0))
  1010. elseif(MeshD == 'Slash2')then
  1011. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://448386996','',V3.N(Size.X/1000,Size.Y/100,Size.Z/100),V3.N(0,0,0))
  1012. elseif(MeshD == 'Tornado1')then
  1013. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://443529437','',Size/10,V3.N(0,0,0))
  1014. elseif(MeshD == 'Tornado2')then
  1015. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://168892432','',Size/4,V3.N(0,0,0))
  1016. elseif(MeshD == 'Skull')then
  1017. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://4770583','',Size*2,V3.N(0,0,0))
  1018. elseif(MeshD == 'Crystal')then
  1019. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://9756362','',Size,V3.N(0,0,0))
  1020. elseif(MeshD == 'Cloud')then
  1021. PM = Mesh(P,Enum.MeshType.FileMesh,'rbxassetid://1095708','',Size,V3.N(0,0,0))
  1022. elseif(typeof(MeshD) == 'table')then
  1023. local Type = MeshD.Type or Enum.MeshType.Brick
  1024. local ID = MeshD.ID or '';
  1025. local Tex = MeshD.Texture or '';
  1026. local Offset = MeshD.Offset or V3.N(0,0,0)
  1027. PM = Mesh(P,Type,ID,Tex,Size,Offset)
  1028. else
  1029. PM = Mesh(P,Enum.MeshType.Brick,'','',Size)
  1030. end
  1031.  
  1032. if(typeof(SoundD) == 'table' and SoundD.ID and SoundD.ID ~= '')then
  1033. local ID = SoundD.ID or '';
  1034. local Pitch = SoundD.Pitch or 1;
  1035. local Volume = SoundD.Volume or 1;
  1036. S = Sound(P,ID,Pitch,Volume,false,true,true)
  1037. elseif(typeof(SoundD) == 'string' or typeof(SoundD) == 'number')then
  1038. S = Sound(P,SoundD,1,1,false,true,true)
  1039. end
  1040. local grow = (Size - ESize)
  1041. local SizeBoomer = 1+Boomerang.SizeBoomerang/50
  1042. local MoveBoomer = 1+Boomerang.MoveBoomerang/50
  1043. if(Boomerang and Boomerang.Enabled)then
  1044. grow = (Size - ESize)*(SizeBoomer+1)
  1045. end
  1046. local TransChange = StartTrans - EndTrans
  1047. for i = 0, Frames do
  1048. local MoveSpeed = -Speed
  1049. local scaleGay = grow/Frames
  1050. if(Boomerang and Boomerang.Enabled)then -- thanks shack
  1051. MoveSpeed = -(Speed)*((1-(i/Frames)*MoveBoomer))
  1052. scaleGay = (V3.N((grow.X)*((1 - (i/Frames)*SizeBoomer)),(grow.Y)*((1 - (i/Frames)*SizeBoomer)),(grow.Z)*((1 - (i/Frames)*SizeBoomer)))*SizeBoomer)/Frames
  1053. end
  1054. PM.Scale = PM.Scale - scaleGay
  1055. if(PM.MeshId == 'rbxassetid://20329976')then
  1056. PM.Offset = V3.N(0,0,-PM.Scale.Z/8)
  1057. elseif(PM.MeshId == 'rbxassetid://4770583')then
  1058. scaleGay = scaleGay*2
  1059. elseif(PM.MeshId == 'rbxassetid://168892432')then
  1060. scaleGay = scaleGay/4
  1061. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1062. scaleGay = scaleGay/10
  1063. elseif(PM.MeshId == 'rbxassetid://443529437')then
  1064. scaleGay = scaleGay/10
  1065. end
  1066. P.Transparency = P.Transparency - TransChange/Frames
  1067. if(RotInc == 'random')then
  1068. P.CFrame=P.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180))
  1069. elseif(typeof(RotInc) == 'table')then
  1070. P.CFrame=P.CFrame*CF.A(unpack(RotInc))
  1071. end
  1072.  
  1073.  
  1074. if(Direction and Speed)then
  1075. local Orientation = P.Orientation
  1076. P.CFrame = CF.N(P.Position,P.Position+Direction)*CF.N(0,0,MoveSpeed)
  1077. if(KeepOrientation)then P.Orientation = Orientation end
  1078. end
  1079. swait()
  1080. end
  1081.  
  1082. P.Transparency = 1
  1083. if(S and S.Playing)then
  1084. repeat swait() until not S.Parent or not S.Playing
  1085. end
  1086. if(S and S.Parent)then
  1087. S:destroy()
  1088. end
  1089. P:destroy()
  1090. end)()
  1091.  
  1092.  
  1093. end
  1094.  
  1095. function SoulSteal(whom)
  1096. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  1097. print(torso)
  1098. if(torso and torso:IsA'BasePart')then
  1099. local Model = Instance.new("Model",Effects)
  1100. Model.Name = whom.Name.."'s Soul"
  1101. whom:BreakJoints()
  1102. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  1103. Soul.Name = 'Head'
  1104. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  1105. Effect{
  1106. Effect="Arc",
  1107. Manual = Soul,
  1108. FXSettings={
  1109. Start=torso.CFrame,
  1110. Home = Torso,
  1111. RemoveOnGoal = true,
  1112. }
  1113. }
  1114. local lastPoint = Soul.CFrame.p
  1115.  
  1116. for i = 0, 1, 0.01 do
  1117. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1118. local mag = (lastPoint - Soul.Position).magnitude
  1119. Effect{
  1120. Effect = "Fade",
  1121. CFrame = point * CF.N(0, mag/2, 0),
  1122. Size = V3.N(.5,mag+.5,.5),
  1123. Color = Soul.BrickColor
  1124. }
  1125. lastPoint = Soul.CFrame.p
  1126. swait()
  1127. end
  1128. for i = 1, 5 do
  1129. Effect{
  1130. Effect="Fade",
  1131. Color = BrickColor.new'Really red',
  1132. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  1133. }
  1134. end
  1135. end
  1136. end
  1137.  
  1138. --// Other Functions \\ --
  1139.  
  1140. function CastRay(startPos,endPos,range,ignoreList)
  1141. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  1142. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  1143. return part,pos,norm,(pos and (startPos-pos).magnitude)
  1144. end
  1145.  
  1146. function getRegion(point,range,ignore)
  1147. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  1148. end
  1149.  
  1150. function clerp(startCF,endCF,alpha)
  1151. return startCF:lerp(endCF, alpha)
  1152. end
  1153.  
  1154. function GetTorso(char)
  1155. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1156. end
  1157.  
  1158.  
  1159. function ShowDamage(Pos, Text, Time, Color)
  1160. coroutine.wrap(function()
  1161. local Rate = (1 / Frame_Speed)
  1162. local Pos = (Pos or Vector3.new(0, 0, 0))
  1163. local Text = (Text or "")
  1164. local Time = (Time or 2)
  1165. local Color = (Color or Color3.new(1, 0, 1))
  1166. local EffectPart = NewInstance("Part",Effects,{
  1167. Material=Enum.Material.SmoothPlastic,
  1168. Reflectance = 0,
  1169. Transparency = 1,
  1170. BrickColor = BrickColor.new(Color),
  1171. Name = "Effect",
  1172. Size = Vector3.new(0,0,0),
  1173. Anchored = true,
  1174. CFrame = CF.N(Pos)
  1175. })
  1176. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1177. Size = UDim2.new(1.25, 0, 1.25, 0),
  1178. Adornee = EffectPart,
  1179. })
  1180. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1181. BackgroundTransparency = 1,
  1182. Size = UDim2.new(1, 0, 1, 0),
  1183. Text = Text,
  1184. Font = "Bodoni",
  1185. TextColor3 = Color,
  1186. TextStrokeColor3 = Color3.new(0,0,0),
  1187. TextStrokeTransparency=0,
  1188. TextScaled = true,
  1189. })
  1190. S.Debris:AddItem(EffectPart, (Time))
  1191. EffectPart.Parent = workspace
  1192. delay(0, function()
  1193. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1194. local Frames = (Time / Rate)
  1195. for Frame = 1, Frames do
  1196. swait()
  1197. local Percent = (Frame / Frames)
  1198. TextLabel.TextTransparency = Percent
  1199. TextLabel.TextStrokeTransparency = Percent
  1200. end
  1201. if EffectPart and EffectPart.Parent then
  1202. EffectPart:Destroy()
  1203. end
  1204. end) end)()
  1205. end
  1206.  
  1207. function DealDamage(data)
  1208. local Who = data.Who;
  1209. local MinDam = data.MinimumDamage or 15;
  1210. local MaxDam = data.MaximumDamage or 30;
  1211. local MaxHP = data.MaxHP or 1e5;
  1212.  
  1213. local DB = data.Debounce or .2;
  1214.  
  1215. local CritData = data.Crit or {}
  1216. local CritChance = CritData.Chance or 0;
  1217. local CritMultiplier = CritData.Multiplier or 1;
  1218.  
  1219. local DamageEffects = data.DamageFX or {}
  1220. local DamageType = DamageEffects.Type or "Normal"
  1221. local DeathFunction = DamageEffects.DeathFunction
  1222.  
  1223. assert(Who,"Specify someone to damage!")
  1224.  
  1225. local Humanoid = Who:FindFirstChildOfClass'Humanoid'
  1226. local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1)
  1227.  
  1228. local canHit = true
  1229. if(Humanoid)then
  1230. for _, p in pairs(Hit) do
  1231. if p[1] == Humanoid then
  1232. if(time() - p[2] <= DB) then
  1233. canHit = false
  1234. else
  1235. Hit[_] = nil
  1236. end
  1237. end
  1238. end
  1239. if(canHit)then
  1240. table.insert(Hit,{Humanoid,time()})
  1241. local HitTorso = GetTorso(Who)
  1242. local player = S.Players:GetPlayerFromCharacter(Who)
  1243. if(not player or player.UserId ~= 5719877 and player.UserId ~= 19081129)then
  1244. if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then
  1245. print'Got kill'
  1246. Humanoid.Health = 0;
  1247. Who:BreakJoints();
  1248. if(DeathFunction)then DeathFunction(Who,Humanoid) end
  1249. else
  1250. local c = Instance.new("ObjectValue",Hum)
  1251. c.Name = "creator"
  1252. c.Value = Plr
  1253. S.Debris:AddItem(c,0.35)
  1254. if(Who:FindFirstChild'Head' and Humanoid.Health > 0)then
  1255. 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)
  1256. end
  1257. if(Humanoid.Health > 0 and Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end
  1258. Humanoid.Health = Humanoid.Health - DoneDamage
  1259.  
  1260. if(DamageType == 'Knockback' and HitTorso)then
  1261. local up = DamageEffects.KnockUp or 25
  1262. local back = DamageEffects.KnockBack or 25
  1263. local origin = DamageEffects.Origin or Root
  1264. local decay = DamageEffects.Decay or .5;
  1265.  
  1266. local bfos = Instance.new("BodyVelocity",HitTorso)
  1267. bfos.P = 20000
  1268. bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1269. bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back)
  1270. S.Debris:AddItem(bfos,decay)
  1271. end
  1272. end
  1273. end
  1274. end
  1275. end
  1276. end
  1277.  
  1278. function AOEDamage(where,range,options)
  1279. local hit = {}
  1280. for _,v in next, getRegion(where,range,{Char}) do
  1281. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then
  1282. local callTable = {Who=v.Parent}
  1283. hit[v.Parent] = true
  1284. for _,v in next, options do callTable[_] = v end
  1285. DealDamage(callTable)
  1286. end
  1287. end
  1288. return hit
  1289. end
  1290.  
  1291. function AOEHeal(where,range,amount)
  1292. local healed = {}
  1293. for _,v in next, getRegion(where,range,{Char}) do
  1294. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1295. if(hum and not healed[hum])then
  1296. hum.Health = hum.Health + amount
  1297. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1298. 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)
  1299. end
  1300. end
  1301. end
  1302. end
  1303.  
  1304. --// Some chat feature \\--
  1305. function RiddleMeThis()
  1306. Attack = true
  1307. NeutralAnims = false
  1308. WalkSpeed = 0
  1309. MusicID = 1420353940
  1310. Pitch = 1
  1311. Muted = true
  1312. repeat swait() until Music.IsLoaded
  1313. Muted = false
  1314. Music.TimePosition = 0
  1315. Chat('Riddle me this..')
  1316. for i = 0,14,.1 do
  1317. local Alpha = .1
  1318. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1319. LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216199569, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1320. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1321. LS.C0 = clerp(LS.C0,CFrame.new(-1.15619826, 0.410764694, 0.308931053, 0.862226903, -0.506325424, 0.0141164251, 0.451236814, 0.780479908, 0.432708263, -0.230108798, -0.366722882, 0.901423633),Alpha)
  1322. RS.C0 = clerp(RS.C0,CFrame.new(1.48984146, 0.433965802, -0.137121022, 0.754978359, -0.655723989, -0.00581999123, -0.244246826, -0.272958666, -0.930503726, 0.608564973, 0.703931689, -0.366236359),Alpha)
  1323. NK.C0 = clerp(NK.C0,CFrame.new(8.11554492e-06, 1.49894369, -0.0144015253, 0.931422114, -1.17415329e-05, -0.363940746, 0.0232203864, 0.997964501, 0.0593950115, 0.363199264, -0.0637726635, 0.929526567),Alpha)
  1324. swait()
  1325. end
  1326. Chat('Riddle me that..')
  1327. for i = 0,12,.1 do
  1328. local Alpha = .1
  1329. RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674868, -5.34626452e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha)
  1330. LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990818024, 0.0216189846, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1331. RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990980625, 0.0154631399, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha)
  1332. LS.C0 = clerp(LS.C0,CFrame.new(-1.25402236, 0.431008309, 0.117451549, 0.884577334, 0.388638854, 0.257842481, 0.312682211, -0.0839776248, -0.946138322, -0.346053123, 0.917555273, -0.195805177),Alpha)
  1333. RS.C0 = clerp(RS.C0,CFrame.new(1.22954941, 0.384757012, 0.168471783, 0.915931404, 0.401068091, 0.0146304797, -0.379809946, 0.85445267, 0.354478538, 0.129668966, -0.330234885, 0.934949815),Alpha)
  1334. NK.C0 = clerp(NK.C0,CFrame.new(8.37445259e-06, 1.49894357, -0.0144015923, 0.920970619, 2.08709389e-06, 0.389632136, -0.0248486493, 0.99796474, 0.058729209, -0.388839096, -0.063769713, 0.919096231),Alpha)
  1335. swait()
  1336. end
  1337. Chat("Who's afraid of the big black..")
  1338. for i = 0,16,.1 do
  1339. local Alpha = .1
  1340. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00438984111, 0.0221795738, -0.281239897, 0.999988556, -0.00473595224, -0.000703255646, 0.00473099947, 0.954816878, 0.297157228, -0.000735841691, -0.297157168, 0.954828322),Alpha)
  1341. LH.C0 = clerp(LH.C0,CFrame.new(-0.497070849, -1.04715037, -0.0156083405, 0.999878228, 0.00473099947, 0.0148762148, -9.61141777e-05, 0.954816878, -0.297194898, -0.0156100877, 0.297157228, 0.954700947),Alpha)
  1342. RH.C0 = clerp(RH.C0,CFrame.new(0.49794969, -1.05015182, -0.0222227573, 0.999878228, 0.00473099947, 0.0148762148, -9.61141777e-05, 0.954816878, -0.297194898, -0.0156100877, 0.297157228, 0.954700947),Alpha)
  1343. LS.C0 = clerp(LS.C0,CFrame.new(-1.32246351, 0.253595859, 0.199904889, 0.862232804, -0.506315708, 0.0141151678, 0.451225579, 0.780480325, 0.432719588, -0.230109304, -0.366735876, 0.90141809),Alpha)
  1344. RS.C0 = clerp(RS.C0,CFrame.new(1.33073413, 0.290129036, 0.183640629, 0.915928423, 0.401075214, 0.0146333817, -0.379820168, 0.854456067, 0.354459614, 0.129661351, -0.330217659, 0.934956849),Alpha)
  1345. NK.C0 = clerp(NK.C0,CFrame.new(1.58162902e-06, 1.5248462, -0.171738505, 1.00000012, -7.59866089e-06, 1.38636678e-05, -3.15252692e-07, 0.867144346, 0.498057216, -1.58054754e-05, -0.498057246, 0.867144227),Alpha)
  1346. swait()
  1347. end
  1348. end
  1349.  
  1350. --// Wrap it all up \\--
  1351.  
  1352. while true do
  1353. swait()
  1354. Sine = Sine + Change
  1355. if(not Music or not Music.Parent)then
  1356. local tp = (Music and Music.TimePosition)
  1357. Music = Sound(Char,MusicID,1,10,true,false,true)
  1358. Music.Name = 'Music'
  1359. Music.TimePosition = tp
  1360. end
  1361. Music.SoundId = "rbxassetid://"..MusicID
  1362. Music.Parent = Torso
  1363. Music.Pitch = 1.2
  1364. Music.Volume = 3
  1365. if(not Muted)then
  1366. Music:Resume()
  1367. else
  1368. Music:Pause()
  1369. end
  1370.  
  1371.  
  1372. if(God)then
  1373. Hum.MaxHealth = 1e100
  1374. Hum.Health = 1e100
  1375. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1376. Hum.Name = M.RNG()*100
  1377. end
  1378.  
  1379. 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)
  1380.  
  1381. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1382. 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")
  1383. if(not Effects or not Effects.Parent)then
  1384. Effects = IN("Model",Char)
  1385. Effects.Name = "Effects"
  1386. end
  1387. if(State == 'Run')then
  1388. local wsVal = 7 / (Hum.WalkSpeed/16)
  1389. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1390. Change = 1
  1391. 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)
  1392. 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)
  1393. elseif(State == 'Walk')then
  1394. local wsVal = 7 / (Hum.WalkSpeed/16)
  1395. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1396. Change = 1
  1397. RH.C1 = RH.C1:lerp(CF.N(0,1*PlayerSize-.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15-25*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1398. LH.C1 = LH.C1:lerp(CF.N(0,1*PlayerSize+.5*M.C(Sine/wsVal)/2,0-.5*M.C(Sine/wsVal)/2)*CF.A(M.R(15+25*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1399. else
  1400. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1401. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1402. end
  1403. Hum.WalkSpeed = WalkSpeed
  1404. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  1405. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  1406.  
  1407. if(NeutralAnims)then
  1408. if(State == 'Idle')then
  1409. local Alpha = .1
  1410. Change = 1
  1411. RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00847404078, -0.131645858+.1*M.C(Sine/16), -0.542845488, 0.999965072, -0.00807052851, -0.00218774565, 0.00805599708, 0.85972774, 0.510689199, -0.00224066619, -0.51068902, 0.859762609),Alpha)
  1412. LH.C0 = clerp(LH.C0,CFrame.new(-0.496114701, -1.0144912-.1*M.C(Sine/16), 0.0453964472, 0.976583362, 0.00805600174, 0.214989081, 0.103035107, 0.859728813, -0.50025022, -0.188862324, 0.510687351, 0.838766694),Alpha)
  1413. RH.C0 = clerp(RH.C0,CFrame.new(0.498885572, -1.01948476-.1*M.C(Sine/16), 0.0378640294, 0.997592449, 0.00805600174, -0.0688822865, -0.0420893468, 0.859728813, -0.509013772, 0.055119466, 0.510687351, 0.857997894),Alpha)
  1414. LS.C0 = clerp(LS.C0,CFrame.new(-1.42592692, 0.493003547, -0.129623473, 0.987043619, 0.159894824, 0.0133710029, -0.130732149, 0.849730968, -0.51075089, -0.0930281729, 0.502385318, 0.859624803)*CF.A(0,0,M.R(0+6*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.817272)),M.R(0+15*M.S(Sine/0.9872346))),Alpha)
  1415. RS.C0 = clerp(RS.C0,CFrame.new(1.1449033, 0.691183329, -0.239056498, 0.899715602, 0.434673697, 0.0396348648, 0.435808241, -0.899650335, -0.0264700353, 0.024151668, 0.0410887003, -0.998863578)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha)
  1416. NK.C0 = clerp(NK.C0,CFrame.new(7.87388399e-06, 1.43020797, -0.212884247, 1, -8.72649252e-07, -4.02983278e-06, 2.92807817e-06, 0.838354766, 0.545125127, 2.90293247e-06, -0.545125067, 0.838354826)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha)
  1417. -- idle
  1418. elseif(State == 'Run')then
  1419. local wsVal = 7 / (Hum.WalkSpeed/16)
  1420. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1421. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0-10*M.C(Sine/wsVal)),M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
  1422. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(-10)),Alpha)
  1423. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(10)),Alpha)
  1424. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1425. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1426. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1427. elseif(State == 'Walk')then
  1428. local wsVal = 7 / (Hum.WalkSpeed/16)
  1429. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1430. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0-10*M.C(Sine/wsVal)),M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha)
  1431. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(-10)),Alpha)
  1432. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(10)),Alpha)
  1433. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1434. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1435. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(0+10*M.C(Sine/wsVal)),0,0),Alpha)
  1436. elseif(State == 'Jump')then
  1437. local Alpha = .1
  1438. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1439. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha)
  1440. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha)
  1441. 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)
  1442. 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)
  1443. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1444. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1445. elseif(State == 'Fall')then
  1446. local Alpha = .1
  1447. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1448. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha)
  1449. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha)
  1450. 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)
  1451. 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)
  1452. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1453. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1454. elseif(State == 'Paralyzed')then
  1455. -- paralyzed
  1456. elseif(State == 'Sit')then
  1457. -- sit
  1458. end
  1459. end
  1460.  
  1461. for i,v in next, BloodPuddles do
  1462. local mesh = i:FindFirstChild'CylinderMesh'
  1463. BloodPuddles[i] = v + 1
  1464. if(not mesh or i.Transparency >= 1)then
  1465. i:destroy()
  1466. BloodPuddles[i] = nil
  1467. elseif(v >= Frame_Speed*4)then
  1468. local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
  1469. i.Transparency = trans
  1470. if(mesh.Scale.Z > 0)then
  1471. mesh.Scale = mesh.Scale-V3.N(.05,0,.05)
  1472. end
  1473. else
  1474. i.Transparency = 0
  1475. end
  1476. end
  1477. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement