Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- char = game.Players.LocalPlayer.Character
- soundid = 158215156
- humanoid = player.Character.Humanoid
- mouse = player:GetMouse()
- anim = Instance.new("Animation")
- anim.AnimationId = "http://www.roblox.com/asset/?id=211179158"
- local p = Instance.new("Part")
- p.Name = "Potion"
- p.Transparency = 0
- p.FormFactor = Enum.FormFactor.Custom
- p.CanCollide = false
- p.Size = Vector3.new(0.3,0.3,0.3)
- p.TopSurface = Enum.SurfaceType.Smooth
- p.BottomSurface = Enum.SurfaceType.Smooth
- p.Anchored = false
- p.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) -- So it won't weigh down the player
- p.Parent = char["Right Arm"]
- local weld = Instance.new("Weld", p)
- weld.Part0 = player.Character["Right Arm"]
- weld.Part1 = p
- weld.C1 = CFrame.new(0,0,0)
- weld.Parent = p
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.Name = "ThePotion"
- mesh.MeshId = "http://www.roblox.com/asset?id=153977106"
- mesh.TextureId = "http://www.roblox.com/asset?id=153977084"
- mesh.Parent = p
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- local playAnim = humanoid:LoadAnimation(anim)
- playAnim:Play()
- char.Humanoid.Health = char.Humanoid.Health + 45
- end
- end)
- mouse.KeyDown:connect(function(key24)
- if key24 == "t" then
- local playAnim = humanoid:LoadAnimation(anim)
- playAnim:Play()
- char.Humanoid.Health = char.Humanoid.Health - 12
- end
- end)
- mouse.KeyDown:connect(function(key23)
- if key23 == "y" then
- local playAnim = humanoid:LoadAnimation(anim)
- playAnim:Play()
- char.Humanoid.MaxHealth = char.Humanoid.MaxHealth - 12
- end
- end)
- mouse.KeyDown:connect(function(key2)
- if key2 == "m" then
- local playAnim = humanoid:LoadAnimation(anim)
- playAnim:Play()
- char.Humanoid.MaxHealth = char.Humanoid.MaxHealth + 12
- end
- end)
- animuai = Instance.new("Sound")
- animuai.Name = "SongyName"
- animuai.SoundId = "rbxassetid://"..soundid
- animuai.Volume = 10
- animuai.PlaybackSpeed = 1
- animuai.Parent = char.Torso
- animuai.Looped = true
- animuai:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement