I made a potion that heals your character then i publish the game then it doesnt work anymore
local CanActivate = true local player = game.Players.LocalPlayer local character = player.Character function onActivation() if CanActivate == true then if CanActivate == true then CanActivate = false local animation = character.Humanoid:LoadAnimation(script.Parent.Animation) animation:Play() wait(1) character.Humanoid.Health = character.Humanoid.Health + 50 wait(2) CanActivate = true end end end