Advertisement
CrastAndNoob

animated cuphead thingy

May 20th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. math.randomseed(tick())
  2. local plr = owner; local char = plr.Character;
  3. if not char then error("Your character does not exist.") end
  4. function writeToObject(name,value,typ)
  5. local stringV = Instance.new(typ.."Value")
  6. stringV.Name = name
  7. stringV.Value = value
  8. return stringV
  9. end
  10. local hum = char:FindFirstChildOfClass("Humanoid")
  11. char["Body Colors"]:Destroy()
  12. --[[local txt = Instance.new("BillboardGui", char.Head)
  13. txt.Adornee = nil
  14. txt.Name = "NameDetect"
  15. txt.Size = UDim2.new(4, 0, 1.2, 0)
  16. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  17. local text = Instance.new("TextLabel", txt)
  18. text.Size = UDim2.new(5, 0, 3.5, 0)
  19. text.FontSize = "Size8"
  20. text.TextScaled = true
  21. text.TextTransparency = 0
  22. text.BackgroundTransparency = 1
  23. text.TextTransparency = 0
  24. text.TextStrokeTransparency = 0
  25. text.Font = Enum.Font.Bodoni
  26. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  27. text.TextColor3 = Color3.new(1, 0, 0)
  28. text.Text = "Now this is your soul... isn't it?"--]]
  29. local music = Instance.new("Sound",char.Torso)
  30. music.SoundId = "rbxassetid://2865827484"
  31. music.Volume = "inf"
  32. music.Looped = true
  33. music:Play()
  34. for _,i in pairs(char:GetChildren())do
  35. if i.ClassName=="CharacterMesh"then
  36. i:Destroy()
  37. end
  38. end
  39. local weld1 = Instance.new("Weld",char)
  40. weld1.Part0 = char["Left Arm"]
  41. weld1.Part1 = char.Torso
  42. weld1.C0 = CFrame.new(-1.5,-0.25,0)
  43. local weld2 = Instance.new("Weld",char)
  44. weld2.Part0 = char["Right Arm"]
  45. weld2.Part1 = char.Torso
  46. weld2.C0 = CFrame.new(1.5,-0.25,0)
  47. local speed = 0.5
  48. while true do
  49. for _ = 1,10 do
  50. weld1.C0 = weld1.C0 + Vector3.new(0,0.05,0)
  51. weld2.C0 = weld2.C0 + Vector3.new(0,0.05,0)
  52. speed = speed - 0.03
  53. wait(speed/6)
  54. end
  55. for _ = 1,5 do
  56. weld1.C0 = weld1.C0 + Vector3.new(0,0.05,0)
  57. weld2.C0 = weld2.C0 + Vector3.new(0,0.05,0)
  58. speed = speed + 0.03
  59. wait(speed/6)
  60. end
  61. for _ = 1,10 do
  62. weld1.C0 = weld1.C0 - Vector3.new(0,0.05,0)
  63. weld2.C0 = weld2.C0 - Vector3.new(0,0.05,0)
  64. speed = speed - 0.03
  65. wait(speed/6)
  66. end
  67. for _ = 1,5 do
  68. weld1.C0 = weld1.C0 - Vector3.new(0,0.05,0)
  69. weld2.C0 = weld2.C0 - Vector3.new(0,0.05,0)
  70. speed = speed + 0.03
  71. wait(speed/6)
  72. end
  73. wait()
  74. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement