Advertisement
DerpzDeNugget

Derpzmations Testing Paste (Edited ALOT)

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