Advertisement
SlappyDappyCrappy

Big boob

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