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