Advertisement
memberhero

Holiday Feel

Dec 12th, 2020 (edited)
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.35 KB | None | 0 0
  1. local Player = owner
  2. local Character = Player.Character
  3. local mouse,Mouse,MMouse = nil
  4. local RemoteEvent = Instance.new("RemoteEvent")
  5. RemoteEvent.Name = "KeyDown"
  6. RemoteEvent.Parent = Character
  7. local RemoteEvent2 = Instance.new("RemoteEvent")
  8. RemoteEvent2.Name = "ButtonDown"
  9. RemoteEvent2.Parent = Character
  10. local RemoteEvent3 = Instance.new("RemoteFunction")
  11. RemoteEvent3.Name = "MousePos"
  12. RemoteEvent3.Parent = Character
  13. function getMouseHit()
  14. return RemoteEvent3:InvokeClient (owner,1);
  15. end;
  16. function getMouseHitx()
  17. return RemoteEvent3:InvokeClient (owner,2);
  18. end;
  19. function getMouseHitz()
  20. return RemoteEvent3:InvokeClient (owner,3);
  21. end;
  22. NLS([==[
  23. local Player = game.Players.LocalPlayer
  24. local mouse = Player:GetMouse()
  25. local remote = Player.Character:WaitForChild("KeyDown")
  26. local remote2 = Player.Character:WaitForChild("ButtonDown")
  27. local remote3 = Player.Character:WaitForChild("MousePos")
  28. mouse.KeyDown:Connect(function(k)
  29. k = k:lower()
  30. remote:FireServer(k)
  31. end)
  32.  
  33. mouse.Button1Down:Connect(function()
  34. remote2:FireServer()
  35. end)
  36.  
  37. remote3.OnClientInvoke = function (request, ...)
  38. if (request == 1) then
  39. return mouse.Hit.p;
  40. end;
  41. if (request == 2) then
  42. return mouse.Hit.x;
  43. end;
  44. if (request == 3) then
  45. return mouse.Hit.z;
  46. end;
  47. end;
  48.  
  49.  
  50.  
  51. ]==],Player.Character)
  52. print("FE Converter By basstracker1970")
  53.  
  54. wait(0.111111156)
  55.  
  56. --//Holiday Feelings//--
  57. print("Holiday Feelings")
  58. print("Made by vlad20020.")
  59. warn("This is holiday time!")
  60. print("Controls below ok")
  61. warn([[E - Hug
  62. Q - Throw snowbal
  63. F - Place a gift
  64. C - TP
  65. Z - Sit]])
  66. local plr = Player
  67. local plrg = plr.PlayerGui
  68.  
  69. local char = plr.Character
  70. local h = char:FindFirstChild("Head")
  71. local t = char:FindFirstChild("Torso")
  72. local ra = char:FindFirstChild("Right Arm")
  73. local la = char:FindFirstChild("Left Arm")
  74. local rl = char:FindFirstChild("Right Leg")
  75. local ll = char:FindFirstChild("Left Leg")
  76. local rs = t:FindFirstChild("Right Shoulder")
  77. local ls = t:FindFirstChild("Left Shoulder")
  78. local rh = t:FindFirstChild("Right Hip")
  79. local lh = t:FindFirstChild("Left Hip")
  80. local nec = t.Neck
  81. local rut = char.HumanoidRootPart
  82. local rutj = rut.RootJoint
  83. local hum = char:FindFirstChildOfClass("Humanoid")
  84. local cf1 = nec.C1
  85. local cf2 = rutj.C1
  86. local cf3 = rs.C1
  87. local cf4 = ls.C1
  88. local cf5 = rh.C1
  89. local cf6 = lh.C1
  90. local cf01 = nec.C0
  91. local cf02 = rutj.C0
  92. local cf03 = rs.C0
  93. local cf04 = ls.C0
  94. local cf05 = rh.C0
  95. local cf06 = lh.C0
  96. local p0,p1 = nec.Part0,nec.Part1
  97. local rsp0,rsp1 = rs.Part0,rs.Part1
  98. local lsp0,lsp1 = ls.Part0,ls.Part1
  99. local rhp0,rhp1 = rh.Part0,rh.Part1
  100. local lhp0,lhp1 = lh.Part0,lh.Part1
  101. local aa = 10
  102. local aaa = aa*3
  103. local change = 0
  104. local lchange = 0
  105. local sine = 1
  106. local hugtime = 1
  107. local anim = "idle"
  108. local animspeed = .005
  109. local animspeed1 = 1.5
  110. local walkanimspeed = .1
  111. local walkspeed = 16
  112. local sumthin = walkspeed/8
  113. local idlenum = 0
  114. local lsvol = 2.5
  115. local whenbored = math.random(2,6)
  116. local rad = math.rad
  117. local huge = math.huge
  118. local using = false
  119. local hugging = false
  120. local lookinaround = false
  121. local aiming = false
  122. local sitting = false
  123. local furmode = false
  124. local landed = false
  125. local readytoland = false
  126. local cangrabthecorner = false
  127. local grabbedc = false
  128. local qui = Enum.EasingStyle.Quint
  129. local io = Enum.EasingDirection.InOut
  130. local tweens = game:GetService("TweenService")
  131. local debrs = game:GetService("Debris")
  132. local gifts = {"rbxassetid://5013502","rbxassetid://1237427","rbxassetid://6109471","rbxassetid://7812400","rbxassetid://19428684"}
  133. local spart
  134. local phit
  135. local cos = math.cos
  136. local sin = math.sin
  137. local tan = math.tan
  138. local ray = Ray.new
  139. local v3 = Vector3.new
  140. cff5 = cf5 * CFrame.Angles(rad(2),rad(3),rad(0))
  141. cff6 = cf6 * CFrame.Angles(rad(2),rad(-3),rad(0))
  142. if plr.UserId == 90745958 or plr.UserId == 62574108 then
  143. furmode = true
  144. end
  145. if furmode then
  146. hugtime = 2.5
  147. print("owo uwu")
  148. end
  149. local effpart = Instance.new("Part") effpart.Size = Vector3.new(2,.1,1) effpart.Massless = true effpart.Transparency = 1 effpart.CanCollide = false effpart.Anchored = false effpart.Parent = char
  150. local grabpart = Instance.new("Part") grabpart.Size = Vector3.new(.1,.1,.1) grabpart.Massless = true grabpart.Transparency = 1 grabpart.CanCollide = false grabpart.Anchored = false grabpart.Material = "Neon" grabpart.Parent = char
  151. local pweld = Instance.new("Weld",effpart) pweld.Part0 = t pweld.Part1 = effpart pweld.C0 = CFrame.new(0,-2.2,-.5)
  152. local gweld = Instance.new("Weld",grabpart) gweld.Part0 = rut gweld.Part1 = grabpart gweld.C0 = CFrame.new(0,3,-1.4)
  153. local lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
  154. --//ArmJointParts~//--
  155. local tpr = Instance.new("Part",t) tpr.Size = Vector3.new(.1,.1,.1) tpr.CanCollide = false tpr.Transparency = 1 tpr.Locked = true
  156. local tpl = Instance.new("Part",t) tpl.Size = Vector3.new(.1,.1,.1) tpl.CanCollide = false tpl.Transparency = 1 tpl.Locked = true
  157. local tprw = Instance.new("Weld",t) tprw.Part0 = t tprw.Part1 = tpr tprw.C0 = CFrame.new(1,.5,0)
  158. local tplw = Instance.new("Weld",t) tplw.Part0 = t tplw.Part1 = tpl tplw.C0 = CFrame.new(-1,.5,0)
  159. --
  160. local rapr = Instance.new("Part",ra) rapr.Size = Vector3.new(.1,.1,.1) rapr.CanCollide = false rapr.Transparency = 1 rapr.Locked = true
  161. local lapl = Instance.new("Part",la) lapl.Size = Vector3.new(.1,.1,.1) lapl.CanCollide = false lapl.Transparency = 1 lapl.Locked = true
  162. local raprw = Instance.new("Weld",ra) raprw.Part0 = ra raprw.Part1 = rapr raprw.C0 = CFrame.new(-.5,.5,0)
  163. local laplw = Instance.new("Weld",la) laplw.Part0 = la laplw.Part1 = lapl laplw.C0 = CFrame.new(.5,.5,0)
  164. --/JointsWelds~//--
  165. local rsw = Instance.new("Weld",ra) rsw.Part0 = tpr rsw.Part1 = nil --Right Shoulder
  166. local lsw = Instance.new("Weld",la) lsw.Part0 = tpl lsw.Part1 = nil --Left Shoulder
  167. local bil = Instance.new("BillboardGui",char) bil.Name = "ChatFunc" bil.Adornee = h bil.Size = UDim2.new(1,0,1,0) bil.StudsOffset = Vector3.new(0,2,0)
  168. local effects = Instance.new("Model",char) effects.Name = "Effects"
  169. local noanim = true
  170. if noanim then
  171. if char:WaitForChild("Animate",1.5) then
  172. char.Animate:Destroy()
  173. end
  174. for i,v in pairs(hum:GetPlayingAnimationTracks()) do
  175. v:Stop(0)
  176. v:AdjustSpeed(0)
  177. v:AdjustWeight(math.huge)
  178. v.TimePosition = 0
  179. v:Destroy()
  180. end
  181. wait()
  182. if hum:FindFirstChildOfClass("Animator") then
  183. char.Humanoid.Animator:Destroy()
  184. end
  185. end
  186. function swait(num)
  187. game:GetService("RunService").Stepped:Wait()
  188. end
  189. function remove(instanc,timee)
  190. debrs:AddItem(instanc,timee)
  191. end
  192. function dest(hit,type)
  193. if hit:IsA("Seat") or hit:IsA("VehicleSeat") then
  194. hit.Parent = nil
  195. end
  196. hit:ClearAllChildren()
  197. hit.Anchored = false hit.CanCollide = true
  198. if hit:IsA("Part") then
  199. hit.FormFactor = "Custom"
  200. end
  201. hit.Size = v3(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
  202. hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
  203. local clone = hit:Clone() clone.Parent = workspace
  204. local clone1 = hit:Clone() clone1.Parent = workspace
  205. local clone2 = hit:Clone() clone2.Parent = workspace
  206. local clone3 = hit:Clone() clone3.Parent = workspace
  207. local clone4 = hit:Clone() clone4.Parent = workspace
  208. local clone5 = hit:Clone() clone5.Parent = workspace
  209. local clone6 = hit:Clone() clone6.Parent = workspace
  210. clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0)
  211. clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0)
  212. clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0)
  213. clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z)
  214. clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z)
  215. clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z)
  216. clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z)
  217. local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6}
  218. return parts
  219. end
  220. function rayc(spos,direc,ignore,dist)
  221. local rai = ray(spos,direc.Unit * dist)
  222. local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false)
  223. return rhit,rpos,rrot
  224. end
  225. local tlerp = function(part,tablee,leinght,easingstyle,easingdirec)
  226. pcall(function()
  227. local info = TweenInfo.new(
  228. leinght,
  229. easingstyle,
  230. easingdirec,
  231. 0,
  232. false,
  233. 0
  234. )
  235. local lerp = tweens:Create(part,info,tablee)
  236. lerp:Play()
  237. end)
  238. end
  239. function fire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise)
  240. local part = Instance.new("Part",parent) part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20))
  241. if onlyraise == true then
  242. part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z))
  243. else
  244. end
  245. local pcf = part.CFrame
  246. tlerp(part,{CFrame = pcf * CFrame.new(math.random(-spread,spread)/math.random(2,4),math.random(minr,maxr),math.random(-spread,spread)/math.random(2,4)) * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))),Size = Vector3.new(osize,osize,osize),Color = BrickColor.new(color2).Color,Transparency = ot},leinght,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut)
  247. game:GetService("Debris"):AddItem(part,leinght)
  248. end
  249. function removewithfade(part,timebeforefade,randc)
  250. pcall(function()
  251. coroutine.resume(coroutine.create(function()
  252. wait(timebeforefade)
  253. part:BreakJoints()
  254. part.Name = "JustGoingAwayOk?"
  255. for i = 1,25 do
  256. if randc then
  257. part.BrickColor = BrickColor.Random()
  258. end
  259. part.Transparency = part.Transparency +.04
  260. wait()
  261. end
  262. part:Destroy()
  263. end))
  264. end)
  265. end
  266. function fadewithfly(part,color,randc)
  267. pcall(function()
  268. part:ClearAllChildren()
  269. part.CanCollide = false
  270. part.Anchored = false
  271. part.Massless = true
  272. part.Locked = false
  273. part.Archivable = true
  274. part.Material = "Neon"
  275. part.BrickColor = BrickColor.new(color)
  276. local vel = Instance.new("BodyVelocity")
  277. vel.MaxForce = v3(huge,huge,huge)
  278. vel.P = 10000
  279. vel.Velocity = v3(math.random(-3,3),math.random(1,3),math.random(-3,3))
  280. local avel = Instance.new("BodyAngularVelocity")
  281. avel.MaxTorque = v3(huge,huge,huge)
  282. avel.AngularVelocity = v3(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  283. avel.Parent = part
  284. vel.Parent = part
  285. if randc then
  286. removewithfade(part,0,true)
  287. else
  288. removewithfade(part,0,false)
  289. end
  290. end)
  291. end
  292. function throwsb(to,power)
  293. pcall(function()
  294. local sb = Instance.new("Part")
  295. sb.Size = v3(1,1,1)
  296. sb.BrickColor = BrickColor.new("Institutional white")
  297. sb.CFrame = ra.CFrame * CFrame.new(0,-1.5,0)
  298. sb.Material = "Sand"
  299. sb.Parent = workspace
  300. sb.Shape = "Ball"
  301. sb:BreakJoints()
  302. local vel = Instance.new("BodyVelocity")
  303. vel.MaxForce = v3(huge,huge,huge)
  304. vel.Velocity = CFrame.new(sb.Position,to).LookVector * power
  305. remove(vel,.2)
  306. vel.Parent = sb
  307. sb.Touched:Connect(function(hit)
  308. if hit.Parent ~= char and hit.Parent.Parent ~= char then
  309. local shum = hit.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  310. if shum then
  311. coroutine.resume(coroutine.create(function()
  312. shum.PlatformStand = true
  313. wait(.5)
  314. shum.PlatformStand = false
  315. end))
  316. end
  317. local cf = sb.CFrame
  318. sb:Destroy()
  319. for i = 1,math.random(6,12) do
  320. local force = 5
  321. local debr = Instance.new("Part")
  322. debr.Size = v3(.2,.2,.2)
  323. debr.BrickColor = BrickColor.new("Institutional white")
  324. debr.Material = "Sand"
  325. debr.Parent = workspace
  326. debr.CFrame = cf * CFrame.new(1/math.random(-5,5),1/math.random(-5,5),1/math.random(-5,5))
  327. debr:BreakJoints()
  328. debr.Name = "SnowDedree"
  329. local mesh = Instance.new("SpecialMesh",debr)
  330. mesh.MeshType = "Sphere"
  331. mesh.Scale = v3(math.random(10,30)/10,math.random(10,30)/10,math.random(10,30)/10)
  332. local fors = Instance.new("BodyForce",debr)
  333. fors.Force = v3(math.random(-force,force),math.random(-force,force),math.random(-force,force))
  334. remove(debr,math.random(4,7))
  335. remove(fors,.05)
  336. end
  337. end
  338. end)
  339. end)
  340. end
  341. function introhat()
  342. pcall(function()
  343. using = true
  344. rsw.Part1 = rapr
  345. lsw.Part1 = lapl
  346. local hpart = Instance.new("Part",char) hpart.Size = Vector3.new(.01,.01,.01) hpart.Transparency = 0 hpart.Name = "Santa Hat"
  347. hpart.Locked = true
  348. local hmesh = Instance.new("FileMesh",hpart) hmesh.MeshId = "http://www.roblox.com/asset/?id=1090610" hmesh.TextureId = "http://www.roblox.com/asset/?id=66690053"
  349. local hweld = Instance.new("Weld",h) hweld.Part0 = ra hweld.Part1 = hpart hweld.C0 = CFrame.new(0,-1.2,0) * CFrame.Angles(rad(-120),rad(30),rad(0))
  350. tlerp(rsw,{C0 = CFrame.new(-.3,-.1,-.1) * CFrame.Angles(rad(50),rad(20),rad(-40))},.5,qui,io)
  351. tlerp(lsw,{C0 = CFrame.new(.3,-.1,-.1) * CFrame.Angles(rad(50),rad(-20),rad(40))},.5,qui,io)
  352. tlerp(hweld,{C0 = CFrame.new(0,-1.2,0) * CFrame.Angles(rad(-120),rad(-65),rad(-30))},.5,qui,io)
  353. wait(.65)
  354. tlerp(rsw,{C0 = CFrame.new(-.3,.65,-.2) * CFrame.Angles(rad(160),rad(20),rad(-30))},.7,qui,io)
  355. tlerp(lsw,{C0 = CFrame.new(.3,.65,-.2) * CFrame.Angles(rad(160),rad(-20),rad(30))},.7,qui,io)
  356. tlerp(hweld,{C0 = CFrame.new(-.3,-1.2,-.2) * CFrame.Angles(rad(-180),rad(-65),rad(-100)) * CFrame.Angles(rad(0),rad(0),rad(60))},.7,qui,io)
  357. wait(.65)
  358. tlerp(rsw,{C0 = CFrame.new(-.3,.15,0) * CFrame.Angles(rad(179),rad(20),rad(-30))},.7,qui,io)
  359. tlerp(lsw,{C0 = CFrame.new(.3,.15,0) * CFrame.Angles(rad(179),rad(-20),rad(30))},.7,qui,io)
  360. hweld.C0 = CFrame.new(-.3,-1,-.2) * CFrame.Angles(rad(-180),rad(0),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-30)) * CFrame.Angles(rad(0),rad(-30),rad(0))
  361. wait(.6)
  362. hweld.Part0 = h
  363. hweld.C0 = CFrame.new(0,.5,0) * CFrame.Angles(rad(0),rad(-30),rad(0))
  364. tlerp(rsw,{C0 = CFrame.new(0,0,0)},1,qui,io)
  365. tlerp(lsw,{C0 = CFrame.new(0,0,0)},1,qui,io)
  366. local music = Instance.new("Sound",t) music.Name = "Song" music.SoundId = "rbxassetid://1845187266" music.Volume = 0 music.Looped = true music:Play()
  367. coroutine.resume(coroutine.create(function()
  368. for i = 1,5 do
  369. music.Volume = music.Volume +.125
  370. wait(.2)
  371. end
  372. end))
  373. spart = Instance.new("Part",char) spart.Size = Vector3.new(20,1,20) spart.CanCollide = false spart.Anchored = true spart.Massless = true spart.Transparency = 1 spart.CFrame = h.CFrame * CFrame.new(0,15,0) spart.Locked = true
  374. local emitter = Instance.new("ParticleEmitter",spart) emitter.Texture = "http://www.roblox.com/asset/?id=137831468" emitter.Size = NumberSequence.new(.2,.01) emitter.Rate = 40 emitter.Color = ColorSequence.new(Color3.new(1,1,1),Color3.new(1,1,1)) emitter.EmissionDirection = "Top" emitter.Lifetime = NumberRange.new(3) emitter.Acceleration = Vector3.new(0,-40,0) emitter.Speed = NumberRange.new(-10,10) emitter.SpreadAngle = Vector2.new(-30,30)
  375. wait(1)
  376. nec:Destroy()
  377. rs:Destroy()
  378. ls:Destroy()
  379. rh:Destroy()
  380. lh:Destroy()
  381. nec = Instance.new("Motor6D",t) nec.Part0 = p0 nec.Part1 = p1 nec.C0 = cf01
  382. rs = Instance.new("Motor6D",t) rs.Part0 = rsp0 rs.Part1 = rsp1 rs.C0 = cf03
  383. ls = Instance.new("Motor6D",t) ls.Part0 = lsp0 ls.Part1 = lsp1 ls.C0 = cf04
  384. rh = Instance.new("Motor6D",t) rh.Part0 = rhp0 rh.Part1 = rhp1 rh.C0 = cf05
  385. lh = Instance.new("Motor6D",t) lh.Part0 = lhp0 lh.Part1 = lhp1 lh.C0 = cf06
  386. rsw.Part1 = nil
  387. lsw.Part1 = nil
  388. using = false
  389. end)
  390. end
  391. function hug(who)
  392. pcall(function()
  393. if not hugging then
  394. local removerut = false
  395. hugging = true
  396. using = true
  397. local tors = who:FindFirstChild("Torso") or who:FindFirstChild("UpperTorso")
  398. local hu = who:FindFirstChildOfClass("Humanoid")
  399. hu.PlatformStand = true
  400. local weld = Instance.new("Weld",t) weld.Part0 = t weld.Part1 = tors weld.C0 = CFrame.new(0,0,-.9) * CFrame.Angles(rad(0),rad(180),rad(0))
  401. local deb = Instance.new("Glue",who) deb.Name = "Hugging"
  402. tlerp(rsw,{C0 = CFrame.new(-.3,-.2,-.45) * CFrame.Angles(rad(110),rad(0),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-60))},.4,qui,io)
  403. tlerp(lsw,{C0 = CFrame.new(.2,-.2,-.45) * CFrame.Angles(rad(105),rad(0),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(65))},.4,qui,io)
  404. tlerp(nec,{C0 = CFrame.new(-.15,1,0) * CFrame.Angles(rad(90),rad(180),rad(0)) * CFrame.Angles(rad(0),rad(15),rad(25))},.4,qui,io)
  405. rsw.Part1 = rapr
  406. lsw.Part1 = lapl
  407. wait(hugtime)
  408. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.7,qui,io)
  409. tlerp(lsw,{C0 = CFrame.new(0,0,0)},.7,qui,io)
  410. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.7,qui,io)
  411. wait(.4)
  412. hu.PlatformStand = false
  413. weld:Destroy()
  414. wait(.4)
  415. rsw.Part1 = nil
  416. lsw.Part1 = nil
  417. deb:Destroy()
  418. hugging = false
  419. using = false
  420. end
  421. end)
  422. end
  423. function detect()
  424. pcall(function()
  425. coroutine.resume(coroutine.create(function()
  426. local canhug = true
  427. local fakedetect = Instance.new("Part",char) fakedetect.Size = Vector3.new(3.5,5,3.5) fakedetect.CanCollide = false fakedetect.Massless = true fakedetect.Transparency = 1 fakedetect.CFrame = t.CFrame
  428. local fdweld = Instance.new("Weld",fakedetect) fdweld.Part0 = t fdweld.Part1 = fakedetect fdweld.C0 = CFrame.new(0,0,-1)
  429. local region
  430. for i = 1,5 do
  431. if canhug then
  432. region = Region3.new(fakedetect.Position - fakedetect.Size/2,fakedetect.Position + fakedetect.Size/2)
  433. local hit = workspace:FindPartsInRegion3WithIgnoreList(region,{char},200)
  434. local characters = {}
  435. for i,v in pairs(hit) do
  436. if v.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  437. characters[v.Parent.Name] = v.Parent
  438. end
  439. end
  440. for i,v in pairs(characters) do
  441. spawn(function()
  442. fakedetect:Destroy()
  443. hug(v)
  444. canhug = false
  445. end)
  446. end
  447. end
  448. wait(.1)
  449. end
  450. if canhug then
  451. if fakedetect ~= nil then
  452. fakedetect:Destroy()
  453. end
  454. end
  455. end))
  456. end)
  457. end
  458. function placegift()
  459. pcall(function()
  460. using = true
  461. hum.WalkSpeed = 0 hum.JumpPower = 0
  462. rsw.Part1 = rapr
  463. lsw.Part1 = lapl
  464. local giftp = Instance.new("Part",char) giftp.Size = Vector3.new(1.5,1.5,1.5) giftp.Massless = true giftp.CanCollide = false giftp.Name = "Gift"
  465. local gmesh = Instance.new("FileMesh",giftp) gmesh.MeshId = "rbxassetid://1237207" gmesh.TextureId = gifts[math.random(1,#gifts)] gmesh.Scale = Vector3.new(1.5,1.5,1.5)
  466. local gweld = Instance.new("Weld",giftp) gweld.Part0 = ra gweld.Part1 = giftp gweld.C0 = CFrame.new(-.55,-1.4,0) * CFrame.Angles(rad(-60),rad(-10),rad(10))
  467. tlerp(rsw,{C0 = CFrame.new(-.3,-.3,-.3) * CFrame.Angles(rad(80),rad(0),rad(-20))},.7,qui,io)
  468. tlerp(lsw,{C0 = CFrame.new(.3,-.3,-.3) * CFrame.Angles(rad(80),rad(0),rad(20))},.7,qui,io)
  469. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(70),rad(180),rad(0))},.7,qui,io)
  470. tlerp(rh,{C0 = CFrame.new(1,0,-.7) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(20))},.7,qui,io)
  471. tlerp(lh,{C0 = CFrame.new(-1,-1.3,-1) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(70))},.7,qui,io)
  472. tlerp(rutj,{C0 = CFrame.new(0,-1,0) * CFrame.Angles(rad(70),rad(180),rad(0))},.7,qui,io)
  473. wait(.6)
  474. local ray = Ray.new(giftp.Position - Vector3.new(0,giftp.Size.y/2,0),-giftp.CFrame.UpVector.unit * 20)
  475. local hit,pos,idk = workspace:FindPartOnRayWithIgnoreList(ray,{char,giftp},false,true)
  476. if hit ~= nil then
  477. local oy = giftp.Orientation.y
  478. local oz = giftp.Orientation.z
  479. giftp:BreakJoints()
  480. giftp.Anchored = true
  481. giftp.CanCollide = true
  482. giftp.Parent = workspace
  483. giftp.CFrame = CFrame.new(pos,pos + idk) * CFrame.Angles(rad(-90),rad(oy),rad(oz)) * CFrame.new(0,.75,0)
  484. local cdet = Instance.new("ClickDetector",giftp) cdet.MaxActivationDistance = 10
  485. spawn(function()
  486. removewithfade(giftp,30)
  487. cdet.MouseClick:Connect(function(plr)
  488. if script.ClassName == "Script" then
  489. local ids = {113328094,16924676,26419811,164207842,212641536}
  490. local requireditem = game:GetService("InsertService"):LoadAsset(ids[math.random(1,#ids)])
  491. local item = requireditem:FindFirstChildOfClass("Tool")
  492. item.Parent = plr.Backpack
  493. removewithfade(giftp,0)
  494. cdet:Destroy()
  495. else
  496. print("oof")
  497. removewithfade(giftp,0)
  498. cdet:Destroy()
  499. end
  500. end)
  501. end)
  502. else
  503. giftp:Destroy()
  504. end
  505. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.7,qui,io)
  506. tlerp(lsw,{C0 = CFrame.new(0,0,0)},.7,qui,io)
  507. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.7,qui,io)
  508. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.7,qui,io)
  509. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.7,qui,io)
  510. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.7,qui,io)
  511. wait(.6)
  512. hum.WalkSpeed = 16 hum.JumpPower = 50
  513. rsw.Part1 = nil
  514. lsw.Part1 = nil
  515. using = false
  516. end)
  517. end
  518. function huggies()
  519. pcall(function()
  520. using = true
  521. rsw.Part1 = rapr
  522. lsw.Part1 = lapl
  523. tlerp(rsw,{C0 = CFrame.new(0,0,-.5) * CFrame.Angles(rad(90),rad(0),rad(50))},.55,qui,io)
  524. tlerp(lsw,{C0 = CFrame.new(0,0,-.5) * CFrame.Angles(rad(90),rad(0),rad(-50))},.65,qui,io)
  525. wait(.35)
  526. detect()
  527. tlerp(rsw,{C0 = CFrame.new(-.3,-.2,-.45) * CFrame.Angles(rad(110),rad(0),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-60))},.4,qui,io)
  528. tlerp(lsw,{C0 = CFrame.new(.2,-.2,-.45) * CFrame.Angles(rad(105),rad(0),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(65))},.4,qui,io)
  529. wait(.5)
  530. if not hugging then
  531. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.4,qui,io)
  532. tlerp(lsw,{C0 = CFrame.new(0,0,0)},.4,qui,io)
  533. wait(.5)
  534. rsw.Part1 = nil
  535. lsw.Part1 = nil
  536. using = false
  537. end
  538. end)
  539. end
  540. function grabsb()
  541. pcall(function()
  542. using = true
  543. hum.WalkSpeed = 0
  544. hum.JumpPower = 0
  545. rsw.Part1 = rapr
  546. tlerp(rsw,{C0 = CFrame.new(0,-.4,0) * CFrame.Angles(rad(30),rad(0),rad(20))},.4,qui,io)
  547. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(70),rad(180),rad(0))},.4,qui,io)
  548. tlerp(rh,{C0 = CFrame.new(1,.6,-.7) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-25),rad(0),rad(20))},.4,qui,io)
  549. tlerp(lh,{C0 = CFrame.new(-1,.3,-.7) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(15),rad(0),rad(-20))},.4,qui,io)
  550. tlerp(rutj,{C0 = CFrame.new(0,-1.2,0) * CFrame.Angles(rad(60),rad(180),rad(30))},.4,qui,io)
  551. wait(.3)
  552. local hit,pos,rot = rayc(ra.Position -v3(0,1,0),-ra.CFrame.UpVector,{char},.5)
  553. if hit ~= nil and pos then
  554. local cff = CFrame.new(pos,pos+rot) * CFrame.Angles(0,rad(90),0)
  555. local snow = Instance.new("Part",char) snow.Shape = "Cylinder" snow.Transparency = 1 snow.Size = v3(.1,.1,.1) snow.Material = "Sand" snow.BrickColor = BrickColor.new("Institutional white") snow.CanCollide = false snow.Anchored = true
  556. tlerp(snow,{Size =v3(.1,2.5,2.5),Transparency = 0},.2,qui,io)
  557. snow.CFrame = cff
  558. removewithfade(snow,1)
  559. else
  560. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  561. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  562. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  563. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  564. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  565. wait(.4)
  566. aiming = false
  567. hum.WalkSpeed = 16
  568. hum.JumpPower = 50
  569. rut.Anchored = false
  570. rsw.Part1 = nil
  571. using = false
  572. return warn("Can`t grab a snow ball.")
  573. end
  574. wait(.15)
  575. local fsb = Instance.new("Part",char) fsb.Name = "MustDestroy" fsb.Shape = "Ball" fsb.Size = v3(1,1,1) fsb.CanCollide = false fsb.BrickColor = BrickColor.new("Institutional white") fsb.Material = "Sand"
  576. local fweld = Instance.new("Weld",fsb) fweld.Part0 = ra fweld.Part1 = fsb fweld.C0 = CFrame.new(0,-1.2,0)
  577. tlerp(rsw,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(200),rad(10),rad(-10))},.4,qui,io)
  578. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.4,qui,io)
  579. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(-10))},.4,qui,io)
  580. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(10))},.4,qui,io)
  581. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(100),rad(180),rad(-10))},.4,qui,io)
  582. wait(.3)
  583. aiming = true
  584. repeat
  585. wait(.2)
  586. until aiming == false
  587. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  588. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  589. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  590. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  591. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  592. wait(.4)
  593. rsw.Part1 = nil
  594. using = false
  595. end)
  596. end
  597. function land()
  598. if phit then
  599. readytoland = false
  600. landed = true
  601. hum.WalkSpeed = 1.5
  602. hum.JumpPower = 0
  603. lsound:Play()
  604. for i = 0,1,.1 do
  605. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.5,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
  606. rh.C0 = rh.C0:Lerp(CFrame.new(1,-.5,-.3) * CFrame.Angles(rad(11),rad(90),rad(0)),i)
  607. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.5,-.25) * CFrame.Angles(rad(9),rad(-90),rad(0)),i)
  608. rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(10)),i)
  609. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.35,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(-10)),i)
  610. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i)
  611. swait()
  612. end
  613. for i = 1,math.random(6,9) do
  614. fire(effpart,workspace,tostring(phit.BrickColor),tostring(phit.BrickColor),math.random(7,13)/10,math.random(3,6)/10,math.random(4,6)/10,phit.Material,0,0,"Block",5,0,1,true)
  615. end
  616. wait(.3)
  617. landed = false
  618. hum.WalkSpeed = 16
  619. hum.JumpPower = 50
  620. end
  621. end
  622. function tsbanim()
  623. pcall(function()
  624. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.2,qui,io)
  625. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(-10))},.2,qui,io)
  626. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(10))},.2,qui,io)
  627. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(100),rad(180),rad(10))},.2,qui,io)
  628. coroutine.resume(coroutine.create(function()
  629. for i = 0,1,.05 do
  630. rsw.C0 = rsw.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(170),rad(-10),rad(10)) * CFrame.Angles(-cos(i/aa/1.5)*rad(70),0,0),i)
  631. swait()
  632. end
  633. end))
  634. wait(.1)
  635. char:WaitForChild("MustDestroy",.5):Destroy()
  636. throwsb(getMouseHit(),70)
  637. aiming = false
  638. hum.WalkSpeed = 16
  639. hum.JumpPower = 50
  640. rut.Anchored = false
  641. end)
  642. end
  643. function sit()
  644. pcall(function()
  645. using = true
  646. hum.WalkSpeed = 0
  647. hum.JumpPower = 0
  648. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  649. tlerp(rutj,{C0 = CFrame.new(0,-1.1,0) * CFrame.Angles(rad(100),rad(180),rad(-20))},.5,qui,io)
  650. tlerp(rs,{C0 = CFrame.new(1,.5,0) * CFrame.Angles(rad(-10),rad(90),rad(20))},.5,qui,io)
  651. tlerp(ls,{C0 = CFrame.new(-1,.5,0) * CFrame.Angles(rad(-10),rad(-90),rad(20))},.5,qui,io)
  652. tlerp(rh,{C0 = CFrame.new(1,.1,-.4) * CFrame.Angles(rad(-20),rad(90),rad(0))},.5,qui,io)
  653. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(70),rad(-90),rad(0))},.5,qui,io)
  654. wait(.35)
  655. if not furmode then
  656. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(70),rad(180),rad(0))},.5,qui,io)
  657. tlerp(rutj,{C0 = CFrame.new(0,-1.7,0) * CFrame.Angles(rad(120),rad(180),rad(0))},.5,qui,io)
  658. tlerp(rs,{C0 = CFrame.new(1,.15,.25) * CFrame.Angles(rad(-35),rad(85),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0))},.5,qui,io)
  659. tlerp(ls,{C0 = CFrame.new(-1,.15,.25) * CFrame.Angles(rad(-35),rad(-65),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0))},.5,qui,io)
  660. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(60),rad(90),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0))},.5,qui,io)
  661. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(60),rad(-90),rad(0)) * CFrame.Angles(rad(-5),rad(0),rad(0))},.5,qui,io)
  662. else
  663. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(-75),rad(0),rad(180))},.5,qui,io)
  664. tlerp(rutj,{C0 = CFrame.new(0,-1.6,0) * CFrame.Angles(rad(-105),rad(0),rad(180))},.5,qui,io)
  665. tlerp(rs,{C0 = CFrame.new(.5,.2,-.3) * CFrame.Angles(rad(-10),rad(95),rad(30)) * CFrame.Angles(rad(25),rad(20),rad(0))},.5,qui,io)
  666. tlerp(ls,{C0 = CFrame.new(-.5,.2,-.3) * CFrame.Angles(rad(-10),rad(-95),rad(-30)) * CFrame.Angles(rad(25),rad(-20),rad(0))},.5,qui,io)
  667. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(15),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-20),rad(90))},.5,qui,io)
  668. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(15),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-90))},.5,qui,io)
  669. end
  670. wait(.35)
  671. sitting = true
  672. end)
  673. end
  674. function getup()
  675. pcall(function()
  676. using = true
  677. sitting = true
  678. hum.WalkSpeed = 0
  679. hum.JumpPower = 0
  680. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  681. tlerp(rutj,{C0 = CFrame.new(0,-1.1,0) * CFrame.Angles(rad(100),rad(180),rad(-20))},.5,qui,io)
  682. tlerp(rs,{C0 = CFrame.new(1,.5,0) * CFrame.Angles(rad(-10),rad(90),rad(20))},.5,qui,io)
  683. tlerp(ls,{C0 = CFrame.new(-1,.5,0) * CFrame.Angles(rad(-10),rad(-90),rad(20))},.5,qui,io)
  684. tlerp(rh,{C0 = CFrame.new(1,.1,-.4) * CFrame.Angles(rad(-20),rad(90),rad(0))},.5,qui,io)
  685. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(70),rad(-90),rad(0))},.5,qui,io)
  686. wait(.35)
  687. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  688. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  689. tlerp(rs,{C0 = CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  690. tlerp(ls,{C0 = CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  691. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  692. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  693. wait(.35)
  694. using = false
  695. sitting = false
  696. hum.WalkSpeed = 16
  697. hum.JumpPower = 50
  698. end)
  699. end
  700. function tp()
  701. pcall(function()
  702. using = true
  703. hum.WalkSpeed = 0
  704. hum.JumpPower = 0
  705. rut.Anchored = true
  706. local hit,pos,rot = rayc(rut.Position -v3(0,1,0),-rut.CFrame.UpVector,{char},30)
  707. local hit1,pos1,rot1 = rayc(getMouseHit()+v3(0,.7,0),-rut.CFrame.UpVector,{char},10)
  708. if hit ~= nil and pos and hit1 then
  709. local cff = CFrame.new(pos,pos+rot) * CFrame.Angles(0,rad(90),0)
  710. local snow = Instance.new("Part",char) snow.Shape = "Cylinder" snow.Transparency = 1 snow.Size = v3(.1,.1,.1) snow.Material = "Sand" snow.BrickColor = BrickColor.new("Institutional white") snow.CanCollide = false snow.Anchored = true
  711. tlerp(snow,{Size =v3(.1,7.5,7.5),Transparency = 0},.2,qui,io)
  712. snow.CFrame = cff
  713. wait(.1)
  714. tlerp(rut,{CFrame = CFrame.new(pos) * CFrame.new(0,-5,0)},.3,qui,io)
  715. wait(.2)
  716. removewithfade(snow,1)
  717. else
  718. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  719. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  720. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  721. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  722. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  723. wait(.4)
  724. aiming = false
  725. hum.WalkSpeed = 16
  726. hum.JumpPower = 50
  727. rut.Anchored = false
  728. rsw.Part1 = nil
  729. using = false
  730. return warn("Can`t teleport.")
  731. end
  732. local sn
  733. if hit1 ~= nil and pos1 then
  734. local cff = CFrame.new(pos1,pos1+rot1) * CFrame.Angles(0,rad(90),0)
  735. local snow = Instance.new("Part",char) snow.Shape = "Cylinder" snow.Transparency = 1 snow.Size = v3(.1,.1,.1) snow.Material = "Sand" snow.BrickColor = BrickColor.new("Institutional white") snow.CanCollide = false snow.Anchored = true
  736. tlerp(snow,{Size =v3(.1,7.5,7.5),Transparency = 0},.2,qui,io)
  737. snow.CFrame = cff
  738. sn = snow
  739. removewithfade(snow,1)
  740. else
  741. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  742. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  743. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  744. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  745. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  746. wait(.4)
  747. aiming = false
  748. hum.WalkSpeed = 16
  749. hum.JumpPower = 50
  750. rut.Anchored = false
  751. rsw.Part1 = nil
  752. using = false
  753. return warn("Can`t teleport.")
  754. end
  755. if sn.Orientation.z ~= 90 then
  756. rut.CFrame = sn.CFrame * CFrame.new(-3,0,0)
  757. rut.CFrame = CFrame.new(rut.Position,sn.Position)
  758. tlerp(rut,{CFrame = rut.CFrame * CFrame.new(0,0,-5)},.3,qui,io)
  759. else
  760. rut.CFrame = sn.CFrame * CFrame.new(-3,0,0)
  761. rut.CFrame = CFrame.new(rut.Position,v3(nil,sn.CFrame.y,sn.CFrame.z))
  762. tlerp(rut,{CFrame = rut.CFrame * CFrame.new(0,5,0)},.3,qui,io)
  763. end
  764. wait(.2)
  765. rut.CFrame = CFrame.new(rut.Position,Vector3.new(nil,rut.CFrame.y,-rut.CFrame.z))
  766. rut.Anchored = false
  767. hum.WalkSpeed = 16
  768. hum.JumpPower = 50
  769. using = false
  770. end)
  771. end
  772. function candybag()
  773. pcall(function()
  774. using = true
  775. rsw.Part1 = rapr
  776. lsw.Part1 = lapl
  777. local bag = Instance.new("Part",char) bag.Locked = true bag.Size = v3(.1,.1,.1) bag.CanCollide = false bag:BreakJoints()
  778. local bmesh = Instance.new("FileMesh",bag) bmesh.MeshId = "rbxassetid://25921854" bmesh.Scale = v3(3.5,3.5,3.5) bmesh.TextureId = "rbxassetid://36938238" bmesh.Offset = v3(0,-.6,0)
  779. local weld = Instance.new("Weld",bag) weld.Part0 = ra weld.Part1 = bag weld.C0 = CFrame.new(0,-1,0)
  780. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  781. tlerp(lsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  782. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  783. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  784. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  785. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  786. wait(.4)
  787. tlerp(rsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  788. tlerp(lsw,{C0 = CFrame.new(0,0,0)},.5,qui,io)
  789. tlerp(nec,{C0 = CFrame.new(0,1,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  790. tlerp(rh,{C0 = CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0))},.5,qui,io)
  791. tlerp(lh,{C0 = CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0))},.5,qui,io)
  792. tlerp(rutj,{C0 = CFrame.new(0,0,0) * CFrame.Angles(rad(90),rad(180),rad(0))},.5,qui,io)
  793. wait(.4)
  794. rsw.Part1 = nil
  795. lsw.Part1 = nil
  796. using = false
  797. end)
  798. end
  799. function saddeath(who)
  800. for i,v in pairs(who:GetDescendants()) do
  801. coroutine.resume(coroutine.create(function()
  802. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ForceField") or v:IsA("CharacterMesh") then
  803. v:Destroy()
  804. end
  805. end))
  806. if v:IsA("Part") or v:IsA("MeshPart") then
  807. fadewithfly(v,"White",false)
  808. end
  809. end
  810. end
  811.  
  812. RemoteEvent.OnServerEvent:Connect(function(plr,k)
  813. pcall(function()
  814. if k == "e" and not using then
  815. huggies()
  816. end
  817. if k == "f" and not using then
  818. placegift()
  819. end
  820. if k == "q" and not using then
  821. grabsb()
  822. end
  823. if k == "z" and not using and not sitting then
  824. sit()
  825. elseif k == "z" and using and sitting then
  826. getup()
  827. end
  828. if k == "c" and not using then
  829. tp()
  830. end
  831. if k == "r"and not using then
  832. --candybag()
  833. end
  834. end)
  835. end)
  836. RemoteEvent2.OnServerEvent:Connect(function()
  837. if aiming then
  838. tsbanim()
  839. end
  840. end)
  841. hum.Died:Connect(function()
  842. saddeath(char)
  843. end)
  844.  
  845. local anims = coroutine.wrap(function()
  846. while hum.Health > .001 do
  847. if aiming then
  848. rut.Anchored = true
  849. rut.CFrame = CFrame.new(rut.Position,v3(getMouseHitx(),rut.CFrame.y,getMouseHitz()))
  850. end
  851. if hum.WalkSpeed >32 then
  852. hum.WalkSpeed = 32
  853. end
  854. if not lsound.Parent then
  855. lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108"
  856. end
  857. local hit,pos,rot = rayc(rut.Position -v3(0,1,0),-rut.CFrame.UpVector,{char},2.7)
  858. local grhit,grpos,grrot = rayc(grabpart.Position,-grabpart.CFrame.UpVector,{char},1)
  859. phit = hit
  860. if not using then
  861. if grhit and grhit.Anchored == true then
  862. cangrabthecorner = true
  863. else
  864. cangrabthecorner = false
  865. end
  866. end
  867. if cangrabthecorner and not grabbedc then
  868. local shit,spos,srot = rayc(rut.Position+Vector3.new(0,2.5,0),rut.CFrame.LookVector,{char},1.5)
  869. if shit then
  870. grabbedc = true
  871. local cf = CFrame.new(spos,spos+srot) * CFrame.Angles(rad(0),rad(180),0) * CFrame.new(0,-2,.7)
  872. using = true
  873. cangrabthecorner = false
  874. rut.Anchored = true
  875. local oldws = hum.WalkSpeed
  876. hum.WalkSpeed = 0
  877. hum.JumpPower = 0
  878. rut.CFrame = cf
  879. local curcf = rut.CFrame
  880. for i = 0,1,.1 do
  881. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  882. rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  883. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  884. rs.C0 = rs.C0:Lerp(CFrame.new(.85,.8,-.2) * CFrame.Angles(rad(160),rad(90),rad(0)),animspeed*50)
  885. ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.8,-.2) * CFrame.Angles(rad(160),rad(-90),rad(0)),animspeed*50)
  886. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-30),rad(0),rad(180)),animspeed*50)
  887. swait()
  888. end
  889. for i = 0,.65,.025 do
  890. rut.CFrame = rut.CFrame:Lerp(curcf * CFrame.new(0,4.5,-3),i)
  891. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.8,0) * CFrame.Angles(rad(-120),rad(0),rad(180)),i)
  892. rh.C0 = rh.C0:Lerp(CFrame.new(1,-.7,-.3) * CFrame.Angles(rad(-60),rad(90),rad(0)),i)
  893. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.7,0) * CFrame.Angles(rad(20),rad(-90),rad(0)),i)
  894. rs.C0 = rs.C0:Lerp(CFrame.new(.85,.3,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i)
  895. ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i)
  896. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i)
  897. swait()
  898. end
  899. hum.WalkSpeed = oldws
  900. hum.JumpPower = 50
  901. rut.Anchored = false
  902. t.Anchored = false
  903. using = false
  904. grabbedc = false
  905. end
  906. end
  907. walkspeed = hum.WalkSpeed
  908. sumthin = walkspeed/8
  909. animspeed1 = 1.5/sumthin
  910. change = change +sine
  911. if lookinaround then
  912. lchange = lchange +sine
  913. else
  914. lchange = 0
  915. end
  916. local vervel = rut.Velocity.y
  917. local tvel = (rut.Velocity * v3(1,0,1)).Magnitude
  918. local Ccf=rut.CFrame
  919. local Walktest1 = hum.MoveDirection*Ccf.LookVector
  920. local Walktest2 = hum.MoveDirection*Ccf.RightVector
  921. rotfb = Walktest1.X+Walktest1.Z
  922. rotrl = Walktest2.X+Walktest2.Z
  923. if spart then
  924. spart.CFrame = spart.CFrame:Lerp(h.CFrame * CFrame.new(0,15,0),.1)
  925. end
  926. if not hit and anim == "fall" then
  927. readytoland = true
  928. end
  929. if not landed then
  930. if readytoland and hit then
  931. land()
  932. end
  933. if not lookinaround and not sitting then
  934. if anim == "idle" and hit then
  935. --Neck
  936. nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,-sin(change/aa/2.5)*rad(1)),.1)
  937. --Humanoid Root Part
  938. rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1)
  939. --Shoulders
  940. rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)),.1)
  941. ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),-sin(change/aa/2.5)*rad(2.5)),.1)
  942. --Hips
  943. rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1)
  944. lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1)
  945. elseif anim == "sit" then
  946. nec.C1 = nec.C1:Lerp(cf1,.1)
  947. rutj.C1 = rutj.C1:Lerp(cf2,.1)
  948. rs.C1 = rs.C1:Lerp(cf3,.1)
  949. ls.C1 = ls.C1:Lerp(cf4,.1)
  950. rh.C1 = rh.C1:Lerp(cf5,.1)
  951. lh.C1 = lh.C1:Lerp(cf6,.1)
  952. elseif anim == "jump" and not hit then
  953. nec.C1 = nec.C1:Lerp(cf1,.1)
  954. rutj.C1 = rutj.C1:Lerp(cf2,.1)
  955. rs.C1 = rs.C1:Lerp(cf3,.1)
  956. ls.C1 = ls.C1:Lerp(cf4,.1)
  957. rh.C1 = rh.C1:Lerp(cf5,.1)
  958. lh.C1 = lh.C1:Lerp(cf6,.1)
  959. elseif anim == "fall" and not hit then
  960. nec.C1 = nec.C1:Lerp(cf1,.1)
  961. rutj.C1 = rutj.C1:Lerp(cf2,.1)
  962. rs.C1 = rs.C1:Lerp(cf3,.1)
  963. ls.C1 = ls.C1:Lerp(cf4,.1)
  964. rh.C1 = rh.C1:Lerp(cf5,.1)
  965. lh.C1 = lh.C1:Lerp(cf6,.1)
  966. elseif anim == "walk" and hit then
  967. --Neck
  968. nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1)/17.5) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60),walkanimspeed)
  969. --Humanoid Root Part
  970. rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1)/15) * CFrame.Angles(sin(change/aa/animspeed1)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed)
  971. --Shoulders
  972. rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(0,0,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(10)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb or rotfl),walkanimspeed)
  973. ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(10)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(5*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb or rotfl),walkanimspeed)
  974. --Hips
  975. rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed)
  976. lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(-cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed)
  977. end
  978. if not grabbedc then
  979. if vervel > 1 and hum.Sit == false then
  980. anim = "jump"
  981. if not using then
  982. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50)
  983. rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50)
  984. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50)
  985. rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50)
  986. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50)
  987. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50)
  988. end
  989. elseif vervel < -1 and hum.Sit == false then
  990. anim = "fall"
  991. if not using then
  992. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.00025)
  993. rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.00025)
  994. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.00025)
  995. rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.00025)
  996. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.00025)
  997. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.00025)
  998. end
  999. elseif tvel < 1 and hum.Sit == false then
  1000. anim = "idle"
  1001. if not using then
  1002. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  1003. rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  1004. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  1005. rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50)
  1006. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50)
  1007. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  1008. end
  1009. elseif tvel > 1 and hum.Sit == false then
  1010. anim = "walk"
  1011. if not using then
  1012. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50)
  1013. rh.C0 = rh.C0:Lerp(CFrame.new(1,-.8+rotrl/4,-.15) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),-sin(change/aa/animspeed1)*rad(10*sumthin)*rotrl) * CFrame.Angles(-rotrl/5,-rotrl/5,rotfb/5),animspeed*50)
  1014. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.8-rotrl/4,-.15) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),-sin(change/aa/animspeed1)*rad(10*sumthin)*rotrl) * CFrame.Angles(rotrl/5,-rotrl/5,-rotfb/5),animspeed*50)
  1015. rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(10*sumthin)*rotrl,rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(5*sumthin)),animspeed*50)
  1016. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(10*sumthin)*rotrl,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-5*sumthin)),animspeed*50)
  1017. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(-5*sumthin),rad(0),rad(-40*rotrl)),animspeed*50)
  1018. end
  1019. elseif hum.Sit == true then
  1020. anim = "sit"
  1021. if not using then
  1022. if not furmode then
  1023. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50)
  1024. rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(90)),animspeed*50)
  1025. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-90)),animspeed*50)
  1026. rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50)
  1027. ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(-30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50)
  1028. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-95),rad(0),rad(180)),animspeed*50)
  1029. else
  1030. rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-105),rad(0),rad(180)),animspeed*50)
  1031. rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(15),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-20),rad(90)),animspeed*50)
  1032. lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(15),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-90)),animspeed*50)
  1033. rs.C0 = rs.C0:Lerp(CFrame.new(.5,.2,-.3) * CFrame.Angles(rad(-10),rad(95),rad(30)) * CFrame.Angles(rad(25),rad(20),rad(0)),animspeed*50)
  1034. ls.C0 = ls.C0:Lerp(CFrame.new(-.5,.2,-.3) * CFrame.Angles(rad(-10),rad(-95),rad(-30)) * CFrame.Angles(rad(25),rad(-20),rad(0)),animspeed*50)
  1035. nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-75),rad(0),rad(180)),animspeed*50)
  1036. end
  1037. end
  1038. else
  1039. nec.C1 = nec.C1:Lerp(cf1,animspeed*50)
  1040. rutj.C1 = rutj.C1:Lerp(cf2,animspeed*50)
  1041. rs.C1 = rs.C1:Lerp(cf3,animspeed*50)
  1042. ls.C1 = ls.C1:Lerp(cf4,animspeed*50)
  1043. rh.C1 = rh.C1:Lerp(cf5,animspeed*50)
  1044. lh.C1 = lh.C1:Lerp(cf6,animspeed*50)
  1045. end
  1046. end
  1047. end
  1048. end
  1049. if sitting then
  1050. nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa)/(2.5*10)) * CFrame.Angles(sin(change/aa/1.5)*rad(2.5),0,-sin(change/aa/1.5)*rad(2.5)),.1)
  1051. rutj.C1 = rutj.C1:Lerp(cf2,.1)
  1052. rs.C1 = rs.C1:Lerp(cf3,.1)
  1053. ls.C1 = ls.C1:Lerp(cf4,.1)
  1054. rh.C1 = rh.C1:Lerp(cf5,.1)
  1055. lh.C1 = lh.C1:Lerp(cf6,.1)
  1056. end
  1057. coroutine.resume(coroutine.create(function()
  1058. if not using and anim == "idle" then
  1059. if not lookinaround then
  1060. idlenum = idlenum +.005
  1061. if idlenum >= whenbored then
  1062. idlenum = 0
  1063. local oldws = hum.WalkSpeed
  1064. local oldjp = hum.JumpPower
  1065. hum.WalkSpeed = 0
  1066. hum.JumpPower = 0
  1067. rut.Anchored = true
  1068. rh.Part0 = rut
  1069. lh.Part0 = rut
  1070. using = true
  1071. lookinaround = true
  1072. wait(3)
  1073. hum.WalkSpeed = oldws
  1074. hum.JumpPower = oldjp
  1075. rut.Anchored = false
  1076. using = false
  1077. rh.Part0 = t
  1078. lh.Part0 = t
  1079. whenbored = math.random(2,6)
  1080. lookinaround = false
  1081. end
  1082. end
  1083. elseif using then
  1084. idlenum = 0
  1085. elseif anim ~= "idle" then
  1086. idlenum = 0
  1087. end
  1088. end))
  1089. if lookinaround then
  1090. --Neck
  1091. nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,0) * CFrame.Angles(sin(lchange/aa/1.5)*rad(10),cos(lchange/aa/1.5)*rad(5),-sin(lchange/aa/3)*rad(40)),.1)
  1092. --Humanoid Root Part
  1093. rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,0) * CFrame.Angles(cos(lchange/aa/1.5)*rad(5),cos(lchange/aa/1.5)*rad(5),-sin(lchange/aa/3)*rad(20)),.1)
  1094. --Shoulders
  1095. rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(lchange/aa/3)/(3*10),cos(lchange/aa/3)/(3*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(15)),.1)
  1096. ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(lchange/aa/3)/(3*10),cos(lchange/aa/3)/(3*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(15)),.1)
  1097. --Hips
  1098. rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0) * CFrame.Angles(0,0,0),.1)
  1099. lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0) * CFrame.Angles(0,0,0),.1)
  1100. end
  1101. swait()
  1102. end
  1103. end)
  1104. anims()
  1105. introhat()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement