Advertisement
SlappyDappyCrappy

met

Jun 5th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local lp = game.Players.LocalPlayer
  2. local chr = lp.Character
  3. local mouse = lp:GetMouse()
  4. local euler = CFrame.fromEulerAnglesXYZ
  5. local rad = math.rad
  6. local trso = chr.Torso
  7.  
  8. local hd = Instance.new("Weld",chr.Head)
  9. hd.Part0=chr.Head
  10. hd.Part1=chr.Torso
  11. hd.C0=CFrame.new(0,-1.5,0)
  12.  
  13.  
  14. hum = chr.Humanoid
  15.  
  16. function Name(msg)
  17.         if chr.Head.Parent then
  18.         pcall(function()
  19.         local Gui = Instance.new('BillboardGui',chr.Head)
  20.         Gui.ExtentsOffset = Vector3.new(0,2,0)
  21.         Gui.Size = UDim2.new(0,200,0,300)
  22.         local Frame = Instance.new('Frame',Gui)
  23.         Frame.BackgroundTransparency = 1
  24.         Frame.Size = UDim2.new(1,0,1,0)
  25.         local Txt = Instance.new('TextLabel',Frame)
  26.         Txt.BackgroundTransparency = 1
  27.         Txt.Size = UDim2.new(1,0,1,0)
  28.         Txt.Font = 'SourceSansItalic'
  29.         Txt.FontSize = 'Size24'
  30.         Txt.Text = msg
  31.         Txt.TextColor3 = BrickColor.new("Black").Color
  32.         Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  33.         Txt.TextStrokeTransparency = .5
  34.         Txt.TextWrapped = true
  35.         Txt.TextScaled = false
  36.         end)
  37.         else
  38.         end
  39. end
  40.  
  41. Name("Mettaton EX")
  42.  
  43. function Chat(msg) -- Credit to jillmiles1, kthxbye
  44.         if chr.Head.Parent then
  45.         pcall(function()
  46.         if chr.Head:FindFirstChild("Fazbear Chat Gui") then
  47.         chr.Head['Fazbear Chat Gui']:destroy()
  48.         end
  49.         local Gui = Instance.new('BillboardGui',chr.Head)
  50.         Gui.Name = "Fazbear Chat Gui"
  51.         Gui.ExtentsOffset = Vector3.new(0,3,0)
  52.         Gui.Size = UDim2.new(0,200,0,300)
  53.         local Frame = Instance.new('Frame',Gui)
  54.         Frame.BackgroundTransparency = 1
  55.         Frame.Size = UDim2.new(1,0,1,0)
  56.         local Txt = Instance.new('TextLabel',Frame)
  57.         Txt.BackgroundTransparency = 1
  58.         Txt.Size = UDim2.new(1,0,1,0)
  59.         Txt.Font = 'SourceSansItalic'
  60.         Txt.Name = "ChatGui"
  61.         Txt.FontSize = 'Size24'
  62.         Txt.Text = ''
  63.         Txt.TextColor3 = BrickColor.new("Pink").Color
  64.         Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  65.         Txt.TextStrokeTransparency = .5
  66.         Txt.TextWrapped = true
  67.         Txt.TextScaled = false
  68.         delay(wait(),function()
  69.                 for v = 1, #msg do
  70.                         Txt.Text=string.sub(msg,1,v)
  71.                         wait(.07)
  72.                 end;
  73.                 wait(1)
  74.                 for v = 1, #Txt.Text do
  75.                         Txt.Text=string.sub(msg,-1,v)
  76.                         wait(.05)
  77.                 end;
  78.                 Gui:remove()
  79.         end)
  80.         end)
  81.         else
  82.         end
  83. end
  84.  
  85. function Name(msg)
  86.         if chr.Head.Parent then
  87.         pcall(function()
  88.         local Gui = Instance.new('BillboardGui',chr.Head)
  89.         Gui.ExtentsOffset = Vector3.new(0,1.5,0)
  90.         Gui.Size = UDim2.new(0,200,0,300)
  91.         local Frame = Instance.new('Frame',Gui)
  92.         Frame.BackgroundTransparency = 1
  93.         Frame.Size = UDim2.new(1,0,1,0)
  94.         local Txt = Instance.new('TextLabel',Frame)
  95.         Txt.BackgroundTransparency = 1
  96.         Txt.Size = UDim2.new(1,0,1,0)
  97.         Txt.Font = 'ArialBold'
  98.         Txt.FontSize = 'Size24'
  99.         Txt.Text = msg
  100.         Txt.TextColor3 = BrickColor.new("Royal purple").Color
  101.         Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  102.         Txt.TextStrokeTransparency = .5
  103.         Txt.TextWrapped = true
  104.         Txt.TextScaled = false
  105.         end)
  106.         else
  107.         end
  108. end
  109.  
  110.  
  111.  
  112.  
  113. lp.Chatted:connect(function(msg)
  114.         Chat(msg)
  115. end)
  116.  
  117. print("ayy.")
  118.  
  119.  
  120. local p = game.Players.LocalPlayer
  121. local char = p.Character
  122. local mouse = p:GetMouse()
  123. local larm = char["Left Arm"]
  124. local rarm = char["Right Arm"]
  125. local lleg = char["Left Leg"]
  126. local rleg = char["Right Leg"]
  127. local hed = char.Head
  128. local torso = char.Torso
  129. local hum = char.Humanoid
  130.  function clerp(c1,c2,al)
  131.     local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  132.     local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  133.     for i,v in pairs(com1) do
  134.         com1[i] = v+(com2[i]-v)*al
  135.     end
  136.     return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  137. end
  138.  
  139. plr = game:service'Players'.LocalPlayer
  140. char = plr.Character
  141. mouse = plr:GetMouse()
  142. humanoid = char:findFirstChild("Humanoid")
  143. torso = char:findFirstChild("Torso")
  144. head = char.Head
  145. ra = char:findFirstChild("Right Arm")
  146. la = char:findFirstChild("Left Arm")
  147. rl = char:findFirstChild("Right Leg")
  148. ll = char:findFirstChild("Left Leg")
  149. rs = torso:findFirstChild("Right Shoulder")
  150. ls = torso:findFirstChild("Left Shoulder")
  151. rh = torso:findFirstChild("Right Hip")
  152. lh = torso:findFirstChild("Left Hip")
  153. neck = torso:findFirstChild("Neck")
  154. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  155. animate = char:findFirstChild("Animate")
  156. if animate then
  157. animate:Destroy()
  158.         pls = game:GetService'Players'
  159.         rs = game:GetService'RunService'
  160.         uinps = game:GetService'UserInputService'
  161.         lp = pls.LocalPlayer
  162.         mouse = lp:GetMouse()
  163.         c = lp.Character
  164.         human = c.Humanoid
  165.         human.MaxHealth = 9999999999999999999999999999999999999999999999999999999999
  166.         soundVol = 0
  167.         wait()
  168.         human.Health = 9999999999999999999999999999999999999999999999999999999999
  169.         c.Health:Destroy()
  170. end
  171. rootpart = char:findFirstChild("HumanoidRootPart")
  172. camera = workspace.CurrentCamera
  173.  
  174. pcall(function() char:findFirstChild('charmodel'):Destroy() char:findFirstChild('SurvivorScript').Disabled = true char:findFirstChild('SurvivorScript'):Destroy() char:findFirstChild'FakeHead':Destroy()
  175. plr.PlayerGui:findFirstChild'BaseGui':Destroy() end)
  176.  
  177. script.Name = 'SurvivorScript'
  178.  
  179. charmodel = Instance.new("Model", char)
  180. charmodel.Name = "charmodel"
  181.  
  182. local rm = Instance.new("Motor", torso)
  183. rm.C0 = CFrame.new(1.5, 0.5, 0)
  184. rm.C1 = CFrame.new(0, 0.5, 0)
  185. rm.Part0 = torso
  186. rm.Part1 = ra
  187. rm.Name = "Right Shoulder"
  188.  
  189. local lm = Instance.new("Motor", torso)
  190. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  191. lm.C1 = CFrame.new(0, 0.5, 0)
  192. lm.Part0 = torso
  193. lm.Part1 = la
  194. lm.Name = "Left Shoulder"
  195.  
  196. local rlegm = Instance.new("Motor", torso)
  197. rlegm.C0 = CFrame.new(0.5, -1, 0)
  198. rlegm.C1 = CFrame.new(0, 1, 0)
  199. rlegm.Part0 = torso
  200. rlegm.Part1 = rl
  201. rlegm.Name = "Right Hip"
  202.  
  203. local llegm = Instance.new("Motor", torso)
  204. llegm.C0 = CFrame.new(-0.5, -1, 0)
  205. llegm.C1 = CFrame.new(0, 1, 0)
  206. llegm.Part0 = torso
  207. llegm.Part1 = ll
  208. llegm.Name = "Left Hip"
  209.  
  210. neck.C0 = CFrame.new(0, 1, 0)
  211. neck.C1 = CFrame.new(0, -0.5, 0)
  212.  
  213. rj.C0 = CFrame.new(0, -1.5, 0)
  214. rj.C1 = CFrame.new(0, -1.5, 0)
  215.  
  216. function LoadChatColorModule()
  217.     local COLOR_TABLE, Get, GetId
  218.     COLOR_TABLE = {
  219.         BrickColor.new("Really black"),
  220.         BrickColor.new("Really black"),
  221.         BrickColor.new("Really black"),
  222.         BrickColor.new("Really black"),
  223.         BrickColor.new("Really black"),
  224.         BrickColor.new("Really black"),
  225.         BrickColor.new("Really black"),
  226.         BrickColor.new("Really black")
  227.     }
  228.     function Get(name)
  229.         return COLOR_TABLE[GetId(name) + 1]
  230.     end
  231.     function GetId(name)
  232.         local length = #name
  233.         local modifier = (length % 2 == 0) and 1 or 0
  234.         local value = 0
  235.         for index = 1, length do
  236.             if (length - index + modifier) % 4 < 2 then
  237.                 value = value + string.byte(name, index)
  238.             else
  239.                 value = value - string.byte(name, index)
  240.             end
  241.         end
  242.         return value % 8
  243.     end
  244.     return {
  245.         COLOR_TABLE = COLOR_TABLE,
  246.         Get = Get,
  247.         GetId = GetId
  248.     }
  249. end
  250.  
  251. local ChatColor = LoadChatColorModule()
  252. local PocketColor = BrickColor.new(ChatColor.Get(plr.Name).Name)
  253.  
  254.  
  255.  
  256. rsc0 = rm.C0
  257. lsc0 = lm.C0
  258. neckc0 = neck.C0
  259. rootc0 = rj.C0
  260. llc0 = llegm.C0
  261. rlc0 = rlegm.C0
  262. speed = 0.25
  263. angle = 0
  264. mvmnt = 0
  265. anglespeed = 1
  266. humanoid.WalkSpeed = 20
  267. ctrl = false
  268. stopsprint = false
  269. action = false
  270. sprinting = false
  271. time_sprinted = 0
  272. sound_play_time = 0
  273.  
  274. local debounce = false
  275. local knife = false
  276. local knifeslash = false
  277.  
  278. mouse.KeyDown:connect(function(k)
  279.     repeat wait() until action == false
  280.     if not action then
  281.     if k:byte() == 48 then
  282.         sprinting = true
  283.         humanoid.WalkSpeed = 40
  284.     end
  285.     if k == '2' or k == 'c' then
  286.         if not prone then
  287.             ctrl = not ctrl
  288.             if ctrl then
  289.             humanoid.WalkSpeed = 5
  290.             else
  291.             humanoid.WalkSpeed = 20
  292.             end
  293.         end
  294.     end
  295.     if k == "y" then
  296.         flashlight = not flashlight
  297.         if flashlight then
  298.             do
  299.             knife = false
  300.                 if charmodel:findFirstChild("Knife") then
  301.                 charmodel:findFirstChild("Knife"):Destroy()
  302.             end
  303.                 local part = Instance.new("Part", charmodel)
  304.                 part.CanCollide = false
  305.                 part.FormFactor = 'Custom'
  306.                 part.Name = "Flashlight"
  307.                 part.Size = Vector3.new(.4, .4, 2.1)
  308.                 part:breakJoints()
  309.                 local mesh = Instance.new("SpecialMesh", part)
  310.                 mesh.TextureId = "rbxassetid://129026436"
  311.                 mesh.MeshId = "rbxassetid://87653956"
  312.                 mesh.Scale = Vector3.new(.7, .7, .7)
  313.                 local weld = Instance.new("Weld", part)
  314.                 weld.Part0 = part
  315.                 weld.Part1 = ra
  316.                 weld.C0 = CFrame.Angles(math.rad(70), 0, -math.rad(10))
  317.                 weld.C1 = CFrame.new(-.08, -1.225, .05)
  318.  
  319.  
  320.                 local point = Instance.new("PointLight", part)
  321.                 point.Range = 20
  322.                 local spot = Instance.new("SpotLight", part)
  323.                 spot.Shadows = true
  324.                 spot.Range = 55
  325.                 spot.Angle = 60
  326.                 spot.Brightness = 30
  327.             end
  328.         else
  329.             if charmodel:findFirstChild("Flashlight") then
  330.                 charmodel:findFirstChild("Flashlight"):Destroy()
  331.             end
  332.         end
  333.     end
  334.     if k == "x" then
  335.         ctrl = false
  336.         prone = true
  337.         humanoid.WalkSpeed = 2.5
  338.     end
  339.     if k == "t" then
  340.         knife = not knife
  341.         if knife then
  342.             flashlight = false
  343.             if charmodel:findFirstChild("Flashlight") then
  344.                 charmodel:findFirstChild("Flashlight"):Destroy()
  345.             end
  346.         local part = Instance.new("Part", charmodel)
  347.                 part.CanCollide = false
  348.                 part.FormFactor = 'Custom'
  349.                 part.Name = "Knife"
  350.                 part.Size = Vector3.new(.2, 1.7, .25)
  351.                 part:breakJoints()
  352.                 local weld = Instance.new("Weld", part)
  353.                 weld.Part0 = part
  354.                 weld.Part1 = ra
  355.                 weld.C0 = CFrame.Angles(math.pi/2, 0, -math.rad(10))
  356.                 weld.C1 = CFrame.new(0, -1, -.45)
  357.                 Instance.new("BlockMesh", part).Scale = Vector3.new(.5, 1, .8)
  358.                 local part2 = Instance.new("Part", part)
  359.                 part2.CanCollide = false
  360.                 part2.FormFactor = 'Custom'
  361.                 part2.Name = "Knife"
  362.                 part2.BrickColor = BrickColor.Black()
  363.                 part2.Size = Vector3.new(.3, 1.2, .3)
  364.                 part2:breakJoints()
  365.                 local weld2 = Instance.new("Weld", part2)
  366.                 weld2.Part0 = part2
  367.                 weld2.Part1 = part
  368.                 weld2.C1 = CFrame.new(0, -.45, 0)
  369.                 Instance.new("BlockMesh", part2).Scale = Vector3.new(.5, 1, .8)
  370.         else
  371.             if charmodel:findFirstChild("Knife") then
  372.                 charmodel:findFirstChild("Knife"):Destroy()
  373.             end
  374.         end
  375.     end
  376. end
  377. end)
  378.  
  379. mouse.KeyUp:connect(function(k)
  380.     repeat wait() until action == false
  381.     if not action then
  382.         repeat wait() until action == false
  383.     if k:byte() == 48 then
  384.         sprinting = false
  385.         if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 10 and hitz and time_sprinted >= .8 then
  386.             time_sprinted = 0
  387.         action = 'StopSprinting'
  388.         end
  389.         humanoid.WalkSpeed = 20
  390.         if ctrl then
  391.             humanoid.WalkSpeed = 5
  392.         end
  393.         if prone then
  394.             humanoid.WalkSpeed = 2.55
  395.         end
  396.     end
  397.     if k == 'x' then
  398.         prone = false
  399.         if ctrl then
  400.             humanoid.WalkSpeed = 5
  401.         else
  402.             humanoid.WalkSpeed = 20
  403.         end
  404.     end
  405.     end
  406. end)
  407.  
  408.  
  409. mouse.Button1Down:connect(function()
  410.     if knife == true then
  411.         if debounce then return end
  412.         local slashs = Instance.new("Sound", head)
  413.         slashs.SoundId = "rbxasset://sounds/swordslash.mp3"
  414.         slashs.Volume = 1
  415.         slashs.Pitch = 2
  416.         slashs.Name = 'Slash'
  417.         slashs:play()
  418.         debounce = true
  419.         knifeslash = true
  420.         wait(.35)
  421.         if charmodel:findFirstChild('Knife') then
  422.             local killdeb = false
  423.             charmodel:findFirstChild('Knife').Touched:connect(function(hit)
  424.                 if knifeslash then
  425.                 if killdeb then return end
  426.                     if hit and hit.Parent and hit.Parent:findFirstChild("Humanoid") and hit.Parent.Name ~= char.Name then
  427.                         killdeb = true
  428.                         hit.Parent:findFirstChild("Humanoid"):TakeDamage(math.random(99999,999999))
  429.                         local hitsound = Instance.new("Sound", head)
  430.                         hitsound.SoundId = "rbxasset://sounds/metal.mp3"
  431.                         hitsound.Volume = 1
  432.                         hitsound.Name = 'Hit'
  433.                         hitsound:play()
  434.                         wait(.5)
  435.                         hitsound:Destroy()
  436.                         slashs:Destroy()
  437.                     end
  438.                 end
  439.             end)
  440.         end
  441.         knifeslash = false
  442.         wait(.5)
  443.         debounce = false
  444.     end
  445. end)
  446.  
  447. plr.Chatted:connect(function(msg)
  448.     if msg == "/dance" then
  449.         action = 'Dancing'
  450.     end
  451.     if msg == "/point" then
  452.         action = 'Pointing'
  453.     end
  454.     if msg == "/wave" then
  455.         action = 'Waving'
  456.     end
  457.     if msg == "/cheer" then
  458.         action = 'Cheering'
  459.     end
  460.     if msg == "/squat" then
  461.         action = 'Squatting'
  462.     end
  463.     if msg == "/sit" then
  464.         action = 'Sitting'
  465.     end
  466. end)
  467.  
  468. Controls = game:service'ControllerService':children()[1]
  469.  
  470. local fakehead = head:clone()
  471. fakehead.Parent = char
  472. fakehead.Name = 'FakeHead'
  473. head.Transparency = 1
  474. for i,v in pairs(fakehead:children()) do
  475.     if v:IsA'Sound' or v:IsA'Decal' then
  476.         v:Destroy()
  477.     end
  478. end
  479.  
  480. for i,v in pairs(head:children()) do
  481.     if v:IsA'Sound' then
  482.         v:Destroy()
  483.     end
  484. end
  485.  
  486. waitingloop = false
  487.  
  488. local fakeweld = Instance.new("Weld", fakehead)
  489. fakeweld.Part0 = head
  490. fakeweld.Part1 = fakehead
  491.  
  492. humanoid.Jumping:connect(function()
  493.     if not action or not prone then
  494.         action = 'Jumping'
  495.     end
  496. end)
  497.  
  498. local ScreenGui = Instance.new("ScreenGui", plr.PlayerGui)
  499. ScreenGui.Name = "BaseGui"
  500. local WhatObject = Instance.new("TextLabel", ScreenGui)
  501. WhatObject.Size = UDim2.new(0, 50, 0, 10)
  502. WhatObject.BackgroundColor3 = Color3.new(.25, .25, .25)
  503. WhatObject.BackgroundTransparency = .45
  504. WhatObject.TextColor3 = Color3.new(1,1,1)
  505. WhatObject.TextXAlignment = 'Left'
  506. WhatObject.Visible = false
  507. local WhatObjectI = Instance.new("TextLabel", ScreenGui)
  508. WhatObjectI.Size = UDim2.new(0, 50, 0, 10)
  509. WhatObjectI.BackgroundColor3 = Color3.new(.05, .05, .05)
  510. WhatObjectI.TextColor3 = Color3.new(1,1,1)
  511. WhatObjectI.FontSize = "Size12"
  512. WhatObjectI.TextYAlignment = 'Top'
  513. WhatObjectI.TextXAlignment = 'Left'
  514. WhatObjectI.Visible = false
  515. WhatObjectI.ZIndex = 3
  516.  
  517. local RadioFrame = Instance.new("Frame", ScreenGui)
  518. RadioFrame.Size = UDim2.new(0, 90, 0, 30)
  519. RadioFrame.Position = UDim2.new(0, 0, .4, 0)
  520. RadioFrame.BackgroundColor3 = Color3.new(.25, .25, .25)
  521.  
  522. local InventoryBut = Instance.new("TextButton", ScreenGui)
  523. InventoryBut.Size = UDim2.new(0, 90, 0, 30)
  524. InventoryBut.Text = 'Inventory'
  525. InventoryBut.TextColor3 = Color3.new(1,1,1)
  526. InventoryBut.TextScaled = true
  527. InventoryBut.Position = UDim2.new(.4, 0, 0, 0)
  528. InventoryBut.BackgroundColor3 = Color3.new(.25, .25, .25)
  529.  
  530. local InventoryGui = Instance.new("Frame", ScreenGui)
  531. InventoryGui.Size = UDim2.new(.6, 0, .6, 0)
  532. InventoryGui.BackgroundColor3 = Color3.new(.25, .25, .25)
  533. InventoryGui.Position = UDim2.new(.2, 0, -1, 0)
  534.  
  535. InventoryBut.TouchTap:connect(function()
  536.     InvVisible = not InvVisible
  537.     if InvVisible then
  538.         InventoryGui:TweenPosition(UDim2.new(.2, 0, .2, 0), "Out", "Quad", .35, true)
  539.     elseif not InvVisible then
  540.         InventoryGui:TweenPosition(UDim2.new(.2, 0, -1, 0), "Out", "Quad", .35, true)
  541.     end
  542. end)
  543. InventoryBut.MouseButton1Down:connect(function()
  544.     InvVisible = not InvVisible
  545.     if InvVisible then
  546.         InventoryGui:TweenPosition(UDim2.new(.2, 0, .2, 0), "Out", "Quad", .35, true)
  547.     elseif not InvVisible then
  548.         InventoryGui:TweenPosition(UDim2.new(.2, 0, -1, 0), "Out", "Quad", .35, true)
  549.     end
  550. end)
  551.  
  552. Buildings = {}
  553.  
  554. local WoodenFence = Instance.new("Part")
  555. WoodenFence.Size = Vector3.new(10, 5, 1)
  556. WoodenFence.Anchored = true
  557. WoodenFence.Material = 'Wood'
  558. WoodenFence.BrickColor = BrickColor.new'Really red'
  559. table.insert(Buildings, {WoodenFence = 'Wooden Fence'})
  560.  
  561. for y = 1, 4 do
  562.     for x = 1, 4 do
  563.     local slot = Instance.new("ImageLabel", InventoryGui)
  564.     slot.Name = "Slot"..tostring(#InventoryGui:children())
  565.     slot.Size = UDim2.new(.155, 0, .2, 0)
  566.     slot.ZIndex = 2
  567.     slot.Position = UDim2.new(.2+((x-1)/4)*.8, 0, .025+(y-1)/4, 0)
  568.     slot.BackgroundColor3 = Color3.new(.35, .35, .35)
  569.     local stack = Instance.new("TextLabel", slot)
  570.     stack.Size = UDim2.new(0, 0, 0, 25)
  571.     stack.Position = UDim2.new(.95, 0, 1, -25)
  572.     stack.TextXAlignment = 'Right'
  573.     stack.FontSize = "Size12"
  574.     stack.ZIndex = 3
  575.     stack.TextColor3 = Color3.new(1,1,1)
  576.     stack.BackgroundTransparency = 1
  577.     stack.TextStrokeTransparency = .5
  578.     stack.Visible = false
  579.     stack.TextScaled = true
  580.     Instance.new("StringValue", slot).Name = 'ItemName'
  581.     Instance.new("StringValue", slot).Name = 'Description'
  582.     Instance.new("NumberValue", slot).Name = 'Stack'
  583.     Instance.new("BoolValue", slot).Name = 'Functionable'
  584.     Instance.new("StringValue", slot.Functionable).Name = 'Function'
  585.     slot.Functionable.Value = false
  586.         slot.Functionable.Changed:connect(function()
  587.                 if slot.Functionable.Function.Value == 'Place' then
  588.                     slot.MouseButton1Down:connect(function()
  589.                         InvVisible = false
  590.                         InventoryGui:TweenPosition(UDim2.new(.2, 0, -1, 0), "Out", "Quad", .35, true)
  591.                         local PlaceObject
  592.                         for i,v in pairs(Buildings) do
  593.                             if v.Name == slot.Name.Value then
  594.                                 PlaceObject = v:clone()
  595.                                 PlabeObject.Parent = workspace
  596.                             end
  597.                         end
  598.                         local Placed = false
  599.                         mouse.KeyDown:connect(function(k)
  600.                             if Placed then return end
  601.                             if k == "r" then
  602.                                 if PlaceObject:IsA'Model' then
  603.                                     PlabeObject.Dragger:AxisRotate()
  604.                                 end
  605.                                 if PlaceObject:IsA'Part' then
  606.                                     PlaceObject.Rotation = Vector3.new(PlabeObject.Rotation.X, PlabeObject.Rotation.Y+90, PlabeObject.Rotation.Z)
  607.                                 end
  608.                             end
  609.                         end)
  610.                         mouse.Move:connect(function()
  611.                             if Placed then return end
  612.                             PlaceObject:TranslateBy(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  613.                         end)
  614.                         mouse.Button1Down:connect(function()
  615.                             Placed = true
  616.                         end)
  617.                     end)
  618.                 end
  619.         end)
  620.         slot.Stack.Changed:connect(function()
  621.             if slot.Stack.Value == '0' then
  622.                 stack.Visible = false
  623.             else
  624.                 stack.Visible = true
  625.                 stack.Text = slot.Stack.Value
  626.                 stack.Size = UDim2.new(0, -stack.TextBounds.x, 0, 25)
  627.             end
  628.         end)
  629.         slot.MouseEnter:connect(function()
  630.             if slot.Description.Value ~= '' then
  631.                     WhatObjectI.Parent = slot
  632.                     WhatObjectI.Position = UDim2.new(0, 0, 1, 0)
  633.                     WhatObjectI.Text = slot.Description.Value
  634.                     wait(0)
  635.                     WhatObjectI.Size = UDim2.new(0, WhatObjectI.TextBounds.x, 0, WhatObjectI.TextBounds.Y)
  636.                     WhatObjectI.Visible = true
  637.             end
  638.         end)
  639.         slot.MouseLeave:connect(function()
  640.             WhatObjectI.Visible = false
  641.         end)
  642.     end
  643. end
  644.  
  645. InventoryGui.Slot1.Image = "rbxassetid://154927249"
  646. InventoryGui.Slot1.Description.Value = [[A regular flashlight,
  647. Equip with F.]]
  648.  
  649. InventoryGui.Slot2.Image = "rbxassetid://154931868"
  650. InventoryGui.Slot2.Description.Value = [[It's a survival knife,
  651. slaughter or gather materials!
  652. Equip with K.]]
  653.  
  654. InventoryGui.Slot3.Description.Value = [[It's wood,
  655. You can build or use it as material.]]
  656. InventoryGui.Slot3.Stack.Value = 10
  657. InventoryGui.Slot3.Image = "rbxassetid://154979500"
  658.  
  659. InventoryGui.Slot4.ItemName.Value = "Wooden Fence"
  660. InventoryGui.Slot4.Description.Value = [[Defending building.]]
  661. InventoryGui.Slot4.Stack.Value = 1
  662. InventoryGui.Slot4.Functionable.Function.Value = 'Place'
  663.  
  664. radiosound = Instance.new("Sound", head)
  665. radiosound.Volume = 1
  666. radiosound.Name = 'IMPOSSIBRU'
  667.  
  668. Music = {
  669.     ['1'] = function(plr)
  670.     game:service'ContentProvider':Preload("rbxassetid://359999673")
  671.     radiosound.SoundId = "rbxassetid://359999673"
  672.     radiosound.Pitch = 1.1
  673.     end;
  674.     ['2'] = function(plr)
  675.     game:service'ContentProvider':Preload("rbxassetid://316650387")
  676.     radiosound.SoundId = "rbxassetid://316650387"
  677.     end;
  678.     ['3'] = function(plr)
  679.     game:service'ContentProvider':Preload("rbxassetid://381777626")
  680.     radiosound.SoundId = "rbxassetid://381777626"
  681.     end;
  682.     ['4'] = function(plr)
  683.     game:service'ContentProvider':Preload("rbxassetid://358308554")
  684.     radiosound.SoundId = "rbxassetid://358308554"
  685.     end;
  686.     ['5'] = function(plr)
  687.     game:service'ContentProvider':Preload("rbxassetid://330165926")
  688.     radiosound.SoundId = "rbxassetid://330165926"
  689.     end;
  690.     ['6'] = function(plr)
  691.     game:service'ContentProvider':Preload("rbxassetid://316739847")
  692.     radiosound.SoundId = "rbxassetid://316739847"
  693.     end;
  694.     ['7'] = function(plr)
  695.     game:service'ContentProvider':Preload("rbxassetid://317195741")
  696.     radiosound.SoundId = "rbxassetid://317195741"
  697.     end;
  698.     ['8'] = function(plr)
  699.     game:service'ContentProvider':Preload("rbxassetid://322147551")
  700.     radiosound.SoundId = "rbxassetid://322147551"
  701.     end;
  702.     ['9'] = function(plr)
  703.     game:service'ContentProvider':Preload("rbxassetid://322147634")
  704.     radiosound.SoundId = "rbxassetid://322147634"
  705.     end;
  706.     ['10'] = function(plr)
  707.     game:service'ContentProvider':Preload("rbxassetid://322147602")
  708.     radiosound.SoundId = "rbxassetid://322147602"
  709.     radiosound.Pitch = 1.1
  710.     end;
  711.     ['11'] = function(plr)
  712.     game:service'ContentProvider':Preload("rbxassetid://321958006")
  713.     radiosound.SoundId = "rbxassetid://321958006"
  714.     radiosound.Pitch = 1.1
  715.     end;
  716.     ['12'] = function(plr)
  717.     game:service'ContentProvider':Preload("rbxassetid://318043567")
  718.     radiosound.SoundId = "rbxassetid://318043567"
  719.     end;
  720.     ['13'] = function(plr)
  721.     game:service'ContentProvider':Preload("rbxassetid://318043515")
  722.     radiosound.SoundId = "rbxassetid://318043515"
  723.     end;
  724.     ['14'] = function(plr)
  725.     game:service'ContentProvider':Preload("rbxassetid://319021853")
  726.     radiosound.SoundId = "rbxassetid://319021853"
  727.     end;
  728.     ['15'] = function(plr)
  729.     game:service'ContentProvider':Preload("rbxassetid://319077421")
  730.     radiosound.SoundId = "rbxassetid://319077421"
  731.     end;
  732.     ['16'] = function(plr)
  733.     game:service'ContentProvider':Preload("rbxassetid://319940153")
  734.     radiosound.SoundId = "rbxassetid://319940153"
  735.     end;
  736.     ['17'] = function(plr)
  737.     game:service'ContentProvider':Preload("rbxassetid://320851078")
  738.     radiosound.SoundId = "rbxassetid://320851078"
  739.     end;
  740.     ['18'] = function(plr)
  741.     game:service'ContentProvider':Preload("rbxassetid://321553885")
  742.     radiosound.SoundId = "rbxassetid://321553885"
  743.     end;
  744.     ['19'] = function(plr)
  745.     game:service'ContentProvider':Preload("rbxassetid://171734536")
  746.     radiosound.SoundId = "rbxassetid://171734536"
  747.     end;
  748.     ['20'] = function(plr)
  749.     game:service'ContentProvider':Preload("rbxassetid://164080997")
  750.     radiosound.SoundId = "rbxassetid://164080997"
  751.     end;
  752.     ['21'] = function(plr)
  753.     game:service'ContentProvider':Preload("rbxassetid://143444695")
  754.     radiosound.SoundId = "rbxassetid://143444695"
  755.     end;
  756.     ['22'] = function(plr)
  757.     game:service'ContentProvider':Preload("rbxassetid://160376334")
  758.     radiosound.SoundId = "rbxassetid://160376334"
  759.     end;
  760.     ['23'] = function(plr)
  761.     game:service'ContentProvider':Preload("rbxassetid://366021765")
  762.     radiosound.SoundId = "rbxassetid://366021765"
  763.     end;
  764.     ['24'] = function(plr)
  765.     game:service'ContentProvider':Preload("rbxassetid://384949210")
  766.     radiosound.SoundId = "rbxassetid://384949210"
  767.     end;
  768.     ['25'] = function(plr)
  769.     game:service'ContentProvider':Preload("rbxassetid://342878539")
  770.     radiosound.SoundId = "rbxassetid://342878539"
  771.     end;
  772.     ['26'] = function(plr)
  773.     game:service'ContentProvider':Preload("rbxassetid://315292724")
  774.     radiosound.SoundId = "rbxassetid://315292724"
  775.     end;
  776.     ['27'] = function(plr)
  777.     game:service'ContentProvider':Preload("rbxassetid://345006573")
  778.     radiosound.SoundId = "rbxassetid://345006573"
  779.     end;
  780.     ['28'] = function(plr)
  781.     game:service'ContentProvider':Preload("rbxassetid://241148012")
  782.     radiosound.SoundId = "rbxassetid://241148012"
  783.     end;
  784.     ['29'] = function(plr)
  785.     game:service'ContentProvider':Preload("rbxassetid://158353213")
  786.     radiosound.SoundId = "rbxassetid://158353213"
  787.     end;
  788.     ['30'] = function(plr)
  789.     game:service'ContentProvider':Preload("rbxassetid://201129564")
  790.     radiosound.SoundId = "rbxassetid://201129564"
  791.     end;
  792.     ['31'] = function(plr)
  793.     game:service'ContentProvider':Preload("rbxassetid://181663037")
  794.     radiosound.SoundId = "rbxassetid://181663037"
  795.     radiosound.Pitch = 1.1
  796.     end;
  797.     ['32'] = function(plr)
  798.     game:service'ContentProvider':Preload("rbxassetid://150488830")
  799.     radiosound.SoundId = "rbxassetid://150488830"
  800.     radiosound.Pitch = 1.1
  801.     end;
  802.     ['33'] = function(plr)
  803.     game:service'ContentProvider':Preload("rbxassetid://165295816")
  804.     radiosound.SoundId = "rbxassetid://165295816"
  805.     end;
  806.     ['34'] = function(plr)
  807.     game:service'ContentProvider':Preload("rbxassetid://143003257")
  808.     radiosound.SoundId = "rbxassetid://143003257"
  809.     end;
  810.     ['35'] = function(plr)
  811.     game:service'ContentProvider':Preload("rbxassetid://237265076")
  812.     radiosound.SoundId = "rbxassetid://237265076"
  813.     end;
  814.     ['36'] = function(plr)
  815.     game:service'ContentProvider':Preload("rbxassetid://146626271")
  816.     radiosound.SoundId = "rbxassetid://146626271"
  817.     end;
  818. }
  819.  
  820. local HowMuchMusic = 0
  821. for _,_ in pairs(Music) do
  822.     HowMuchMusic = HowMuchMusic + 1
  823. end
  824. RadioEnabled = false
  825. local song
  826. local current = 1
  827. local CurrentNumber = Instance.new("TextLabel", RadioFrame)
  828. CurrentNumber.Size = UDim2.new(0, 60, 0, 15)
  829. CurrentNumber.Position = UDim2.new(0, 0, 0, -15)
  830. CurrentNumber.TextColor3 = Color3.new(1,1,1)
  831. CurrentNumber.BackgroundTransparency = 1
  832. CurrentNumber.Text = tostring(current).."/"..HowMuchMusic
  833. CurrentNumber.TextScaled = true
  834. local OnOff = Instance.new("TextButton", RadioFrame)
  835. OnOff.Size = UDim2.new(0, 60, 0, 28)
  836. OnOff.Position = UDim2.new(0, 1, 0, 1)
  837. OnOff.TextColor3 = Color3.new(1,1,1)
  838. OnOff.BackgroundColor3 = Color3.new(.6, 0, 0)
  839. OnOff.Text = 'OFF'
  840. OnOff.TextScaled = true
  841.  
  842. function nextSong(current2)
  843.     local CurrentSong = current2
  844.     coroutine.wrap(function()
  845.         for i = 1, 121 do
  846.             if RadioEnabled and CurrentSong == current2 then
  847.                 wait(1)
  848.             else return end
  849.         end
  850.         if RadioEnabled and CurrentSong == current then
  851.             radiosound:stop()
  852.             current = current + 1
  853.             if current > HowMuchMusic then
  854.                 current = 1
  855.             end
  856.             for index,func in pairs(Music) do
  857.                 if index == tostring(current) then
  858.                     func(plr)
  859.                 end
  860.             end
  861.         CurrentNumber.Text = tostring(current).."/"..HowMuchMusic
  862.         radiosound:play()
  863.         nextSong(current)
  864.         end
  865.     end)()
  866. end
  867.  
  868. OnOff.MouseButton1Down:connect(function()
  869.     RadioEnabled = not RadioEnabled
  870.     if RadioEnabled then
  871.         OnOff.BackgroundColor3 = Color3.new(0, .6, 0)
  872.         OnOff.Text = 'ON'
  873.         song = Music[tostring(current)]
  874.         for index,func in pairs(Music) do
  875.             if index == tostring(current) then
  876.             func(plr)
  877.             end
  878.         end
  879.         radiosound:play()
  880.         nextSong(current)
  881.     elseif not RadioEnabled then
  882.         OnOff.BackgroundColor3 = Color3.new(.6, 0, 0)
  883.         OnOff.Text = 'OFF'
  884.         radiosound:pause()
  885.     end
  886. end)
  887.  
  888. OnOff.TouchTap:connect(function()
  889.     RadioEnabled = not RadioEnabled
  890.     if RadioEnabled then
  891.         OnOff.BackgroundColor3 = Color3.new(0, .6, 0)
  892.         OnOff.Text = 'ON'
  893.         song = Music[tostring(current)]
  894.         for index,func in pairs(Music) do
  895.             if index == tostring(current) then
  896.             func(plr)
  897.             end
  898.         end
  899.         radiosound:play()
  900.         CurrentNumber.Text = tostring(current).."/"..HowMuchMusic
  901.         radiosound:play()
  902.         nextSong(current)
  903.     elseif not RadioEnabled then
  904.         OnOff.BackgroundColor3 = Color3.new(.6, 0, 0)
  905.         OnOff.Text = 'OFF'
  906.         radiosound:pause()
  907.     end
  908. end)
  909.  
  910. local Next = Instance.new("TextButton", RadioFrame)
  911. Next.Size = UDim2.new(0, 28, 0, 28)
  912. Next.Position = UDim2.new(0, 61, 0, 1)
  913. Next.TextColor3 = Color3.new(1,1,1)
  914. Next.BackgroundTransparency = 1
  915. Next.Text = '>'
  916.  
  917. Next.MouseButton1Down:connect(function()
  918. radiosound:stop()
  919. radiosound:stop()
  920. current = current + 1
  921. if current > HowMuchMusic then
  922.     current = 1
  923. end
  924. CurrentNumber.Text = tostring(current).."/"..HowMuchMusic
  925. song = Music[tostring(current)]
  926. for index,func in pairs(Music) do
  927.     if index == tostring(current) then
  928.         func(plr)
  929.     end
  930. end
  931. if RadioEnabled then
  932.     radiosound:play()
  933. end
  934. end)
  935.  
  936. humanoid.Changed:connect(function(changed)
  937.     --[[if ctrl and changed == 'Jump' then
  938.         humanoid.Jump = false
  939.         action = 'Rolling'
  940.     end--]]
  941.     if action ~= false or prone then
  942.         humanoid.Jump = false
  943.     end
  944. end)
  945.  
  946. humanoid.Climbing:connect(function(speed)
  947.     if speed > 4 then
  948.         action = 'Climbing'
  949.         humanoid.WalkSpeed = 20
  950.     else
  951.         action = false
  952.         if ctrl then
  953.             humanoid.WalkSpeed = 8
  954.         elseif prone then
  955.             humanoid.WalkSpeed = 4
  956.         end
  957.     end
  958. end)
  959.  
  960. mouse.Move:connect(function()
  961.     if (mouse.Target ~= nil and mouse.Target:IsA('Part') and mouse.Target.Parent and mouse.Target.Parent:IsA('Model') and mouse.Target.Parent:findFirstChild'Humanoid') or (mouse.Target ~= nil and mouse.Target:IsA('Part') and mouse.Target.Parent and mouse.Target.Parent:IsA'Hat' and mouse.Target.Parent.Parent and mouse.Target.Parent.Parent:findFirstChild'Humanoid') then
  962.         local target = mouse.Target
  963.         WhatObject.Visible = true
  964.         if target.Parent:IsA'Model' then
  965.         WhatObject.Text = target.Parent.Name
  966.         elseif target.Parent:IsA'Hat' then
  967.             WhatObject.Text = target.Parent.Parent.Name
  968.         end
  969.         WhatObject.Size = UDim2.new(0, WhatObject.TextBounds.x, 0, 10)
  970.         WhatObject.Position = UDim2.new(0, mouse.X + 10, 0, mouse.Y - 15)
  971.     else
  972.         WhatObject.Visible = false
  973.     end
  974. end)
  975.  
  976. wait()
  977.  
  978. local sound = Instance.new("Sound", head)
  979. sound.Volume = .65
  980. game:service'RunService'.Stepped:connect(function()
  981.     if prone or ctrl then
  982.      rootpart.CanCollide = false
  983.     end
  984. end)
  985.  
  986. idling = 0
  987. dancingtime = 0
  988.  
  989. game:service'RunService'.RenderStepped:connect(function()
  990.     if charmodel.Parent ~= char then charmodel.Parent = char end
  991.     if fakehead.Parent ~= char then fakehead.Parent = char end
  992.     if not loopedaction then
  993.         local rscf = rsc0
  994.         local lscf = lsc0
  995.         local rlcf = rlc0
  996.         local llcf = llc0
  997.         local rjcf = rootc0
  998.         local ncf = neckc0
  999.         local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  1000.         local hitz, enz = workspace:findPartOnRay(rayz, char)
  1001.         angle = (angle % 100) + anglespeed/10
  1002.         mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  1003.         for i,object in pairs(char:children()) do
  1004.             if object:IsA("Tool") then
  1005.                 if not wldunknown then
  1006.                 wldunknown = Instance.new("Weld", rarm)
  1007.                 wldunknown.Name = "RightGrip"
  1008.                 wldunknown.Part0 = rarm
  1009.                 if object:findFirstChild("Handle") then
  1010.                 wldunknown.Part1 = object:findFirstChild("Handle")
  1011.                 end
  1012.                 end
  1013.                 tool = true
  1014.             elseif not object:IsA("Tool") then
  1015.                 if tool then
  1016.                     pcall(function()
  1017.                         wldunknown:Destroy()
  1018.                         wldunknown:Destroy()
  1019.                     end)
  1020.                 end
  1021.                 tool = false
  1022.             end
  1023.         end
  1024.         if action ~= false then
  1025.             idling = 0
  1026.             if action == 'StopSprinting' then
  1027.                 Controls.Parent = nil
  1028.                 speed = 0.15
  1029.                 local bodyvelocity = Instance.new("BodyVelocity", rootpart)
  1030.                 bodyvelocity.maxForce = Vector3.new(1/0,0,1/0)
  1031.                 bodyvelocity.velocity = rootpart.CFrame.lookVector * 16
  1032.                 ncf = neckc0 * CFrame.Angles(math.rad(-12), -math.rad(15), 0)
  1033.                 rscf = rsc0 * CFrame.Angles(math.rad(-21), 0, math.rad(4.5))
  1034.                 lscf = lsc0 * CFrame.Angles(math.rad(-23.5), 0, -math.rad(3.5))
  1035.                 rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(math.rad(15), math.rad(25), 0)
  1036.                 llcf = llc0 * CFrame.new(0, .15, -.25) * CFrame.Angles(-math.rad(30), 0, -math.rad(5.5))
  1037.                 rlcf = rlcf * CFrame.new(0, .05, -.15) * CFrame.Angles(math.rad(20), 0, math.rad(2))
  1038.                 loopedaction = true
  1039.                 for i = 0, 25 do
  1040.                     bodyvelocity.velocity = rootpart.CFrame.lookVector * (16 - i/1.5)
  1041.                     rm.C0 = clerp(rm.C0,rscf,speed)
  1042.                     lm.C0 = clerp(lm.C0,lscf,speed)
  1043.                     rj.C0 = clerp(rj.C0,rjcf,speed)
  1044.                     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1045.                     llegm.C0 = clerp(llegm.C0,llcf,speed)
  1046.                     neck.C0 = clerp(neck.C0,ncf,speed)
  1047.                     wait()
  1048.                 end
  1049.                 bodyvelocity:Destroy()
  1050.                 loopedaction = false
  1051.                 stopsprint = false
  1052.                 action = false
  1053.                 Controls.Parent = game:service'ControllerService'
  1054.                 humanoid.WalkSpeed = 20
  1055.                 if ctrl then
  1056.                     humanoid.WalkSpeed = 8
  1057.                 elseif prone then
  1058.                     humanoid.WalkSpeed = 4
  1059.                 end
  1060.             end
  1061.             if action == "Climbing" then
  1062.                 anglespeed = 2
  1063.                 speed = 0.1
  1064.                 ncf = neckc0 * CFrame.Angles(math.pi/3, 0, 0)
  1065.                 rjcf = rootc0
  1066.                 rscf = rsc0 * CFrame.new(0, -0.2 + -mvmnt*0.2, 0.45) * CFrame.Angles(math.pi/1.5, 0, -math.abs(mvmnt)*0.025)
  1067.                 lscf = lsc0 * CFrame.new(0, -0.2 + mvmnt*0.2, 0.45) * CFrame.Angles(math.pi/1.5, 0, math.abs(mvmnt)*0.025)
  1068.                 rlcf = rlc0 * CFrame.new(0, 0.3 + mvmnt*0.2, 0) * CFrame.Angles(math.pi/14, 0, 0)
  1069.                 llcf = llc0 * CFrame.new(0, 0.3 + -mvmnt*0.2, 0) * CFrame.Angles(math.pi/14, 0, 0)
  1070.             end
  1071.             if action == 'Jumping' then
  1072.                 if not prone or ctrl then
  1073.                 loopedaction = true
  1074.                 ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  1075.                 rjcf = rootc0 * CFrame.Angles(math.sin(angle)*0.025, 0, 0)
  1076.                 rscf = rsc0 * CFrame.Angles(-math.pi/16, -math.sin(angle)*0.08, 0)
  1077.                 lscf = lsc0 * CFrame.Angles(-math.pi/17, math.sin(angle)*0.08, 0)
  1078.                 rlcf = rlc0 * CFrame.new(0, .45, -.45) * CFrame.Angles(-math.pi/16+-math.sin(angle)*0.125, -math.sin(angle)*0.08, math.rad(2.5))
  1079.                 llcf = llc0 * CFrame.Angles(-math.pi/17+-math.sin(angle)*0.125, math.sin(angle)*0.08, -math.rad(2.5))
  1080.                 for i = 0, 12 do
  1081.                     rm.C0 = clerp(rm.C0,rscf,speed)
  1082.                     lm.C0 = clerp(lm.C0,lscf,speed)
  1083.                     rj.C0 = clerp(rj.C0,rjcf,speed)
  1084.                     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1085.                     llegm.C0 = clerp(llegm.C0,llcf,speed)
  1086.                     neck.C0 = clerp(neck.C0,ncf,speed)
  1087.                     wait()
  1088.                 end
  1089.                 end
  1090.                 loopedaction = false
  1091.                 action = false
  1092.             end
  1093.             if action == 'Pointing' then
  1094.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1095.                 anglespeed = .5
  1096.                 speed = 0.25
  1097.                 ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.007, 0, 0)
  1098.                 rjcf = rootc0 * CFrame.Angles(math.sin(angle)*0.0015, 0, 0)
  1099.                 rscf = rsc0 * CFrame.Angles(math.pi/2, -math.sin(angle)*0.008, 0)
  1100.                 lscf = lsc0 * CFrame.Angles(0, math.sin(angle)*0.008, 0)
  1101.                 rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*0.0015, -math.sin(angle)*0.008, math.rad(2.5))
  1102.                 llcf = llc0 * CFrame.Angles(-math.sin(angle)*0.0015, math.sin(angle)*0.008, -math.rad(2.5))
  1103.                 else
  1104.                 action = false
  1105.                 end
  1106.             end
  1107.             if action == 'Waving' then
  1108.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1109.                 anglespeed = .5
  1110.                 speed = 0.25
  1111.                 ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.007, 0, 0)
  1112.                 rjcf = rootc0 * CFrame.Angles(math.sin(angle)*0.0025, 0, 0)
  1113.                 rscf = rsc0 * CFrame.Angles(0, -math.sin(angle)*0.008, math.pi/1.4+math.sin(angle)*.5)
  1114.                 lscf = lsc0 * CFrame.Angles(0, math.sin(angle)*0.008, 0)
  1115.                 rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*0.0025, -math.sin(angle)*0.008, math.rad(2.5))
  1116.                 llcf = llc0 * CFrame.Angles(-math.sin(angle)*0.0025, math.sin(angle)*0.008, -math.rad(2.5))
  1117.                 else
  1118.                 action = false
  1119.                 end
  1120.             end
  1121.             if action == 'Cheering' then
  1122.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1123.                 anglespeed = 2
  1124.                 speed = 0.25
  1125.                 ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1126.                 rjcf = rootc0 * CFrame.new(0, math.abs(math.sin(angle)), 0)
  1127.                 rscf = rsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.25, 0, math.rad(2))
  1128.                 lscf = lsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.25, 0, -math.rad(2))
  1129.                 rlcf = rlc0 * CFrame.Angles(0, 0, math.rad(5))
  1130.                 llcf = llc0 * CFrame.Angles(0, 0, -math.rad(5))
  1131.                 else
  1132.                 action = false
  1133.                 end
  1134.             end
  1135.             if action == 'Rolling' then
  1136.                 loopedaction = true
  1137.                 anglespeed = 2
  1138.                 speed = 0.6
  1139.                 Controls.Parent = nil
  1140.                 local bodyvelocity = Instance.new("BodyVelocity", rootpart)
  1141.                 bodyvelocity.maxForce = Vector3.new(1/0,1/0,1/0)
  1142.                 bodyvelocity.velocity = rootpart.CFrame.lookVector * 10
  1143.                 rj.C1 = CFrame.new()
  1144.                 for roll = 0, 360, 2 do
  1145.                         ncf = neckc0 * CFrame.Angles(-math.pi/1.85, 0, 0)
  1146.                         rjcf = CFrame.new() * CFrame.new(0, -1, 0) * CFrame.Angles(-math.rad(roll), 0, 0)
  1147.                         rscf = rsc0 * CFrame.Angles(math.pi/2.5, 0, -math.rad(30))
  1148.                         lscf = lsc0 * CFrame.Angles(math.pi/2.5, 0, math.rad(30))
  1149.                         rlcf = rlc0 * CFrame.new(0, .6, -.75) * CFrame.Angles(-math.pi/2.5, 0, 0)
  1150.                         llcf = llc0 * CFrame.new(0, .6, -.75) * CFrame.Angles(-math.pi/2.5, 0, 0)
  1151.                         rm.C0 = clerp(rm.C0,rscf,speed)
  1152.                         lm.C0 = clerp(lm.C0,lscf,speed)
  1153.                         rj.C0 = clerp(rj.C0,rjcf,speed)
  1154.                         neck.C0 = clerp(neck.C0,ncf,speed)
  1155.                         rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1156.                         llegm.C0 = clerp(llegm.C0,llcf,speed)
  1157.                         wait()
  1158.                 end
  1159.                 rj.C0 = CFrame.new(0, -1.5, 0)
  1160.                 rj.C1 = CFrame.new(0, -1.5, 0)
  1161.                 bodyvelocity:Destroy()
  1162.                 action = false
  1163.                 Controls.Parent = game:service'ControllerService'
  1164.                 loopedaction = false
  1165.             end
  1166.             if action == 'Dancing' then
  1167.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1168.                 dancingtime = dancingtime + 1/60
  1169.                 anglespeed = 1
  1170.                 speed = 0.25
  1171.                 if dancingtime <= 12 then
  1172.                 ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1173.                 rjcf = rootc0 * CFrame.new(0, 0.75 + -math.abs(math.sin(angle)), 0) * CFrame.Angles(0, 0, math.sin(angle)*.1)
  1174.                 rscf = rsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.5, 0, math.rad(2))
  1175.                 lscf = lsc0 * CFrame.Angles(math.pi-math.abs(math.sin(angle))*.5, 0, -math.rad(2))
  1176.                 rlcf = rlc0 * CFrame.Angles(math.sin(angle)*.25, 0, math.rad(5))
  1177.                 llcf = llc0 * CFrame.Angles(-math.sin(angle)*.25, 0, -math.rad(5))
  1178.                 elseif dancingtime <= 22 then
  1179.                 ncf = neckc0 * CFrame.Angles(math.pi/24.85, 0, 0)
  1180.                 rjcf = rootc0 * CFrame.new(0, math.abs(math.cos(angle)*.05), 0) * CFrame.Angles(0, math.sin(angle)*.035, math.sin(angle)*.015)
  1181.                 rscf = rsc0 * CFrame.Angles(math.pi/2-math.abs(math.sin(angle))*.5, 0, math.rad(2))
  1182.                 lscf = lsc0 * CFrame.Angles(math.pi/2-math.abs(math.sin(angle))*.5, 0, -math.rad(2))
  1183.                 rlcf = rlc0 * CFrame.Angles(math.sin(angle)*.05, 0, math.rad(5))
  1184.                 llcf = llc0 * CFrame.Angles(-math.sin(angle)*.05, 0, -math.rad(5))
  1185.                 elseif dancingtime >= 22 then
  1186.                     dancingtime = 0
  1187.                 end
  1188.                 else
  1189.                 action = false
  1190.                 end
  1191.             end
  1192.             if action == 'Squatting' then
  1193.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1194.                 anglespeed = 0.15
  1195.                 speed = 0.25
  1196.                 ncf = neckc0 * CFrame.Angles(math.pi/12-math.sin(angle)*0.005,0,0)
  1197.                 rscf = rsc0 * CFrame.new(-.35, 0, -.35+math.sin(angle)*0.005) * CFrame.Angles(math.pi/2.2+math.sin(-angle)*.005, 0, -math.pi/4.5)
  1198.                 lscf = lsc0 * CFrame.new(.35, 0, -.35+math.sin(angle)*0.005) * CFrame.Angles(math.pi/2.2+math.sin(angle)*.005, 0, math.pi/4.5)
  1199.                 rjcf = rootc0 * CFrame.new(0, -.9, .55) * CFrame.Angles(-math.pi/12+math.sin(angle)*0.005, 0, 0)
  1200.                 llcf = llc0 * CFrame.new(0, .95, -.55) * CFrame.Angles(math.pi/12, 0, -math.rad(2))
  1201.                 rlcf = rlcf * CFrame.new(0, .95, -.55) * CFrame.Angles(math.pi/14, 0, math.rad(2))
  1202.                 else
  1203.                 action = false
  1204.                 end
  1205.             end
  1206.             if action == 'Sitting' then
  1207.                 if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1208.                 anglespeed = 0.15
  1209.                 speed = 0.15
  1210.                 ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.005,0,0)
  1211.                 rscf = rsc0 * CFrame.Angles(-math.pi/16, 0, math.pi/24)
  1212.                 lscf = lsc0 * CFrame.Angles(-math.pi/16, 0, -math.pi/24)
  1213.                 rjcf = rootc0 * CFrame.new(0, -1.9, 0) * CFrame.Angles(math.pi/16+math.sin(angle)*0.005, 0, 0)
  1214.                 llcf = llc0 * CFrame.new(0, .95, -.75) * CFrame.Angles(math.pi/5, 0, -math.rad(7))
  1215.                 rlcf = rlcf * CFrame.new(0, .95, -.75) * CFrame.Angles(math.pi/5, 0, math.rad(7))
  1216.                 else
  1217.                 action = false
  1218.                 end
  1219.             end
  1220.         end
  1221.         if hitz and hitz.Material == Enum.Material.Grass or hitz and hitz.Material == Enum.Material.Fabric or hitz and hitz.Material == Enum.Material.Pebble or hitz and hitz.Material == Enum.Material.Sand then
  1222.             sound.SoundId = "rbxasset://sounds/grass2.mp3"
  1223.         elseif hitz and hitz.Material == Enum.Material.Plastic or hitz and hitz.Material == Enum.Material.SmoothPlastic then
  1224.             sound.SoundId = "rbxasset://sounds/plasticplastic.mp3"
  1225.         elseif hitz and hitz.Material == Enum.Material.Brick or hitz and hitz.Material == Enum.Material.Slate or hitz and hitz.Material == Enum.Material.Granite or hitz and hitz.Material == Enum.Material.Concrete or hitz and hitz.Material == Enum.Material.Marble then
  1226.             sound.SoundId = "rbxasset://sounds/stone.mp3"
  1227.         elseif hitz and hitz.Material == Enum.Material.Ice then
  1228.             sound.SoundId = "rbxasset://sounds/ice2.mp3"
  1229.         elseif hitz and hitz.Material == Enum.Material.CorrodedMetal or hitz and hitz.Material == Enum.Material.DiamondPlate then
  1230.             sound.SoundId = "rbxasset://sounds/metal3.mp3"
  1231.         elseif hitz and hitz.Material == Enum.Material.Wood then
  1232.             sound.SoundId = "rbxasset://sounds/woodwood.mp3"
  1233.         end
  1234.         if not action then
  1235.         if humanoid.Sit then
  1236.             ncf = neckc0 * CFrame.Angles(0, 0, 0)
  1237.             rjcf = rootc0 * CFrame.new(0, -.5, 0) * CFrame.Angles(math.rad(10), 0, 0)
  1238.             rscf = rsc0 * CFrame.Angles(-math.rad(10), 0, math.rad(5))
  1239.             lscf = lsc0 * CFrame.Angles(-math.rad(10), 0, -math.rad(5))
  1240.             rlcf = rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-math.rad(10), 0, math.rad(5.5))
  1241.             llcf = llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-math.rad(10), 0, -math.rad(5.5))
  1242.         elseif not hitz and torso.Velocity.y <= -0.5 then
  1243.             anglespeed = 1
  1244.             if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 15 then
  1245.                     if not waitingloop then
  1246.                     waitingloop = true
  1247.                         coroutine.wrap(function()
  1248.                             repeat wait() until hitz
  1249.                             action = 'StopSprinting'
  1250.                         end)()
  1251.                     end
  1252.             end
  1253.             anglespeed = 3
  1254.             local VelY = torso.Velocity.Y
  1255.             if VelY <= -85 then VelY = -85 end
  1256.                 ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  1257.                 rjcf = rootc0 * CFrame.Angles(math.sin(angle)*0.025, 0, 0)
  1258.                 rscf = rsc0 * CFrame.Angles(-math.rad(VelY)-math.sin(angle)*0.48, 0, math.rad(15.5+math.random(-1,3)))
  1259.                 lscf = lsc0 * CFrame.Angles(-math.rad(VelY)+math.sin(angle)*0.48, 0, -math.rad(15.5+math.random(1,3)))
  1260.                 rlcf = rlc0 * CFrame.Angles(-math.pi/16+-math.sin(angle)*0.35, -math.sin(angle)*0.008, math.rad(2.5))
  1261.                 llcf = llc0 * CFrame.Angles(-math.pi/17+math.sin(angle)*0.35, math.sin(angle)*0.008, math.rad(-2.5))
  1262.         elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  1263.             sound_play_time = 0
  1264.             if stopsprint and time_sprinted >= .8 then
  1265.                 time_sprinted = 0
  1266.                 action = 'StopSprinting'
  1267.             end
  1268.             time_sprinted = 0
  1269.             anglespeed = 0.15
  1270.             if prone then
  1271.             speed = 0.1
  1272.             ncf = neckc0 * CFrame.Angles(math.pi/2.1, 0, 0)
  1273.             rscf = rsc0 * CFrame.Angles(math.pi/.2-math.rad(10), -math.sin(angle)*0.02, 0)
  1274.             lscf = lsc0 * CFrame.Angles(math.pi/.2-math.rad(10), math.sin(angle)*0.02, 0)
  1275.             rjcf = rootc0 * CFrame.new(0, -.95, 0) * CFrame.Angles(-math.pi/2, 0, 0)
  1276.             llcf = llc0 * CFrame.new(0, 0, -.15) * CFrame.Angles(0, 0, math.rad(-5))
  1277.             rlcf = rlcf * CFrame.new(0, 0, -.15) * CFrame.Angles(0, 0, math.rad(5))
  1278.             elseif ctrl then
  1279.             speed = 0.15
  1280.             ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  1281.             rscf = rsc0 * CFrame.Angles(0, -math.sin(angle)*0.08, math.pi/18)
  1282.             lscf = lsc0 * CFrame.Angles(0, math.sin(angle)*0.08, -math.pi/18)
  1283.             rjcf = rootc0 * CFrame.new(0, -1.25, 0)
  1284.             llcf = llc0 * CFrame.new(0, 0, -.4999) * CFrame.Angles(-math.pi/2.2, 0, 0)
  1285.             rlcf = rlcf * CFrame.new(0, 1.25, -.85)
  1286.             elseif not ctrl and not prone then
  1287.             speed = 0.15
  1288.             idling = idling + 1/20
  1289.             if idling >= 20 then
  1290.             ncf = neckc0 * CFrame.Angles(math.pi/12-math.sin(angle)*0.005,0,0)
  1291.             rscf = rsc0 * CFrame.new(-.35, 0, -.35+math.sin(angle)*0.005) * CFrame.Angles(math.pi/2.2+math.sin(-angle)*.005, 0, -math.pi/4.5)
  1292.             lscf = lsc0 * CFrame.new(.35, 0, -.35+math.sin(angle)*0.005) * CFrame.Angles(math.pi/2.2+math.sin(angle)*.005, 0, math.pi/4.5)
  1293.             rjcf = rootc0 * CFrame.new(0, -.9, .55) * CFrame.Angles(-math.pi/12+math.sin(angle)*0.005, 0, 0)
  1294.             llcf = llc0 * CFrame.new(0, .95, -.55) * CFrame.Angles(math.pi/12, 0, -math.rad(2))
  1295.             rlcf = rlcf * CFrame.new(0, .95, -.55) * CFrame.Angles(math.pi/14, 0, math.rad(2))
  1296.             else
  1297.             ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  1298.             rjcf = rootc0 * CFrame.Angles(math.sin(angle)*0.025, 0, 0)
  1299.             rscf = rsc0 * CFrame.Angles(0, -math.sin(angle)*0.08, 0)
  1300.             lscf = lsc0 * CFrame.Angles(0, math.sin(angle)*0.08, 0)
  1301.             rlcf = rlc0 * CFrame.Angles(-math.sin(angle)*0.025, -math.sin(angle)*0.08, math.rad(2.5))
  1302.             llcf = llc0 * CFrame.Angles(-math.sin(angle)*0.025, math.sin(angle)*0.08, -math.rad(2.5))
  1303.         end
  1304.             end
  1305.         elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 10 then
  1306.             if stopsprint and time_sprinted >= .8 then
  1307.                 action = 'StopSprinting'
  1308.             end
  1309.             sound_play_time = sound_play_time + 1/60
  1310.             time_sprinted = 0
  1311.             idling = 0
  1312.             anglespeed = 1.5
  1313.             if prone then
  1314.             speed = 0.1
  1315.             anglespeed = .85
  1316.             ncf = neckc0 * CFrame.Angles(math.pi/2.1, 0, 0)
  1317.             rscf = rsc0 * CFrame.new(0, .7+ math.sin(angle)*.35, .1 + math.cos(-angle)*.1) * CFrame.Angles(math.pi/.2-math.rad(10), -math.sin(angle)*0.02, -math.pi/8)
  1318.             lscf = lsc0 * CFrame.new(0, .7+ -math.sin(angle)*.35, .1 - math.cos(angle)*.1) * CFrame.Angles(math.pi/.2-math.rad(10), math.sin(angle)*0.02, math.pi/8)
  1319.             rjcf = rootc0 * CFrame.new(0, -.95, 0) * CFrame.Angles(-math.pi/2, 0, 0)
  1320.             llcf = llc0 * CFrame.new(0, .35 + -math.sin(angle)*.35, 0) * CFrame.new(0, 0, -.15) * CFrame.Angles(0, 0, math.rad(-5))
  1321.             rlcf = rlcf * CFrame.new(0, .35 + math.sin(angle)*.35, 0) * CFrame.new(0, 0, -.15) * CFrame.Angles(0, 0, math.rad(5))
  1322.             elseif ctrl then
  1323.             speed = 0.25
  1324.             if sound_play_time >= .4 then
  1325.                 sound.Volume = .45
  1326.                 sound:play()
  1327.                 sound_play_time = 0
  1328.             end
  1329.             ncf = neckc0 * CFrame.Angles(math.pi/12,0,0)
  1330.             rscf = rsc0 * CFrame.new(0, 0, math.sin(angle)*0.025) * CFrame.Angles(math.pi/24+math.sin(-angle)*.05, 0, math.pi/18-math.abs(mvmnt)*0.02)
  1331.             lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.025) * CFrame.Angles(math.pi/24+math.sin(angle)*.05, 0, -math.pi/18+math.abs(mvmnt)*0.02)
  1332.             rjcf = rootc0 * CFrame.new(0, -.7, 0) * CFrame.Angles(math.abs(math.sin(angle))*0.025 + -math.pi/12, 0, 0)
  1333.             llcf = llc0 * CFrame.new(0, .85 + .2 - math.cos(angle)*.2, -.5 + (-.4+math.sin(angle)*0.25)) * CFrame.Angles(math.pi/18 + -math.pi/10 - math.sin(angle)*.45, 0, 0)
  1334.             rlcf = rlcf * CFrame.new(0, .85 + .2 + math.cos(angle)*.2, -.5 + (-.25-math.sin(angle)*0.25)) * CFrame.Angles(math.pi/18 + -math.pi/10 + math.sin(angle)*.45, 0, 0)
  1335.             elseif not ctrl and not prone then
  1336.             speed = 0.25
  1337.             if sound_play_time >= .4 then
  1338.                 sound.Volume = .65
  1339.                 sound:play()
  1340.                 sound_play_time = 0
  1341.             end
  1342.             rjcf = rootc0 * CFrame.Angles(math.abs(math.sin(angle))*0.025 + -math.pi/64, 0, 0)
  1343.             rscf = rsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/24+math.sin(angle)*.5, 0, -math.abs(mvmnt)*0.02)
  1344.             lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/24+math.sin(-angle)*.5, 0, math.abs(mvmnt)*0.02)
  1345.             rlcf = rlc0 * CFrame.new(0, .075 + -math.cos(-angle)*.075, -.05+math.sin(angle)*0.1) * CFrame.Angles(math.sin(-angle)*.45, 0, math.rad(.5))
  1346.             llcf = llc0 * CFrame.new(0, .075 - -math.cos(angle)*.075, -.05-math.sin(angle)*0.1) * CFrame.Angles(math.sin(angle)*.45, 0, -math.rad(.5))
  1347.             end
  1348.         elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 15 then
  1349.             idling = 0
  1350.             time_sprinted = time_sprinted + 1/60
  1351.             sound_play_time = sound_play_time + 1/60
  1352.             stopsprint = true --when released
  1353.             anglespeed = 2
  1354.             speed = .3
  1355.             if sound_play_time >= .375 then
  1356.                 sound.Volume = .75
  1357.                 sound:play()
  1358.                 sound_play_time = 0
  1359.             end
  1360.             local RotVelocityZ = torso.RotVelocity.Y
  1361.             if RotVelocityZ >= 15 then
  1362.                 RotVelocityZ = 15
  1363.             elseif RotVelocityZ <= -15 then
  1364.                 RotVelocityZ = -15
  1365.             end
  1366.             ncf = neckc0 * CFrame.Angles(0, -math.sin(angle)*.1, 0)
  1367.             rscf = rsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/24+math.sin(angle)*1.1, 0, -math.abs(mvmnt)*0.02)
  1368.             lscf = lsc0 * CFrame.new(0, 0, math.sin(angle)*0.125) * CFrame.Angles(math.pi/24+math.sin(-angle)*1.1, 0, math.abs(mvmnt)*0.02)
  1369.             rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.abs(math.sin(angle))*0.055 + -math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045 + math.rad(RotVelocityZ)*2.5)
  1370.             rlcf = rlc0 * CFrame.new(0, .3 + -math.cos(-angle)*.3, -.2+math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  1371.             llcf = llc0 * CFrame.new(0, .3 - -math.cos(angle)*.3, -.05-math.sin(angle)*0.25) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  1372.             --rlcf -.2+math.sin(angle)*0.25
  1373.             --llcf -.05-math.sin(angle)*0.25
  1374.         end
  1375.         end
  1376.             if knife then
  1377.                 if prone then
  1378.                     rscf = rsc0 * CFrame.Angles(math.rad(170), -math.rad(10), -.2)
  1379.                 else
  1380.                     rscf = rsc0 * CFrame.Angles(math.rad(50), -math.rad(10), -.2)
  1381.                 end
  1382.             elseif flashlight then
  1383.                 if prone then
  1384.                     rscf = rsc0 * CFrame.Angles(math.rad(170), -math.rad(10), -.2)
  1385.                 else
  1386.                     rscf = rsc0 * CFrame.Angles(math.rad(70), -math.rad(10), -.2)
  1387.                 end
  1388.             end
  1389.             if knifeslash then
  1390.                 if prone then
  1391.                     rscf = rsc0 * CFrame.Angles(math.rad(190), -math.rad(10), -.2)
  1392.                 else
  1393.                     rscf = rsc0 * CFrame.Angles(math.rad(100), -math.rad(10), -.2)
  1394.                 end
  1395.             end
  1396.     rm.C0 = clerp(rm.C0,rscf,speed)
  1397.     lm.C0 = clerp(lm.C0,lscf,speed)
  1398.     rj.C0 = clerp(rj.C0,rjcf,speed)
  1399.     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  1400.     llegm.C0 = clerp(llegm.C0,llcf,speed)
  1401.     neck.C0 = clerp(neck.C0,ncf,speed)
  1402. end
  1403. end)
  1404. hed.face.Texture = "rbxassetid://317580484"
  1405. ypcall(function()
  1406. char.Shirt:Destroy()
  1407. char.Pants:Destroy()
  1408. shirt = Instance.new("Shirt", char)
  1409. shirt.Name = "Shirt"
  1410. pants = Instance.new("Pants", char)
  1411. pants.Name = "Pants"
  1412. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=333273311"
  1413. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=302001170"
  1414. end)
  1415. z = Instance.new("Sound", char)
  1416. z.SoundId = "rbxassetid://389354082"--412316161
  1417. z.Looped = true
  1418. z.Pitch = 1.05
  1419. z.Volume = 1
  1420. wait(.1)
  1421. z:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement