Advertisement
Guest User

Untitled

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