lolita5432

Untitled

Jul 30th, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.80 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145.  
  146.  
  147. --// Shortcut Variables \\--
  148. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  149. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  150. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  151. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  152. 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}
  153. local R3 = {N=Region3.new}
  154. local De = S.Debris
  155. local WS = workspace
  156. local Lght = S.Lighting
  157. local RepS = S.ReplicatedStorage
  158. local IN = Instance.new
  159. local Plrs = S.Players
  160.  
  161. --// Initializing \\--
  162. local Plr = Plrs.LocalPlayer
  163. local Char = Plr.Character
  164. local Hum = Char:FindFirstChildOfClass'Humanoid'
  165. local RArm = Char["Right Arm"]
  166. local LArm = Char["Left Arm"]
  167. local RLeg = Char["Right Leg"]
  168. local LLeg = Char["Left Leg"]
  169. local Root = Char:FindFirstChild'HumanoidRootPart'
  170. local Torso = Char.Torso
  171. local Head = Char.Head
  172. local NeutralAnims = true
  173. local Attack = false
  174. local Debounces = {Debounces={}}
  175. local Hit = {}
  176. local Sine = 0
  177. local Change = 1
  178.  
  179. local Stance = 0
  180. local Claws = false
  181.  
  182. local Effects = IN("Folder",Char)
  183. Effects.Name = "Effects"
  184.  
  185. local Huggled = Char:FindFirstChild'Huggled'
  186. if(not Huggled or not Huggled:IsA'BoolValue')then
  187. Huggled = IN("BoolValue",Char)
  188. Huggled.Value = false
  189. Huggled.Name = 'Huggled'
  190. end
  191. local Kissed = Char:FindFirstChild'Kissed'
  192. if(not Kissed or not Kissed:IsA'BoolValue')then
  193. Kissed = IN("BoolValue",Char)
  194. Kissed.Value = false
  195. Kissed.Name = 'Kissed'
  196. end
  197.  
  198. --// Debounce System \\--
  199.  
  200.  
  201. function Debounces:New(name,cooldown)
  202. local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
  203. setmetatable(aaaaa,{__index = Debounces})
  204. Debounces.Debounces[name] = aaaaa
  205. return aaaaa
  206. end
  207.  
  208. function Debounces:Use(overrideUsable)
  209. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  210. if(self.Usable or overrideUsable)then
  211. self.Usable = false
  212. self.CoolingDown = true
  213. local LastUse = time()
  214. self.LastUse = LastUse
  215. delay(self.Cooldown or 2,function()
  216. if(self.LastUse == LastUse)then
  217. self.CoolingDown = false
  218. self.Usable = true
  219. end
  220. end)
  221. end
  222. end
  223.  
  224. function Debounces:Get(name)
  225. assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name)))
  226. for i,v in next, Debounces.Debounces do
  227. if(i == name)then
  228. return v;
  229. end
  230. end
  231. end
  232.  
  233. function Debounces:GetProgressPercentage()
  234. assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use")
  235. if(self.CoolingDown and not self.Usable)then
  236. return math.max(
  237. math.floor(
  238. (
  239. (time()-self.LastUse)/self.Cooldown or 2
  240. )*100
  241. )
  242. )
  243. else
  244. return 100
  245. end
  246. end
  247.  
  248. --// Instance Creation Functions \\--
  249.  
  250. function Sound(parent,id,pitch,volume,looped,effect,autoPlay)
  251. local Sound = IN("Sound")
  252. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  253. Sound.Pitch = pitch or 1
  254. Sound.Volume = volume or 1
  255. Sound.Looped = looped or false
  256. if(autoPlay)then
  257. coroutine.wrap(function()
  258. repeat wait() until Sound.IsLoaded
  259. Sound.Playing = autoPlay or false
  260. end)()
  261. end
  262. if(not looped and effect)then
  263. Sound.Stopped:connect(function()
  264. Sound.Volume = 0
  265. Sound:destroy()
  266. end)
  267. elseif(effect)then
  268. warn("Sound can't be looped and a sound effect!")
  269. end
  270. Sound.Parent =parent or Torso
  271. return Sound
  272. end
  273. function Part(parent,color,material,size,cframe,anchored,cancollide)
  274. local part = IN("Part")
  275. part.Parent = parent or Char
  276. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0)
  277. part.Material = material or Enum.Material.SmoothPlastic
  278. part.TopSurface,part.BottomSurface=10,10
  279. part.Size = size or V3.N(1,1,1)
  280. part.CFrame = cframe or CF.N(0,0,0)
  281. part.CanCollide = cancollide or false
  282. part.Anchored = anchored or false
  283. return part
  284. end
  285.  
  286. function Weld(part0,part1,c0,c1)
  287. local weld = IN("Weld")
  288. weld.Parent = part0
  289. weld.Part0 = part0
  290. weld.Part1 = part1
  291. weld.C0 = c0 or CF.N()
  292. weld.C1 = c1 or CF.N()
  293. return weld
  294. end
  295.  
  296. function Mesh(parent,meshtype,meshid,textid,scale,offset)
  297. local part = IN("SpecialMesh")
  298. part.MeshId = meshid or ""
  299. part.TextureId = textid or ""
  300. part.Scale = scale or V3.N(1,1,1)
  301. part.Offset = offset or V3.N(0,0,0)
  302. part.MeshType = meshtype or Enum.MeshType.Sphere
  303. part.Parent = parent
  304. return part
  305. end
  306.  
  307. NewInstance = function(instance,parent,properties)
  308. local inst = Instance.new(instance)
  309. inst.Parent = parent
  310. if(properties)then
  311. for i,v in next, properties do
  312. pcall(function() inst[i] = v end)
  313. end
  314. end
  315. return inst;
  316. end
  317.  
  318. function Clone(instance,parent,properties)
  319. local inst = instance:Clone()
  320. inst.Parent = parent
  321. if(properties)then
  322. for i,v in next, properties do
  323. pcall(function() inst[i] = v end)
  324. end
  325. end
  326. return inst;
  327. end
  328.  
  329. function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf)
  330. local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()})
  331. local Sound = IN("Sound")
  332. Sound.SoundId = "rbxassetid://".. tostring(id or 0)
  333. Sound.Pitch = pitch or 1
  334. Sound.Volume = volume or 1
  335. Sound.Looped = looped or false
  336. if(autoPlay)then
  337. coroutine.wrap(function()
  338. repeat wait() until Sound.IsLoaded
  339. Sound.Playing = autoPlay or false
  340. end)()
  341. end
  342. if(not looped and effect)then
  343. Sound.Stopped:connect(function()
  344. Sound.Volume = 0
  345. soundPart:destroy()
  346. end)
  347. elseif(effect)then
  348. warn("Sound can't be looped and a sound effect!")
  349. end
  350. Sound.Parent = soundPart
  351. return Sound
  352. end
  353.  
  354.  
  355. --// Extended ROBLOX tables \\--
  356. 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})
  357. --// Require stuff \\--
  358. function CamShake(who,times,intense,origin)
  359. coroutine.wrap(function()
  360. if(script:FindFirstChild'CamShake')then
  361. local cam = script.CamShake:Clone()
  362. cam:WaitForChild'intensity'.Value = intense
  363. cam:WaitForChild'times'.Value = times
  364.  
  365. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  366. cam.Parent = who
  367. wait()
  368. cam.Disabled = false
  369. elseif(who == Plr or who == Char)then
  370. local intensity = intense
  371. local cam = workspace.CurrentCamera
  372. for i = 1, times do
  373. local camDistFromOrigin
  374. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  375. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  376. elseif(typeof(origin) == 'Vector3')then
  377. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  378. end
  379. if(camDistFromOrigin)then
  380. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  381. end
  382. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  383. swait()
  384. end
  385. end
  386. end)()
  387. end
  388.  
  389. function CamShakeAll(times,intense,origin)
  390. for _,v in next, Plrs:players() do
  391. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  392. end
  393. end
  394.  
  395. function ServerScript(code)
  396. if(script:FindFirstChild'Loadstring')then
  397. local load = script.Loadstring:Clone()
  398. load:WaitForChild'Sauce'.Value = code
  399. load.Disabled = false
  400. load.Parent = workspace
  401. elseif(NS and typeof(NS) == 'function')then
  402. NS(code,workspace)
  403. else
  404. warn("no serverscripts lol")
  405. end
  406. end
  407.  
  408. function RunLocal(where,code)
  409. ServerScript([[
  410. wait()
  411. script.Parent=nil
  412. if(not _G.Http)then _G.Http = game:service'HttpService' end
  413.  
  414. local Http = _G.Http or game:service'HttpService'
  415.  
  416. local source = ]].."[["..code.."]]"..[[
  417. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  418. local asd = Http:PostAsync(link,source)
  419. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  420. local ID = Http:JSONDecode(asd).Result.Require_ID
  421. local vs = require(ID).VORTH_SCRIPT
  422. vs.Parent = game.]]..where:GetFullName()
  423. )
  424. end
  425.  
  426. --// Customization \\--
  427.  
  428. local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this
  429. local Remove_Hats = false
  430. local Remove_Clothing = false
  431. local PlayerSize = 1
  432. local DamageColor = BrickColor.new'Really red'
  433. local MusicID = 0
  434. local God = false
  435. local Muted = false
  436.  
  437. local WalkSpeed = 16
  438.  
  439. --// Weapon and GUI creation, and Character Customization \\--
  440.  
  441. if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end
  442. if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end
  443.  
  444. if(PlayerSize ~= 1)then
  445. for _,v in next, Char:GetDescendants() do
  446. if(v:IsA'BasePart')then
  447. v.Size = v.Size * PlayerSize
  448. end
  449. end
  450. end
  451.  
  452. local Claw1 = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(.85,.4,.75),RArm.CFrame,false,false)
  453. Claw1.Transparency = 1
  454. local Claw1M = Mesh(Claw1,Enum.MeshType.FileMesh,"rbxassetid://105262978","",V3.N(.6,1,0),V3.N())
  455. local Claw1W = Weld(RArm,Claw1,CF.N(0,-1.4,.06)*CF.A(M.R(-90),0,M.R(-90)))
  456.  
  457. local Claw2 = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(.85,.4,.75),RArm.CFrame,false,false)
  458. Claw2.Transparency = 1
  459. local Claw2M = Mesh(Claw2,Enum.MeshType.FileMesh,"rbxassetid://105262978","",V3.N(.6,1,0),V3.N())
  460. local Claw2W = Weld(LArm,Claw2,CF.N(0,-1.4,.06)*CF.A(M.R(-90),0,M.R(90)))
  461.  
  462. --// Stop animations \\--
  463. for _,v in next, Hum:GetPlayingAnimationTracks() do
  464. v:Stop();
  465. end
  466.  
  467. pcall(game.Destroy,Char:FindFirstChild'Animate')
  468. pcall(game.Destroy,Hum:FindFirstChild'Animator')
  469.  
  470. --// Joints \\--
  471.  
  472. 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)})
  473. 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)})
  474. local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
  475. local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  476. local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
  477. local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
  478.  
  479. local LSC0 = LS.C0
  480. local RSC0 = RS.C0
  481. local NKC0 = NK.C0
  482. local LHC0 = LH.C0
  483. local RHC0 = RH.C0
  484. local RJC0 = RJ.C0
  485.  
  486. --// Artificial HB \\--
  487.  
  488. local ArtificialHB = IN("BindableEvent", script)
  489. ArtificialHB.Name = "Heartbeat"
  490.  
  491. script:WaitForChild("Heartbeat")
  492.  
  493. local tf = 0
  494. local allowframeloss = false
  495. local tossremainder = false
  496. local lastframe = tick()
  497. local frame = 1/Frame_Speed
  498. ArtificialHB:Fire()
  499.  
  500. game:GetService("RunService").Heartbeat:connect(function(s, p)
  501. tf = tf + s
  502. if tf >= frame then
  503. if allowframeloss then
  504. script.Heartbeat:Fire()
  505. lastframe = tick()
  506. else
  507. for i = 1, math.floor(tf / frame) do
  508. ArtificialHB:Fire()
  509. end
  510. lastframe = tick()
  511. end
  512. if tossremainder then
  513. tf = 0
  514. else
  515. tf = tf - frame * math.floor(tf / frame)
  516. end
  517. end
  518. end)
  519.  
  520. function swait(num)
  521. if num == 0 or num == nil then
  522. ArtificialHB.Event:wait()
  523. else
  524. for i = 0, num do
  525. ArtificialHB.Event:wait()
  526. end
  527. end
  528. end
  529.  
  530.  
  531. --// Effect Function(s) \\--
  532.  
  533. function Bezier(startpos, pos2, pos3, endpos, t)
  534. local A = startpos:lerp(pos2, t)
  535. local B = pos2:lerp(pos3, t)
  536. local C = pos3:lerp(endpos, t)
  537. local lerp1 = A:lerp(B, t)
  538. local lerp2 = B:lerp(C, t)
  539. local cubic = lerp1:lerp(lerp2, t)
  540. return cubic
  541. end
  542.  
  543. function SphereFX(duration,color,scale,pos,endScale,increment)
  544. return Effect{
  545. Effect='ResizeAndFade',
  546. Color=color,
  547. Size=scale,
  548. Mesh={MeshType=Enum.MeshType.Sphere},
  549. CFrame=pos,
  550. FXSettings={
  551. EndSize=endScale,
  552. EndIsIncrement=increment
  553. }
  554. }
  555. end
  556.  
  557. function BlastFX(duration,color,scale,pos,endScale,increment)
  558. return Effect{
  559. Effect='ResizeAndFade',
  560. Color=color,
  561. Size=scale,
  562. Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'},
  563. CFrame=pos,
  564. FXSettings={
  565. EndSize=endScale,
  566. EndIsIncrement=increment
  567. }
  568. }
  569. end
  570.  
  571. function BlockFX(duration,color,scale,pos,endScale,increment)
  572. return Effect{
  573. Effect='ResizeAndFade',
  574. Color=color,
  575. Size=scale,
  576. CFrame=pos,
  577. FXSettings={
  578. EndSize=endScale,
  579. EndIsIncrement=increment
  580. }
  581. }
  582. end
  583.  
  584. function Zap(data)
  585. local sCF,eCF = data.StartCFrame,data.EndCFrame
  586. assert(sCF,"You need a start CFrame!")
  587. assert(eCF,"You need an end CFrame!")
  588. local parts = data.PartCount or 15
  589. local zapRot = data.ZapRotation or {-5,5}
  590. local startThick = data.StartSize or 3;
  591. local endThick = data.EndSize or startThick/2;
  592. local color = data.Color or BrickColor.new'Electric blue'
  593. local delay = data.Delay or 35
  594. local delayInc = data.DelayInc or 0
  595. local lastLightning;
  596. local MagZ = (sCF.p - eCF.p).magnitude
  597. local thick = startThick
  598. local inc = (startThick/parts)-(endThick/parts)
  599.  
  600. for i = 1, parts do
  601. local pos = sCF.p
  602. if(lastLightning)then
  603. pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p
  604. end
  605. delay = delay + delayInc
  606. local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false)
  607. 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)))
  608. if(parts == i)then
  609. local MagZ = (pos-eCF.p).magnitude
  610. zapPart.Size = V3.N(endThick,endThick,MagZ)
  611. zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2)
  612. 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)}}
  613. else
  614. zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2)
  615. end
  616.  
  617. lastLightning = zapPart
  618. Effect{Effect='Fade',Manual=zapPart,Frames=delay}
  619.  
  620. thick=thick-inc
  621.  
  622. end
  623. end
  624.  
  625. function Zap2(data)
  626. local Color = data.Color or BrickColor.new'Electric blue'
  627. local StartPos = data.Start or Torso.Position
  628. local EndPos = data.End or Mouse.Hit.p
  629. local SegLength = data.SegL or 2
  630. local Thicc = data.Thickness or 0.5
  631. local Fades = data.Fade or 45
  632. local Parent = data.Parent or Effects
  633. local MaxD = data.MaxDist or 200
  634. local Branch = data.Branches or false
  635. local Material = data.Material or Enum.Material.Neon
  636. local Raycasts = data.Raycasts or false
  637. local Offset = data.Offset or {0,360}
  638. local AddMesh = (data.Mesh == nil and true or data.Mesh)
  639. if((StartPos-EndPos).magnitude > MaxD)then
  640. EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p
  641. end
  642. local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude
  643. if(Raycasts)then
  644. hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD)
  645. end
  646. local segments = dist/SegLength
  647. local model = IN("Model",Parent)
  648. model.Name = 'Lightning'
  649. local Last;
  650. for i = 1, segments do
  651. local size = (segments-i)/25
  652. local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false)
  653. if(AddMesh)then IN("CylinderMesh",prt) end
  654. if(Last and math.floor(segments) == i)then
  655. local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude
  656. prt.Size = V3.N(Thicc+size,MagZ,Thicc+size)
  657. 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)
  658. elseif(not Last)then
  659. prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0)
  660. else
  661. 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)
  662. end
  663. Last = prt
  664. if(Branch)then
  665. local choice = M.RNG(1,7+((segments-i)*2))
  666. if(choice == 1)then
  667. local LastB;
  668. for i2 = 1,M.RNG(2,5) do
  669. local size2 = ((segments-i)/35)/i2
  670. local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false)
  671. if(AddMesh)then IN("CylinderMesh",prt) end
  672. if(not LastB)then
  673. 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)
  674. else
  675. 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)
  676. end
  677. LastB = prt
  678. end
  679. end
  680. end
  681. end
  682. if(Fades > 0)then
  683. coroutine.wrap(function()
  684. for i = 1, Fades do
  685. for _,v in next, model:children() do
  686. if(v:IsA'BasePart')then
  687. v.Transparency = (i/Fades)
  688. end
  689. end
  690. swait()
  691. end
  692. model:destroy()
  693. end)()
  694. else
  695. S.Debris:AddItem(model,.01)
  696. end
  697. return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model}
  698. end
  699.  
  700. function Tween(obj,props,time,easing,direction,repeats,backwards)
  701. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  702. local tween = S.TweenService:Create(obj, info, props)
  703.  
  704. tween:Play()
  705. end
  706.  
  707. function Effect(data)
  708. local FX = data.Effect or 'ResizeAndFade'
  709. local Parent = data.Parent or Effects
  710. local Color = data.Color or C3.N(0,0,0)
  711. local Size = data.Size or V3.N(1,1,1)
  712. local MoveDir = data.MoveDirection or nil
  713. local MeshData = data.Mesh or nil
  714. local SndData = data.Sound or nil
  715. local Frames = data.Frames or 45
  716. local Manual = data.Manual or nil
  717. local Material = data.Material or nil
  718. local CFra = data.CFrame or Torso.CFrame
  719. local Settings = data.FXSettings or {}
  720. local Shape = data.Shape or Enum.PartType.Block
  721. local Snd,Prt,Msh;
  722. coroutine.wrap(function()
  723. if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
  724. Prt = Manual
  725. else
  726. Prt = Part(Parent,Color,Material,Size,CFra,true,false)
  727. Prt.Shape = Shape
  728. end
  729. if(typeof(MeshData) == 'table')then
  730. Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
  731. elseif(typeof(MeshData) == 'Instance')then
  732. Msh = MeshData:Clone()
  733. Msh.Parent = Prt
  734. elseif(Shape == Enum.PartType.Block)then
  735. Msh = Mesh(Prt,Enum.MeshType.Brick)
  736. end
  737. if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
  738. Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
  739. end
  740. if(Snd)then
  741. repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
  742. Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
  743. end
  744. Size = (Msh and Msh.Scale or Size)
  745. local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2)
  746.  
  747. local MoveSpeed = nil;
  748. if(MoveDir)then
  749. MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
  750. end
  751. if(FX ~= 'Arc')then
  752. for Frame = 1, Frames do
  753. if(FX == "Fade")then
  754. Prt.Transparency = (Frame/Frames)
  755. elseif(FX == "Resize")then
  756. if(not Settings.EndSize)then
  757. Settings.EndSize = V3.N(0,0,0)
  758. end
  759. if(Settings.EndIsIncrement)then
  760. if(Msh)then
  761. Msh.Scale = Msh.Scale + Settings.EndSize
  762. else
  763. Prt.Size = Prt.Size + Settings.EndSize
  764. end
  765. else
  766. if(Msh)then
  767. Msh.Scale = Msh.Scale - grow/Frames
  768. else
  769. Prt.Size = Prt.Size - grow/Frames
  770. end
  771. end
  772. elseif(FX == "ResizeAndFade")then
  773. if(not Settings.EndSize)then
  774. Settings.EndSize = V3.N(0,0,0)
  775. end
  776. if(Settings.EndIsIncrement)then
  777. if(Msh)then
  778. Msh.Scale = Msh.Scale + Settings.EndSize
  779. else
  780. Prt.Size = Prt.Size + Settings.EndSize
  781. end
  782. else
  783. if(Msh)then
  784. Msh.Scale = Msh.Scale - grow/Frames
  785. else
  786. Prt.Size = Prt.Size - grow/Frames
  787. end
  788. end
  789. Prt.Transparency = (Frame/Frames)
  790. end
  791. if(Settings.RandomizeCFrame)then
  792. Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
  793. end
  794. if(MoveDir and MoveSpeed)then
  795. local Orientation = Prt.Orientation
  796. Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
  797. Prt.Orientation = Orientation
  798. end
  799. swait()
  800. end
  801. Prt:destroy()
  802. else
  803. local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
  804. if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
  805. if(start and endP)then
  806. local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  807. local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
  808. for Frame = 0, 1, (Settings.Speed or 0.01) do
  809. if(Settings.Home)then
  810. endP = Settings.Home.CFrame
  811. end
  812. Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame)
  813. end
  814. if(Settings.RemoveOnGoal)then
  815. Prt:destroy()
  816. end
  817. else
  818. Prt:destroy()
  819. assert(start,"You need a start position!")
  820. assert(endP,"You need a start position!")
  821. end
  822. end
  823. end)()
  824. return Prt,Msh,Snd
  825. end
  826. function SoulSteal(whom)
  827. local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart')
  828. print(torso)
  829. if(torso and torso:IsA'BasePart')then
  830. local Model = Instance.new("Model",Effects)
  831. Model.Name = whom.Name.."'s Soul"
  832. whom:BreakJoints()
  833. local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false)
  834. Soul.Name = 'Head'
  835. NewInstance("Humanoid",Model,{Health=0,MaxHealth=0})
  836. Effect{
  837. Effect="Arc",
  838. Manual = Soul,
  839. FXSettings={
  840. Start=torso.CFrame,
  841. Home = Torso,
  842. RemoveOnGoal = true,
  843. }
  844. }
  845. local lastPoint = Soul.CFrame.p
  846.  
  847. for i = 0, 1, 0.01 do
  848. local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  849. local mag = (lastPoint - Soul.Position).magnitude
  850. Effect{
  851. Effect = "Fade",
  852. CFrame = point * CF.N(0, mag/2, 0),
  853. Size = V3.N(.5,mag+.5,.5),
  854. Color = Soul.BrickColor
  855. }
  856. lastPoint = Soul.CFrame.p
  857. swait()
  858. end
  859. for i = 1, 5 do
  860. Effect{
  861. Effect="Fade",
  862. Color = BrickColor.new'Really red',
  863. MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p
  864. }
  865. end
  866. end
  867. end
  868.  
  869. --// Other Functions \\ --
  870.  
  871. function CastRay(startPos,endPos,range,ignoreList)
  872. local ray = Ray.new(startPos,(endPos-startPos).unit*range)
  873. local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true)
  874. return part,pos,norm,(pos and (startPos-pos).magnitude)
  875. end
  876.  
  877. function getRegion(point,range,ignore)
  878. return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100)
  879. end
  880.  
  881. function clerp(startCF,endCF,alpha)
  882. return startCF:lerp(endCF, alpha)
  883. end
  884.  
  885. function GetTorso(char)
  886. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  887. end
  888.  
  889. function ShowDamage(Pos, Text, Time, Color)
  890. coroutine.wrap(function()
  891. local Rate = (1 / Frame_Speed)
  892. local Pos = (Pos or Vector3.new(0, 0, 0))
  893. local Text = (Text or "")
  894. local Time = (Time or 2)
  895. local Color = (Color or Color3.new(1, 0, 1))
  896. local EffectPart = NewInstance("Part",Effects,{
  897. Material=Enum.Material.SmoothPlastic,
  898. Reflectance = 0,
  899. Transparency = 1,
  900. BrickColor = BrickColor.new(Color),
  901. Name = "Effect",
  902. Size = Vector3.new(0,0,0),
  903. Anchored = true,
  904. CFrame = CF.N(Pos)
  905. })
  906. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  907. Size = UDim2.new(1.25, 0, 1.25, 0),
  908. Adornee = EffectPart,
  909. })
  910. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  911. BackgroundTransparency = 1,
  912. Size = UDim2.new(1, 0, 1, 0),
  913. Text = Text,
  914. Font = "Bodoni",
  915. TextColor3 = Color,
  916. TextStrokeColor3 = Color3.new(0,0,0),
  917. TextStrokeTransparency=0,
  918. TextScaled = true,
  919. })
  920. S.Debris:AddItem(EffectPart, (Time))
  921. EffectPart.Parent = workspace
  922. delay(0, function()
  923. Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  924. local Frames = (Time / Rate)
  925. for Frame = 1, Frames do
  926. swait()
  927. local Percent = (Frame / Frames)
  928. TextLabel.TextTransparency = Percent
  929. TextLabel.TextStrokeTransparency = Percent
  930. end
  931. if EffectPart and EffectPart.Parent then
  932. EffectPart:Destroy()
  933. end
  934. end) end)()
  935. end
  936.  
  937.  
  938. function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult)
  939. if(who)then
  940. local hum = who:FindFirstChildOfClass'Humanoid'
  941. local Damage = M.RNG(minDam,maxDam)
  942. local canHit = true
  943. if(hum)then
  944. for _, p in pairs(Hit) do
  945. if p[1] == hum then
  946. if(time() - p[2] < 0.1) then
  947. canHit = false
  948. else
  949. Hit[_] = nil
  950. end
  951. end
  952. end
  953. if(canHit)then
  954. table.insert(Hit,{hum,time()})
  955. if(hum.Health >= math.huge)then
  956. who:BreakJoints()
  957. if(who:FindFirstChild'Head' and hum.Health > 0)then
  958. 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))), "INSTANT", 1.5, C3.N(1,0,0))
  959. end
  960. else
  961. local player = S.Players:GetPlayerFromCharacter(who)
  962. if(Type == "Fire")then
  963. --idk..
  964. else
  965. local c = Instance.new("ObjectValue",hum)
  966. c.Name = "creator"
  967. c.Value = Plr
  968. game:service'Debris':AddItem(c,0.35)
  969. if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then
  970. if(who:FindFirstChild'Head' and hum.Health > 0)then
  971. 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))), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color)
  972. end
  973. hum.Health = hum.Health - Damage*(critMult or 2)
  974. else
  975. if(who:FindFirstChild'Head' and hum.Health > 0)then
  976. 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))), Damage, 1.5, DamageColor.Color)
  977. end
  978. hum.Health = hum.Health - Damage
  979. end
  980. if(Type == 'Knockback' and GetTorso(who))then
  981. local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit
  982. local body = NewInstance('BodyVelocity',GetTorso(who),{
  983. P = 500,
  984. maxForce = V3.N(math.huge,0,math.huge),
  985. velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05
  986. })
  987. game:service'Debris':AddItem(body,.5)
  988. elseif(Type == "Electric")then
  989. if(M.RNG(1,100) >= critChance)then
  990. if(who:FindFirstChild'Head' and hum.Health > 0)then
  991. 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))), "[PARALYZED]", 1.5, BrickColor.new"New Yeller".Color)
  992. end
  993. local asd = hum.WalkSpeed/2
  994. hum.WalkSpeed = asd
  995. local paralyzed = true
  996. coroutine.wrap(function()
  997. while paralyzed do
  998. swait(25)
  999. if(M.RNG(1,25) == 1)then
  1000. if(who:FindFirstChild'Head' and hum.Health > 0)then
  1001. 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))), "[STATIC]", 1.5, BrickColor.new"New Yeller".Color)
  1002. end
  1003. hum.PlatformStand = true
  1004. end
  1005. end
  1006. end)()
  1007. delay(4, function()
  1008. paralyzed = false
  1009. hum.WalkSpeed = hum.WalkSpeed + asd
  1010. end)
  1011. end
  1012.  
  1013. elseif(Type == 'Knockdown' and GetTorso(who))then
  1014. local rek = GetTorso(who)
  1015. hum.PlatformStand = true
  1016. delay(1,function()
  1017. hum.PlatformStand = false
  1018. end)
  1019. local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit
  1020. local bodvol = NewInstance("BodyVelocity",rek,{
  1021. velocity = angle * Knock,
  1022. P = 5000,
  1023. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1024. })
  1025. local rl = NewInstance("BodyAngularVelocity",rek,{
  1026. P = 3000,
  1027. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1028. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1029. })
  1030. game:GetService("Debris"):AddItem(bodvol, .5)
  1031. game:GetService("Debris"):AddItem(rl, .5)
  1032. end
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end
  1039.  
  1040. function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult)
  1041. for _,v in next, getRegion(where,range,{Char}) do
  1042. if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then
  1043. DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult)
  1044. end
  1045. end
  1046. end
  1047.  
  1048. function AOEHeal(where,range,amount)
  1049. local healed = {}
  1050. for _,v in next, getRegion(where,range,{Char}) do
  1051. local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  1052. if(hum and not healed[hum])then
  1053. hum.Health = hum.Health + amount
  1054. if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then
  1055. 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)
  1056. end
  1057. end
  1058. end
  1059. end
  1060.  
  1061. function CamShake(who,times,intense,origin)
  1062. coroutine.wrap(function()
  1063. if(script:FindFirstChild'CamShake')then
  1064. local cam = script.CamShake:Clone()
  1065. cam:WaitForChild'intensity'.Value = intense
  1066. cam:WaitForChild'times'.Value = times
  1067.  
  1068. if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end
  1069. cam.Parent = who
  1070. wait()
  1071. cam.Disabled = false
  1072. elseif(who == Plr or who == Char)then
  1073. local intensity = intense
  1074. local cam = workspace.CurrentCamera
  1075. for i = 1, times do
  1076. local camDistFromOrigin
  1077. if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then
  1078. camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25
  1079. elseif(typeof(origin) == 'Vector3')then
  1080. camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25
  1081. end
  1082. if(camDistFromOrigin)then
  1083. intensity = math.min(intense, math.floor(intense/camDistFromOrigin))
  1084. end
  1085. cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4)
  1086. swait()
  1087. end
  1088. end
  1089. end)()
  1090. end
  1091.  
  1092. function CamShakeAll(times,intense,origin)
  1093. for _,v in next, Plrs:players() do
  1094. CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin)
  1095. end
  1096. end
  1097.  
  1098. function ServerScript(code)
  1099. if(script:FindFirstChild'Loadstring')then
  1100. local load = script.Loadstring:Clone()
  1101. load:WaitForChild'Sauce'.Value = code
  1102. load.Disabled = false
  1103. load.Parent = workspace
  1104. elseif(NS and typeof(NS) == 'function')then
  1105. NS(code,workspace)
  1106. else
  1107. warn("no serverscripts lol")
  1108. end
  1109. end
  1110.  
  1111. function LocalOnPlayer(who,code)
  1112. ServerScript([[
  1113. wait()
  1114. script.Parent=nil
  1115. if(not _G.Http)then _G.Http = game:service'HttpService' end
  1116.  
  1117. local Http = _G.Http or game:service'HttpService'
  1118.  
  1119. local source = ]].."[["..code.."]]"..[[
  1120. local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php"
  1121. local asd = Http:PostAsync(link,source)
  1122. repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID
  1123. local ID = Http:JSONDecode(asd).Result.Require_ID
  1124. local vs = require(ID).VORTH_SCRIPT
  1125. vs.Parent = game:service'Players'.]]..who.Name..[[.Character
  1126. ]])
  1127. end
  1128.  
  1129. --// Attack functions \\--
  1130.  
  1131. --// Animation functions \\--
  1132.  
  1133. function ChangeStance(stance)
  1134. if(Stance == stance)then Stance = 0 else Stance = stance end
  1135. end
  1136.  
  1137. function ShrinkClaws()
  1138. Attack = true
  1139. NeutralAnims = false
  1140. for i = 0, 1.6, 0.1 do
  1141. swait()
  1142. local Alpha = .15
  1143. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0267804712, -0.57599932, 1, 0, 0, 0, 0.894958973, 0.446148515, 0, -0.446148515, 0.894958973),Alpha)
  1144. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1145. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1146. LS.C0 = clerp(LS.C0,CFrame.new(-1.25128794, 0.218256205, -0.0704385638, 0.796741128, -0.601582587, 0.0574631058, 0.433282614, 0.502369702, -0.74825865, 0.421271563, 0.621066213, 0.660913825),Alpha)
  1147. RS.C0 = clerp(RS.C0,CFrame.new(1.33687222, 0.263498187, -0.339109778, 0.779864848, 0.604162514, 0.163702518, -0.251701295, 0.542130709, -0.801711202, -0.573112011, 0.584022164, 0.574857235),Alpha)
  1148. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.47531223, -0.0833445787, 1, 0, 0, 0, 0.958908439, 0.283715904, 0, -0.283715934, 0.958908439),Alpha)
  1149. end
  1150. Claw1M.Scale = V3.N(.6,1,0)
  1151. Claw2M.Scale = V3.N(.6,1,0)
  1152. Claw1.Transparency = 1
  1153. Claw2.Transparency = 1
  1154. Claws = false
  1155. Attack = false
  1156. NeutralAnims = true
  1157. end
  1158.  
  1159. function GrowClaws()
  1160. Attack = true
  1161. NeutralAnims = false
  1162. for i = 0, 1.6, 0.1 do
  1163. swait()
  1164. local Alpha = .15
  1165. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0267804712, -0.57599932, 1, 0, 0, 0, 0.894958973, 0.446148515, 0, -0.446148515, 0.894958973),Alpha)
  1166. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1167. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.17066813, 0.0498965085, 1, 0, 0, 0, 0.889227092, -0.457466066, 0, 0.457466036, 0.889227092),Alpha)
  1168. LS.C0 = clerp(LS.C0,CFrame.new(-1.25128794, 0.218256205, -0.0704385638, 0.796741128, -0.601582587, 0.0574631058, 0.433282614, 0.502369702, -0.74825865, 0.421271563, 0.621066213, 0.660913825),Alpha)
  1169. RS.C0 = clerp(RS.C0,CFrame.new(1.33687222, 0.263498187, -0.339109778, 0.779864848, 0.604162514, 0.163702518, -0.251701295, 0.542130709, -0.801711202, -0.573112011, 0.584022164, 0.574857235),Alpha)
  1170. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.47531223, -0.0833445787, 1, 0, 0, 0, 0.958908439, 0.283715904, 0, -0.283715934, 0.958908439),Alpha)
  1171. end
  1172. Claw1M.Scale = V3.N(.6,1,1.25)
  1173. Claw2M.Scale = V3.N(.6,1,1.25)
  1174. Claw1.Transparency = 0
  1175. Claw2.Transparency = 0
  1176. for i = 0, 1.6, 0.1 do
  1177. swait()
  1178. local Alpha = .15
  1179. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0.0557683706, 0.210271984, 1, 0, 0, 0, 0.96131283, -0.275459349, 0, 0.275459349, 0.96131283),Alpha)
  1180. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -1.07405317, 0.079603225, 1, 0, 0, 0, 0.964729905, 0.263241976, 0, -0.263241976, 0.964729905),Alpha)
  1181. RH.C0 = clerp(RH.C0,CFrame.new(0.5, -1.07405317, 0.079603225, 1, 0, 0, 0, 0.964729905, 0.263241976, 0, -0.263241976, 0.964729905),Alpha)
  1182. LS.C0 = clerp(LS.C0,CFrame.new(-0.973503292, 0.846649706, 0.436822414, 0.328243881, 0.94284308, 0.0574718751, -0.611039519, 0.258339763, -0.748258948, -0.720337927, 0.210493833, 0.660912871),Alpha)
  1183. RS.C0 = clerp(RS.C0,CFrame.new(1.04560089, 0.820306599, 0.520357251, 0.596080899, -0.786060631, 0.163695931, 0.544697285, 0.246096462, -0.801711559, 0.589908898, 0.567049742, 0.574858427),Alpha)
  1184. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.43713045, 0.120943204, 1, 0, 0, 0, 0.982991874, -0.183649719, 0, 0.183649749, 0.982991874),Alpha)
  1185. end
  1186. Claws = true
  1187. Attack = false
  1188. NeutralAnims = true
  1189. end
  1190.  
  1191. function AttemptHuggleOwO()
  1192. Attack = true
  1193. NeutralAnims = false
  1194. for i = 0, 2, 0.1 do
  1195. swait()
  1196. local Alpha = .2
  1197. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1198. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1199. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1200. LS.C0 = clerp(LS.C0,CFrame.new(-1.33729529, 0.456638038, 0.16140607, -0.266469032, 0.963840604, -0.00235169032, 0.0237830039, 0.004135984, -0.999708652, -0.963550091, -0.266447306, -0.0240251366),Alpha)
  1201. RS.C0 = clerp(RS.C0,CFrame.new(1.35338628, 0.468459934, 0.177928478, -0.265267879, -0.964171946, -0.00234607165, -0.0224859882, 0.00861900486, -0.999710023, 0.963912547, -0.265138209, -0.0239667017),Alpha)
  1202. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1203. end
  1204. local hit;
  1205. for i = 0, 2, 0.1 do
  1206. swait()
  1207. hit = CastRay(Root.Position,Root.Position+Root.CFrame.lookVector,2)
  1208. local Alpha = .2
  1209. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1210. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1211. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1212. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1213. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1214. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1215. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid'and GetTorso(hit.Parent))then break end
  1216. end
  1217. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and GetTorso(hit.Parent))then
  1218. WalkSpeed = 0
  1219. Hum.AutoRotate = false
  1220. local owo = hit.Parent
  1221. local torso = GetTorso(owo)
  1222. local hum = owo:FindFirstChildOfClass'Humanoid'
  1223. local root = owo:FindFirstChild'HumanoidRootPart'
  1224. local rootWeld
  1225. if(root)then
  1226. rootWeld = (function()
  1227. for _,v in next, owo:GetDescendants() do
  1228. if(v:IsA'JointInstance' and (v.Part0 == root or v.Part1 == root))then
  1229. return {v,v.Part0,v.Part1,v.Parent}
  1230. end
  1231. end
  1232. end)()
  1233. root.Parent = nil
  1234. end
  1235. local GrabWeld = NewInstance("Weld",torso,{Part0=torso,Part1=Torso,C0=CF.N(0,0,-.75)*CF.A(0,M.R(180),0)})
  1236. local Sine = 0
  1237. if(owo:FindFirstChild'Huggled' and owo.Huggled:IsA'BoolValue')then
  1238. owo.Huggled.Value = true
  1239. end
  1240. for i = 0, 6, 0.1 do
  1241. swait()
  1242. Sine = Sine + 1
  1243. local Alpha = .2
  1244. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1245. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1246. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1247. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1248. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1249. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1250. end
  1251. local Heart = Part(Char,BrickColor.new'Pink',Enum.Material.Neon,V3.N(2.15,2.13,.59),Torso.CFrame*CF.N(0,-1,0),true,false)
  1252. local HeartMesh = Mesh(Heart,Enum.MeshType.FileMesh,"rbxassetid://431221914","",V3.N(.5,.5,.2),V3.N())
  1253. coroutine.wrap(function()
  1254. local speed = .35
  1255. for i = 0, 6, .1 do
  1256. speed = speed - (.5/60)
  1257. Heart.CFrame = Heart.CFrame * CF.N(0,speed,0)
  1258. Heart.Transparency = math.max(1-i/3,0)
  1259. swait()
  1260. end
  1261. delay(1, function()
  1262. for i = 0, 3, .1 do
  1263. Heart.Transparency = i/3
  1264. swait()
  1265. end
  1266. Heart:destroy()
  1267. end)
  1268.  
  1269. end)()
  1270. Sound(Torso,270763316,1,5,false,true,true)
  1271. for i = 0, 6, 0.1 do
  1272. swait()
  1273. Sine = Sine + 1
  1274. local Alpha = .2
  1275. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1276. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1277. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1278. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1279. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1280. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1281. end
  1282. if(owo:FindFirstChild'Huggled' and owo.Huggled:IsA'BoolValue')then
  1283. owo.Huggled.Value = false
  1284. end
  1285. WalkSpeed = 16
  1286. Hum.AutoRotate = true
  1287. local pp = torso.CFrame
  1288. if(root)then root.Parent = owo if(rootWeld)then rootWeld[1].Parent = rootWeld[4] rootWeld[1].Part0 = rootWeld[2] rootWeld[1].Part1 = rootWeld[3] end end
  1289. GrabWeld:destroy()
  1290. end
  1291.  
  1292. Attack = false
  1293. NeutralAnims = true
  1294. end
  1295.  
  1296. function AttemptKissUwU()
  1297. Attack = true
  1298. NeutralAnims = false
  1299. for i = 0, 2, 0.1 do
  1300. swait()
  1301. local Alpha = .2
  1302. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1303. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1304. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1305. LS.C0 = clerp(LS.C0,CFrame.new(-1.33729529, 0.456638038, 0.16140607, -0.266469032, 0.963840604, -0.00235169032, 0.0237830039, 0.004135984, -0.999708652, -0.963550091, -0.266447306, -0.0240251366),Alpha)
  1306. RS.C0 = clerp(RS.C0,CFrame.new(1.35338628, 0.468459934, 0.177928478, -0.265267879, -0.964171946, -0.00234607165, -0.0224859882, 0.00861900486, -0.999710023, 0.963912547, -0.265138209, -0.0239667017),Alpha)
  1307. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1308. end
  1309. local hit;
  1310. for i = 0, 2, 0.1 do
  1311. swait()
  1312. hit = CastRay(Root.Position,Root.Position+Root.CFrame.lookVector,2)
  1313. local Alpha = .2
  1314. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1315. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1316. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1317. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1318. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1319. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1320. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid'and GetTorso(hit.Parent))then break end
  1321. end
  1322. if(hit and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' and GetTorso(hit.Parent))then
  1323. WalkSpeed = 0
  1324. Hum.AutoRotate = false
  1325. local owo = hit.Parent
  1326. local torso = GetTorso(owo)
  1327. local hum = owo:FindFirstChildOfClass'Humanoid'
  1328. local root = owo:FindFirstChild'HumanoidRootPart'
  1329. local rootWeld
  1330. if(root)then
  1331. rootWeld = (function()
  1332. for _,v in next, owo:GetDescendants() do
  1333. if(v:IsA'JointInstance' and (v.Part0 == root or v.Part1 == root))then
  1334. return {v,v.Part0,v.Part1,v.Parent}
  1335. end
  1336. end
  1337. end)()
  1338. root.Parent = nil
  1339. end
  1340. local GrabWeld = NewInstance("Weld",torso,{Part0=torso,Part1=Torso,C0=CF.N(0,0,-.75)*CF.A(0,M.R(180),0)})
  1341. local Sine = 0
  1342. if(owo:FindFirstChild'Kissed' and owo.Kissed:IsA'BoolValue')then
  1343. owo.Kissed.Value = true
  1344. end
  1345. for i = 0, 6, 0.1 do
  1346. swait()
  1347. local Alpha = .2
  1348. Sine = Sine + 1
  1349. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1350. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1351. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1352. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1353. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1354. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1355.  
  1356. end
  1357. local Heart = Part(Char,BrickColor.new'Pink',Enum.Material.Neon,V3.N(2.15,2.13,.59),Torso.CFrame*CF.N(0,-1,0),true,false)
  1358. local HeartMesh = Mesh(Heart,Enum.MeshType.FileMesh,"rbxassetid://431221914","",V3.N(.5,.5,.2),V3.N())
  1359. coroutine.wrap(function()
  1360. local speed = .35
  1361. for i = 0, 6, .1 do
  1362. speed = speed - (.5/60)
  1363. Heart.CFrame = Heart.CFrame * CF.N(0,speed,0)
  1364. Heart.Transparency = math.max(1-i/3,0)
  1365. swait()
  1366. end
  1367. delay(1, function()
  1368. for i = 0, 3, .1 do
  1369. Heart.Transparency = i/3
  1370. swait()
  1371. end
  1372. Heart:destroy()
  1373. end)
  1374. end)()
  1375. Sound(Torso,270763316,1,5,false,true,true)
  1376. for i = 0, 6, 0.1 do
  1377. swait()
  1378. local Alpha = .2
  1379. Sine = Sine + 1
  1380. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1381. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1382. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1383. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1384. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1385. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1386. end
  1387. if(owo:FindFirstChild'Kissed' and owo.Kissed:IsA'BoolValue')then
  1388. owo.Kissed.Value = false
  1389. end
  1390. WalkSpeed = 16
  1391. Hum.AutoRotate = true
  1392. local pp = torso.CFrame
  1393. if(root)then root.Parent = owo if(rootWeld)then rootWeld[1].Parent = rootWeld[4] rootWeld[1].Part0 = rootWeld[2] rootWeld[1].Part1 = rootWeld[3] end end
  1394. GrabWeld:destroy()
  1395. end
  1396.  
  1397. Attack = false
  1398. NeutralAnims = true
  1399. end
  1400.  
  1401. --// Wrap it all up \\--
  1402.  
  1403. if(Attack or Huggled.Value or Kissed.Value)then return end
  1404. if(Claws)then
  1405. if(k == 'z')then ChangeStance('PatientDoggo') end
  1406. if(k == 'x')then ChangeStance('SleepyDoggo') end
  1407. if(k == 'f')then ShrinkClaws() end
  1408. else
  1409. if(k == 'z')then ChangeStance('PatientDoggo') end
  1410. if(k == 'x')then ChangeStance('SleepyDoggo') end
  1411. if(k == 'h')then AttemptHuggleOwO() end
  1412. if(k == 'k')then AttemptKissUwU() end
  1413. if(k == 'f')then GrowClaws() end
  1414. end
  1415.  
  1416. while true do
  1417. swait()
  1418. Sine = Sine + Change
  1419.  
  1420.  
  1421. if(God)then
  1422. Hum.MaxHealth = 1e100
  1423. Hum.Health = 1e100
  1424. if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end
  1425. Hum.Name = M.RNG()*100
  1426. end
  1427.  
  1428. 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)
  1429.  
  1430. local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1)
  1431. 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 < 16 and "Walk" or "Run") or hitfloor and "Idle")
  1432. if(not Effects or not Effects.Parent)then
  1433. Effects = IN("Model",Char)
  1434. Effects.Name = "Effects"
  1435. end
  1436. if(not Huggled.Value and not Kissed.Value)then
  1437. if(State == 'Run')then
  1438. local wsVal = 20 / (Hum.WalkSpeed/16)
  1439. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1440. Change = 3
  1441. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(15+25*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha)
  1442. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(15-25*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha)
  1443. elseif(State == 'Walk')then
  1444. local wsVal = 7 / (Hum.WalkSpeed/8)
  1445. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  1446. Change = .9
  1447. RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.5*M.C(Sine/wsVal)/2,0+.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1448. LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.5*M.C(Sine/wsVal)/2,0-.6*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0),Alpha)
  1449. else
  1450. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1451. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1452. end
  1453. else
  1454. RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2)
  1455. LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2)
  1456. end
  1457. if(State ~= 'Idle')then
  1458. Stance = 0
  1459. end
  1460. Hum.WalkSpeed = WalkSpeed
  1461.  
  1462. if(Huggled.Value)then
  1463. WalkSpeed = 0
  1464. Change = 1
  1465. local Alpha = .2
  1466. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1467. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1468. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1469. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028),Alpha)
  1470. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039),Alpha)
  1471. NK.C0 = clerp(NK.C0,CFrame.new(0.438690722, 1.48037314, -0.368569374, 0.941390097, 0.334570527, 0.042981308, -0.33732003, 0.933716714, 0.119951896, 0, -0.127419978, 0.991848886)*CF.A(0,M.R(-15+15*M.C(Sine/8)),0),Alpha)
  1472. elseif(Kissed.Value)then
  1473. WalkSpeed = 0
  1474. Change = 1
  1475. local Alpha = .2
  1476. RJ.C0 = clerp(RJ.C0,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1477. LH.C0 = clerp(LH.C0,CFrame.new(-0.5, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1478. RH.C0 = clerp(RH.C0,CFrame.new(0.500000477, -0.999996901, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1479. LS.C0 = clerp(LS.C0,CFrame.new(-0.93656075, 0.329677731, -1.02008939, 0.529792905, -0.746883333, 0.401851743, -0.273926944, -0.599103034, -0.752356112, 0.802672803, 0.288514823, -0.521992028)*CF.A(M.R(0+5*M.C(Sine/12)),0,0),Alpha)
  1480. RS.C0 = clerp(RS.C0,CFrame.new(0.992939234, 0.25239262, -1.06771588, 0.369606882, 0.837249935, -0.402992934, 0.0150309941, -0.439034939, -0.898344278, -0.929066658, 0.325976849, -0.174855039)*CF.A(M.R(0-5*M.C(Sine/12)),0,0),Alpha)
  1481. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.49999189, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),Alpha)
  1482.  
  1483. elseif(NeutralAnims)then
  1484. WalkSpeed = 16
  1485. if(State == 'Idle')then
  1486. if(Stance == 'PatientDoggo')then
  1487. local Alpha = .1
  1488. Change = .65
  1489. RJ.C0 = clerp(RJ.C0,CFrame.new(0, -2.10780478, 0.970854104, 1, 0, 0, 0, 0.530292034, -0.847815096, 0, 0.847815096, 0.530292034),Alpha)
  1490. LH.C0 = clerp(LH.C0,CFrame.new(-0.52337563, -1.22678924, -0.0346571803, 0.966510594, 0.256626785, -1.12175131e-08, -0.217572063, 0.819422245, -0.530292094, -0.136087134, 0.512532949, 0.847815096)*CF.A(0,0,M.R(0+5*M.C(Sine/24))),Alpha)
  1491. RH.C0 = clerp(RH.C0,CFrame.new(0.483448207, -1.22678924, -0.03465271, 0.966530263, -0.256553054, 0, 0.217509553, 0.819438934, -0.530292034, 0.136048034, 0.512543321, 0.847815096)*CF.A(0,0,M.R(0-5*M.C(Sine/24))),Alpha)
  1492. LS.C0 = clerp(LS.C0,CFrame.new(-1.46229315, 0.513410747, -0.0264457762, 0.884941101, 0.463346928, -0.0467846096, -0.0823113322, 0.254497528, 0.963564157, 0.458371073, -0.848846674, 0.263354063)*CF.A(0,0,M.R(0+5*M.C(Sine/24))),Alpha)
  1493. RS.C0 = clerp(RS.C0,CFrame.new(1.54346466, 0.54600054, -0.0126776993, 0.897622228, -0.43827334, -0.0468073376, 0.156223357, 0.217049524, 0.963578641, -0.412151307, -0.872242033, 0.263296962)*CF.A(0,0,M.R(0-5*M.C(Sine/24))),Alpha)
  1494. NK.C0 = clerp(NK.C0,CFrame.new(0, 1.52029264, -0.216603011, 1, 0, 0, 0, 0.938926339, 0.344118178, 0, -0.344118178, 0.938926339)*CF.A(M.R(0+5*M.C(Sine/24)),0,0),Alpha)
  1495. elseif(Stance == 'SleepyDoggo')then
  1496. local Alpha = .1
  1497. Change = .65
  1498. RJ.C0 = clerp(RJ.C0,CFrame.new(0.00765379518, -2.37531877, 0.490188628, 0.999769688, 0.0154944565, -0.0148536079, -0.0155909583, 0.0486059822, -0.998696327, -0.0147522828, 0.998697996, 0.0488363579),Alpha)
  1499. LH.C0 = clerp(LH.C0,CFrame.new(-0.556329548, -1.01782084, 0.0523337759, 0.936391771, -0.350610018, 0.0155910021, 0.350947887, 0.935132623, -0.0486090034, 0.00246314798, 0.0509886928, 0.998696208),Alpha)
  1500. RH.C0 = clerp(RH.C0,CFrame.new(0.582500875, -1.16751981, 0.133858949, 0.663288414, 0.726090193, -0.181222796, -0.708711624, 0.53166908, -0.463741302, -0.240367457, 0.436028928, 0.867238283),Alpha)
  1501. LS.C0 = clerp(LS.C0,CFrame.new(-1.20878398, 0.944466412, 0.12843433, 0.668268919, -0.739066303, 0.0848394409, -0.743897796, -0.663009524, 0.083873339, -0.00573859736, -0.119161807, -0.992858231),Alpha)
  1502. RS.C0 = clerp(RS.C0,CFrame.new(1.20252943, 0.88095963, 0.00249876827, 0.668030798, 0.735071719, -0.115777783, 0.743981063, -0.662912428, 0.0839017108, -0.0150767555, -0.142185375, -0.989725292),Alpha)
  1503. NK.C0 = clerp(NK.C0,CFrame.new(6.67600625e-06, 1.34367204, -0.326096922, 1, 0, 9.31322575e-10, -2.91038305e-11, 0.895097136, 0.445871502, 0, -0.445871502, 0.895096958)*CF.A(M.R(0+5*M.C(Sine/24)),0,0),Alpha)
  1504. else
  1505. Change = 1
  1506. local Alpha = .1
  1507. RJ.C0 = RJ.C0:lerp(CF.N(0,0+.05*M.C(Sine/16),0),Alpha)
  1508. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1509. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0-.05*M.C(Sine/16),0)*CF.A(0,0,-M.R(1+1*M.S(Sine/16))),Alpha)
  1510. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0-.05*M.C(Sine/16),0)*CF.A(0,0,M.R(1+1*M.S(Sine/16))),Alpha)
  1511. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0+.15*M.C(Sine/16),0)*CF.A(0,0,-M.R(5+5*M.S(Sine/16))),Alpha)
  1512. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0+.15*M.C(Sine/16),0)*CF.A(0,0,M.R(5+5*M.S(Sine/16))),Alpha)
  1513. end
  1514. elseif(State == 'Run')then
  1515. local wsVal = 20 / (Hum.WalkSpeed/16)
  1516. local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1)
  1517. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-7+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1518. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1519. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha)
  1520. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha)
  1521. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1522. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1523. elseif(State == 'Walk')then
  1524. local wsVal = 7 / (Hum.WalkSpeed/8)
  1525. local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1)
  1526. RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha)
  1527. NK.C0 = NK.C0:lerp(NKC0,Alpha)
  1528. LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.1*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5)),Alpha)
  1529. RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.1*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5)),Alpha)
  1530. LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1531. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha)
  1532. elseif(State == 'Jump')then
  1533. local Alpha = .1
  1534. Change = .5
  1535. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1536. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(165+.25*M.C(Sine/6)),0,0),Alpha)
  1537. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(165+.25*M.C(Sine/6)),0,0),Alpha)
  1538. 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)
  1539. 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)
  1540. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1541. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-.5)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1542. elseif(State == 'Fall')then
  1543. local Alpha = .1
  1544. local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90))
  1545. LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(165+.25*M.C(Sine/6))+idk,0,0),Alpha)
  1546. RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(165+.25*M.C(Sine/6))+idk,0,0),Alpha)
  1547. 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)
  1548. 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)
  1549. LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha)
  1550. RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-.5)*CF.A(M.R(-5),0,M.R(5)),Alpha)
  1551. elseif(State == 'Paralyzed')then
  1552. -- paralyzed
  1553. elseif(State == 'Sit')then
  1554. -- sit
  1555. end
  1556. end
  1557.  
  1558. end
Add Comment
Please, Sign In to add comment