local function createTool(toolName, effectFunction) local tool = Instance.new("Tool") tool.Name = toolName tool.RequiresHandle = true local handle = Instance.new("Part") handle.Name = "Handle" handle.Size = Vector3.new(1.317, 2.117, 1.385) handle.Parent = tool tool.Activated:Connect(effectFunction) return tool end local function speedPotionEffect() local humanoid = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") local player = game.Players.LocalPlayer if humanoid then humanoid.WalkSpeed = humanoid.WalkSpeed * 2 wait(10) humanoid.WalkSpeed = humanoid.WalkSpeed / 2 end end local function jumpPotionEffect() local humanoid = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") local player = game.Players.LocalPlayer if humanoid then humanoid.JumpPower = humanoid.JumpPower * 2 wait(10) humanoid.JumpPower = humanoid.JumpPower / 2 end end local speedPotion = createTool("Speed Potion", speedPotionEffect) speedPotion.Parent = game.Players.LocalPlayer.Backpack local jumpPotion = createTool("Jump Potion", jumpPotionEffect) jumpPotion.Parent = game.Players.LocalPlayer.Backpack