Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local drinkAnim = script:WaitForChild("DrinkAnimation")
- local drinkSound = script:WaitForChild("DrinkSound")
- local potion = script.Parent
- potion.Activated:Connect(function()
- if not potion:FindFirstChild("Contents") then return end
- local char = potion.Parent
- local humanoid = char:FindFirstChild("Humanoid")
- if humanoid then
- local loadedAnim = humanoid:LoadAnimation(drinkAnim)
- loadedAnim:Play()
- drinkSound:Play()
- loadedAnim.Stopped:Wait()
- potion.Contents:Destroy()
- humanoid.WalkSpeed = 30
- wait(5)
- humanoid.WalkSpeed = 16
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement