Advertisement
Animescapetower

Untitled

Feb 28th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1.  
  2. player = game.Players.LocalPlayer
  3. char = game.Players.LocalPlayer.Character
  4. soundid = 158215156
  5. humanoid = player.Character.Humanoid
  6. mouse = player:GetMouse()
  7. anim = Instance.new("Animation")
  8. anim.AnimationId = "http://www.roblox.com/asset/?id=211179158"
  9.  
  10.  
  11. local p = Instance.new("Part")
  12. p.Name = "Potion"
  13. p.Transparency = 0
  14. p.FormFactor = Enum.FormFactor.Custom
  15. p.CanCollide = false
  16. p.Size = Vector3.new(0.3,0.3,0.3)
  17. p.TopSurface = Enum.SurfaceType.Smooth
  18. p.BottomSurface = Enum.SurfaceType.Smooth
  19. p.Anchored = false
  20. p.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
  21. p.Parent = char["Right Arm"]
  22.  
  23.  
  24. local weld = Instance.new("Weld", p)
  25. weld.Part0 = player.Character["Right Arm"]
  26. weld.Part1 = p
  27. weld.C1 = CFrame.new(0,0,0)
  28. weld.Parent = p
  29.  
  30.  
  31.  
  32. local mesh = Instance.new("SpecialMesh")
  33.  
  34. mesh.MeshType = "FileMesh"
  35. mesh.Name = "ThePotion"
  36. mesh.MeshId = "http://www.roblox.com/asset?id=153977106"
  37. mesh.TextureId = "http://www.roblox.com/asset?id=153977084"
  38. mesh.Parent = p
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. mouse.KeyDown:connect(function(key)
  46. if key == "q" then
  47. local playAnim = humanoid:LoadAnimation(anim)
  48. playAnim:Play()
  49. char.Humanoid.Health = char.Humanoid.Health + 45
  50. end
  51. end)
  52.  
  53. mouse.KeyDown:connect(function(key24)
  54.  
  55. if key24 == "t" then
  56. local playAnim = humanoid:LoadAnimation(anim)
  57. playAnim:Play()
  58. char.Humanoid.Health = char.Humanoid.Health - 12
  59. end
  60. end)
  61.  
  62. mouse.KeyDown:connect(function(key23)
  63. if key23 == "y" then
  64. local playAnim = humanoid:LoadAnimation(anim)
  65. playAnim:Play()
  66. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - 12
  67. end
  68. end)
  69.  
  70. mouse.KeyDown:connect(function(key2)
  71.  
  72. if key2 == "m" then
  73. local playAnim = humanoid:LoadAnimation(anim)
  74. playAnim:Play()
  75. char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 12
  76. end
  77. end)
  78.  
  79.  
  80. animuai = Instance.new("Sound")
  81. animuai.Name = "SongyName"
  82. animuai.SoundId = "rbxassetid://"..soundid
  83. animuai.Volume = 10
  84. animuai.PlaybackSpeed = 1
  85. animuai.Parent = char.Torso
  86. animuai.Looped = true
  87. animuai:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement