Advertisement
StarzoZero

san tes

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